Create State
0
AI 驱动的知识图谱,提供持久的项目记忆、会话连续性和智能代码洞察:捕获决策、跨会话恢复上下文,构建随代码库一同成长的机构知识。
4 条规则
# Create State Commit Workflow
## After Commits - MANDATORY (Every Single Time)
After EVERY commit (Git, Mercurial, SVN, or any VCS), IMMEDIATELY call BOTH:
### 1. captureConversationContext
Include:
- Commit hash/ID and message (if available)
- Summary of what was changed and why
- Files modified
- Key decisions made during the work
### 2. captureCode for EACH significant file changed
- New functions, classes, routes, or components
- Call MULTIPLE times for multiple significant files
- Include the actual code, not just descriptions
## CRITICAL
Both captures are REQUIRED. Context without code is incomplete.
```
Every commit = captureConversationContext + captureCode(s)
```
NO EXCEPTIONS.
DO NOT report success to the user until captures are complete.
## Example Workflow
After running: `git commit -m "feat: add user authentication"`
### Step 1: Capture Context
Call `captureConversationContext` with:
```
context: "Commit abc123: feat: add user authentication
## Summary
Added JWT-based authentication with bcrypt password hashing.
## Files Modified
- src/auth/auth_service.py (new)
- src/auth/jwt_handler.py (new)
- src/web/routes.py (updated)
- tests/test_auth.py (new)
## Key Decisions
- Chose JWT over session tokens for stateless auth
- Used refresh tokens for better security
- bcrypt with cost factor 12 for password hashing"
```
### Step 2: Capture Code (for each significant file)
Call `captureCode` for auth_service.py:
```
code: [the actual auth service code]
language: python
file_path: src/auth/auth_service.py
description: JWT authentication service with login, register, and token refresh
change_type: new
ai_model: Claude Opus 4
```
Call `captureCode` for jwt_handler.py:
```
code: [the actual JWT handler code]
language: python
file_path: src/auth/jwt_handler.py
description: JWT token creation and validation utilities
change_type: new
ai_model: Claude Opus 4
```
## Why This Matters
The knowledge graph preserves:
- **What** changed (the code itself)
- **Why** it changed (the context and decisions)
- **How** it evolved (version history)
Future AI sessions can then:
- Understand architectural decisions
- Avoid re-making the same mistakes
- Build on existing patterns
- Maintain consistency across the codebase
## Automatic Synthesis
After every 5 captures, the system automatically synthesizes knowledge:
- Creates comprehensive project summary
- Includes architecture, key files, tech stack, priorities, issues
- Retrieved automatically by `getProjectWorldModel`相关插件
Nex↓ 2
为 AI agent 提供组织级上下文与记忆,通过 47 个 MCP 工具将邮件、CRM、Slack、会议及 100+ 工具汇入统一知识图谱。CoreMem↓ 6
直接在 Cursor 中加载、搜索并更新你的 CoreMem 记忆,相关上下文自动载入,让每次会话都从已知信息开始。AIC↓ 5
本地优先的 MCP server,透明地位于 AI 编辑器与任意模型之间,分类意图、挑选相关文件并编译聚焦的上下文,无需手动调用。RTFM↓ 1
AI 编码 Agent 开源检索层:15 种格式索引,FTS5 + 语义搜索 + 知识图谱,经 MCP 提供精准上下文。本地、开源、免费。adaptive-recall↓ 0
具备认知评分、知识图谱和自我改进 ML 的自适应记忆系统。Constellation↓ 0
用 Constellation 为 Cursor 增能,这是一个隐私优先的代码情报平台,助力更深入地理解代码库并共享团队知识。memento↓ 0
为编码助手提供持久、透明且可共享的 AI 记忆,让 AI 跨会话记住你的代码库、约定和团队知识。Agent Skills↓ 329
Tech Leads Club 精选 Agent Skills 库——涵盖交付、安全、架构等实战 playbook。