[PR #10717] feat: add /learn command to extract session learnings to scoped AGENTS.md files #13542

Closed
opened 2026-02-16 18:18:23 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10717

State: closed
Merged: Yes


Summary

  • Adds /learn built-in slash command
  • Analyzes session context and extracts non-obvious learnings
  • Creates/updates AGENTS.md files at the appropriate directory level (not just root)
  • Leverages the new scoped AGENTS.md feature from #10678

Usage

/learn

The command will review the session for discoveries, determine the right scope for each learning, and update the appropriate AGENTS.md file(s).

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10717 **State:** closed **Merged:** Yes --- ## Summary - Adds `/learn` built-in slash command - Analyzes session context and extracts non-obvious learnings - Creates/updates AGENTS.md files at the appropriate directory level (not just root) - Leverages the new scoped AGENTS.md feature from #10678 ## Usage ``` /learn ``` The command will review the session for discoveries, determine the right scope for each learning, and update the appropriate AGENTS.md file(s).
yindo added the pull-request label 2026-02-16 18:18:23 -05:00
yindo closed this issue 2026-02-16 18:18:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13542