continuous-learning-v2

Observes Claude Code sessions via hooks and evolves atomic instincts into skills, commands, and agents.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill continuous-learning-v2-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: continuous-learning-v2
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/everything-claude-code/docs/zh-TW/skills/continuous-learning-v2
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill continuous-learning-v2-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Claude Code sessions contain valuable patterns—user corrections, error resolutions, repeated workflows—that are lost when the session ends. This Skill captures those patterns deterministically and turns them into reusable, confidence-scored knowledge. ## Core Features & Use Cases - Hook-Based Observation: Uses PreToolUse/PostToolUse hooks to capture every prompt and tool call with 100% reliability, storing them in observations.jsonl. - Atomic Instincts with Confidence Scoring: A background observer agent (Haiku) detects patterns and creates small instinct files weighted from 0.3 (tentative) to 0.9 (near-certain), with evidence tracking. - Evolution Pipeline: The /evolve command clusters related instincts into full skills, slash commands, or specialized agents; instincts can also be exported and imported for sharing. - Use Case: After repeatedly correcting Claude to prefer functional patterns over classes, the system creates a prefer-functional-style instinct at 0.7 confidence, which later evolves into a reusable code-style skill. ## Quick Start Add the PreToolUse and PostToolUse observe.sh hooks to your ~/.claude/settings.json, create the ~/.claude/homunculus directory structure, then ask Claude to show your learned instincts with /instinct-status.

Frequently Asked Questions about continuous-learning-v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up continuous learning hooks in Claude Code?

Add PreToolUse and PostToolUse entries to ~/.claude/settings.json pointing to the observe.sh script with 'pre' and 'post' arguments. Then create the ~/.claude/homunculus directory structure with instincts and evolved subdirectories.

What is an instinct in the continuous learning system?

An instinct is an atomic learned behavior with one trigger and one action, stored as a Markdown file with YAML frontmatter. It carries a confidence score from 0.3 to 0.9, a domain tag like code-style or testing, and evidence of the observations that created it.

Why does v2 use hooks instead of skills for observation?

Skills trigger probabilistically based on Claude's judgment, firing only about 50-80% of the time. Hooks execute deterministically on every tool call, so no patterns are missed and learning is comprehensive.

Is continuous-learning-v2 compatible with v1 learned skills?

Yes, v2 is fully backward compatible. Existing skills in ~/.claude/skills/learned/ continue to work, the Stop hook still runs, and both versions can operate in parallel during a gradual migration.

Does the observation system send my code or conversations anywhere?

No, observations stay local on your machine. Only distilled instincts (patterns, not content) can be exported for sharing, and you control exactly what gets exported.

How does instinct confidence scoring change over time?

Confidence increases when patterns are repeatedly observed or suggestions go uncorrected, and decreases when the user explicitly corrects the behavior or contradicting evidence appears. Instincts at 0.7 or above are auto-approved for application.