[Feature]: Add a builtin /learn command that captures session lessons
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli, developer-experience
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 315
- Avg merge
- 3h 54m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MiniMax-AI/minimax-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MiniMax-AI/minimax-code#639 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
MiniMax-AI/minimax-code#636 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MiniMax-AI/minimax-code#615 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
MiniMax-AI/minimax-code#556 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MiniMax-AI/minimax-code#507 ·
Maintainers usually reply within 1 day
All issues in MiniMax-AI/minimax-code
Similar issues
-
area:api bug good first issue priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Doezer/Questarr#1486 · 1 comment ·
Maintainers usually reply within 1 day
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Sergey-Bar/Penny#245 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mihazs/lazysh#3377 · 2 comments ·
Maintainers usually reply within 1 day
-
Approve the Cloudflare agent plugin for harness sessionsPossibly taken @joshtsch claimed this today. Openenhancement ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day