Skip to main content

A shared to-do list for AI agents. Dependency-aware task queue, zero dependencies, pure Python.

Project description

agentplan

A shared to-do list for AI agents.

PyPI version PyPI downloads Total Downloads CI CodeQL OpenSSF Scorecard License: MIT GitHub stars

Zero dependencies. 242 tests. Used in production AI agent pipelines. Downloads trending on PyPI.

Marketplace & Actions · Trust & Security · Quickstart · The Agent Loop · Roles & Routing · Hooks & Chaining · Dashboard · Commands · Why agentplan? · Failure Modes · Issues

agentplan demo


Multiple AI agents. One shared work queue. Zero infrastructure.

agentplan gives your agents a persistent task queue with dependency resolution, role-based routing, event hooks, and a dashboard control plane. Any agent that can run shell commands can use it — Claude Code, Codex, OpenClaw, or any CLI-capable tool.

No SDK. No framework. No Python dependencies beyond stdlib.

pip install agentplan

Marketplace & Actions

Marketplace-ready composite actions live in this repository.

Action Description Documentation
actions/setup Install agentplan from PyPI and output resolved version actions/setup/README.md
actions/run-chain Execute agentplan chain in CI-safe mode and publish summary actions/run-chain/README.md

Current captured dashboard screenshots for listing assets:

Trust & Security

Policy and support links:

Compatibility Matrix

Surface Supported Notes
GitHub Actions runner ubuntu-latest Fully supported and validated in workflow templates
GitHub Actions runner macos-latest, windows-latest Should work for actions/setup; actions/run-chain assumes bash shell
Python runtime 3.10+ agentplan package requirement
Dashboard mode optional (agentplan[dashboard]) Not required for headless chain workflows

Secrets Contract

Secret / Token Required Used by Purpose
GITHUB_TOKEN Conditional .github/workflows/agentplan-marketplace.yml issue import step Read labeled issues into agentplan tickets
GITHUB_TOKEN Conditional actions/run-chain (indirect) Needed only if your chain commands call GitHub APIs
Additional provider keys (for your agents) Operator-defined Your registered agent command templates/hooks External model or webhook integrations configured by you

agentplan actions do not require any hard-coded third-party secrets by default.

What's New in v0.7

  • GitHub Marketplace Actionsactions/setup and actions/run-chain for CI/CD integration
  • CI/Headless Mode — Run chains in GitHub Actions with AGENTPLAN_CI=1
  • Issue Importagentplan issue import pulls labeled GitHub issues into tickets
  • Artifact Tracking — Runtime artifact integrity verification
  • Security Hardening — OpenSSF Scorecard compliance, hash-pinned dependencies, trusted PyPI publishing, branch protection, Dependabot
  • 242 tests covering all features

What's New in v0.6

  • Project Directoriesagentplan create --dir ~/path links a project to a codebase
  • Agent-Powered Context — context generation via writer agent with structured investigation prompts
  • .agentplan.md Context Files — per-project context injected into every agent turn
  • Dashboard Refactor — proper Flask templates + static assets, context generation UI with polling
  • Directory Guards — hard-error on missing project dirs, editable directory field in dashboard
  • Chain Reliability — re-entry guards, state rollback, zombie PID detection, spawn failure handling

Quickstart

pip install agentplan

# Create a project
agentplan create "Build my app" \
  --ticket "Set up database schema" \
  --ticket "Build API endpoints" \
  --ticket "Write tests" \
  --ticket "Deploy to production"

# Set up dependencies
agentplan depend build-my-app 3 --on 2
agentplan depend build-my-app 4 --on 1,2,3

# What's ready to work on?
agentplan next build-my-app
# → [1] Set up database schema, [2] Build API endpoints

The Agent Loop

┌─────────────────────────────────────────────┐
│  Agent A (cron, every 15 min)               │
│  1. agentplan claim myproject --agent a     │
│  2. Do the work                             │
│  3. agentplan ticket done myproject <id>    │
└─────────────────────────────────────────────┘
         ↕ shared SQLite queue
┌─────────────────────────────────────────────┐
│  Agent B (cron, offset by 8 min)            │
│  1. agentplan status myproject              │
│  2. Review what Agent A did                 │
│  3. agentplan ticket add myproject "..."    │
└─────────────────────────────────────────────┘

Agent A claims the next unblocked ticket, does the work, marks it done. Agent B reviews, spots issues, adds new tickets. The queue is self-sustaining — no coordinator, no orchestrator, no message passing.

Three commands cover 90% of usage:

agentplan next myproject           # What should I work on?
agentplan ticket done myproject 3  # Done with ticket 3
agentplan ticket add myproject "new thing I found"

Roles & Routing

Define roles, register your agents, and let agentplan route tickets to the right tool.

# Define roles
agentplan role add coding --description "Code implementation"
agentplan role add research --description "Research and analysis"
agentplan role add writing --description "Documentation"

# Register agents with command templates
agentplan agent add codex --command 'codex exec --skip-git-repo-check -m gpt-5 "{ticket}"' --roles coding
agentplan agent add claude --command 'claude --print "{ticket}"' --roles research,writing

