Skip to main content

Execution control plane for AI agents — structure agents, save tokens.

Project description

vectl — execution control plane for AI agents

中文文档 | Read the Introduction

Structure agents. Save tokens.

PyPI

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 next returns 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 init already creates/updates the agent instructions file. To update later: uvx vectl agents-md (use --target claude if 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vectl-0.2.0.tar.gz (146.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vectl-0.2.0-py3-none-any.whl (70.7 kB view details)

Uploaded Python 3

File details

Details for the file vectl-0.2.0.tar.gz.

File metadata

  • Download URL: vectl-0.2.0.tar.gz
  • Upload date:
  • Size: 146.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vectl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 685fe98afe093ac7d63c0d92ea022952d0e1a4398b609fd49bdab181d8d57661
MD5 b8d1ccdbd81a210c4c6d53c755e89b7c
BLAKE2b-256 b6f31c06fce930e2e676d4f57372c7eba1114f4a9f9b5cb3d47b5f9cb8c98efc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vectl-0.2.0.tar.gz:

Publisher: publish.yml on Tefx/vectl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vectl-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vectl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 70.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vectl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6faf8e7082bfd00e3a07aadf79320623a19e2b14833afdfc0d31b99391ef1d1
MD5 1bea856daff46d4836cdc12baf308c38
BLAKE2b-256 df72bcdea8465897d3b9d714f508f44f344e66ad0e46827a35ef4332b0ed7168

See more details on using hashes here.

Provenance

The following attestation bundles were made for vectl-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Tefx/vectl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page