Swamp CLI: agents build a workflow once, code runs it

Swamp, an open-source CLI, has your coding agent turn a repeated skill into a recorded, reusable workflow where code, not the model, decides the next step.

Swamp is an open-source command-line tool that has your coding agent turn a repeated task into a workflow it builds once and reruns. It hit X on Nov 16, 2026, when Avi Chawla billed it as "Skills 2.0". The problem it targets is real for anyone who packages work as skills: the agent re-reads the skill and decides every step on every run. Per the project README, the agent breaks a problem into reusable "behaviors" (YAML definitions over types like a cloud resource, CLI tool or API) and wires them into workflows. Those files live in your Git repo, and every run is recorded and versioned in a local .swamp/ datastore. The README lists support for nine harnesses, including Claude Code, Cursor, Codex and Copilot CLI, and says secrets come from vaults and are redacted from output.

The headline numbers come from the post, not the repo. Chawla cites what he calls an official result: a code-review skill in Codex used about 4.6M tokens, 23 agents and 12.8 minutes, while the Swamp workflow used about 506K tokens, 3 agents and 6.6 minutes. He credits most of the savings to replacing the coordinator agent with plain code. The README we fetched gives no benchmark, and Chawla says he worked with the team on the post's animation, so treat the 8x as the project's claim until someone reproduces it.

The idea itself doesn't depend on Swamp. If an agent orchestrates the same steps every time, you pay it to rediscover the loop. Moving the loop into code and keeping the model for the judgment steps is the vibe-engineering move, and it makes runs reviewable and cheaper to audit.

Things to weigh before adopting it. The README says it runs entirely on your machine, yet you need a swamp-club.com account to run it at all. It collects anonymous usage telemetry by default (opt out with swamp config set telemetry.collection disabled or DO_NOT_TRACK=1). It's licensed under the GNU Affero General Public License v3.0, with an exception for extensions and definitions. External pull requests are closed automatically: contributions go through issues.

Try it: in an existing project, run swamp auth login then swamp repo init (add --tool cursor or --tool codex as needed). Then pick one skill you run weekly and ask your agent, in our example wording: "Turn this skill into a Swamp workflow, and use a model call only for steps that need judgment." Compare token use across a few runs yourself.

Sources