SuperClaude/CHANGELOG.md
kazuki nakai 050d5ea2ab
refactor: PEP8 compliance - directory rename and code formatting (#425)
* fix(orchestration): add WebFetch auto-trigger for infrastructure configuration

Problem: Infrastructure configuration changes (e.g., Traefik port settings)
were being made based on assumptions without consulting official documentation,
violating the 'Evidence > assumptions' principle in PRINCIPLES.md.

Solution:
- Added Infrastructure Configuration Validation section to MODE_Orchestration.md
- Auto-triggers WebFetch for infrastructure tools (Traefik, nginx, Docker, etc.)
- Enforces MODE_DeepResearch activation for investigation
- BLOCKS assumption-based configuration changes

Testing: Verified WebFetch successfully retrieves Traefik official docs (port 80 default)

This prevents production outages from infrastructure misconfiguration by ensuring
all technical recommendations are backed by official documentation.

* feat: Add PM Agent (Project Manager Agent) for seamless orchestration

Introduces PM Agent as the default orchestration layer that coordinates
all sub-agents and manages workflows automatically.

Key Features:
- Default orchestration: All user interactions handled by PM Agent
- Auto-delegation: Intelligent sub-agent selection based on task analysis
- Docker Gateway integration: Zero-token baseline with dynamic MCP loading
- Self-improvement loop: Automatic documentation of patterns and mistakes
- Optional override: Users can specify sub-agents explicitly if desired

Architecture:
- Agent spec: SuperClaude/Agents/pm-agent.md
- Command: SuperClaude/Commands/pm.md
- Updated docs: README.md (15→16 agents), agents.md (new Orchestration category)

User Experience:
- Default: PM Agent handles everything (seamless, no manual routing)
- Optional: Explicit --agent flag for direct sub-agent access
- Both modes available simultaneously (no user downside)

Implementation Status:
-  Specification complete
-  Documentation complete
-  Prototype implementation needed
-  Docker Gateway integration needed
-  Testing and validation needed

Refs: kazukinakai/docker-mcp-gateway (IRIS MCP Gateway integration)

* feat: Add Agent Orchestration rules for PM Agent default activation

Implements PM Agent as the default orchestration layer in RULES.md.

Key Changes:
- New 'Agent Orchestration' section (CRITICAL priority)
- PM Agent receives ALL user requests by default
- Manual override with @agent-[name] bypasses PM Agent
- Agent Selection Priority clearly defined:
  1. Manual override → Direct routing
  2. Default → PM Agent → Auto-delegation
  3. Delegation based on keywords, file types, complexity, context

User Experience:
- Default: PM Agent handles everything (seamless)
- Override: @agent-[name] for direct specialist access
- Transparent: PM Agent reports delegation decisions

This establishes PM Agent as the orchestration layer while
respecting existing auto-activation patterns and manual overrides.

Next Steps:
- Local testing in agiletec project
- Iteration based on actual behavior
- Documentation updates as needed

* refactor(pm-agent): redesign as self-improvement meta-layer

Problem Resolution:
PM Agent's initial design competed with existing auto-activation for task routing,
creating confusion about orchestration responsibilities and adding unnecessary complexity.

Design Change:
Redefined PM Agent as a meta-layer agent that operates AFTER specialist agents
complete tasks, focusing on:
- Post-implementation documentation and pattern recording
- Immediate mistake analysis with prevention checklists
- Monthly documentation maintenance and noise reduction
- Pattern extraction and knowledge synthesis

Two-Layer Orchestration System:
1. Task Execution Layer: Existing auto-activation handles task routing (unchanged)
2. Self-Improvement Layer: PM Agent meta-layer handles documentation (new)

Files Modified:
- SuperClaude/Agents/pm-agent.md: Complete rewrite with meta-layer design
  - Category: orchestration → meta
  - Triggers: All user interactions → Post-implementation, mistakes, monthly
  - Behavioral Mindset: Continuous learning system
  - Self-Improvement Workflow: BEFORE/DURING/AFTER/MISTAKE RECOVERY/MAINTENANCE

- SuperClaude/Core/RULES.md: Agent Orchestration section updated
  - Split into Task Execution Layer + Self-Improvement Layer
  - Added orchestration flow diagram
  - Clarified PM Agent activates AFTER task completion

- README.md: Updated PM Agent description
  - "orchestrates all interactions" → "ensures continuous learning"

- Docs/User-Guide/agents.md: PM Agent section rewritten
  - Section: Orchestration Agent → Meta-Layer Agent
  - Expertise: Project orchestration → Self-improvement workflow executor
  - Examples: Task coordination → Post-implementation documentation

- PR_DOCUMENTATION.md: Comprehensive PR documentation added
  - Summary, motivation, changes, testing, breaking changes
  - Two-layer orchestration system diagram
  - Verification checklist

Integration Validated:
Tested with agiletec project's self-improvement-workflow.md:
 PM Agent aligns with existing BEFORE/DURING/AFTER/MISTAKE RECOVERY phases
 Complements (not competes with) existing workflow
 agiletec workflow defines WHAT, PM Agent defines WHO executes it

Breaking Changes: None
- Existing auto-activation continues unchanged
- Specialist agents unaffected
- User workflows remain the same
- New capability: Automatic documentation and knowledge maintenance

Value Proposition:
Transforms SuperClaude into a continuously learning system that accumulates
knowledge, prevents recurring mistakes, and maintains fresh documentation
without manual intervention.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: add Claude Code conversation history management research

Research covering .jsonl file structure, performance impact, and retention policies.

Content:
- Claude Code .jsonl file format and message types
- Performance issues from GitHub (memory leaks, conversation compaction)
- Retention policies (consumer vs enterprise)
- Rotation recommendations based on actual data
- File history snapshot tracking mechanics

Source: Moved from agiletec project (research applicable to all Claude Code projects)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: add Development documentation structure

Phase 1: Documentation Structure complete

- Add Docs/Development/ directory for development documentation
- Add ARCHITECTURE.md - System architecture with PM Agent meta-layer
- Add ROADMAP.md - 5-phase development plan with checkboxes
- Add TASKS.md - Daily task tracking with progress indicators
- Add PROJECT_STATUS.md - Current status dashboard and metrics
- Add pm-agent-integration.md - Implementation guide for PM Agent mode

This establishes comprehensive documentation foundation for:
- System architecture understanding
- Development planning and tracking
- Implementation guidance
- Progress visibility

Related: #pm-agent-mode #documentation #phase-1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: PM Agent session lifecycle and PDCA implementation

Phase 2: PM Agent Mode Integration (Design Phase)

Commands/pm.md updates:
- Add "Always-Active Foundation Layer" concept
- Add Session Lifecycle (Session Start/During Work/Session End)
- Add PDCA Cycle (Plan/Do/Check/Act) automation
- Add Serena MCP Memory Integration (list/read/write_memory)
- Document auto-activation triggers

Agents/pm-agent.md updates:
- Add Session Start Protocol (MANDATORY auto-activation)
- Add During Work PDCA Cycle with example workflows
- Add Session End Protocol with state preservation
- Add PDCA Self-Evaluation Pattern
- Add Documentation Strategy (temp → patterns/mistakes)
- Add Memory Operations Reference

Key Features:
- Session start auto-activation for context restoration
- 30-minute checkpoint saves during work
- Self-evaluation with think_about_* operations
- Systematic documentation lifecycle
- Knowledge evolution to CLAUDE.md

Implementation Status:
-  Design complete (Commands/pm.md, Agents/pm-agent.md)
-  Implementation pending (Core components)
-  Serena MCP integration pending

Salvaged from mistaken development in ~/.claude directory

Related: #pm-agent-mode #session-lifecycle #pdca-cycle #phase-2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: disable Serena MCP auto-browser launch

Disable web dashboard and GUI log window auto-launch in Serena MCP server
to prevent intrusive browser popups on startup. Users can still manually
access the dashboard at http://localhost:24282/dashboard/ if needed.

Changes:
- Add CLI flags to Serena run command:
  - --enable-web-dashboard false
  - --enable-gui-log-window false
- Ensures Git-tracked configuration (no reliance on ~/.serena/serena_config.yml)
- Aligns with AIRIS MCP Gateway integration approach

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor: rename directories to lowercase for PEP8 compliance

- Rename superclaude/Agents -> superclaude/agents
- Rename superclaude/Commands -> superclaude/commands
- Rename superclaude/Core -> superclaude/core
- Rename superclaude/Examples -> superclaude/examples
- Rename superclaude/MCP -> superclaude/mcp
- Rename superclaude/Modes -> superclaude/modes

This change follows Python PEP8 naming conventions for package directories.

* style: fix PEP8 violations and update package name to lowercase

Changes:
- Format all Python files with black (43 files reformatted)
- Update package name from 'SuperClaude' to 'superclaude' in pyproject.toml
- Fix import statements to use lowercase package name
- Add missing imports (timedelta, __version__)
- Remove old SuperClaude.egg-info directory

PEP8 violations reduced from 2672 to 701 (mostly E501 line length due to black's 88 char vs flake8's 79 char limit).

* docs: add PM Agent development documentation

Add comprehensive PM Agent development documentation:
- PM Agent ideal workflow (7-phase autonomous cycle)
- Project structure understanding (Git vs installed environment)
- Installation flow understanding (CommandsComponent behavior)
- Task management system (current-tasks.md)

Purpose: Eliminate repeated explanations and enable autonomous PDCA cycles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat(pm-agent): add self-correcting execution and warning investigation culture

## Changes

### superclaude/commands/pm.md
- Add "Self-Correcting Execution" section with root cause analysis protocol
- Add "Warning/Error Investigation Culture" section enforcing zero-tolerance for dismissal
- Define error detection protocol: STOP → Investigate → Hypothesis → Different Solution → Execute
- Document anti-patterns (retry without understanding) and correct patterns (research-first)

### docs/Development/hypothesis-pm-autonomous-enhancement-2025-10-14.md
- Add PDCA workflow hypothesis document for PM Agent autonomous enhancement

## Rationale

PM Agent must never retry failed operations without understanding root causes.
All warnings and errors require investigation via context7/WebFetch/documentation
to ensure production-quality code and prevent technical debt accumulation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat(installer): add airis-mcp-gateway MCP server option

## Changes

- Add airis-mcp-gateway to MCP server options in installer
- Configuration: GitHub-based installation via uvx
- Repository: https://github.com/oraios/airis-mcp-gateway
- Purpose: Dynamic MCP Gateway for zero-token baseline and on-demand tool loading

## Implementation

Added to setup/components/mcp.py self.mcp_servers dictionary with:
- install_method: github
- install_command: uvx test installation
- run_command: uvx runtime execution
- required: False (optional server)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: kazuki <kazuki@kazukinoMacBook-Air.local>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-14 08:47:09 +05:30

9.9 KiB

Changelog

All notable changes to SuperClaude will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[4.2.0] - 2025-09-18

Added

  • Deep Research System - Complete implementation of autonomous web research capabilities
    • New /sc:research command for intelligent web research with DR Agent architecture
    • deep-research-agent - 15th specialized agent for research orchestration
    • MODE_DeepResearch - 7th behavioral mode for research workflows
    • Tavily MCP integration (7th MCP server) for real-time web search
    • Research configuration system (RESEARCH_CONFIG.md)
    • Comprehensive workflow examples (deep_research_workflows.md)
    • Three planning strategies: Planning-Only, Intent-to-Planning, Unified Intent-Planning
    • Multi-hop reasoning with genealogy tracking for complex queries
    • Case-based reasoning for learning from past research patterns

Changed

  • Updated agent count from 14 to 15 (added deep-research-agent)
  • Updated mode count from 6 to 7 (added MODE_DeepResearch)
  • Updated MCP server count from 6 to 7 (added Tavily)
  • Updated command count from 24 to 25 (added /sc:research)
  • Enhanced MCP component with remote server support for Tavily
  • Added _install_remote_mcp_server method to handle remote MCP configurations

Technical

  • Added Tavily to server_docs_map in setup/components/mcp_docs.py
  • Implemented remote MCP server handler in setup/components/mcp.py
  • Added check_research_prerequisites() function in setup/utils/environment.py
  • Created verification script scripts/verify_research_integration.sh

Requirements

  • TAVILY_API_KEY environment variable for web search functionality
  • Node.js and npm for Tavily MCP execution

[4.1.5] - 2025-09-26

Added

  • Comprehensive flag documentation integrated into /sc:help command
  • All 25 SuperClaude framework flags now discoverable from help system
  • Practical usage examples and flag priority rules

Fixed

  • MCP incremental installation and auto-detection system
  • Auto-detection of existing MCP servers from .claude.json and claude_desktop_config.json
  • Smart server merging (existing + selected + previously installed)
  • Documentation cleanup: removed non-existent commands (sc:fix, sc:simple-pix, sc:update, sc:develop, sc:modernize, sc:simple-fix)
  • CLI logic to allow mcp_docs installation without server selection

Changed

  • MCP component now supports true incremental installation
  • mcp_docs component auto-detects and installs documentation for all detected servers
  • Improved error handling and graceful fallback for corrupted config files
  • Enhanced user experience with single-source reference for all SuperClaude capabilities

[4.1.0] - 2025-09-13

Added

  • Display author names and emails in the installer UI header.
  • is_reinstallable flag for components to allow re-running installation.

Fixed

  • Installer now correctly installs only selected MCP servers on subsequent runs.
  • Corrected validation logic for mcp and mcp_docs components to prevent incorrect failures.
  • Ensured empty backup archives are created as valid tar files.
  • Addressed an issue where only selected MCPs were being installed.
  • Added Mithun Gowda B as an author.
  • MCP Installer: Addressed several critical bugs in the MCP installation and update process to improve reliability.
    • Corrected the npm package name for the morphllm server in setup/components/mcp.py.
    • Implemented a custom installation method for the serena server using uv, as it is not an npm package.
    • Resolved a NameError in the update command within setup/cli/commands/install.py.
    • Patched a recurring "Unknown component: core" error by ensuring the component registry is initialized only once.
    • Added the claude CLI as a formal prerequisite for MCP server management, which was previously undocumented.

Changed

Technical

  • Prepared package for PyPI distribution
  • Validated package structure and dependencies

[4.0.7] - 2025-01-23

Added

  • Automatic update checking for PyPI and NPM packages
  • --no-update-check flag to skip update checks
  • --auto-update flag for automatic updates without prompting
  • Environment variable SUPERCLAUDE_AUTO_UPDATE support
  • Update notifications with colored banners showing available version
  • Rate limiting to check updates once per 24 hours
  • Smart installation method detection (pip/pipx/npm/yarn)
  • Cache files for update check timestamps (~/.claude/.update_check and .npm_update_check)

Fixed

  • Component validation now correctly uses pipx-installed version instead of source code

Technical

  • Added setup/utils/updater.py for PyPI update checking logic
  • Added bin/checkUpdate.js for NPM update checking logic
  • Integrated update checks into main entry points (superclaude/main.py and bin/cli.js)
  • Non-blocking update checks with 2-second timeout to avoid delays

Changed

  • BREAKING: Agent system restructured to 14 specialized agents
  • BREAKING: Commands now use /sc: namespace to avoid conflicts with user custom commands
  • Commands are now installed in ~/.claude/commands/sc/ subdirectory
  • All 21 commands updated: /analyze/sc:analyze, /build/sc:build, etc.
  • Automatic migration from old command locations to new sc/ subdirectory
  • BREAKING: Documentation reorganization - docs/ directory renamed to Guides/

Added

  • NEW AGENTS: 14 specialized domain agents with enhanced capabilities
    • backend-architect.md, devops-architect.md, frontend-architect.md
    • learning-guide.md, performance-engineer.md, python-expert.md
    • quality-engineer.md, refactoring-expert.md, requirements-analyst.md
    • root-cause-analyst.md, security-engineer.md, socratic-mentor.md
  • NEW MODE: MODE_Orchestration.md for intelligent tool selection mindset (5 total behavioral modes)
  • NEW COMMAND: /sc:implement for feature and code implementation (addresses v2 user feedback)
  • NEW FILE: CLAUDE.md for project-specific Claude Code instructions
  • Migration logic to move existing commands to new namespace automatically
  • Enhanced uninstaller to handle both old and new command locations
  • Improved command conflict prevention
  • Better command organization and discoverability
  • Comprehensive PyPI publishing infrastructure
  • API key management during SuperClaude MCP setup

Removed

  • BREAKING: Removed Templates/ directory (legacy templates no longer needed)
  • BREAKING: Removed legacy agents and replaced with enhanced 14-agent system

Improved

  • Refactored Modes and MCP documentation for concise behavioral guidance
  • Enhanced project cleanup and gitignore for PyPI publishing
  • Implemented uninstall and update safety enhancements
  • Better agent specialization and domain expertise focus

Technical Details

  • Commands now accessible as /sc:analyze, /sc:build, /sc:improve, etc.
  • Migration preserves existing functionality while preventing naming conflicts
  • Installation process detects and migrates existing commands automatically
  • Tab completion support for /sc: prefix to discover all SuperClaude commands
  • Guides/ directory replaces docs/ for improved organization

[4.0.6] - 2025-08-23

Fixed

  • Component validation now correctly checks .superclaude-metadata.json instead of settings.json (#291)
  • Standardized version numbers across all components to 4.0.6
  • Fixed agent validation to check for correct filenames (architect vs specialist/engineer)
  • Fixed package.json version inconsistency (was 4.0.5)

Changed

  • Bumped version from 4.0.4 to 4.0.6 across entire project
  • All component versions now synchronized at 4.0.6
  • Cleaned up metadata file structure for consistency

[4.0.4] - 2025-08-22

Added

  • Agent System: 13 specialized domain experts replacing personas
  • Behavioral Modes: 4 intelligent modes for different workflows (Brainstorming, Introspection, Task Management, Token Efficiency)
  • Session Lifecycle: /sc:load and /sc:save for cross-session persistence with Serena MCP
  • New Commands: /sc:brainstorm, /sc:reflect, /sc:save, /sc:select-tool (21 total commands)
  • Serena MCP: Semantic code analysis and memory management
  • Morphllm MCP: Intelligent file editing with Fast Apply capability
  • Core Components: Python-based framework integration (completely redesigned and implemented)
  • Templates: Comprehensive templates for creating new components
  • Python-Ultimate-Expert Agent: Master Python architect for production-ready code

Changed

  • Commands expanded from 16 to 21 specialized commands
  • Personas replaced with 13 specialized Agents
  • Enhanced MCP integration (6 servers total)
  • Improved token efficiency (30-50% reduction with Token Efficiency Mode)
  • Session management now uses Serena integration for persistence
  • Framework structure reorganized for better modularity

Improved

  • Task management with multi-layer orchestration (TodoWrite, /task, /spawn, /loop)
  • Quality gates with 8-step validation cycle
  • Performance monitoring and optimization
  • Cross-session context preservation
  • Intelligent routing with ORCHESTRATOR.md enhancements

[3.0.0] - 2025-07-14

Added

  • Initial release of SuperClaude v3.0
  • 15 specialized slash commands for development tasks
  • Smart persona auto-activation system
  • MCP server integration (Context7, Sequential, Magic, Playwright)
  • Unified CLI installer with multiple installation profiles
  • Comprehensive documentation and user guides
  • Token optimization framework
  • Task management system

Features

  • Commands: analyze, build, cleanup, design, document, estimate, explain, git, improve, index, load, spawn, task, test, troubleshoot
  • Personas: architect, frontend, backend, analyzer, security, mentor, refactorer, performance, qa, devops, scribe
  • MCP Servers: Official library documentation, complex analysis, UI components, browser automation
  • Installation: Quick, minimal, and developer profiles with component selection