Loading...
Loading...
Compare original and translation side by side
| MCP Tool | CLI Command | Purpose |
|---|---|---|
| | Check saved contexts and pending commits |
| | Save structured context |
| | Retrieve context by ID |
| | Search contexts by keyword |
| | Browse domain/topic structure |
| | Upload to cloud (private) |
| | Share with team |
| | Post to GitHub PR |
| MCP 工具 | CLI 命令 | 用途 |
|---|---|---|
| | 查看已保存的上下文和待提交记录 |
| | 保存结构化上下文 |
| | 通过ID检索上下文 |
| | 通过关键词搜索上下文 |
| | 浏览领域/主题结构 |
| | 上传至云端(私有) |
| | 与团队共享 |
| | 发布至GitHub PR |
<context><context>
<!-- Required -->
<title>Short title of what was done</title>
<story>
Organize by phases. Write in first-person engineering journal style.
Phase 1 — Setup:
What user asked, what you did, challenges faced, how you resolved them.
Include back-and-forth with the user where it shaped the outcome.
Phase 2 — Implementation:
Technical details, decisions made during coding, problems solved.
</story>
<reasoning>
Why you chose this approach.
<decisions>
- RS256 over HS256 — allows key rotation without redeploying
- 24h token expiry — balances security vs UX
</decisions>
<rejected>
- Session cookies — requires server-side session store
- OAuth2 external provider — overkill for internal service
</rejected>
<tradeoffs>
- No refresh tokens in v1 — simplifies MVP but means 24h hard limit
</tradeoffs>
</reasoning>
<files>
src/auth/middleware.ts — new — Token verification middleware
src/routes/login.ts — modified — Added token signing on login
package.json — modified — Added jsonwebtoken dependency
</files>
<!-- Optional -->
<agent>claude-code (claude-opus-4)</agent>
<tags>auth, jwt, middleware</tags>
<tools>MCP: nia, sequential-thinking</tools>
<verification>All 14 tests passing. Build successful.</verification>
<risks>No rate limiting on login endpoint yet.</risks>
</context><context><context>
<!-- Required -->
<title>Short title of what was done</title>
<story>
Organize by phases. Write in first-person engineering journal style.
Phase 1 — Setup:
What user asked, what you did, challenges faced, how you resolved them.
Include back-and-forth with the user where it shaped the outcome.
Phase 2 — Implementation:
Technical details, decisions made during coding, problems solved.
</story>
<reasoning>
Why you chose this approach.
<decisions>
- RS256 over HS256 — allows key rotation without redeploying
- 24h token expiry — balances security vs UX
</decisions>
<rejected>
- Session cookies — requires server-side session store
- OAuth2 external provider — overkill for internal service
</rejected>
<tradeoffs>
- No refresh tokens in v1 — simplifies MVP but means 24h hard limit
</tradeoffs>
</reasoning>
<files>
src/auth/middleware.ts — new — Token verification middleware
src/routes/login.ts — modified — Added token signing on login
package.json — modified — Added jsonwebtoken dependency
</files>
<!-- Optional -->
<agent>claude-code (claude-opus-4)</agent>
<tags>auth, jwt, middleware</tags>
<tools>MCP: nia, sequential-thinking</tools>
<verification>All 14 tests passing. Build successful.</verification>
<risks>No rate limiting on login endpoint yet.</risks>
</context>| Tag | Required | Notes |
|---|---|---|
| Yes | Short title of the work done |
| Yes | Phase-organized engineering journal. First-person, chronological. |
| Yes | Why this approach. Nest |
| Yes | One per line. Flexible format: |
| Optional | Agent name and model |
| Optional | Comma-separated keywords for discovery |
| Optional | MCPs, CLI tools, resources used |
| Optional | Test results, build status |
| Optional | Open questions, follow-up items |
| 标签 | 是否必填 | 说明 |
|---|---|---|
| 是 | 工作内容的简短标题 |
| 是 | 按阶段组织的工程日志,采用第一人称、按时间顺序撰写 |
| 是 | 选择此方案的原因。需在内部嵌套 |
| 是 | 每行一个文件。格式灵活: |
| 可选 | Agent名称及模型 |
| 可选 | 用于检索的逗号分隔关键词 |
| 可选 | 使用的MCP、CLI工具及资源 |
| 可选 | 测试结果、构建状态 |
| 可选 | 待解决问题、后续跟进事项 |
gitwhy_statusgit why log<context>gitwhy_save(markdown="<context>...</context>")git why save --file context.mdecho '<context>...</context>' | git why savegitwhy_get(id="ctx_a1b2c3d4")git why get ctx_a1b2c3d4gitwhy_search(query="authentication")git why search "auth"gitwhy_list()git why treegitwhy_syncgit why pushgitwhy_publish(ids=...)git why push --sharegitwhy_post_prgit why post-prgitwhy_statusgit why log<context>gitwhy_save(markdown="<context>...</context>")git why save --file context.mdecho '<context>...</context>' | git why savegitwhy_get(id="ctx_a1b2c3d4")git why get ctx_a1b2c3d4gitwhy_search(query="authentication")git why search "auth"gitwhy_list()git why treegitwhy_syncgit why pushgitwhy_publish(ids=...)git why push --sharegitwhy_post_prgit why post-pr