From plain code to swarm: six rungs of autonomy, one task throughout
Foundation Track 01. The entry point to the whole open-source stack. The same task: write a 3-bullet executive brief - solved at every level of AI autonomy, so you can feel the jump between rungs rather than just read about it.
Everyone uses the words: workflow, agent, multi-agent, swarm - and almost nobody agrees on where one ends and the next begins. This repo settles it by showing instead of telling. The same task runs at six levels of autonomy. The lesson is the diff between the rungs.
It is also the front door to everything else in this open-source stack. Read the ladder, then follow the links down into the production-grade repos.
Workflow vs Agent (rung 02 → 03). A workflow runs LLM calls on a path a human wrote. An agent lets the model choose the path at runtime. The two ingredients that flip it: tools (something to act with) and a loop (more than one step).
Team vs Swarm (rung 04 → 05). A team has someone in charge: an orchestrator assigns roles and ordering. A swarm has no central control. Coordination emerges from peers reacting to peers.
Node 18+, no npm install, no API keys. Everything runs offline in mock mode by default:
node 00-plain-code/main.js node 01-single-llm-call/main.js node 02-workflow/main.js node 03-agent/main.js node 04-agentic-team/main.js node 05-swarm/main.js # Real model (Ollama, free): LLM_MOCK=0 node 03-agent/main.js # Change the task for all rungs at once: TOPIC="the rise of the transistor" node 05-swarm/main.js
This is the entry point. Once you understand the ladder, the other repos make immediate sense: **[Agent-Anatomy](https://github.com/shubham0086/Agent-Anatomy)** zooms into rung 03 (what one agent is made of), Agentic Patterns documents the architecture theory, Agentic Systems gives you five production-grade runnable agents (rung 04), and AgentKernel is the infra underneath all of them.