Kortex Agent SDK
Give any AI agent instant access to your codebase memory before it writes a single line.
Overview
The Kortex Agent SDK is built into the CLI. Three commands give any AI agent — Claude Code, Cursor, or any shell-based tool — instant access to your team's codebase memory before it writes a single line of code.
All commands output JSON by default. Add --prompt for formatted, prompt-ready text you can inject directly into an agent context.
Make sure kodingo init has been run in the project directory first. The SDK reads credentials from ~/.kodingo/config.json automatically.
Commands
`kodingo context`
Returns all affirmed memories relevant to a specific file. Call this before an agent touches a file.
Options:
| Flag | Description | Default |
|---|---|---|
--file | File path to get context for (required) | — |
--prompt | Output as prompt-ready string instead of JSON | false |
--limit | Max memories to return | 20 |
`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 a new agent coding session.
Options:
| Flag | Description | Default |
|---|---|---|
--prompt | Output as prompt-ready string instead of JSON | false |
--limit | Max memories to include | 30 |
`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.
Options:
| Flag | Description | Default |
|---|---|---|
--prompt | Output as prompt-ready string instead of JSON | false |
Usage with Claude Code
Add to your Claude Code session startup:
Before editing a specific file:
Usage with Cursor
In your Cursor rules or agent instructions, call the commands via terminal before starting work:
Then reference the output in your prompt.