28 Commits

Author SHA1 Message Date
Nicholas Ferguson fc01f0dcb0 refactor(agents): strip fiction fields from schema, validator, and 28 agents 2026-04-23 17:56:43 -04:00
Nicholas Ferguson 7b47f50c4e feat(skills): gap-fill keywords for 64 previously-empty skills 2026-04-23 17:56:43 -04:00
Nicholas Ferguson c35824474c feat(agents): tag review/audit/orchestrator agents with delegate_when 2026-04-23 17:56:43 -04:00
Nicholas Ferguson b97a4403a4 refactor(agents): merge triggers.yaml into agent front matter and delete 2026-04-23 17:56:43 -04:00
Nicholas Ferguson 46a6ada053 feat(skills): migrate legacy registry keywords into SKILL.md front matter 2026-04-23 17:56:42 -04:00
Nicholas Ferguson 1fa68bd64a feat(cli): comprehensive CLI and TUI enhancements
Major additions:
- Add statusline configuration support in wizard and CLI
- Add rules editor (cortex rules edit)
- Add plan viewer with bookmarks, search, and path resolution
- Add docs viewer with tree display, bookmarks, and full-text search
- Add interactive docs TUI browser with markdown rendering
- Integrate bin/scripts utilities into main package structure

New CLI commands:
- cortex dev (validate, manpages)
- cortex file (download, extract-ids)
- cortex uninstall (with dry-run support)
- cortex skills audit (quick/full audits with reporting)

Infrastructure improvements:
- Fix tour state persistence to use ~/.claude/tour-state.json
- Fix TUI memory vault and MCP server keyboard shortcuts
- Update package bundling for codex and all asset directories
- Support bundled docs in installed packages
- Clean integration of utilities (utils/, commands/ structure)

Cleanup:
- Remove obsolete template system
- Delete redundant documentation (AGENT-LOOPS, TESTING, TEST-AUDIT)
- Migrate bin/scripts to proper package structure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 09:34:57 -05:00
Nicholas Ferguson b99aa76b42 chore: add code 2026-02-13 12:20:02 -05:00
Nicholas Ferguson 14e478f251 chore: widespread cleanup 2026-02-02 07:32:22 -05:00
Nicholas Ferguson 3804df29d6 feat: setup plugin for Claude marketplace installation
- Update plugin.json with postInstall hook and v3.0.0
- Delete outdated marketplace.json (plugins/ consolidated)
- Add scripts/post-install.sh for automatic rule symlinking
- Add scripts/uninstall.sh for cleanup
- Add _find_plugin_root() to installer.py for multi-install support
- Update README with new installation instructions

Users can now install via:
  claude install github:NickCrew/claude-cortex

Or with Python CLI:
  pip install claude-cortex
  cortex install bootstrap --link-rules
2026-01-28 18:04:24 -05:00
Nicholas Ferguson 4cf66d94dd feat(schemas): add JSON schemas for cortex configuration files
Add JSON Schema validation for:
- cortex-config.json: Main CLI/launcher configuration
- skill-rules.json: Keyword-based skill matching rules
- recommendation-rules.json: File pattern-based skill recommendations
- memory-config.json: Memory vault and auto-capture settings
- onboarding-state.json: Wizard completion state

Each config file now includes a $schema reference for editor
autocompletion and validation. Also updates sync script to use
schemas/ directory name.
2026-01-27 13:56:20 -05:00
Nicholas Ferguson 6cd80bffdc feat: add default cortex-config.json for development
Add a default config file at repo root so CORTEX_ROOT=$(pwd) works
for local development. Also add it to sync script for bundled assets.
2026-01-26 14:46:31 -05:00
Nicholas Ferguson b23af8500f refactor(assets): make repo root single source of truth
Remove claude_ctx_py/assets/ from git tracking and make it a build
artifact regenerated by `just bundle-assets`. This eliminates the
confusing dual-copy situation where both repo root and bundled assets
were tracked and had diverged.

Changes:
- Remove claude_ctx_py/assets/ from git (now in .gitignore)
- Add plugins/ to sync script for domain-specific packages
- Make `just build` depend on bundle-assets
- Document asset workflow in CLAUDE.md
- Reorganize agents: promote 5 from inactive, demote 2 to inactive
- Update dependencies.map with comprehensive agent mappings
2026-01-26 01:17:18 -05:00
Nicholas Ferguson 0abe56e04a chore: bump version to 2.0.0 2026-01-07 19:21:37 -05:00
Nicholas Ferguson c34a9d1c2c chore: bundle assets into python package 2026-01-07 19:21:37 -05:00
Nicholas Ferguson 6f07bb5b6b chore: rename claude-ctx to cortex 2026-01-07 19:21:19 -05:00
Nicholas Ferguson 4326631a1c docs: add repository guidelines 2026-01-07 19:20:22 -05:00
Nicholas Ferguson 5d2b61c7c6 chore: version 1.6.0 2025-12-31 00:33:15 -05:00
Nicholas Ferguson 37d735038b wip 2025-12-29 13:13:31 -05:00
Nicholas Ferguson 845b3d4eff update docs 2025-12-21 04:53:27 -05:00
Nicholas Ferguson b0dab6e917 wip 2025-12-19 23:20:26 -05:00
Nicholas Ferguson 99d6e8c04b chore: update build config, hooks, and project metadata
Build Configuration:
- Update pyproject.toml with new dependencies and entry points
- Update pytest.ini with improved test configuration
- Update justfile with new development tasks
- Update Makefile with build improvements

