backlog

A backlog tool for recording work discovered during a task but intentionally left outside its current scope.

In plain words
What is it for?
Use it to add, list, inspect, promote, or archive deferred work linked to tasks or milestones.
Why use it?
It lets you note extra work without making the current task larger, then review, promote, or archive those items later.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thixpin/pitway/backlog
Clone the repo
git clone --depth 1 https://github.com/thixpin/pitway
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00814
Opus 5 $0.00009 $0.00407
Sonnet 5 $0.00003 $0.00163
Haiku 4.5 $0.00002 $0.00081

Measured yesterday against content hash 67456785cd58, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

backlog scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/integrations/claude/commands/backlog.md · 60 lines

What it actually says

backlog

Role: Orchestrator (add, promote, archive) · either (list, show)

pitway backlog add --title <text> --reason <text> [--milestone <id>] [--task <id>] [--json]
pitway backlog list [--status pending|promoted|archived] [--milestone <id>] [--task <id>] [--json]
pitway backlog show <id> [--json]
pitway backlog promote <id> --task <id> [--milestone <id>] [--json]
pitway backlog archive <id> --reason <text> [--json]

Use when you discover work that is genuinely out of scope for the current task or milestone and want to continue without expanding it — capture it, keep going, deal with it later. backlog add works with no active milestone — it records source.milestone: null in that case, no milestone required. backlog promote still requires an active/resolvable milestone, since it targets a task, which is inherently milestone-scoped; only add's milestone coupling was removed.

  • backlog add --title <text> --reason <text> [--milestone <id>] [--task <id>] — records a pending item. --milestone/--task here are source annotation only (defaults to the active milestone — or null when none is active — and no task, when omitted) — they never control where the mutation's journal entry attaches (when a milestone is active, that is always the active milestone, unconditionally, with no override: .pitway/backlog.yaml is a shared file, not owned by any one milestone's directory, so letting a flag redirect attachment could misattribute a pending entry to a milestone that will never checkpoint it). With no active milestone, behavior is otherwise unchanged.
  • backlog list [--status pending|promoted|archived] and backlog show <id> — read-only.
  • backlog promote <id> --task <task-id> [--milestone <id>] — a pure terminal transition linking an already-existing task back to its backlog origin. --task/--milestone here mean the promotion target only (milestone defaults to the active one). This command never runs task-add/milestone-add itself — create the real task or milestone first, through the normal human-confirmed pipeline, then promote the backlog item to close the loop.
  • backlog archive <id> --reason <text> — a pure terminal transition, no --milestone/--task (archiving names no other work).

Both promoted and archived are terminal — pending is the only status either transition starts from.

.pitway/backlog.yaml is the authoritative backlog state, committed alongside whatever commit the workflow next produces — never a dedicated commit of its own, and never left dirty in a way that breaks a task's own clean-tree check. An item added while no milestone is active rides the next milestone-confirm baseline commit (M045); no chore commit is needed.

See ../protocol-driver.md's "Choosing a correction mechanism" section for when to reach for backlog instead of task-add or a quick-change. Run pitway backlog --help for flags.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 60 lines · 0 tokens per session scan A 67456785cd58

Subscribe to this mod's changes

backlog is a command published in the GitHub repository thixpin/pitway (19 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 814 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.