| name | swamp |
| description | Swamp CLI — create and run models, build and validate workflows, query and manage data, store and retrieve vault secrets, develop and publish extensions, initialize repos, run reports, file issues, and troubleshoot errors. Triggers on swamp commands (swamp model, swamp workflow, swamp vault, swamp data), extension development, repo setup, or diagnostic questions. Do NOT use for getting started / onboarding (use swamp-getting-started), pull requests, git operations, worktree management, cron/agent scheduling, or general coding tasks unrelated to swamp.
|
Swamp
How Swamp Works
Swamp automates infrastructure and external services through models — typed
definitions that represent resources (an EC2 instance, a DNS record, a GitHub
repo). Each model type exposes methods (create, start, stop, destroy, sync)
that perform operations against the real resource. Running a method produces
data — versioned snapshots of the resource's state that other models can
reference via CEL expressions.
Workflows chain model methods into a declarative DAG: step A creates a VPC,
step B reads A's output to launch instances inside it. Vaults store secrets
(API keys, tokens) that models reference at runtime. Extensions add new
model types, vault backends, datastores, and report generators — authored in
TypeScript and published to a registry. Reports summarize data across models
for observability.
Routing Table
Route to the right guide based on what the user needs.
| User intent | Guide |
|---|
| Models — create, run, edit, delete, search types | references/model/guide.md |
| Workflows — create, run, validate, DAG, history | references/workflow/guide.md |
| Data — list, query, versions, GC, delete | references/data/guide.md |
| Vaults — create, store/read secrets, expressions | references/vault/guide.md |
| Reports — run, configure, view, filter | references/report/guide.md |
| Repository — init, upgrade, datastores, sources | references/repo/guide.md |
| Extensions — create models/vaults/drivers/datastores/reports | references/extension/guide.md |
| Publishing — push extensions to registry, deprecate | references/extension-publish/guide.md |
| Issues — file bugs, features, security reports | references/issue/guide.md |
| Troubleshooting — errors, health checks, diagnostics | references/troubleshooting/guide.md |
Common Commands
swamp model @<type> create <name>
swamp model @<type> method run <method> <name>
swamp model get <name> --json
swamp model search @<type>
swamp model list
swamp data list <name>
swamp data query <name> '<CEL predicate>'
swamp data get <name>
swamp workflow create <name>
swamp workflow run <name>
swamp workflow validate <name>
swamp workflow history <name>
swamp vault create <type> <name>
swamp report run <name>
swamp extension init <name>
Rules
- Always load the guide first. Before answering any swamp question, read
the matching guide from the table above.
- Load deeper references as needed. Each guide references additional files
in its
references/ subdirectory — load those when the guide tells you to.
- Load multiple guides when needed. If the question spans topics (e.g.
running a model in a workflow), load both relevant guides.
- Use the routing table, not memory. Don't answer from cached knowledge
about swamp commands — always load the current guide.