Scripts:
- Add generate-manpages.py for automatic manpage generation
- Update install.sh with new installation steps

Git Hooks:
- Add .githooks/pre-commit for automatic manpage regeneration

Hooks Examples:
- Add memory_auto_capture.py for automatic memory capture
- Enhance skill_auto_suggester.py with improved recommendations

Project Files:
- Update README.md with new features documentation
- Update CONTRIBUTING.md with updated guidelines
- Update .gitignore with new exclusions
- Add modes/Amphetamine.md behavioral mode
- Update community skills registry
2025-12-10 14:49:09 -05:00
Nicholas Ferguson 3f422d3f38 chore: update CLI, docs, and misc improvements
Update CLI and core modules:
- Add git commit rules reference to RULES.md
- Update workflow-rules.md with git standards
- Enhance CLI help output formatting
- Add workflow subcommand support
- Update agents.py with minor improvements

Add new manpages:
- claude-ctx-tui.1 for TUI reference
- claude-ctx-workflow.1 for workflow commands
- Update claude-ctx.1 main manpage

Documentation updates:
- Update quality-improvements.md
- Sync _site generated files
- Update skill metadata (internal-comms, skill-creator, webapp-testing)

Build and installation:
- Update Makefile targets
- Improve install-manpage.sh script
2025-11-12 18:13:40 -05:00
Nicholas Ferguson 907e5b21f5 feat(docs): add comprehensive architecture documentation system
Add complete visual documentation for the three-layer automation system
(Commands → Modes → Workflows → Execution) with installation automation.

New Documentation:
- architecture-diagrams.md: 10+ Mermaid diagrams showing system flows
- quick-reference.md: One-page cheat sheet for daily development
- VISUAL_SUMMARY.txt: ASCII art diagram for terminal viewing
- DIAGRAMS_README.md: Guide for using and maintaining diagrams
- WHATS_NEW.md: Comprehensive changelog of recent additions

Packaging Configuration:
- MANIFEST.in: Ensures docs included in source distribution
- pyproject.toml: Adds package-data and data-files sections
- post-install-docs.sh: Auto-installs docs to ~/.claude/docs/
- install.sh: Calls post-install script after package installation

System Statistics:
- 43 slash commands across 16 namespaces
- 8 behavioral modes (4 new: Brainstorm, Deep_Analysis, Quality_Focus, Token_Efficient)
- 9 multi-step workflows (5 new: refactoring, api-design, technical-debt, architecture-review, onboarding)
- 25+ specialized agents
- 3 MCP servers (Codanna, Context7, Sequential)

Installation: Documentation automatically copied to ~/.claude/docs/ on install
Access: Via /docs:diagrams command or cat ~/.claude/docs/VISUAL_SUMMARY.txt
2025-11-11 19:45:58 -05:00
Nicholas Ferguson 44ffc83a91 Docs: Reorganize documentation and fix internal links
Reorganized the  directory by moving files into new subdirectories (e.g., , ).
Updated all internal links across the documentation to reflect the new file structure.
Moved  and  to .
Updated , , , , and several other documentation files to correct broken links.
Created a placeholder file for .
2025-11-09 13:54:27 -05:00
Nicholas Ferguson 74b4379448 feat: Add comprehensive MCP server management system
Add complete MCP (Model Context Protocol) server management with CLI,
TUI, and Python API interfaces.

Features:
- Core MCP module for server discovery and validation
- CLI commands: list, show, docs, test, diagnose, snippet
- TUI view (key 7) with visual dashboard and keyboard shortcuts
- Curated documentation for 6 popular MCP servers
- Read-only approach respecting Claude Desktop as source of truth
- Cross-platform support (macOS, Linux, Windows)

Test Coverage:
- 50 tests for core MCP module (100% passing)
- 33 tests for TUI MCP view (82.94% coverage)
- Full integration with existing test suite

Documentation:
- Complete user guide (MCP_MANAGEMENT.md)
- Implementation summary with architecture details
- Module README and usage examples
- TUI keyboard reference

Test Coverage Planning:
- Created 11 GitHub issues for reaching 80% test coverage
- Automation script for issue creation
- Comprehensive test coverage plan with timeline
- Issue template for future test coverage work

Files Added:
- claude_ctx_py/core/mcp.py - Core MCP module
- claude_ctx_py/tui_mcp.py - TUI MCP view
- tests/unit/test_mcp.py - Core module tests
- tests/unit/test_tui_mcp.py - TUI view tests
- docs/MCP_*.md - MCP documentation
- ~/.claude/mcp/docs/*.md - Server documentation
- CREATE_THESE_ISSUES.md - GitHub issue content
- scripts/create_test_coverage_issues.sh - Issue automation

Files Modified:
- claude_ctx_py/cli.py - Added MCP subcommand
- claude_ctx_py/tui.py - Integrated MCP view
- claude_ctx_py/core/__init__.py - Exported MCP functions
- README.md - Added MCP management section

Related Issues: #1-#11
2025-11-05 14:41:44 -05:00
Nicholas Ferguson bca89b8cbb Add comprehensive installation script and Makefile
Created a unified installation system that handles package installation,
shell completions, and manpage setup with a single command.

**New Files:**

1. scripts/install.sh (380 lines)
   - Comprehensive installer handling all setup tasks
   - Auto-detects shell (bash/zsh/fish) for completions
   - Supports multiple installation modes (editable/system-wide)
   - Colorized output with clear success/error messages
   - Verification step confirms everything works

   Features:
   - Package installation (editable or system-wide)
   - Shell completions (bash/zsh/fish)
   - Manpage installation
   - Installation verification
   - Flexible options (--no-package, --no-completions, etc.)

2. Makefile (94 lines)
   - Convenient make targets for common tasks
   - Development workflow automation

   Targets:
   - make install         - Full installation
   - make install-dev     - Development mode installation
   - make test            - Run test suite
   - make test-cov        - Tests with coverage
   - make type-check      - Run mypy on Phase 4 modules
   - make lint            - Check code formatting
   - make clean           - Remove build artifacts
   - make docs            - Start documentation server
   - make verify          - Check installation status

**Updated:**

- README.md
  - Added "Installing the CLI" section with quick install guide
  - Documented installation script options
  - Added Makefile usage examples
  - Updated shell completion instructions (auto-installed now)
  - Updated manpage section (auto-installed now)
  - Better organization of installation methods

**Removed:**

- scripts/claude-ctx (old bash wrapper)
- scripts/install-claude-ctx.sh (replaced by install.sh)

**Usage:**

Quick install everything:
    ./scripts/install.sh

Or use make:
    make install        # Full installation
    make help           # Show all targets

Installation script options:
    ./scripts/install.sh --help              # Show options
    ./scripts/install.sh --no-completions    # Skip completions
    ./scripts/install.sh --shell zsh         # Specify shell
    ./scripts/install.sh --system-install    # System-wide mode

The installer replaces the previous multi-step manual process with a
single command that handles everything automatically and provides clear
feedback at each step.
2025-10-17 17:37:47 -04:00
Nicholas Ferguson 4e439153b2 Add comprehensive manpage for claude-ctx CLI
Created a complete Unix manual page (docs/claude-ctx.1) documenting all CLI
commands, subcommands, options, and usage patterns. The manpage follows
standard groff format conventions and includes:

**Documentation Coverage:**
- All 9 main commands (status, mode, agent, rules, skills, init, profile, workflow, orchestrate)
- 60+ subcommands with detailed descriptions
- Command-line options and flags
- File locations and directory structure
- Environment variables (CLAUDE_CTX_HOME, CLAUDE_PLUGIN_ROOT)
- Exit codes and error handling
- Comprehensive examples section

**Special Sections:**
- VERSIONING - Semantic versioning support with operators (^, ~, >=, latest)
- ANALYTICS - Metrics tracking and effectiveness scoring
- QUALITY STANDARDS - Community skill validation requirements
- DEPENDENCY MANAGEMENT - Composition system and cycle detection

**Installation:**
- Created install-manpage.sh script for system-wide installation
- Supports macOS and Linux
- Auto-detects man directory (/usr/local/share/man or /usr/share/man)
- Updates man database (mandb/makewhatis)

**Package Integration:**
- Updated pyproject.toml to include manpage in distribution
- Manpage installed to share/man/man1/ on pip install
- Updated README with manpage usage instructions

**Usage:**
- View directly: man docs/claude-ctx.1
- Install system-wide: ./scripts/install-manpage.sh
- Access after install: man claude-ctx

Files:
- docs/claude-ctx.1 (499 lines) - Complete manpage in groff format
- scripts/install-manpage.sh (56 lines) - Installation helper script
- README.md - Added manpage documentation section
- pyproject.toml - Added data-files configuration for manpage

The manpage provides professional Unix-style documentation making claude-ctx
more accessible and discoverable through standard man page system.
2025-10-17 17:08:56 -04:00
Nicholas Ferguson 3163275fef init commit 2025-10-17 03:45:01 -04:00