Execution control plane for AI agents — structure agents, save tokens.
Project description
vectl — execution control plane for AI agents
Structure agents. Save tokens.
uvx vectl --help
Your Markdown Plan Is Wasting Tokens
A 50-step markdown plan, 40 steps done:
- The agent still re-reads all 50 lines. 40 completed steps are pure noise — eating context window, burning attention, costing you money.
vectl nextreturns only 3 actionable steps. Completed steps vanish. Blocked steps are invisible.
The more steps you have, the worse it gets. 100 steps, 90 done? Markdown forces the agent to read 100 lines to find 10 useful ones. vectl gives it just those 10.
And Markdown is linear. Three agents online at once? They queue up — because nothing tells them which steps can run in parallel.
vectl's DAG makes parallelism possible: dependencies are explicit, next serves up all unblocked steps, three agents each claim one, zero conflicts.
Token waste and serialization are just symptoms. The root defect is that Markdown doesn't express dependencies:
| Markdown Plans | vectl |
|---|---|
| ❌ Full re-read every time: agent reads all steps regardless of completion | ✅ Returns only actionable steps — done steps vanish |
| ❌ Implicit dependencies: "Deploy DB" before "Config App" — agent can only guess if they're related | ✅ depends_on: [db.deploy] — explicit, no guessing |
| ❌ No safe parallelism: without dependency info, multiple agents queue up or gamble | ✅ DAG makes parallelism computable — next returns all conflict-free steps |
| ❌ Manual dispatch: "DB is done, go work on App now" | ✅ next automatically surfaces all unblocked steps |
| ❌ Silent overwrites: two agents write the same file simultaneously | ✅ CAS optimistic locking — conflicts error out, never silently lost |
| ❌ Self-declared completion: agent says "Done" and it's Done | ✅ Evidence required: what command, what output, where's the PR |
| ❌ Context amnesia: new session = start from scratch | ✅ checkpoint generates a state snapshot — inject into new session, instant recovery |
TODO.md can't say no. vectl can.
Control Plane, Not a Framework
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 |
| 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 |
| Anti-Hallucination | Agent says "Fixed" and moves on | evidence_template forces fill-in-the-blank proof: command, output, PR link |
| Context Compaction | Long conversations cause agent amnesia | checkpoint generates a deterministic JSON snapshot — inject into new session for instant recovery |
| Agent Affinity | Different agents are good at different tasks | Steps can suggest an agent; next sorts by affinity |
Quick Start
1. Initialize
uvx vectl init --project my-project
Creates plan.yaml and auto-configures agent instructions (writes CLAUDE.md when .claude/ directory is detected, otherwise AGENTS.md).
2. Connect Your Agent
⚡ Claude Desktop / Cursor
{
"mcpServers": {
"vectl": {
"command": "uvx",
"args": ["vectl", "mcp"],
"env": { "VECTL_PLAN_PATH": "/absolute/path/to/plan.yaml" }
}
}
}
⚡ OpenCode
Add to your opencode.jsonc:
{
"mcp": {
"vectl": {
"type": "local",
"command": ["uvx", "vectl", "mcp"],
"environment": { "VECTL_PLAN_PATH": "/absolute/path/to/plan.yaml" }
}
}
}
See OpenCode MCP docs for details.
⌨️ CLI Only (no MCP)
No setup needed — agents call uvx vectl ... directly.
uvx vectl initalready creates/updates the agent instructions file. To update later:uvx vectl agents-md(use--target claudeif needed).
3. Migrate (Optional)
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.
4. The Workflow
# ORIENT: Where are we?
uvx vectl status # Plan-wide progress dashboard
# PICK: What's available?
uvx vectl next # Show claimable steps
# CLAIM: I'm working on this.
uvx vectl claim <step-id> --agent me # Lock step, get full spec + guidance
# GUIDANCE (displayed on claim):
# --- VECTL:GUIDANCE:BEGIN ---
# ... (refs, evidence template, project rules) ...
# --- VECTL:GUIDANCE:END ---
# WORK: (you write code, run tests, follow guidance)
# COMPLETE: I proved it works.
uvx vectl complete <step-id> --evidence "..." # Paste filled template here
# REPEAT: What's unlocked now?
uvx vectl next # See what the completion unlocked
Every command output ends with hints for the next action:
$ uvx vectl complete auth.user-model -e "commit abc: model + tests"
Completed: auth.user-model
Next available:
○ pending auth.session-token — Session Token (auth)
○ pending auth.permissions — Permission Model (auth)
→ vectl claim <id> --agent <name>
→ vectl show <id>
5. The "Success Pit"
Architects embed guidance at plan design time. Agents receive it automatically when they claim a step.
Evidence Templates (Anti-Hallucination)
Don't let agents say "I fixed it." Force them to prove it:
uvx vectl add-step ... --evidence-template "
## Verification
- Command: `pytest tests/auth/`
- Output: [Paste 5 lines of output here]
- [ ] Confirmed 0 failures
"
Context Pinning (Save Tokens)
Stop the "needle in a haystack" search. Tell the agent exactly where to look:
uvx vectl add-step ... --refs "src/auth.py,tests/test_auth.py"
When the agent claims, it receives: Task (description) + Context (pinned refs) + Standard (evidence template).
6. Context Compaction
Conversation too long? Agent handoff? checkpoint generates a minimal state snapshot:
uvx vectl checkpoint --lite
{
"schema": "vectl.checkpoint/v1",
"focus": { "step_id": "auth.01", "name": "Implement Login", "status": "claimed" },
"next": [{ "step_id": "auth.02", "name": "Implement Token" }]
}
Inject this JSON into a new session's system prompt. The agent resumes instantly. Zero loss.
7. Visualization
uvx vectl dag # High-level phase DAG (default)
uvx vectl dag --phase core # Detailed step DAG within a phase
flowchart TD
core["✓ Core Logic (5/5)"]
cli["✓ CLI (4/4)"]
mcp["▶ MCP Server (1/3)"]
core --> cli
cli --> mcp
For all 34 commands (plan mutation, review, admin): uvx vectl --help or uvx vectl guide.
Human Oversight
uvx vectl render # Export plan as markdown
uvx vectl diff # Changes since last commit
uvx vectl log --last 5 # Recent plan mutations
Data Model (plan.yaml)
version: 1
project: my-project
phases:
- id: auth
name: Auth Module
depends_on: [core]
steps:
- id: auth.user-model
name: User Model
status: claimed
claimed_by: engineer-1
A YAML file. In your git repo.
No database. No SaaS. git blame it. Review it in PRs. git diff it.
Full schema, ID rules, and ordering semantics: docs/DESIGN.md.
Technical Details
Architecture, CAS safety, and test coverage (658 tests, Hypothesis state machine verification): docs/DESIGN.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vectl-0.1.37.tar.gz.
File metadata
- Download URL: vectl-0.1.37.tar.gz
- Upload date:
- Size: 133.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f994641fd318899cde9b5551efd32c53d43a1ee30674004be350cb7723c258
|
|
| MD5 |
01ce379fa9038db342d8583ecd6efa7c
|
|
| BLAKE2b-256 |
4d4d556ae4883198bc4e5601b4e62ffeb5c9372a944d1cffe2d78d46abb9d967
|
Provenance
The following attestation bundles were made for vectl-0.1.37.tar.gz:
Publisher:
publish.yml on Tefx/vectl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vectl-0.1.37.tar.gz -
Subject digest:
d0f994641fd318899cde9b5551efd32c53d43a1ee30674004be350cb7723c258 - Sigstore transparency entry: 952370998
- Sigstore integration time:
-
Permalink:
Tefx/vectl@2a697c318355a89753997ca3b91adabd5c86d9cd -
Branch / Tag:
refs/tags/v0.1.37 - Owner: https://github.com/Tefx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2a697c318355a89753997ca3b91adabd5c86d9cd -
Trigger Event:
release
-
Statement type:
File details
Details for the file vectl-0.1.37-py3-none-any.whl.
File metadata
- Download URL: vectl-0.1.37-py3-none-any.whl
- Upload date:
- Size: 67.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7716a9db2d881e8dc26dc9fbd62c36fdcd1861806df7bba8aad6beabfd51c984
|
|
| MD5 |
62dd97395862fbd6e16db22bcfd05458
|
|
| BLAKE2b-256 |
14af0558853ea54a1fe09ba11597c0a4c2a0cc99272f19839186e7f266b5d3fd
|
Provenance
The following attestation bundles were made for vectl-0.1.37-py3-none-any.whl:
Publisher:
publish.yml on Tefx/vectl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vectl-0.1.37-py3-none-any.whl -
Subject digest:
7716a9db2d881e8dc26dc9fbd62c36fdcd1861806df7bba8aad6beabfd51c984 - Sigstore transparency entry: 952371001
- Sigstore integration time:
-
Permalink:
Tefx/vectl@2a697c318355a89753997ca3b91adabd5c86d9cd -
Branch / Tag:
refs/tags/v0.1.37 - Owner: https://github.com/Tefx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2a697c318355a89753997ca3b91adabd5c86d9cd -
Trigger Event:
release
-
Statement type: