一键导入
continuous-learning
基于 instinct 的持续学习系统,通过 hooks 观察会话,创建带置信度评分的 atomic instincts, 并将高置信度 instinct 演进为 skills/commands/agents。v2.1 增加项目级 instincts 防止跨项目污染。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
基于 instinct 的持续学习系统,通过 hooks 观察会话,创建带置信度评分的 atomic instincts, 并将高置信度 instinct 演进为 skills/commands/agents。v2.1 增加项目级 instincts 防止跨项目污染。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
上下文优化技能,通过 trigger-based 懒加载和 context composition awareness 自动重组长会话上下文。
Goal-oriented autonomous loop with external completion oracle. Keeps iterating until verifiable stopping conditions are met, checked by a separate model.
Scheduled discovery automation that runs scans on a heartbeat interval, classifies findings, and routes them to goals or triage inbox.
Active MCP connector polling that integrates external tools (issue trackers, error monitoring, CI) into the heartbeat loop for cross-system discovery.
Structured rework with git blame attribution for failed goal iterations. Maps failures to responsible changes and routes targeted fix briefs.
将 CodeGraph 作为默认内置 MCP-backed 代码图谱能力接入,用于 brownfield 符号搜索、 调用链、影响面和上下文查询。输出必须回落到 `/team-*` 主链和 artifacts。
| name | continuous-learning |
| description | 基于 instinct 的持续学习系统,通过 hooks 观察会话,创建带置信度评分的 atomic instincts, 并将高置信度 instinct 演进为 skills/commands/agents。v2.1 增加项目级 instincts 防止跨项目污染。 |
| origin | adapted from ECC |
| version | 2.1.0 |
一个高级学习系统,通过 atomic "instincts" 将 Claude Code 会话转化为可重用知识。
v2.1 增加 项目级 instincts — React 模式保留在 React 项目中,Python 约定保留在 Python 项目中,通用模式(如"始终验证输入")全局共享。
一个 instinct 是一个小的学习行为:
---
id: prefer-component-colocation
trigger: "当多个组件使用相同状态时"
confidence: 0.7
domain: "frontend-architecture"
source: "session-observation"
scope: project
project_id: "a1b2c3d4e5f6"
project_name: "points-frontend"
---
# 组件状态共置
## 行为
当多个组件使用相同状态时,考虑将状态提升到共同祖先。
## 证据
- 在 5 个实例中观察到状态提升模式
- 用户在 2026-03-29 将组件本地状态改为共享状态
属性:
project(默认)或 global~/.claude/homunculus/
+-- projects.json # 项目注册表: hash -> name/path
+-- observations.jsonl # 全局观察(fallback)
+-- instincts/
| +-- personal/ # 全局自动学习的 instincts
| +-- inherited/ # 全局导入的 instincts
+-- evolved/
| +-- agents/ # 全局生成的 agents
| +-- skills/ # 全局生成的 skills
| +-- commands/ # 全局生成的 commands
+-- projects/
+-- a1b2c3d4e5f6/ # 项目 hash(来自 git remote URL)
+-- project.json # 项目元数据
+-- observations.jsonl
+-- instincts/
| +-- personal/ # 项目特定自动学习
| +-- inherited/ # 项目特定导入
+-- evolved/
+-- skills/
+-- commands/
+-- agents/
系统自动检测当前项目:
CLAUDE_PROJECT_DIR env var(最高优先级)git remote get-url origin -- hash 生成项目 IDgit rev-parse --show-toplevel -- fallback| 分数 | 含义 | 行为 |
|---|---|---|
| 0.3 | 试探性 | 建议但不强制 |
| 0.5 | 中等 | 相关时应用 |
| 0.7 | 强 | 自动批准应用 |
| 0.9 | 几乎确定 | 核心行为 |
置信度增加当:
置信度减少当:
| 特性 | Skills | Instincts |
|---|---|---|
| 粒度 | 完整工作流 | Atomic 行为 |
| 触发 | 手动调用 | 自动观察 |
| 置信度 | 无 | 0.3-0.9 |
| 演化 | 直接成为 skill | 先 instinct 再 cluster |
scripts/lib/memory_store.py - 底层存储接口/instinct-status - 显示学习的 instincts/evolve - 将 instincts 聚类为 skills/commands/instinct-export - 导出 instincts 到文件/instinct-import - 从文件导入 instincts/promote - 将项目 instincts 提升到全局