Repository navigation
docs(integrations): bring pi and OpenCode guidance to parity with the Claude skill - #178
Merged
Merged
Conversation
… recent Claude skill fixes Bring pi and opencode integrations into line with three recent PR fixes to the Claude Code nt skill: - Confidence tier guidance (read tier, not raw score which is query-dependent) - Lesson must carry --project or topical tag to prevent duplicate bypassing - Each file preserves its existing voice and terser length budget vs the reference Changes: - SKILL.md (both): Explain confidence tier guidance in recall section + lesson tag requirement - learn.md (both): Add note that lessons need --project or topical tag - recall.md (both): Document that each result shows a confidence tier, not raw score Claude-Session: https://claude.ai/code/session_019h6yc2GsLuaNSGFm6b72Xa
The skill files got this in the parity pass; AGENTS.md is the always-loaded instruction surface and told agents to record a lesson with only kind:'lesson', which is the exact capture path that fragmented a real store into ~150 near-duplicate one-liners.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#175, #176 and #177 fixed documentation drift in the Claude Code integration only. pi and OpenCode carry parallel guidance that was stale in the same ways — and
integrations/*/embed.goembeds these files into the binary, so the stale copies ship to users.Mirrored
nt recallnow prints[strong 3/4]/[medium 2/4]/[weak 1/4]. The raw score is IDF-scaled and therefore query-dependent — measured, a nonsense query scored 3829 against a genuine query's 3503. Any "higher score = more relevant" framing is actively wrong.projector a topicaltag.--lessonapplies only the structurallessontag, which the duplicate check strips before comparing — so a lesson with nothing else has an empty tag set and the guard silently never fires. This is why a real 193-note store fragmented into ~150 near-duplicate one-liners whiledecisions/(which gets a non-structural tag) stayed clean.recall --jsonexposesscore/confidence/tier/coverage;--explain/--explain-notedocumented.index --since/--updated-sincesurfaced as the "what's new since last session" idiom.index --projectis a hard filter;recall --projectis a soft ranking preference — the asymmetry is now stated.NT_WORKSTREAMscopes tasks only, never notes.Note on scope
The parity pass initially updated only the skill files and prompts/commands.
AGENTS.mdwas missed and is the more important surface — it is the always-loaded instruction file, and it told agents to record lessons with onlykind:"lesson", i.e. the exact capture path that caused the fragmentation. Fixed in the second commit for both integrations.Adapted, not copied
pi/OpenCode skill files are ~112 lines against Claude's ~279 and deliberately terser. Each change was written in the destination file's voice and length budget rather than pasted; net growth is +2 lines per file.
Verified
Every claim checked against a real build (
recall --sourcerejects;--jsoncarries the new fields;--explain/--explain-noteexist;index --since 14dand--updated-sinceboth work;NT_WORKSTREAMleaves note output byte-identical).go build ./...andgo test ./...clean, run bare.