agentcortex
Semantic infrastructure for AI coding agents — index a project once, serve it to Cursor / Claude Code over MCP, stop letting your agent re-grep the repo every turn.
pip install agentcortex
Requires Python 3.11+. Works on macOS, Linux, and Windows.
Quick start
In your project (not inside the install directory):
cd /path/to/your-app
cortex init # write .cortex/cortex.toml + ignore
cortex add cursor # or: cortex add claude
Open your editor. The MCP integration auto-spawns cortex serve, which brings up the live dashboard at http://localhost:7070. No background daemon required.
For headless / terminal-only use you can still run cortex start to keep the indexer alive without an editor.
What's in the box
- 10 framework skills — Django, Next.js, FastAPI, Flutter, React, TypeScript, Celery, Go, C#, Python
- 74 MCP tools —
find_symbol,find_symbol_usages,trace_symbol_calls,find_dependencies,search_codebase,get_code_issues,find_clusters,check_impact,get_pattern, plus every skill's framework-specific tools (list_django_urls,trace_request_flow,list_flutter_widgets,list_celery_tasks, …) - Code graph — calls, imports, contains, exposes, renders, inherits — across files and frameworks (URL → view → serializer → model for Django; route → page → component for Next.js; widget → state → API for Flutter)
- Hierarchical cluster engine — project → app → feature, auto-seeded from execution roots
- Redundancy engine —
check_impact+get_patternMCP tools and a sharpened agent dedupe gate so the agent extends your code instead of duplicating it - Live dashboard — file tree, graph explorer, Clusters tab, Feed, Logs, MCP tool runner
All data is local under .cortex/ in each repo. Nothing leaves your machine.
Common commands
| Command | Purpose |
|---|---|
cortex init |
Create .cortex/cortex.toml + cortexignore |
cortex add cursor |
Wire .cursor/mcp.json + rules |
cortex add claude |
Wire .mcp.json + .claude/rules/ |
cortex status |
Daemon health, indexing progress, live counts |
cortex dashboard |
Open the web UI |
cortex skills add <name> |
Enable a skill (auto-syncs agent rules) |
cortex reindex |
Force a full rebuild |
cortex clusters rebuild |
Rebuild the project → app → feature tree |
cortex start / cortex stop |
Optional headless daemon (not needed when an editor MCP is connected) |
Run cortex --help for the full list.
Documentation
- Source code and full README: https://github.com/zohaib3249/cortex
- Changelog — release notes for every version
- Editor integrations
License
Cortex Personal Use License — personal and non-commercial use only. See LICENSE on GitHub.
Commercial use (company, client work, SaaS, resale) requires a separate agreement.
Metadata
Release files for agentcortex 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agentcortex-1.0.4.tar.gz | 306.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentcortex-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 688.0 kB
Release files / agentcortex-1.0.4.tar.gz
| Download URL | agentcortex-1.0.4.tar.gz |
|---|---|
| Size | 306.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dcdb029db360277a73ec97be3b8921dc4465601fb0c482655f6fbe17b0e56b9
|
|
BLAKE2b-256 checksum How to use checksums |
dff6f237da80de368b8eec25d3f854e2213204326afe663a4daaddbcd6feb1ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logRelease files / agentcortex-1.0.4-py3-none-any.whl
| Download URL | agentcortex-1.0.4-py3-none-any.whl |
|---|---|
| Size | 381.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a9b9035efc003ad0dca9f5fe42a203b96503e49ad2f96b3d04c121d8a95ad08
|
|
BLAKE2b-256 checksum How to use checksums |
047ec5b6bbe692cf6831241a74c3dec90ae6fad4cc503ddb880374273c785375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logSecurity for agentcortex 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for agentcortex-1.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.