Attocode is a codebase understanding and agent-assistance tool, primarily aimed at Codex, Claude Code, Cursor, and other MCP clients. Its intelligence engine has been separated into packages/code-intel and published as the attocode-code-intel package, separate from the legacy coding agent.
Purpose and positioning Attocode helps AI coding agents understand codebases: run analysis on a local working tree, or connect to a self-hosted service to analyze committed repositories. AST navigation and keyword search do not require a model API key; local embedding search, graph analysis, and team hosting are optional enhancements.
Main capabilities
- Provides a bootstrap(task_hint="...") entry point that returns relevant code, structure, recalled knowledge, and index coverage within a token budget.
- Supports symbol search, reference lookup, dependency analysis, impact analysis, and test suggestions.
- review_change can report structured findings and identify failed analysis steps.
- A local file watcher and per-operation filesystem checks can capture edits, new files, deletions, and import-only changes; when watching is disabled, notify_file_changed can be used to explicitly refresh.
- Learning records are persisted in .attocode/cache/memory.db and can be reused by different agents; the full configuration provides record_learning, recall, update_learning, and learning_feedback.
- The change investigation workflow (attocode-code-intel changes) combines Git diff, changed definitions, caller evidence, import impact, and candidate tests; attocode-code-intel trace tracks static call paths, can export JSON/Markdown, check whether saved evidence is stale, or refresh the original request.
- Supports precise selection with --file / --symbol, and --class-mode expand expands class-level callers.
- The local full-configuration MCP provides change_context and trace_flow.
Usage Requires Python 3.12+ and Git. You can start from the current checkout directory and use --client claude or --client cursor configures a single client; init installs the MCP connection and managed agent instructions, preserves unrelated configuration, and requires restarting the agent after installation. Project-level Codex configuration requires a trusted project; Claude Code may require enabling project MCP servers. For cross-repository shared installations, the global server selects an explicit workspace, a published MCP root, or a repository containing its working directory; if the client provides multiple roots, the agent must choose one. Cursor's automatic instruction file is project-level, so even if the server connection is global, init --client cursor must be run in each project. The latest release is available on GitHub Releases and PyPI, and can be installed with uv tool install attocode-code-intel. New installations and direct server calls use the compact daily tool profile by default; init --profile full exposes the complete local catalog, including rules and security analysis, history, architecture, retrieval pinning, snapshots, overlays, and cache maintenance; init --profile lean is an optional streamlined profile; remote profiles remain daily and full. capabilities can report the actual catalog and optional enhancements.
Teams and Remote Self-hosting and migration involve PostgreSQL, Redis, workers, authentication, and the dashboard. The native Streamable HTTP MCP is at /mcp/, and the dashboard provides connection snippets and knowledge editing. ATTOCODE_API_KEY must be set in the agent environment; intelligence:read is for analysis, and intelligence:write is for knowledge changes. Every repository operation checks membership and scope before using cached analysis. Shared knowledge is stored in PostgreSQL with authors, revisions, and file anchors. Local and remote entries can coexist; remote calls analyze committed branches or explicit revisions, and local edits remain local. cross_repo_search searches only in explicitly selected and authorized repositories and preserves the source of each result.
Use Cases and Limitations Suitable for developers and teams who want AI coding agents to understand code structure, change impact, and call relationships more accurately, and also for organizations that need a self-hosted code intelligence service. Limitations: requires Python 3.12+ and Git; some advanced capabilities (embedding search, graph analysis, team hosting) are optional and require additional configuration; remote analysis targets only committed branches or explicit revisions; optional embedding models are not installed with the install command. The repository also retains the legacy Python agent, swarm, TypeScript implementation, and tutorial courses, archived at agent-archive-2026-10-16. The project is under the MIT license.