Common Workflows
Explore a codebase quickly
- Start Swarmie in project root:
swarmie- Ask for a map of modules and responsibilities.
- Use
@file completion to target files precisely.
Example prompt:
Map this repo: crates, runtime loop, and where tool permissions are enforced.Inspect and modify code
- Ask for a concrete implementation plan.
- Let the agent read files and propose minimal edits.
- Review generated diffs with
/diffand transcript with/pager.
Useful commands:
/status
/diff
/pagerRun shell steps inline
Use ! input for shell commands from the TUI input line.
!rg "SwarmConfig" crates/core/src -n
!ls -la crates/tui/srcShell execution still goes through permission rules.
Work with file completion (@path)
Type @ to start inline workspace-aware file completion.
Examples:
open @crates/core/src/turn.rs
review @docs/docs/pages/reference/cli.mdxTips:
Tabcycles completion candidates.- Arrow keys and
Left/Rightnavigate directory suggestions. /filestarts file completion explicitly.
Fix bugs and add tests
Recommended loop:
- Reproduce and describe the bug in one sentence.
- Ask agent to locate root cause and affected files.
- Request targeted fix with rationale.
- Request/author tests near the changed behavior.
- Re-run verification commands and inspect output.
Example prompt:
Find why /connect OAuth providers return 401 and patch the provider resolution path with tests.Refactor safely
- Ask for invariants that must remain true.
- Request small, staged edits instead of one large rewrite.
- Use
/compactwhen context gets too large. - Use
/undoor/forkfrom transcript checkpoints if a direction regresses.
Multi-agent execution
- Spawn specialized agents with
/agent. - Switch focus with
Ctrl+N/Ctrl+P. - Close inactive agents with
/close.
Pattern that works well:
- Agent A: implementation
- Agent B: tests and edge cases
- Agent C: docs and UX polish
Export and resume work
/exportwrites transcript output./resumeopens session picker.swarmie resume --lastcontinues the most recent workspace session.