SQLite-backed task management for AI agents. Agents lose context between sessions. Prog persists tasks and progress logs so agents can pick up where others left off.
brew install baiirun/tap/progRequires Go 1.25+.
go install github.com/baiirun/prog/cmd/prog@latestRequires Go 1.25+.
git clone https://github.com/baiirun/prog.git
cd prog
go build -o prog ./cmd/prog
./prog --helpOr install to your $GOBIN:
git clone https://github.com/baiirun/prog.git
cd prog
go install ./cmd/prog
prog --help# Initialize database (creates ~/.prog/prog.db)
prog init
# Set up Claude Code hooks (recommended)
prog onboard
# Create a task
prog add "Implement user authentication" -p myproject --priority 1
# Output: ts-a1b2c3
# Create a task with description
prog add "Add login endpoint" -p myproject -d "Implement POST /login with JWT auth"
# Create a task with Definition of Done
prog add "Add login endpoint" -p myproject --dod "Tests pass; Handles invalid credentials; Rate limited"
# See what's ready to work on
prog ready -p myproject
# Start working
prog start ts-a1b2c3
# Log progress
prog log ts-a1b2c3 "Added JWT token generation"
# Mark complete
prog done ts-a1b2c3| Command | Description |
|---|---|
prog init |
Initialize the database |
prog onboard |
Set up prog integration for AI agents |
prog add <title> |
Create a task (returns ID) |
prog list |
List all tasks |
prog show <id> |
Show task details, logs, deps |
prog ready |
Show tasks ready for work (open + deps met) |
prog status |
Project overview for agent spin-up |
prog prime |
Output context for Claude Code hooks |
prog tui |
Launch interactive terminal UI (alias: prog ui) |
| Command | Description |
|---|---|
prog start <id> |
Set task to in_progress |
prog done <id> |
Mark task complete |
prog cancel <id> [reason] |
Cancel task (close without completing) |
prog open <id> |
Reopen a task (set status back to open) |
prog log <id> <message> |
Add timestamped log entry |
prog append <id> <text> |
Append to task description |
prog desc <id> <text> |
Replace task description |
prog edit <id> |
Edit description in $PROG_EDITOR (defaults to nvim, nano, vi) |
| Command | Description |
|---|---|
prog parent <id> <epic-id> |
Set task's parent epic |
prog blocks <id> <other> |
Add blocking relationship (other blocked until id done) |
prog graph |
Show dependency graph |
prog projects |
List all projects |
prog add -e <title> |
Create an epic instead of task |
| Command | Description |
|---|---|
prog labels |
List all labels for a project |
prog labels add <name> |
Create a new label |
prog labels rm <name> |
Delete a label |
prog labels rename <old> <new> |
Rename a label |
prog label <id> <name> |
Add label to task (creates if needed) |
prog unlabel <id> <name> |
Remove label from task |
| Flag | Commands | Description |
|---|---|---|
-p, --project |
all | Filter/set project scope |
-e, --epic |
add | Create epic instead of task |
-l, --label |
add, list, ready, status | Attach label at creation / filter by label (repeatable, AND logic) |
--priority |
add | Priority: 1=high, 2=medium (default), 3=low |
--parent |
add, list | Set parent epic at creation / filter by parent |
--blocks |
add | Set task this will block at creation |
-d, --desc |
add | Description body |
--dod |
add, edit | Definition of done (completion criteria for agents) |
--status |
list | Filter by status |
--type |
list | Filter by item type (task, epic) |
--blocking |
list | Show items that block the given ID |
--blocked-by |
list | Show items blocked by the given ID |
--has-blockers |
list | Show only items with unresolved blockers |
--no-blockers |
list | Show only items with no blockers |
--all |
status | Show all ready tasks (default: limit to 10) |
IDs are auto-generated with type prefixes:
ts-XXXXXX— tasks (e.g.,ts-a1b2c3)ep-XXXXXX— epics (e.g.,ep-f0a20b)
# Get project overview
prog status -p myproject
# Output:
# Project: myproject
#
# Summary: 3 open, 1 in progress, 0 blocked, 2 done (2 ready)
#
# In progress:
# [ts-a1b2c3] Implement auth middleware
#
# Ready for work:
# [ts-d4e5f6] Add login endpoint (pri 1)
# [ts-g7h8i9] Write auth tests (pri 2)# See what's unblocked
prog ready -p myproject
# Read full context
prog show ts-d4e5f6
# Claim it
prog start ts-d4e5f6# Log progress (timestamped audit trail)
prog log ts-d4e5f6 "Implemented POST /login"
prog log ts-d4e5f6 "Added rate limiting"
# Append to description with decisions/context
prog append ts-d4e5f6 "Using bcrypt for password hashing"
# Replace description entirely
prog desc ts-d4e5f6 "Implement login endpoint with JWT auth and rate limiting"
# Or edit in your editor
prog edit ts-d4e5f6Set explicit completion criteria so agents know when work is truly done:
# Set at creation
prog add "Implement auth" -p myproject --dod "Tests pass; Handles edge cases; Docs updated"
# Update existing task
prog edit ts-d4e5f6 --dod "Tests pass; No security warnings"
# Clear DoD
prog edit ts-d4e5f6 --dod ""Tasks with DoD show [DoD] in prog ready output. Agents should verify each criterion before calling prog done.
# Complete (verify DoD criteria first if set)
prog done ts-d4e5f6
# Or cancel if no longer needed
prog cancel ts-d4e5f6 "Requirements changed"
# Or reopen if needed
prog open ts-d4e5f6
# If task is part of an epic, update the epic too
prog append ep-a1b2c3 "Completed auth endpoint, next: write tests"Use dependencies to enforce task ordering. A task with unmet dependencies won't appear in prog ready.
# Create a task that blocks another (at creation time)
prog add "Build API" -p myproject --blocks ts-frontend
# New task blocks ts-frontend, so ts-frontend can't start until the new task is done
# Or add blocking relationship to existing tasks
prog blocks ts-backend ts-frontend
# View all dependencies
prog graph
# Output:
# ts-frontend [open] Build frontend components
# └── ts-backend [in_progress] Implement API endpointsThe ready command automatically filters out tasks with unmet dependencies, so agents only see work they can actually start.
Labels are tags for categorizing tasks (bug, feature, refactor, etc). They're project-scoped and identified by name.
# Create labels (or they're auto-created on first use)
prog labels add bug -p myproject
prog labels add feature -p myproject
# Attach labels to tasks
prog label ts-a1b2c3 bug
prog label ts-a1b2c3 urgent
# Or attach at creation
prog add "Fix login crash" -p myproject -l bug -l urgent
# Filter by labels (AND logic - must have all specified)
prog list -p myproject -l bug
prog list -p myproject -l bug -l urgent
prog ready -p myproject -l feature
# Remove a label
prog unlabel ts-a1b2c3 urgent
# List all labels in a project
prog labels -p myprojectLabels appear in list output and task details as [bug] [urgent].
Group related tasks under an epic for organization:
# Create an epic
prog add "Authentication system" -p myproject -e
# Output: ep-a1b2c3
# Create task under epic (at creation time)
prog add "Implement login" -p myproject --parent ep-a1b2c3
# Or assign existing tasks to the epic
prog parent ts-d4e5f6 ep-a1b2c3
prog parent ts-g7h8i9 ep-a1b2c3
# View task with parent
prog show ts-d4e5f6
# Output includes: Parent: ep-a1b2c3The prog onboard command configures Claude Code hooks to inject workflow context at session start and before context compaction. This ensures agents maintain context about the prog workflow across sessions.
Using a different agent? (Cursor, Opencode, Droid, Codex, Gemini, etc.)
- Copy the Task Tracking snippet from
CLAUDE.mdto your agent's instruction file (.cursorrules,AGENTS.md, etc.) - If your tool supports hooks, add
prog primeto session start - If no hooks, run
prog primeand paste output into agent context
Running prog onboard adds this to your Claude Code settings (.claude/settings.json):
{
"hooks": {
"SessionStart": [
{ "command": "prog prime" }
],
"PreCompact": [
{ "command": "prog prime" }
]
}
}- SESSION CLOSE PROTOCOL: Mandatory checklist for logging progress and updating status before ending sessions
- Core Rules: When to use
prog(strategic, cross-session) vs TodoWrite (tactical, within-session) - Essential Commands: Quick reference grouped by workflow phase
- Current State: Live summary of open, in-progress, and blocked tasks
This ensures agents never forget the workflow, even after context compaction.
Launch with prog tui (or prog ui):
prog 12/47 items status:oib
◐ ts-234d9f Set up Bubble Tea scaffold [tasks]
○ ts-9566cd Task list view with indicators [tasks]
○ ts-f39592 Vim keybind navigation [tasks]
| Key | Action |
|---|---|
j/k or arrows |
Move up/down |
g/G or Home/End |
Jump to first/last |
enter or l |
View task details |
esc or h |
Go back to list |
q |
Quit |
| Key | Action |
|---|---|
s |
Start task |
d |
Mark done |
b |
Block (prompts for reason) |
L |
Log progress (prompts for message) |
c |
Cancel task |
D |
Delete task |
a |
Add dependency |
r |
Refresh |
| Key | Action |
|---|---|
/ |
Search by title/ID/description |
p |
Filter by project (partial match) |
t |
Filter by label (partial match while typing, repeat to add more) |
1-5 |
Toggle status: 1=open 2=in_progress 3=blocked 4=done 5=canceled |
0 |
Show all statuses |
esc |
Clear filters |
- Items: Tasks or epics with title, description, status, priority, definition of done
- Status:
open→in_progress→done(orblocked,canceled) - Definition of Done: Optional completion criteria for agent verification
- Dependencies: Task A can depend on Task B (A is blocked until B is done)
- Labels: Tags for categorization (bug, feature, refactor, etc), project-scoped
- Logs: Timestamped audit trail per item
- Projects: String tag to scope work (e.g., "gaia", "myapp")
Database location: ~/.prog/prog.db
Earlier versions also stored learnings and concepts (prog learn, prog context, prog concepts, prog compact).
Those commands are gone; prog tracks work, and long-term agent memory belongs in a dedicated memory tool. Existing
rows are left in the learnings and concepts tables, readable with sqlite3.
- Track tasks within larger work (epics)
- Progress reports for current work and what's left
- Split work for parallel agents
- Track dependencies for ordering
- Prioritize work
- Store context so agents can resume where others left off
- Git sync (single-player, local only)
- Multiplayer / collaboration
- Complex workflows
- Long-term agent memory (learnings, recall); use a dedicated memory tool
MIT