Context orchestration CLI with curated agents, rules, skills, and management tools for Claude Code
Project description
Multi-model development orchestration for Claude Code, Codex, and Gemini.
Documentation · Install · Quick Start
Cortex is a development orchestration framework that coordinates AI agents across model providers. It enforces quality gates — independent code review, test coverage audits, and lint checks — so that no agent grades its own homework. The result is a structured, auditable development workflow where Claude, Codex, and Gemini collaborate with built-in verification at every step.
How It Works
Multi-model review with no self-review
Cortex's core principle: the agent that writes the code never reviews it. When Codex implements a feature, the review is routed to Claude first, then to a different model family, with same-model review as a last resort. Every review produces a structured artifact with severity levels and a pass/fail verdict.
Codex implements → Claude reviews → Codex remediates → Claude re-reviews
↓ (unavailable)
Gemini reviews (fallback)
↓ (unavailable)
Fresh-context Codex reviews (last resort)
Agent-loops: progressive quality gates
Every code change flows through three sequential loops, each with circuit breakers and escalation rules:
Code Change Loop → Implement → Independent review → Remediate P0/P1 → Re-review (max 3 cycles)
Test Writing Loop → Audit gaps → Write tests → Verify → Re-audit (max 3 cycles)
Lint Gate → Discover linter → Auto-fix → Check → Remediate (max 2 cycles)
P0/P1 findings must be resolved before the loop exits. P2/P3 findings are filed as issues automatically. If circuit breakers trigger, the agent stops and escalates to a human — no infinite remediation loops.
Skill recommendations
Skills are suggested automatically as you work via a two-layer pipeline: fast keyword matching on every prompt (~50ms), with optional semantic matching for deeper recommendations. The TUI runs a background watch daemon for continuous suggestions.
What's Inside
| Path | Purpose |
|---|---|
agents/ |
Agent definitions (specialized reviewers, implementers) |
skills/ |
Reusable skill modules — workflow guidance, review prompts, quality standards |
rules/ |
Behavioral guardrails and coding conventions |
hooks/ |
Automation hooks (skill suggestions, validation gates) |
claude_ctx_py/ |
Python CLI and TUI implementation |
Key skills
agent-loops— The core workflow: structured implementation with independent review, test audit, and lint gates. Includes provider-aware review scripts with fallback chains.test-review— Test quality and coverage auditing across modules.doc-claim-validator— Validates documentation claims against actual code.doc-maintenance— Systematic documentation audit and lifecycle management.
Install
# Recommended
pipx install claude-cortex
# Alternative
pip install claude-cortex
For development:
git clone https://github.com/NickCrew/claude-cortex.git
cd claude-cortex
pip install -e ".[dev]"
Quick Start
cortex install link # Symlink bundled assets into ~/.claude
cortex install post # Shell completions + man pages (optional)
cortex status # Check what's active
cortex tui # Launch the terminal UI
CLI Overview
cortex <command> [options]
| Command | What it does |
|---|---|
status |
Show active agents, rules, hooks, skills |
agent list|status |
Manage agent definitions |
skills list|info|recommend |
Discover and inspect skills |
rules list|activate |
Manage behavioral rules |
hooks list|install |
Install and validate hooks |
mcp list|diagnose |
MCP server discovery and diagnostics |
ai recommend|watch |
AI-powered skill recommendations |
review |
Run review workflows |
tui |
Launch terminal UI |
docs |
Browse bundled documentation |
install|uninstall |
Manage Cortex installation |
Run cortex --help or cortex <command> --help for details.
Development
just test # Run test suite
just lint # Check formatting (Black)
just type-check # Strict mypy
just docs # Serve docs locally
See CONTRIBUTING.md for guidelines.
Documentation
Full documentation at cortex.atlascrew.dev.
License
MIT. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_cortex-4.1.1.tar.gz.
File metadata
- Download URL: claude_cortex-4.1.1.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b214e7640943aea78c13a8699f25034b413e2f78355ac5a3b806d88f6f46359b
|
|
| MD5 |
4f01c9af7aa21170007c7d2fed50f8f6
|
|
| BLAKE2b-256 |
098ef1cceebd4e39c84349df085ef807d9b6797947ecb10c060adb35397ad235
|
Provenance
The following attestation bundles were made for claude_cortex-4.1.1.tar.gz:
Publisher:
semantic-release.yml on NickCrew/Claude-Cortex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_cortex-4.1.1.tar.gz -
Subject digest:
b214e7640943aea78c13a8699f25034b413e2f78355ac5a3b806d88f6f46359b - Sigstore transparency entry: 1238501237
- Sigstore integration time:
-
Permalink:
NickCrew/Claude-Cortex@d87c06ab71b4b878d3663a68001ea11cd7088be2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NickCrew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic-release.yml@d87c06ab71b4b878d3663a68001ea11cd7088be2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_cortex-4.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_cortex-4.1.1-py3-none-any.whl
- Upload date:
- Size: 480.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f3e646acca4c48f161bc3062f72dad777c4293c3bab368ffe862fe092747ed
|
|
| MD5 |
2358d82898b95b95294cd6e7996067af
|
|
| BLAKE2b-256 |
3969158fd29b04ff7edf16a3d008c17cea7ee82c4c92ea9b70b7cfd4cba587b8
|
Provenance
The following attestation bundles were made for claude_cortex-4.1.1-py3-none-any.whl:
Publisher:
semantic-release.yml on NickCrew/Claude-Cortex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_cortex-4.1.1-py3-none-any.whl -
Subject digest:
53f3e646acca4c48f161bc3062f72dad777c4293c3bab368ffe862fe092747ed - Sigstore transparency entry: 1238501239
- Sigstore integration time:
-
Permalink:
NickCrew/Claude-Cortex@d87c06ab71b4b878d3663a68001ea11cd7088be2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NickCrew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic-release.yml@d87c06ab71b4b878d3663a68001ea11cd7088be2 -
Trigger Event:
push
-
Statement type: