Skip to content

docs(integrations): bring pi and OpenCode guidance to parity with the Claude skill - #178

Merged
navbytes merged 2 commits into
mainfrom
claude/pi-opencode-skill-parity
Jul 29, 2026
Merged

navbytes merged 2 commits into
mainfrom
claude/pi-opencode-skill-parity

Conversation

@navbytes

Copy link
Copy Markdown
Owner

#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.go embeds these files into the binary, so the stale copies ship to users.

Mirrored

  • Read the tier, not the score. nt recall now 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.
  • A lesson must carry a project or a topical tag. --lesson applies only the structural lesson tag, 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 while decisions/ (which gets a non-structural tag) stayed clean.
  • recall --json exposes score/confidence/tier/coverage; --explain/--explain-note documented.
  • index --since/--updated-since surfaced as the "what's new since last session" idiom.
  • index --project is a hard filter; recall --project is a soft ranking preference — the asymmetry is now stated.
  • NT_WORKSTREAM scopes tasks only, never notes.

Note on scope

The parity pass initially updated only the skill files and prompts/commands. AGENTS.md was missed and is the more important surface — it is the always-loaded instruction file, and it told agents to record lessons with only kind:"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 --source rejects; --json carries the new fields; --explain/--explain-note exist; index --since 14d and --updated-since both work; NT_WORKSTREAM leaves note output byte-identical). go build ./... and go test ./... clean, run bare.

navbytes added 2 commits July 29, 2026 10:18
… 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.
@navbytes
navbytes merged commit f606c31 into main Jul 29, 2026
9 checks passed
@navbytes
navbytes deleted the claude/pi-opencode-skill-parity branch July 29, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant