Markdown issue tracker#

Run python3 tools/markdown_issues.py in the checkout. It reads .planning/issues/ in that checkout. Use --directory PATH before a subcommand to work with another directory. Each write previews the change unless you pass --apply. Commit the tracker changes with Git so other contributors can read them.

Issues#

python3 tools/markdown_issues.py list --label status::ready
python3 tools/markdown_issues.py view 12
python3 tools/markdown_issues.py view 12 --raw
python3 tools/markdown_issues.py create --title 'Handle empty queries' --body-file issue.md --label type::bug --apply
python3 tools/markdown_issues.py update 12 --body-file issue.md --apply
python3 tools/markdown_issues.py link 12 --blocked-by 8 --apply
python3 tools/markdown_issues.py sync --apply

list filters by state, label, text and milestone. Use --milestone Any for issues with a milestone or --milestone None for those without one. view --raw prints the description for editing. link records a dependency or a related issue via --relates-to. Repeating a link has no effect. Changing the link type requires editing the existing link first.

Use milestone-create to record a goal and milestones to list it. milestone-update edits, closes or reopens an existing milestone. Refer to milestones by ID or by title without its priority tag. A closed milestone refuses new assignments. Assign a priority::P3 issue to the [P3] Backlog milestone. When promoting or demoting an issue, change its label and milestone in the same update.

Status sync#

sync evaluates all issues before writing. The first matching rule applies.

  1. A closed issue loses its status label.

  2. An issue in triage keeps that status until a decision is recorded.

  3. A recorded open review sets status::review.

  4. An open blocker sets status::blocked.

  5. An assignee or a known agent/<issue>-<slug> Git branch sets status::in-progress.

  6. An issue without a status label enters triage.

  7. An issue already blocked with no dependency link stays blocked. Other issues become ready.

Set or clear the local review reference with update 12 --review REF or update 12 --review none. Closing an issue clears its open review. Use --assignee USER or --assignee none for assignment. Sync reads local and remote-tracking refs present in the checkout.

Notes#

python3 tools/markdown_issues.py note 12 --body-file result.md --author contributor --kind result --commit "$commit" --apply
python3 tools/markdown_issues.py note 12 --body-file review.md --author reviewer --kind review --commit "$commit" --apply
python3 tools/markdown_issues.py notes 12 --since 2026-01-01 --author reviewer

A result or review note identifies a full Git commit SHA. A review body opens with Reviewed range: BASE..HEAD using full SHAs, followed by Verdict: clean or Verdict: findings. Pass its head as --commit. The command refuses the same body on the same issue and commit, ignoring whitespace at the start and end. It appends each accepted note as a new file. Omit --kind and --commit for a general note. Without --author, the command uses Git’s user.name or local if the name is unset.

notes prints notes oldest first, with ID, author, timestamp and body. Request --system to include imported system notes. --since includes timestamps equal to its threshold and interprets times without an offset as UTC.

File format#

Issue 12 lives at .planning/issues/0012.md. Milestone 3 lives at .planning/issues/milestones/0003.md. Issue 12’s first note lives at .planning/issues/notes/0012/0001.md. Numeric IDs have a minimum of four digits in file names, padded with zeros. Keep IDs stable in Git.

Front matter begins and ends with a line containing ---. Write each field as a name and a single JSON value on one line. The Markdown body starts on the line after the closing delimiter. An issue carries the following fields.

---
title: "Handle empty queries"
state: "opened"
labels: ["type::bug", "status::ready"]
milestone: 3
blocked_by: [8]
relates_to: [20]
assignee: null
review: null
---
## Problem

A query over an empty input returns an error.

state is opened or closed. milestone holds a milestone ID or null. Links hold issue IDs. A related link is recorded on the lower-numbered issue and applies in both directions. Missing link lists act as empty lists. Missing assignee and review fields act as null. Extra project labels can be listed as strings in .planning/issues/labels.json. Status and implementation tier labels must use the tracker’s recognized values.

Milestone front matter holds title and state (active or closed). Its body describes the milestone. A result note looks like this.

---
author: "contributor"
created_at: "2026-01-02T15:04:05Z"
system: false
kind: "result"
commit: "0123456789abcdef0123456789abcdef01234567"
---
Added a regression test for an empty input.

General notes omit kind and commit. Use system: true for an imported system note. Keep existing note files as written.