Documentation
CLICommands

ox decision

Work with this repo's Decision Records (DRs -- ADRs are one type). ox decision enrich computes deterministic team context for a DR -- related-decision candidates, corpus conventions, drift and reference checks, and ready-to-paste citations -- with zero LLM or network cost.

Usage

terminal
$

DRs are committed markdown files (default discovery: docs/adr, docs/decisions, adr, docs/architecture/decisions; override via the committed .sageox config decision.paths). They are already full-text searchable via ox code search --decisions.

Subcommands

CommandDescription
ox decision enrichEnrich a Decision Record (or DR topic) with team context (JSON by default)

Enrich a Decision Record

Run enrich before you write. --topic consults team context before drafting a new DR; --file verifies an existing DR and adds code-drift and reference checks. ox computes everything locally and never edits the DR -- the agent authors every word.

terminal
# Consult team context before drafting a new DR
$
terminal
# Verify an existing DR before editing it
$

Pipe a draft on stdin to verify it before you present it:

terminal
$

Output is JSON by default (the agent path). Add --text for a human summary.

Flags

Flags for ox decision enrich:

FlagDescription
--topicConsult mode: the DR subject, before drafting
--fileAn existing DR file to enrich (adds drift + ref checks)
--textHuman summary instead of JSON

What's next

  • ox code - Full-text search DRs with ox code search --decisions
  • ox query - Search recorded team knowledge and prior Sessions
  • ox agent - Prime an agent with team context before it writes