# Tag tickets with roles
agentplan ticket add myproject "Build auth middleware" --tag role:coding
agentplan ticket add myproject "Research competitor pricing" --tag role:research

# Route a ticket to the right agent
agentplan route myproject 1
# → codex (matched role:coding)

Auto-Detection

On first run, agentplan scans your system for installed AI tools:

agentplan init
# Detected: claude ✓, codex ✓, aider ✗, cursor ✗, openclaw ✓
# Registered codex with roles: coding
# Registered claude with roles: research, writing

Agent Priority

Multiple agents can handle the same role. Priority controls which one gets picked:

agentplan agent add codex --command 'codex exec --skip-git-repo-check -m gpt-5 "{ticket}"' --roles coding --priority 1
agentplan agent add claude --command 'claude --print "{ticket}"' --roles coding --priority 2
# codex gets coding tickets first (lower number = higher priority)

Hooks & Chaining

Fire actions when tickets complete — webhooks, shell commands, or agent chains.

# Fire a command when any ticket in the project completes
agentplan hook add myproject --event on-complete --type command --target 'echo "Ticket {ticket} done!"'

# Fire a webhook
agentplan hook add myproject --event on-complete --type webhook --target 'https://hooks.slack.com/...'

# Chain to the next agent automatically
agentplan hook add myproject --event on-complete --type chain --target 'agentplan claim myproject --agent next-agent'

Project Context

Link a project to a codebase and let agents understand the project automatically.

# Create a project linked to a directory
agentplan create "Build my app" --dir ~/Documents/Projects/my-app \
  --ticket "Set up database schema" \
  --ticket "Build API endpoints"

# First agent turn auto-generates .agentplan.md by scanning the project
# View the context file
agentplan context build-my-app

# Reset it if the project evolves
agentplan context build-my-app --regenerate

The .agentplan.md file lives in your project root (like .claude.md or AGENTS.md) and contains:

  • Verify command (npm test, python -m pytest, etc.)
  • Key conventions agents should follow
  • Hands-off zones (files not to modify)

Every agent that works on the project gets this context injected automatically.

Stale Claim Handling

Agents crash. Claims expire. agentplan handles it.

# Claim with a timeout (in minutes)
agentplan claim myproject --agent builder --timeout 30

# If the agent doesn't finish in 30 minutes, the ticket is reclaimed
agentplan reap myproject
# → Reclaimed 1 expired ticket(s)

# Auto-reap happens on every `next` call too
agentplan next myproject
# (silently reaps expired claims before returning results)

Ticket States

Tickets follow a validated state machine:

pending → in-progress → done
                      → blocked (--reason "Missing API key")
                      → failed (--reason "Build crashed")
                      → needs-review (--reason "Needs human check")

blocked → pending (retry)
        → in-progress (resume)

failed → pending (retry)
       → in-progress (resume)

Invalid transitions are rejected:

agentplan ticket done myproject 1
# Error: Invalid transition: 'pending' -> 'done'. Must go through 'in-progress' first.

Dashboard

agentplan ships a local web dashboard — the control plane for your agent fleet.

# Install dashboard dependency
pip install agentplan[dashboard]

# Start and open in browser
agentplan dashboard --open

Home — Mission Control

Project-level overview with progress rings, status breakdown, and active agent count.

Project View — Kanban Board

Full-width 6-column kanban: Todo → In Progress → Blocked → Needs Review → Failed → Done

  • Start Work — kick off the agent chain on a project
  • Stop — halt the chain after the current ticket
  • Filters — by status, priority, or tag
  • Review Panel — Mark Done, Retry, or Skip failed tickets

Agents Page

  • See all configured agents with their roles and command templates
  • Auto-detected tools panel (claude, codex, aider, cursor, openclaw)
  • Add, edit, or remove agents through the UI
  • Role assignment via checkboxes

Activity Feed

Real-time audit log of every state transition, claim, hook fire, and ticket change.

Why agentplan?

agentplan CrewAI AutoGen LangGraph
Install pip install agentplan pip install crewai pip install autogen-agentchat pip install langgraph
Infrastructure None. SQLite file. Python runtime + config Python runtime + async Python runtime + graph def
Works with Any agent with a terminal CrewAI agents only AutoGen agents only LangGraph nodes only
Integration Shell commands Python SDK Python SDK Python SDK
Dependencies Zero (stdlib only) 30+ packages 20+ packages 15+ packages
What it is Shared task queue + routing Agent framework Agent framework Orchestration framework

agentplan is not a framework. It doesn't run your agents, define conversations, or lock you into an ecosystem. It gives agents that already exist a way to coordinate through work.

