Expand description
Runtime configuration.
All of these can be overridden via env vars or CLI flags. Sensible
defaults make the binary runnable with just RECURSIVE_API_KEY and
RECURSIVE_MODEL set.
Structs§
Functions§
- default_
system_ prompt - load_
project_ context - Load project context from the workspace root, merging
AGENTS.mdandCLAUDE.mdwhen present. - load_
project_ memory - Load project-local memory (agent-writable) from workspace/.recursive/memory/project.md.
- load_
user_ memory - Load user-global memory from ~/.recursive/memory/user.md. Returns None if the file doesn’t exist. Caps at 8KB.
- prepend_
project_ context - Prepend the project context block (
AGENTS.md+CLAUDE.md) tobase, separated by a horizontal rule. Returnsbaseunchanged when neither file exists. Used at every agent-construction entry point (CLI run, MCP, HTTP API, TUI) so all paths see the same project context regardless of which surface launched the agent.