Skip to content

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

Merged
R44VC0RP merged 2 commits into
devfrom
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 into
devfrom
update-to-add-learn-script

Conversation

@R44VC0RP

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Colin4k1024 pushed a commit to Colin4k1024/opencode that referenced this pull request Feb 10, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request Jun 14, 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