What eren23/attocode does
The attocode-code-intel package gives MCP clients structured insight into a codebase. It can locate a symbol’s source, find callers and references, inspect dependencies, identify likely effects of a change, and suggest candidate tests. The bootstrap operation provides task-oriented context, including relevant code, repository structure, recalled knowledge, and index coverage within a token budget.
The engine supports both local development and shared team deployments. A local installation works from a project’s working tree. A self-hosted deployment analyzes committed branches or explicit revisions and can serve multiple repositories through a Streamable HTTP MCP endpoint. Shared knowledge includes authorship, revisions, file anchors, repository identity, source commit, and index coverage.
How it works
Install the package with uv, then initialize the MCP connection for Codex, Claude Code, Cursor, or all supported clients. Project and global configurations are available. Project-level setup can also install managed agent instructions. Restart the agent after installation.
For routine work, start with bootstrap(task_hint="..."), then use targeted searches and analysis operations. File watchers and per-operation checks account for edits, additions, deletions, and import-only changes. If watching is disabled, notify_file_changed can refresh the index explicitly. Persistent learnings are stored in .attocode/cache/memory.db, allowing agents to reuse local knowledge.
The change investigation workflow combines a Git diff with changed definitions, caller evidence, import effects, and candidate tests. The trace command follows static caller paths and can export JSON or Markdown evidence. Remote repository searches use explicitly selected authorized repositories and preserve result provenance.
Setup and configuration
The local package requires Python 3.12 or newer and Git. From a checkout, install it with uv tool install ./packages/code-intel, change to the target project, and run attocode-code-intel init --client all. doctor checks a selected client configuration. The published package can instead be installed with uv tool install attocode-code-intel.
Use --global for a configuration shared across repositories, or select a project-specific setup with --client claude or --client cursor. Profiles control the exposed tool catalog: daily is the default for new installations and direct invocations, while full adds features such as rules, security analysis, history, retrieval pins, snapshots, overlays, and cache maintenance. lean is an opt-in local profile.
For a remote deployment, provide the service URL and repository UUID during initialization. The agent environment must contain ATTOCODE_API_KEY; analysis access uses intelligence:read, while knowledge changes also require intelligence:write. The service exposes MCP at /mcp/ and uses PostgreSQL, Redis, workers, authentication, and a dashboard.
Tools and capabilities
Depending on the selected profile, capabilities include:
bootstrap for task-specific repository context
- Symbol, caller, reference, dependency, and impact analysis
review_change for structured findings and failed analysis passes
change_context and trace_flow in the local full profile
record_learning, recall, update_learning, and learning_feedback in the full profile
capabilities to report the active catalog and optional enhancements
- Cross-repository search for authorized repositories
The compact daily profile is intended for ordinary installations. Local full-profile MCP adds the extended change and flow tools, while remote profiles remain daily or full according to the deployment configuration.
Limitations and notes
AST navigation and keyword search do not require a model API key. Local embedding search, graph analysis, and team hosting are optional additions rather than prerequisites for the core local workflow. Remote calls operate on committed branches or explicit revisions, whereas local edits stay local unless a learning is deliberately shared.
Repository operations in a shared service check membership and scope before using cached analysis. Global servers may need an explicit workspace or repository root when a client exposes multiple roots. Cursor’s automatic instruction file remains project-scoped even when its MCP connection is global.
The repository’s older coding agent, TUI, swarm, and lessons are archived separately. The active product is the standalone attocode-code-intel intelligence engine, MCP implementation, REST layer, workers, and dashboard.