Skip to content

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

Merged
R44VC0RP merged 2 commits intodevfrom
update-to-add-learn-script
Jan 27, 2026
Merged

feat: add /learn command to extract session learnings to scoped AGENTS.md files#10717
R44VC0RP merged 2 commits intodevfrom
update-to-add-learn-script

Conversation

@R44VC0RP
Copy link
Collaborator

Summary

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).

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@@ -0,0 +1,38 @@
Analyze this session and extract non-obvious learnings to add to AGENTS.md files.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should dogfood first by putting in

.opencode/commands/learn.md

Also thinking, we may wanna make the wording more about:

  • read over the corrections I brought up to you, how could we tweak the relevant AGENTS.md instructions to prevent this confusion in the future? Use the most minimal possible prompt to ..... etc etc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming I understood the intent of the command?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually use this but it doesnt hurt to dogfood b4 we add it to everyones configs

@R44VC0RP R44VC0RP merged commit b59aec6 into dev Jan 27, 2026
5 checks passed
xenonwellz pushed a commit to xenonwellz/opencode that referenced this pull request Jan 28, 2026
xenonwellz pushed a commit to xenonwellz/opencode that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants