[Feature]: Add a builtin /learn command that captures session lessons
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 48/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start by reading the existing /review command, which the issue identifies as a possible model for sending a hidden transport prompt, then trace how the TUI registers slash commands, exposes help and autocomplete, and handles session availability. Map how workspace and global AGENTS.md files and .agents/skills/ are represented before scoping the implementation. Done means /learn proposes a reviewable diff, writes only after approval, and meets the listed transcript, session, and no-lesson acceptance criteria.
由索引模型根據 Issue 內容生成。
描述
Product or interface
CLI - interactive TUI
Use case and problem
A session often teaches the agent something durable: a correction the user had to make, a mistake that repeated, or a fix that finally worked. That lesson disappears when the session ends. Today the user has to notice it, decide whether it belongs in the project instructions or a Skill, find the right file, and write it by hand. In practice it usually is not written, so the next session repeats the same correction.
The Antigravity CLI ships a builtin /learn command for exactly this, and it is one of the most useful parts of its workflow.
Desired behavior
Add a builtin /learn [instruction] slash command to the interactive TUI.
/learnreflects on the current session and finds the lesson behind recent corrections, failed attempts, or repeated mistakes.- It classifies the lesson as a short project rule or a reusable multi-step Skill.
- It inspects the workspace
AGENTS.md, the globalAGENTS.mdin the data directory, and existing Skills, and prefers updating an existing file over adding a duplicate. - It proposes the target file, scope, rationale, and exact diff, then waits for approval before writing anything.
- An optional instruction narrows or supplies the lesson, for example
/learn always run vitest with --pool=forks. - It requires an active session and is unavailable in temporary side conversations.
Acceptance criteria:
/learnappears in help and slash autocomplete once a session exists, and explains why it is unavailable otherwise.- The transcript shows
/learn ..., while the agent receives the learning instruction. - The agent proposes before writing and applies only approved edits, even in a permission mode that would allow writes.
- With no reusable lesson, it says so instead of inventing one.
- Rules land in
AGENTS.md(or the workspace instruction file that takes precedence); multi-step procedures land in.agents/skills/<name>/SKILL.mdwithnameanddescriptionfrontmatter.
Platform
Multiple platforms
Alternatives and additional context
- A normal prompt can do this today, but it is not discoverable and does not consistently produce a reviewable proposal.
- The existing
/reviewcommand already sends a hidden transport prompt, so/learncould reuse that mechanism without new runtime surface. - ACP clients and headless
execdo not expand TUI slash commands; supporting them would be separate work. - Related:
/skillslists installed Skills but does not create them.
- 主要語言
- TypeScript
- 星號
- 2.3k
- 分支
- 315
- 平均合併
- 3 小時 54 分鐘
- 30 天內合併 PR
- 9
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MiniMax-AI/minimax-code 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
MiniMax-AI/minimax-code#639 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
MiniMax-AI/minimax-code#636 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
MiniMax-AI/minimax-code#615 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
MiniMax-AI/minimax-code#556 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
MiniMax-AI/minimax-code#507 ·
維護者通常 1 天內回覆
查看 MiniMax-AI/minimax-code 的全部 Issue
相似的 Issue
-
Media browser returns "Not found" for repositories using the SHA-256 object format可能已有人在做 @adamchodera 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 66/100
janhesters/remixcn#318 ·
維護者通常 1 天內回覆
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launches未關閉
難度 2/5 1-3 小時 新手友好度 84/100
danielmiessler/LifeOS#3150 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
Make the "%" unit spacing the same in the web and in A10可能已有人在做 @kragent66-glitch 今天認領。 未關閉bug good first issue
難度 2/5 1-3 小時 新手友好度 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 則留言 ·