Repository navigation
CLI
Manage backlog items — a cobra noun group; bare ouroboros backlog shows help. Verb subcommands:
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 (
openordone); multiple values merge across statuses -
--priority — exact match,
P0-P6 -
--epic — that epic's children; --epics — list only epic items (mutually exclusive with
--epic;--epicswins) -
--since — duration (
24h,7d), date, or RFC3339 creation-time cutoff - --sort created — newest-first; default is priority order
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
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)
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
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
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
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-nameor--new-prefixrequired -
delete --force — cascade-delete all children (items, plans, documents); mutually exclusive with
--reassign-to - delete --reassign-to — move children to another project before deletion
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
Get or set key-value configuration.
ouroboros config get <key>
ouroboros config set <key> <value>
ouroboros config listManage knowledge base documents — a cobra noun group; bare ouroboros kb shows help. Verb subcommands:
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, orrelation -
--stdin — read a JSON array or
{documents:[...]}from stdin (batch mode); upserts by type+project+category+title when id is absent
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 onupdated_at(kb summaries carry no separate created timestamp) -
--sort created — newest-first by
updated_at; default is insertion order
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
Full-text search knowledge base documents.
ouroboros kb search <text> [--project <name>] [--type <type>] [--category <cat>] [--limit N] [--json]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 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)
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.
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
ouroboros edges link <src> <label> <dst>
ouroboros edges unlink <src> <label> <dst>-
src / dst —
type:idrefs, e.g.item:BB-9orkb:123 -
label —
blocks,relates, orexplains
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 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