How nickcrew/claude-cortex works
Cortex is a multi-model development orchestration framework, with a Python CLI/TUI for managing its capabilities. The principal workflow is an agent implementation followed by an independent review, remediation, and re-review; agent-loops also documents test-audit and lint gates. Other major branches include skill recommendations, asset management, hooks, MCP, context export, and the TUI. The README documents the workflow and CLI surface; source-index references support several internal links. Unsampled modules are represented only where their capabilities are documented, so their internal wiring is not inferred.
Main entry points: cli.py Cortex CLI · agent-loops Agent Loops · skill_recommender.py Skill Recommender · asset_installer.py Asset Installer
Components 20
Quality Workflows
- Agent Loops
skills/agent-loops - Implementing Agent
agents - Independent Reviewer
agents - Test Audit
skills/test-review - Lint Gate
skills/agent-loops
Skill Intelligence
- Skill Recommender
claude_ctx_py/skill_recommender.py - Semantic Matching
claude_ctx_py/intelligence/semantic.py - Context Learning
claude_ctx_py/intelligence/base.py - Review Learning
claude_ctx_py/review_parser.py
Cortex Management
- Asset Discovery
claude_ctx_py/core/asset_discovery.py - Asset Installer
claude_ctx_py/core/asset_installer.py - Hooks Management
claude_ctx_py/core/hooks.py - MCP Management
claude_ctx_py/core/mcp.py - MCP Registry
claude_ctx_py/core/mcp_registry.py - Context Export
claude_ctx_py/core/context_export.py
User Interfaces
- Cortex CLI
claude_ctx_py/cli.py - Terminal UI
claude_ctx_py/tui/main.py
Other components
- Developer
- Model Providers
- Cortex Assets
Connections 22
- Developer → Cortex CLI: runs commands
README.md - Cortex CLI → Agent Loops: runs workflows
README.md - Agent Loops → Implementing Agent: implements change
README.md - Agent Loops → Independent Reviewer: requests review
README.md - Independent Reviewer → Model Providers: uses model
README.md - Agent Loops → Test Audit: audits tests
README.md - Agent Loops → Lint Gate: checks lint
README.md - Cortex CLI → Skill Recommender: offers recommendations
README.md - Skill Recommender → Semantic Matching: uses matching
claude_ctx_py/skill_recommender.py - Skill Recommender → Context Learning: uses context
claude_ctx_py/skill_recommender.py - Review Learning → Skill Recommender: feeds learning
claude_ctx_py/review_parser.py - Cortex CLI → Asset Discovery: manages assets
README.md - Asset Installer → Asset Discovery: discovers assets
claude_ctx_py/core/asset_installer.py - Asset Installer → Hooks Management: installs hooks
claude_ctx_py/core/asset_installer.py - Asset Installer → Cortex Assets: installs assets
README.md - Cortex CLI → Hooks Management: manages hooks
README.md - Cortex CLI → MCP Management: manages MCP
README.md - MCP Management → MCP Registry: uses registry
claude_ctx_py/core/mcp_installer.py - Cortex CLI → Context Export: exports context
README.md - Developer → Terminal UI: launches UI
README.md - Terminal UI → Asset Discovery: browses assets
claude_ctx_py/tui/main.py - Terminal UI → Hooks Management: manages hooks
claude_ctx_py/tui/main.py