Documentation
CLICommands

ox code

Search this repo's git history and current code with natural-language queries. ox code reads CodeDB -- the local index built by ox index -- and surfaces planning signals like hotspots, stalled PRs, and index status.

Usage

terminal
$

Every subcommand reads the local CodeDB index. Build or refresh it first with ox index.

Subcommands

CommandDescription
ox code search <query>Search indexed code using queries
ox code insightsShow planning-relevant code insights (hotspots, contention, recent activity)
ox code prsList pull requests with triage signals
ox code statusShow code index status
ox code activityAssemble GitHub activity clusters for the fact extractor
ox code index [url]Index a git repository -- alias for ox index code

Search code

terminal
$

Ranks matches across commits, symbols, and diffs by relevance.

FlagDescription
--limitMax results to return
--decisionsOnly results from this repo's decision records (ADRs/DDRs)
--full-jsonFull uncompacted JSON output (~6x more context tokens)
terminal
# Search only Decision Records
$

Planning insights

terminal
$

Reports change hotspots, file contention, and recent activity -- the signals worth reading before planning a change.

FlagDescription
--daysTime window in days
--limitMax rows per section
--jsonStructured JSON output for agents

Triage pull requests

terminal
$

Ranks indexed PRs by triage signal -- most-stalled open PRs first by default. Ranking is deterministic and computed from indexed GitHub data (no LLM, no external API).

FlagDescription
--sortRanking: stalled | age | activity
--statePR state: open | closed | merged | all
--limitMax number of PRs to return
--prettyPretty-print JSON output

Index status

terminal
$

Shows what CodeDB has indexed and how current it is. Add --json for machine-readable output.

What's next

  • ox index - Build the CodeDB index that ox code searches
  • ox query - Search recorded team knowledge beyond code
  • ox decision - Enrich Decision Records with team context