The Code Reference covers Cogtrix's public Python API — the surface you import when embedding the agent into your own program, building a custom tool, or extending the memory backend.
Imports currently resolve as src.<module>.* due to a
packaging quirk. A future release will rename the namespace to
cogtrix.<module>.* (tracked as change request 0001).
- agent/ Agent core
Entry point, tool registry, and safety enforcement layer.
- memory/ Memory
Hybrid memory subsystem — rolling summary, semantic recall, and three working modes.
- tools/ Tools API
Building and registering Cogtrix tools from Python.
- orchestration/ Orchestration
LangGraph runner, session lifecycle, and run-configuration plumbing.
- schemas/ API schemas
Pydantic models that define the Cogtrix REST and WebSocket contract.