Skip to content
Jae Gangemi edited this page Jul 15, 2026 · 10 revisions

backlog

Manage backlog items — a cobra noun group; bare ouroboros backlog shows help. Verb subcommands:

backlog list

List/filter backlog items (built on the shared internal/query read core).

ouroboros backlog list [--project <name>...] [--status <status>...] [--priority <P0-P6>] [--component <c>] [--epic <id>] [--epics] [--since <cutoff>] [--sort created] [--limit N] [--json]
  • --project — repeatable
  • --status — repeatable (open or done); multiple values merge across statuses
  • --priority — exact match, P0-P6
  • --epic — that epic's children; --epics — list only epic items (mutually exclusive with --epic; --epics wins)
  • --since — duration (24h, 7d), date, or RFC3339 creation-time cutoff
  • --sort created — newest-first; default is priority order

backlog get

Fetch backlog items by id.

ouroboros backlog get <id> [<id>...] [--verbose] [--json]
  • --verbose — include notes + edges sidecar
  • All-or-nothing: any missing id fails the whole fetch

backlog search

Full-text search backlog items.

ouroboros backlog search <text> [--project <name>...] [--status <status>] [--priority <P0-P6>] [--component <c>] [--epic <id>] [--epics] [--since <cutoff>] [--sort created] [--limit N] [--json]
  • Same filters as list, but --status is single-valued (no multi-status merge)

backlog create

Create a new backlog item. Status is always open (no --status flag).

ouroboros backlog create --project <name> --priority <P0-P6> --title <title> [--component <c>] [--epic <id>] [--description <text>] [--notes <text>]
  • --project, --priority, --title — required
  • --description — 500 char hard cap
  • --epic — must resolve to an existing item

backlog update

Update a backlog item. Only flags explicitly passed are changed.

ouroboros backlog update <id> [--priority <P0-P6>] [--title <title>] [--status <open|done>] [--component <c>] [--epic <id>] [--description <text>] [--notes <text>] [--append-notes]
  • --component, --epic, --description, --notes — an explicit empty value clears the field
  • --title — not clearable; an explicit empty value is a no-op
  • --append-notes — append --notes to existing notes instead of replacing them

backlog delete

Delete one or more backlog items by id.

ouroboros backlog delete <id> [<id>...]
  • All-or-nothing: if any id doesn't exist, nothing is deleted

project

Manage projects. Prefix is auto-derived from name (e.g., acme-corp → AC).

ouroboros project create <name>
ouroboros project get <name>
ouroboros project list
ouroboros project rename <name> [--new-name <name>] [--new-prefix <prefix>]
ouroboros project delete <name> [--force] [--reassign-to <name>]
  • rename --new-name — new project name
  • rename --new-prefix — new prefix (1–4 chars, letter-first); at least one of --new-name or --new-prefix required
  • delete --force — cascade-delete all children (items, plans, documents); mutually exclusive with --reassign-to
  • delete --reassign-to — move children to another project before deletion

plan

Manage implementation plans.

ouroboros plan create --project <name> --title <title> [--content <text>] [--status <status>] [--item-id <id>]
ouroboros plan get <id>
ouroboros plan update <id> [--title <title>] [--content <text>] [--status <status>]
ouroboros plan list [--project <name>] [--status <status>]
  • --status — draft (default) → active → complete
  • --item-id — associate plan with a backlog item ID

config

Get or set key-value configuration.

ouroboros config get <key>
ouroboros config set <key> <value>
ouroboros config list

kb

Manage knowledge base documents — a cobra noun group; bare ouroboros kb shows help. Verb subcommands:

kb write

Create or update KB documents (CLI for hook integration). This is the write action — bare kb no longer writes (OU-334 breaking change).

ouroboros kb write --project <name> --type <type> --title <title> --content <text> [--notes <text>] [--category <cat>] [--tags <tag,...>]
ouroboros kb write --stdin
  • --type — decision, fact, note, plan, or relation
  • --stdin — read a JSON array or {documents:[...]} from stdin (batch mode); upserts by type+project+category+title when id is absent

kb list

List/filter knowledge base documents (built on the shared internal/query read core).

ouroboros kb list [--project <name>...] [--type <type>] [--category <cat>] [--tag <tag>...] [--since <cutoff>] [--sort created] [--limit N] [--json]
  • --project — repeatable
  • --tag — repeatable
  • --since — duration (24h, 7d), date, or RFC3339 cutoff; filters on updated_at (kb summaries carry no separate created timestamp)
  • --sort created — newest-first by updated_at; default is insertion order

kb get

Fetch knowledge base documents by id.

ouroboros kb get <id> [<id>...] [--verbose] [--json]
  • --verbose — include notes + edges sidecar
  • An id with no matching document is silently omitted (not an error); an id string that isn't an integer is rejected

kb search

Full-text search knowledge base documents.

ouroboros kb search <text> [--project <name>] [--type <type>] [--category <cat>] [--limit N] [--json]

kb delete

Remove one or more knowledge base documents by ID.

ouroboros kb delete <id> [<id>...]
  • id — positive integer document ID(s); duplicates deduped
  • All-or-nothing: if any id doesn't exist, nothing is deleted
  • Multiple ids delete in a single transaction with one FTS rebuild

export

Export the knowledge base to markdown.

ouroboros export [--project <name>] [--type <type>]
  • --project / -p — filter to a specific project
  • --type / -t — filter by document type (decision, fact, note, relation)

edges

Manage cross-reference edges (blocks|relates|explains) between items/KB docs — a cobra noun group; bare ouroboros edges shows help. Retrofit path — inline creation at write time is preferred (see Backlog edges[] and Knowledge-Base [[Title]] autolinks). link/unlink also work as top-level aliases (ouroboros link ... / ouroboros unlink ...) — both forms share the same implementation.

edges list

ouroboros edges list [--label <blocks|relates|explains>] [--type <item|kb> --id <id>] [--json]
  • --label — filter by label
  • --type / --id — must be given together; list edges for one endpoint

edges link / edges unlink

ouroboros edges link <src> <label> <dst>
ouroboros edges unlink <src> <label> <dst>
  • src / dst — type:id refs, e.g. item:BB-9 or kb:123
  • label — blocks, relates, or explains

server

Run the MCP server (stdio by default).

ouroboros server [--http <addr>] [--stateless] [--read-only]
  • --http — switch to streamable-HTTP on this address (default: stdio)
  • --stateless — drop session state between requests (defaults to true in HTTP mode)
  • --read-only — advertise only read-only tools, gating out destructive ones

import

Import documents from a JSON file or stdin.

ouroboros import [file] [--project <name>]
ouroboros import -          # read from stdin
  • file — path to JSON file; omit or use - for stdin
  • --project / -p — default project for documents that don't specify one

Clone this wiki locally