Skip to main content

Cortex — Multi-Model Development Orchestration

Tests Type Check PyPI License

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

macOS (Homebrew)

brew tap NickCrew/cortex
brew install cortex

post_install symlinks bundled agents, skills, rules, and schemas into ~/.claude/ automatically. Opt out with CORTEX_SKIP_LINK=1 brew install cortex.

Python (any platform)

# Recommended
pipx install claude-cortex

# Alternative
pip install claude-cortex

The Python package also installs cortex-minimal, a smaller command surface for agent runtime environments:

uvx --from claude-cortex cortex-minimal --help
uvx --from claude-cortex cortex-minimal git --help

It exposes only git, tmux, statusline, hooks, and completions while sharing the same tested implementations as the full cortex CLI.

If you install via Homebrew and pip, whichever binary comes first in your $PATH wins. Uninstall one to avoid ambiguity.

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.

Metadata

Release files for claude-cortex 4.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-cortex 4.7.0
File Size Uploaded
claude_cortex-4.7.0.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-cortex 4.7.0
File Interpreter ABI Platform
claude_cortex-4.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.4 MB

Release files / claude_cortex-4.7.0.tar.gz

Download URL claude_cortex-4.7.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
6ea3a63b7b8e59350d69ddb04a2edf887cefe4516837b074e95089512eb169d3
BLAKE2b-256 checksum
How to use checksums
1b5f46b449b1736041d88df96423679fa5d0d71b8ddbcf2ed8ae1cbdb291cded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 2, 2026.

Transparency log

Release files / claude_cortex-4.7.0-py3-none-any.whl

Download URL claude_cortex-4.7.0-py3-none-any.whl
Size 520.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4235ac7c2243fc9bf246ccfab4bc39cad3f99960f8cb5c308be4f643477023e1
BLAKE2b-256 checksum
How to use checksums
ed2ff137031d9bbe39db107dab007e6a5db7dc2f9c848861aa422b81a5966558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

4.7.0 This release

2 release files

4.6.1

2 release files

4.6.0

2 release files

4.5.0

2 release files

4.4.3

2 release files

4.4.2

2 release files

4.4.1

2 release files

4.4.0

2 release files

4.3.1

2 release files

4.3.0

2 release files

4.2.0

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.1.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page