Structure agents. Enforce discipline.
uvx vectl --helpA 200-step plan in TODO.md. You expect the agent to follow the order, check off completed items, and never skip ahead.
In practice? Agents treat TODO.md as a suggestion, not a rule. They skip steps, forget to mark things done, or get lost in a 1000-line plan and redo work that's already finished. The more you try to hint at structure with comments, bold text, and separators, the worse it gets — because Markdown is just natural language text, and agents have zero obligation to obey it.
The core problem: TODO.md is advice, not enforcement. You can't force an agent to claim a step before starting, or submit evidence before marking it complete.
This is a structural defect in Markdown, not a flaw in your agent:
- No enforcement: you can't prevent agents from skipping steps or require proof of completion
- No dependencies: "Deploy DB" before "Config App" — the agent can only guess the ordering, and nothing stops it from guessing wrong
- Multi-agent conflicts: multiple agents online with no coordination — they can't tell which steps are parallelizable, and simultaneous edits silently overwrite each other
- Completion by self-declaration: the agent says "Done" and that's it — you can't require it to prove tests actually passed
These problems are tolerable at 10-20 steps. At hundreds of steps with multiple agents, TODO.md falls apart completely.
TODO.md can't say no. vectl can.
Agent frameworks manage how agents think. vectl manages what agents see, when they see it, and what they must prove.
| Capability | Problem Solved | Mechanism |
|---|---|---|
| DAG Enforcement | Agents skip dependencies, guess ordering | Blocked steps are invisible — agents literally cannot claim them |
| Evidence Required | Agent says "Fixed" and moves on | evidence_template forces fill-in-the-blank proof: command, output, PR link |
| Safe Parallelism | Multiple agents step on each other | claim locking + CAS atomic writes |
| Auto-Dispatch | Someone must watch and assign tasks | next computes all unblocked steps and sorts them; rejected steps float to top |
| Token Budget | Agent re-reads hundreds of completed lines | Hard limits across the board: next ≤3, context ≤120 chars, evidence ≤900 chars |
| Context Compaction | Long conversations cause agent amnesia | checkpoint generates a deterministic JSON snapshot — inject into new session for instant recovery |
| Handoff Notes | Agents lose state between hosts/sessions | clipboard-write/read/clear stores short notes in plan.yaml (with TTL) |
| Agent Affinity | Different agents are good at different tasks | Steps can suggest an agent; next sorts by affinity |
uvx vectl init --project my-projectCreates plan.yaml and appends a vectl section to the agent instruction file (CLAUDE.md or AGENTS.md). If the file already exists, your existing content is preserved — vectl only adds its own section.
Commit
plan.yaml+AGENTS.md/CLAUDE.mdtogether. The plan is the state machine; the instructions file is the agent entry point.
Recommended: connect via MCP for structured tool access.
⚡ MCP (recommended)
{
"mcpServers": {
"vectl": {
"command": "uvx",
"args": ["vectl", "mcp"]
}
}
}vectl exposes 14 MCP tools. Agents call vectl_status, vectl_claim, vectl_complete, etc. directly — structured data in, structured data out.
For OpenCode, add to your opencode.jsonc:
See OpenCode MCP docs for details.
⌨️ CLI (no MCP)
No setup needed — agents call uvx vectl ... directly. Works everywhere, but agents must parse text output instead of structured data.
uvx vectl initalready creates/updates the agent instructions file. To update later:uvx vectl agents-md(use--target claudeif needed).
vectl init and vectl agents-md manage the agent instruction file in your repo.
That file is the entry point for agents: it points to uvx vectl guide topics and sets the rules (one claimed step at a time, evidence required, don't guess specs).
uvx vectl agents-md # Update AGENTS.md / CLAUDE.md with vectl section
uvx vectl agents-md --target claude # Force CLAUDE.mdTell your agent what you need — it will generate and modify the plan through vectl's mutate tool. Do not hand-edit plan.yaml or let agents edit it directly — all modifications must go through vectl tools to ensure validation, lock recalculation, and concurrency safety.
If your project already tracks work in a markdown file, issue tracker, or spreadsheet, tell your agent:
Read the migration guide (via `uvx vectl guide --on migration` or `vectl_guide` MCP tool).
Migrate our existing plan to plan.yaml.
Prefer MCP tools (`vectl_mutate`, `vectl_guide`) over CLI if available.
As a user, your main job is to review progress and make decisions:
uvx vectl render # Markdown progress report
uvx vectl dashboard --open # Visual HTML dashboard (static, no server)The dashboard includes progress overview, phase status, and DAG dependency graphs. Open in any browser — no server required. The DAG view loads Mermaid.js from a CDN (network required for that tab).
Everything else is in the guide:
- Architect protocol:
uvx vectl guide --on planning - Getting unstuck:
uvx vectl guide --on stuck - Review / validation:
uvx vectl guide --on review - Migration:
uvx vectl guide --on migration
If you're switching agent hosts (Claude Code ↔ OpenCode ↔ Claude Desktop) or handing work between agents, use both:
- Clipboard: short, human-readable notes that live in
plan.yaml(with TTL). - Checkpoint: compact, machine-readable state snapshot for context injection.
Use this when you want to pass actionable notes between agent hosts/sessions without creating extra files.
Example: Claude Code did a detailed code review, found a few small issues, and you want OpenCode to patch them. Drop the review notes into the clipboard — the other agent reads and applies.
uvx vectl clipboard-write \
--author "claude-code" \
--summary "Code review: small fixes" \
--content "
Target: src/foo.py
Issues:
- Rename X to Y (see comment in function bar)
- Add missing test for edge case Z
- Run: uv run pytest tests/test_foo.py
"
uvx vectl clipboard-read
uvx vectl clipboard-clearMCP equivalent:
vectl_clipboard(action="write", author="claude-code", summary="Code review: small fixes", content="...")
vectl_clipboard(action="read")
vectl_clipboard(action="clear")uvx vectl checkpointPaste the JSON into the next session's system prompt.
version: 1
project: my-project
phases:
- id: auth
name: Auth Module
context: |
All auth steps must follow OWASP guidelines.
Test with both valid and malformed JWTs.
depends_on: [core]
steps:
- id: auth.user-model
name: User Model
status: claimed
claimed_by: engineer-1A YAML file. In your git repo.
No database. No SaaS. git blame it. Review it in PRs. git diff it.
Phase Context: Set context on a phase to give agents guidance that applies to all steps within it. When an agent runs vectl show <step> or vectl claim, phase context appears automatically in the output.
Full schema, ID rules, and ordering semantics: docs/DESIGN.md.
Lock status is automatically maintained — agents do not need to manage it. After any write operation (claim, complete, mutate, etc.), vectl recalculates lock status automatically. When a recalculation changes a phase's lock state, vectl emits an informational message:
[vectl] Lock status updated: phase-a (pending)
If you edit plan.yaml directly (outside of vectl commands), run uvx vectl recalc-lock to manually diagnose and repair any lock inconsistencies.
Architecture, CAS safety, and test coverage (Hypothesis state machine verification): docs/DESIGN.md.

{ "mcp": { "vectl": { "type": "local", "command": ["uvx", "vectl", "mcp"] } } }