-
Notifications
You must be signed in to change notification settings - Fork 0
Output Modes
Every command can render in three formats. All three are pure projections of the same typed result — they can never silently diverge.
| Mode | Flag | Audience |
|---|---|---|
| Text | (default) | Humans. Color only on a TTY. |
| JSON | --json |
Machines. Versioned contract + error envelope. |
| LLM | --llm |
Context windows. Markdown with ranges + "why". |
Human-readable, color on a TTY:
$ columbus search "parse config"
1. parseConfig [function] (score 0.74, exact name match)
src/config.ts:4
function parseConfig(env: Record<string, string>): Config {A stable, versioned contract for tools and agents:
$ columbus search "parse config" --json
{"command":"search","query":"parse config","kind":"all","total":7,
"ok":true,"schema_version":1,"hits":[ … ]}Every payload carries command, ok, and schema_version; errors use a
canonical envelope. See JSON Contract & Errors.
Markdown shaped for a model's context window — ranked results, exact ranges, a short "why" per hit, and fenced snippets:
$ columbus search "parse config" --llm
# Search: parse config
7 result(s).
## parseConfig (function)
- location: `src/config.ts:4-6`
- signature: `function parseConfig(env: Record<string, string>): Config {`
- score: 0.74 (exact name match); risk: low
```
export function parseConfig(env: Record<string, string>): Config {
return { port: Number(env.PORT ?? 8080), host: env.HOST ?? "localhost" };
}
```Results go to stdout; diagnostics and errors go to stderr — so you can
pipe --json cleanly. Color/format obey the rules in
Color & Environment.
Columbus — the navigator your coding agent has been missing · local-only, deterministic code context · Repository · Issues · MIT License
Getting started
Concepts
Guides
- Using Columbus with Your Agent
- Searching Effectively
- Navigating Code
- Project Memory
- Tracking Work: Epics, Stories & Tasks
- Keeping the Index Fresh
Command reference
Reference
- Output Modes
- JSON Contract & Errors
- Exit Codes
- Configuration
- Supported Languages
- Color & Environment
Project