π‘ Summary
A comprehensive context management toolkit for Claude Code, bundling agents, commands, skills, and a TUI to automate and enhance AI-assisted development workflows.
π― Target Audience
π€ AI Roast: βThis plugin is so comprehensive it probably has a skill for managing its own existential dread.β
The plugin manages filesystem operations (symlinking rules, writing logs), executes shell commands (git worktree, watch daemon), and interfaces with external LLM APIs (Gemini, OpenAI). A malicious or compromised skill module could perform unauthorized actions. Mitigation: Strictly audit and sandbox third-party skill installations, especially those from community sources.
Cortex
This repository packages the Cortex (cortex) context management toolkit as a Claude Code plugin.
It bundles the curated agents, commands, modes, rules, and supporting Python CLI + TUI so teams can install the complete experience through the plugin system or keep using the standalone cortex / cortex-ui scripts.
Note: The claude-ctx command has been deprecated but will remain available for a while.
π Docs: https://cortex.atlascrew.dev/
π¬ Presentations:
What's Inside
Core Assets (Loaded by Claude Code)
| Directory | Purpose |
|-----------|---------|
| agents/ | Claude subagents with dependency metadata. Move to inactive/agents/ to park. |
| commands/ | Slash command definitions (50+ curated commands) |
| skills/ | Reusable skill modules (80+ skills) with activation triggers and dependencies |
| modes/ | Behavioral context modules that toggle workflow defaults |
| rules/ | Rule sets symlinked to ~/.claude/rules/cortex/ on launch |
| flags/ | Modular token-efficient flag packs (22 categories, 3,380 tokens total) |
| hooks/ | Automation hooks for pre/post tool execution and session events |
Orchestration & Templates
| Directory | Purpose |
|-----------|---------|
| profiles/ | Project type presets (frontend, backend, devops, etc.) |
| scenarios/ | Multi-step workflow scenarios |
| workflows/ | Complex workstream orchestration templates |
| prompts/ | Prompt templates: guidelines, personas, and reusable snippets |
| templates/ | Initialization templates for new projects |
| plugins/ | Additional plugin modules (accessibility, frontend, UX) |
Python Package (claude_ctx_py/)
| Module | Purpose |
|--------|---------|
| cli.py | Main CLI entrypoint with all subcommands |
| launcher.py | cortex start implementation (plugin resolution, rules symlinking) |
| core/ | Core domain logic (agents, skills, modes, rules, hooks, backups) |
| tui/ | Textual-based terminal UI with 15+ specialized views |
| intelligence/ | AI recommendation engine and pattern learning |
| memory/ | Session memory and knowledge persistence |
| analytics.py | Usage analytics and skill metrics |
Supporting Files
| Path | Purpose |
|------|---------|
| .claude-plugin/plugin.json | Plugin manifest for Claude Code marketplace |
| docs/ | Documentation site (Jekyll-based) |
| tests/ | Test suite with pytest |
| schema/ | JSON schemas for validation |
| scripts/ | Helper scripts for installation and maintenance |
π Latest Updates
- Hook logging β Hook failures now write to
~/.cortex/logs/hooks.log(override viaCORTEX_HOOK_LOG_PATH). - Extra plugin dirs β
cortex-config.jsonsupportsextra_plugin_dirsto pass multiple--plugin-direntries. - Watch daemon mode β
cortex ai watch --daemonruns watch mode in the background with status/stop controls. - Template guardrails β The TUI detects missing
templates/files in the activeCLAUDE_PLUGIN_ROOTand offers to initialize them or run the setup wizard. - Multi-LLM consult skill β Ask Gemini, OpenAI (Codex), or Qwen for a second opinion; configure provider API keys via the TUI Command Palette -> "Configure LLM Providers".
- Asset Manager reliability β βUpdate Allβ and βInstall All in Categoryβ now behave consistently with clearer prompts.
- Flag toggles restored β Spacebar toggling works again in the Flag Explorer and Flag Manager, updating
FLAGS.mdimmediately.
β Stability Update: AI + Context Management
Weβve fixed major issues across AI recommendations and context state tracking. Auto-activation and watch mode are more reliable, and context activation now uses .active-* state files with cortex doctor and cortex setup migrate to keep everything consistent.
π₯ New: Super Saiyan Mode
Universal visual excellence framework with platform detection:
modes/Super_Saiyan.mdβ Core generic mode with auto-detectionmodes/supersaiyan/β Platform-specific implementations (Web, TUI, CLI, Docs)claude_ctx_py/tui_supersaiyan.pyβ Enhanced Textual componentsexamples/supersaiyan_demo.pyβ Interactive demo- Three power levels: β Super Saiyan β β‘ Kamehameha β π₯ Over 9000
Quick start:
python examples/supersaiyan_demo.py # See it in action!
See Super Saiyan Integration Guide for details.
π¦ New: Asset Manager
Install, diff, and update plugin assets directly from the TUI:
- Discover hooks, commands, agents, skills, modes, workflows, and flags
- Install/uninstall to any detected
.claudedirectory - Diff installed vs source, bulk install by category, update outdated assets
Quick start:
cortex tui # Press 'A' for Asset Manager # i=install, u=uninstall, d=diff, U=update all, I=bulk install, T=target dir
πΏ New: Worktree Manager
Manage git worktrees from the CLI or TUI.
CLI:
cortex worktree list cortex worktree add my-branch --path ../worktrees/my-branch cortex worktree remove my-branch cortex worktree prune --dry-run cortex worktree dir ../worktrees cortex worktree dir --clear
TUI:
cortex tui # Press 'C' for Worktrees # Ctrl+N add, Ctrl+O open, Ctrl+W remove, Ctrl+K prune, Ctrl+B set base dir
π§ New: Setup, Init & Migration
The installer and setup tooling have been overhauled to keep projects consistent across upgrades.
# Detect your project and recommend a profile cortex init detect # Apply a profile directly cortex init profile backend # Check init status cortex init status # Migrate CLAUDE.md comment activation β .active-* files cortex setup migrate
π€ New: AI Intelligence & Automation
Stay in Claude Code flow - Let AI manage the framework for you with context-aware intelligence, pattern learning, and auto-activation:
- Context Detection β Automatically analyzes changed files, detects auth/API/tests/frontend/backend
- Pattern Learning β Learns from successful sessions, recommends optimal agent combinations
- Workflow Prediction β Predicts agent sequences based on similar past work
- Auto-Activation β High-confidence agents activate automatically (β₯80%)
- Watch Mode β Real-time monitoring with instant recommendations (no daemon required)
- TUI AI Assistant β Interactive view with recommendations and predictions (press
0) - Skill Palette Shortcuts β
Ctrl+Pβ type βSkillβ¦β to run info, versions, deps, analytics, trending, or community install/validate/rate/search commands without leaving the TUI - Multi-Reviewer Auto-Activation β Code changes can auto-activate multiple reviewers (quality, code, TS/React/UX, DB/SQL, performance, architecture)
Quick start:
# Get AI recommendations for current context cortex ai recommend # Auto-activate high-confidence agents cortex ai auto-activate # Start watch mode (real-time monitoring) cortex ai watch # Interactive TUI with AI assistant cortex tui # Press '0' for AI Assistant view # Press 'A' to auto-activate recommendations # Record successful sessions for learning cortex ai record-success --outcome "feature complete"
Multi-review output example:
1. π΅ quality-engineer [AUTO]
Confidence: 85%
Reason: Changes detected - quality review recommended
2. π΅ code-reviewer [AUTO]
Confidence: 75%
Reason: Changes detected - code review recommended
3. π΅ typescript-pro [AUTO]
Confidence: 85%
Reason: TypeScript changes detected - review recommended
4. π΅ react-specialist [AUTO]
Confidence: 80%
Reason: React/UI component changes detected - review recommended
5. π΅ ui-ux-designer [AUTO]
Confidence: 80%
Reason: User-facing UI changes detected - UX review recommended
Watch Mode Example:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π€ AI WATCH MODE - Real-time Intelligence
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[10:33:12] π Context detected: Backend, Auth
3 files changed
π‘ Recommendations:
π΅ quality-engineer [AUTO]
85% - Changes detected - quality review recommended
π΅ code-reviewer [AUTO]
75% - Changes detected - code review recommended
π΄ security-auditor [AUTO]
95% - Auth code detected
[10:33:12] β‘ Auto-activating 3 agents...
β quality-engineer
β code-reviewer
β security-auditor
See AI Intelligence Guide and Watch Mode Guide for complete documentation.
β New: Skill Ratings & Auto-Feedback Loops
Phase 5 introduces a first-class feedback engine so skills can improve themselves:
- Ratings & Reviews β
cortex skills rate <skill>stores star ratings, helpful/not-helpful votes, and optional text feedback in~/.cortex/data/skill-ratings.db. - Quality Metrics β
cortex skills ratings <skill>shows averages, distributions, success correlation, and token efficiency;skills top-rated,skills export-ratings, andskills analyticsexpose the aggregate view. - TUI Surfacing β The Skills table now includes a Rating column (press
5). Select a skill and pressCtrl+Rto launch an inline rating dialog without leaving the terminal. - Auto Prompts β Recent skill activations trigger modal prompts shortly after the TUI launches. The prompt explains why the skill was selected (usage count, task types, success rate) and offers to collect feedback on the spot. Dismiss once to snooze for 24β―h; rating it clears future prompts until another burst of usage.
- Recommendation Feedback Loop β Ratings
Pros
- Extensive library of pre-built agents and skills for automation
- Intelligent context detection and auto-activation reduces manual setup
- Integrated TUI and CLI provide multiple access points
Cons
- High complexity and feature density could overwhelm new users
- Heavy reliance on specific directory structures and file conventions
- Potential for 'magic' behavior that is difficult to debug when it fails
Related Skills
requesting-code-review
BβIt's a glorified to-do list for asking your AI friend to check your homework, but at least it's a disciplined friend.β
pytorch
SβIt's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.β
agno
SβIt promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.β
Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.
Copyright belongs to the original author NickCrew.