Features

  1. Dependency resolutionnext and claim return only unblocked tickets
  2. Role-based routing — tag tickets with roles, agents get routed automatically
  3. Agent registry — register agents with command templates and priorities
  4. Event hooks — webhooks, commands, or chains on ticket completion
  5. Stale claim handling — timeouts, automatic reaping, self-healing queue
  6. Validated state machineblocked, failed, needs-review with enforced transitions
  7. Auto-detection — scans for installed AI tools on init
  8. Dashboard control plane — Start/Stop work, Kanban board, Agents page, review panel
  9. Circular dependency detection — invalid graphs rejected before they happen
  10. Priority levelshigh, medium, low, or none; highest-priority surfaces first
  11. Tags — label tickets with --tag for filtering and role routing
  12. Subtasks — lightweight checklists inside tickets
  13. Due dates--due YYYY-MM-DD per ticket
  14. Agent attribution--agent <name> tracked in history and status
  15. Parallel-safe claims — atomic; two agents racing won't grab the same ticket
  16. Audit log — every state transition timestamped and queryable
  17. Search — full-text across ticket titles and descriptions
  18. Multiple output formatsfull, compact (~50 tokens), and json
  19. Shell completions — bash, zsh, and fish
  20. Zero dependencies — Python stdlib only

Commands

Projects

agentplan create <title> [--ticket "..."] [--ticket "..."]
agentplan list [--status active|closed|archived]
agentplan status [project]
agentplan close <project> [--abandon]
agentplan archive <project>
agentplan remove <project>

Tickets

agentplan ticket add <project> <title> [--priority high|medium|low] [--tag TAGS] [--due YYYY-MM-DD]
agentplan ticket done <project> <id...> [--agent NAME]
agentplan ticket start <project> <id> [--agent NAME]
agentplan ticket skip <project> <id...>
agentplan ticket block <project> <id> [--reason TEXT]
agentplan ticket fail <project> <id> [--reason TEXT]
agentplan ticket review <project> <id> [--reason TEXT]
agentplan ticket edit <project> <id> [--title TEXT] [--priority ...] [--tag TAGS] [--due DATE]
agentplan ticket list <project>

Queue

agentplan next [project] [--tag TAG]
agentplan claim <project> [--agent NAME] [--tag TAG] [--timeout MINUTES]
agentplan reap <project>

Roles & Agents

agentplan role add <name> [--description TEXT]
agentplan role list
agentplan role remove <name>
agentplan role update <name> [--name NEW] [--description TEXT]

agentplan agent add <name> --command 'cmd {ticket}' --roles role1,role2 [--priority N]
agentplan agent list
agentplan agent remove <name>
agentplan agent update <name> [--command ...] [--roles ...] [--priority N]

agentplan route <project> <ticket_id> [--terminal]

Hooks

agentplan hook add <project> --event on-complete --type command|webhook|chain --target '...'
agentplan hook list <project>
agentplan hook remove <project> <hook_id>

Dependencies

agentplan depend <project> <ticket_id> --on <id[,id,...]>
agentplan undepend <project> <ticket_id> --on <id>

Subtasks

agentplan subtask add <project> <ticket_id> <title>
agentplan subtask done <project> <ticket_id> <subtask_id>
agentplan subtask list <project> <ticket_id>

Search & History

agentplan search <query>
agentplan history <project> <ticket_id>

Dashboard

agentplan dashboard [--port PORT] [--open] [--stop]

Setup

agentplan init              # Auto-detect tools + register agents
agentplan completion {bash|zsh|fish}
agentplan version

Configuration

Variable Default Description
AGENTPLAN_DIR ~/.agentplan Database directory
AGENTPLAN_DB ~/.agentplan/agentplan.db Full path override

Compatible Platforms

agentplan works with any agent or tool that can execute shell commands:

  • OpenClaw — Multi-agent orchestration via cron jobs
  • Claude Code — Anthropic's CLI agent
  • OpenAI Codex — OpenAI's coding agent
  • Cron jobs — Scheduled autonomous work loops
  • CI/CD pipelines — GitHub Actions, Jenkins, etc.
  • Any terminal — If it can run a shell command, it can coordinate

Agent Loop Demo

This project supports an agent loop workflow where agents claim, execute, and complete tickets continuously.

License

MIT — Dushyant Garg, 2026

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

agentplan-0.8.0.tar.gz (87.9 kB view details)

Uploaded Source

Built Distribution

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

agentplan-0.8.0-py3-none-any.whl (87.0 kB view details)

Uploaded Python 3

File details

Details for the file agentplan-0.8.0.tar.gz.

File metadata

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

File hashes

Hashes for agentplan-0.8.0.tar.gz
Algorithm Hash digest
SHA256 8a11e2213e67165ec9304347f1c1d9e17793bdbb51939cf3e18dbe5371f52e94
MD5 e53503d96c7dd18699bc839fc85cdd83
BLAKE2b-256 8c0105baf193358c970926c1a7a20551539eb9c7f3823c2896b8119c0e16830e

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentplan-0.8.0.tar.gz:

Publisher: publish.yml on fraction12/agentplan

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

File details

Details for the file agentplan-0.8.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for agentplan-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37ad109fd303f4d620affa376ac2668624589afc0ba10cff7bfd7a0acd8692b9
MD5 bbf7d1e6cf300b3b91dd3770929132a0
BLAKE2b-256 7405499a8cfa2c935528b0d5fdaffb99eb5b9c07904fd6c52b0d0b13cecd81bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentplan-0.8.0-py3-none-any.whl:

Publisher: publish.yml on fraction12/agentplan

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