CLI Reference
Full reference for all kodingo-cli commands.
Installation
Verify:
Update to the latest version at any time:
Setup commands
`kodingo init`
Initialises Kortex in the current directory. Opens a browser window for one-time authentication, saves credentials to ~/.kodingo/config.json scoped to the current workspace, creates .kortex/context.md for agent context injection, and adds .kortex/ to .gitignore. Also triggers an initial scan-repo automatically.
`kodingo install-hook`
Installs two git hooks in the current repo:
- pre-commit — runs
kodingo check-rulessynchronously before every commit. Blocks the commit if any Kortex Guardrail is violated. - post-commit — runs
kodingo scan-gitin the background after every commit to capture memory automatically.
`kodingo doctor`
Checks your Kortex configuration and connectivity — missing token, unreachable API, missing git hook.
Capture commands
`kodingo scan-repo`
Bulk scans the entire codebase for functions without memory. Fetches all existing symbols in one API call, shuffles candidates so each run covers different functions, and captures up to 200 per run.
`kodingo scan-git`
Scans recent git commits and creates memory records for each change detected. Called automatically by the post-commit hook.
`kodingo scan-claude`
Ingests a Claude Code session transcript and creates memory records from decisions and context captured during the session.
Agent SDK commands
These commands are designed for AI agents — they output structured context your agent can use before writing code. All commands support --prompt for prompt-ready output, or return JSON by default.
`kodingo context`
Returns all affirmed memories relevant to a specific file. Call this before an agent touches a file.
`kodingo session-brief`
Returns a compact summary of the most important decisions across the entire project, sorted by confidence. Call this once at the start of an agent coding session.
`kodingo guardrails`
Returns the project's hard rules — denied memories and high-confidence decisions. Call this at session start so your agent understands what patterns to avoid and which constraints to respect.
`kodingo check-rules`
Checks the staged git diff against all project Guardrails using Kortex inference. Blocks the commit with a plain English explanation if any rule is violated. Called automatically by the pre-commit hook — you rarely need to run this manually.
Memory commands
`kodingo query-memory`
Search your project memory by keyword.
`kodingo query-symbol`
Fetch all memory records for a specific symbol.
`kodingo explain-symbol`
Generate a natural language explanation of a symbol using its Kortex memory context.
Status commands
`kodingo affirm`
Affirm a proposed memory record by ID.
`kodingo deny`
Deny a proposed memory record by ID.
`kodingo ignore`
Mark a proposed memory record as ignored.
Configuration
Credentials are stored per-workspace in ~/.kodingo/config.json:
Each project gets its own workspace entry. Multiple projects on the same machine are fully isolated. The machineId is generated automatically on kodingo init and is used for knowledge attribution and departure risk analysis.
Current version
| Package | Version |
|---|---|
kodingo-cli | 1.0.27 |