Auto-discovered marketplace from lunamoth7533/homunculus
npx claudepluginhub lunamoth7533/homunculusSelf-evolution system for Claude Code - automatic gap detection and capability synthesis with human-in-the-loop approval
Self-Evolution System for Claude Code
Homunculus is a Claude Code plugin that enables automatic detection of capability gaps and self-synthesis of new abilities. It observes Claude's interactions, identifies patterns where capabilities are missing, and proposes new skills, hooks, agents, and commands to address those gaps.
# The plugin should be at ~/homunculus
cd ~
git clone <repository-url> homunculus
# OR if you already have it:
# mv /path/to/homunculus ~/homunculus
cd ~/homunculus
python3 scripts/cli.py init
# Add the plugin marketplace
/plugin marketplace add ~/homunculus
# Install the plugin
/plugin install homunculus@homunculus
The plugin automatically configures hooks for PreToolUse, PostToolUse, and Stop events.
Restart Claude Code to activate the hooks.
python3 ~/homunculus/scripts/cli.py status
# List all pending gaps
python3 ~/homunculus/scripts/cli.py gaps
# View details for a specific gap
python3 ~/homunculus/scripts/cli.py gap <gap-id>
python3 ~/homunculus/scripts/cli.py detect
# Synthesize proposals for pending gaps
python3 ~/homunculus/scripts/cli.py synthesize
# Synthesize for a specific gap
python3 ~/homunculus/scripts/cli.py synthesize <gap-id>
# List pending proposals
python3 ~/homunculus/scripts/cli.py proposals
# Review a specific proposal (shows full details and file previews)
python3 ~/homunculus/scripts/cli.py review <proposal-id>
# Approve and install a proposal
python3 ~/homunculus/scripts/cli.py approve <proposal-id>
# Reject a proposal
python3 ~/homunculus/scripts/cli.py reject <proposal-id> --reason "Not needed"
# List installed capabilities
python3 ~/homunculus/scripts/cli.py capabilities
# Rollback an installed capability
python3 ~/homunculus/scripts/cli.py rollback <capability-name>
# Check meta-evolution status
python3 ~/homunculus/scripts/cli.py meta-status
# Run meta-analysis to identify system improvements
python3 ~/homunculus/scripts/cli.py meta-status --analyze
# View configuration
python3 ~/homunculus/scripts/cli.py config
# Dismiss a gap permanently
python3 ~/homunculus/scripts/cli.py dismiss-gap <gap-id> --reason "Not relevant"
# Re-initialize (use with caution)
python3 ~/homunculus/scripts/cli.py init --force
Claude Code hooks capture tool usage events and store them in ~/homunculus/observations/current.jsonl. Events include:
The detection engine analyzes observations using 16 detector rules defined in ~/homunculus/meta/detector-rules/. Each rule looks for patterns like:
Gaps are automatically deduplicated to prevent redundant entries:
| Method | Description |
|---|---|
| Fingerprinting | Gaps are hashed using sorted, normalized keywords. Variations like "Cannot read PDF files" and "PDF files cannot be read!" match exactly. |
| Fuzzy matching | Word-based Jaccard similarity (threshold: 50%) catches near-duplicates with different phrasing. |
| Cross-session | New gaps are compared against all active gaps (pending, synthesizing, proposed) - not just within the current session. |
| Merging | Duplicate gaps update the existing gap's confidence and evidence rather than creating new entries. |
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.