API Reference
Complete reference for CLI commands and MCP tools.
CLI Commands
agentic-memory initInitialize Agentic Memory in the current repository with an interactive wizard.
agentic-memory indexRun a one-time structural ingestion pipeline (files, entities, imports).
agentic-memory watchStart continuous file monitoring and incremental graph updates.
agentic-memory serveStart the MCP server for AI agent integration. Default port: 8000.
agentic-memory search <query>Test semantic search from the command line.
agentic-memory trace-execution <symbol>Trace one function's likely execution neighborhood on demand.
MCP Tools
search_codebase(query, limit=5, as_of=None)Semantically search the codebase for functionality. Optionally filter by temporal validity.
get_file_dependencies(file_path)Returns files that this file imports and files that import this file.
trace_execution_path(start_symbol, max_depth=2)Trace one function's likely execution neighborhood on demand.
search_all_memory(query, as_of=None)Search across code, research, and conversations in one call. Optionally filter by temporal validity with as_of.
search_conversations(query, limit=5, as_of=None)Semantic search over past conversation turns. Optionally filter by temporal validity.
add_message(role, content, session_id)Store a new message in conversation memory.