Repository navigation
The plugin's three skill descriptions fit one short line each - #1859
Merged
Merged
Conversation
A client writes the description of every listed skill into the first request of a session, and every later request reads it again, in every install mode and whether or not the skill loads. The three listed skills (loom-code, loom-memory, loom-mentor) took 1,011 bytes of a recorded first request in code mode, where no measured session loaded a skill. Each description now says when to load its skill and nothing its body says: 160, 148 and 157 bytes, 465 for the three against 950. The body of each skill already holds what left: what the skill settles, the unindexed-repository and uncommitted-file cases, the duplicate-check exclusion and the routing to the other skills. The pinned phrases stay: "NOT for LOCAL-FIRST sessions" and "needs no skill". The plugin test caps a listed description at 160 bytes and the three at 480, and asks each for a "Use when" or "Use before" clause. The Codex and served copies are regenerated; the standalone bundles keep their own descriptions. Both plugins are 1.2.120. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
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.
Related: #1848
Related: #1727
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The Claude Code and Codex plugins describe each of their three listed skills (
loom-code,loom-memory,loom-mentor) in one line of at most 160 bytes, so every session's first request carries 485 bytes less of them.Why
code-mode session carries three skill listing lines of 298, 324 and 389 bytes: 1,011 of the 2,212 bytes the plugin added to it. In the paid runs behind that record no session loaded a skill, and each paid for the lines in its first request and in every later request that re-read it. The client lists every skill of an installed plugin in every mode, so a session incodemode reads the memory skill's line too.loom-memory), the cases the body already excludes (unindexed repositories and uncommitted files inloom-code, duplicate checks inloom-memory, code questions inloom-mentor), and a hint trigger that the plugin's hint line already carries by naming/loom-mentor.skill-firedstays at 3 of 3 runs in each of the suite's four cases, because the words each case's prompt meets stay ("write to Loom", "which Loom operation serves ... records").mainloom-codeloom-memoryloom-mentorcodemode, bytes the plugin addsmainThe totals are computed, not measured on this head. The Claude Code page's figure for a first request with prompt pointers on goes from about 2,400 to about 1,900 bytes the same way: its measured 2,363 bytes less the 485 the three lines lose. The recorded request's
skill_listingholds the three lines byte for byte asmain's frontmatter renders them (1,011 bytes);mainis that request without the 64 bytes #1848 removed, and this PR ismainwith the three lines rebuilt from this head's frontmatter.The descriptions, as a session reads them:
loom-code: Use before you grep or open files to answer how Loom-indexed code works, where it is defined, who calls it, what a change touches. NOT for LOCAL-FIRST sessions.loom-memory: Loom memory, not code. Use before you write to Loom, when the user states, decides or corrects a fact to keep, and at the end of a substantial task.loom-mentor: Use when unsure which Loom operation serves documents, issue history, queued work or typed records, or what Loom can do. A hint naming its op needs no skill.Scope and risk
SKILL.mdfiles, their generated Codex copies, the served copies ofloom-codeandloom-memorywith their manifest, the listing budget intests/skills.test.mjs, two documentation pages and both plugin manifests.reference.md, the four skills a user starts by name, the standalone bundles underskills/(their descriptions are separate text with their own 200-character cap), hooks, the server's code.loom-code: "glob", "a stack trace", "NOT for unindexed repositories or your own uncommitted files". The body says to grep uncommitted or unindexed files and how to tell an unindexed repository.loom-memory: "Settles durable versus scratchpad, the shape of a write and how to read Loom's answer" and "NOT for duplicate or bisect checks". The body's "Not this skill" paragraph holds the exclusion.loom-mentor: "decisions or procedures", the hint trigger, "whether they use it well" and "NOT for code questions or the shape of a write". The plugin's hint line names/loom-mentoritself, and the body routes code and write questions to the other skills.Compatibility, rollout and rollback
SKILL.mdfiles.main's 1.2.119. No other open pull request carries that version.Tests
Unit tests were not run locally as a suite; CI runs them.
Plugin eval, before and after (
claude plugin eval <plugin copy> --trust-plugin --no-publish --ablation none, client 2.1.332, mocked server, one tree copied frommainand one from this branch). Onlyskill-firedis read.skill-fired, runs of 3mainpr_review_batch(loom-memory)research_note_revisions(loom-memory)sre_alert_investigation(loom-memory)shared-records-and-tasks(loom-mentor)How the runs differ from the documented command. To keep the spend small, the three
loom-memorycases ran with their turn limit lowered from 40 to 4 in the copies, since the skill loads before the first write: all nine runs on this branch, and two of the three per case onmain(the third ran at full length). Theloom-mentorcase ran unchanged. The eval ran from copies outside the repository, because the client refuses a plugin whose git directory registers many linked worktrees.Three prompts that are not in the repository, two runs each on both trees, three turns, with one grader per skill. The suite has no case for
loom-codeand none that should load nothing.mainloom-codein 2 of 2loom-codein 2 of 2loom-mentorin 2 of 2loom-mentorin 2 of 2loom-mentorin 1 of 2, none in 1loom-mentorin 1 of 2, none in 1No rate fell, so no word was restored and nothing was re-run. Two or three runs a prompt cannot show a small change in rate.
The eval spent 3.67 USD of provider calls in 36 runs.
Pinned cases, no model call:
node --test tests/skills.test.mjs tests/hooks-doc.test.mjs tests/plugin-modes.test.mjs tests/agent-instructions.test.mjsinintegrations/claude-code-plugin: 39 pass. Inskills.test.mjs(6 tests) the listing test now fails over 160 bytes a description or 480 for the three, and when a description has no "Use when" or "Use before" clause; theNOT for LOCAL-FIRST sessionscheck and the mentor's purpose words pass unchanged.test_served_skills_codegen23,test_mcp_served_skills24,test_standalone_skills24,test_codex_plugin16,test_refusals_as_results14 (the mentor frontmatter's "needs no skill" among them),test_loom_code_skill6,test_skill_eval17,test_agent_plugin3,test_plugin_checkout_bytes4,test_public_copy5,test_doc_links281,test_cursor_plugin5,test_agent_instructions220,test_plugin_eval_mocks18,test_published_links3,test_mcp_listing_budget122.Bytes: a script reads the
skill_listingof the recorded request and the frontmatter of each tree; the tables above are its output.Gates:
ruff format --check .,ruff check server extractor sdk/python tests scripts .claude,scripts/gates/function_length_gate.py(at baseline),scripts/gates/check_no_secrets.py,--checkofagent_plugin_sync,standalone_skills,served_skills,docs_reference,settings_referenceandop_reach_census,node --checkand Biome on the changed test, Biome on the three changed JSON files, Prettier on the two changed pages,claude plugin validate integrations/claude-code-plugin --profile directory --strict.scripts/gates/mypy_gate.pyreports onlyserver/llm/vertex_auth.py, which lacks an optional dependency's stubs in this environment.Not run or not seen: the other plugin test files, a session against a real server, Codex, and a first request recorded on this head.
Other findings
--case 'loom-memory/*'and--case 'loom-mentor/*'match no case in client 2.1.332, which filters by case name (--case pr_review_batch).max: 0and nominread as "expected 1..0" in this client and cannot pass, onmainand here alike, as The plugin's skill listing costs less than half the first-request bytes it did #1727 reported.loom-codecase and no case that should load no skill.loom-memoryandloom-codedescriptions (189 and 196 characters) are now longer than the plugin's.mainon this branch are signed off; the squash merge drops them.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. Checked by hand: the byte counts against the recorded request, the result of each of the 36 eval runs, the generated copies against the plugin's frontmatter, and the tests and gates listed above.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump), the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py) and the standalone skill bundles (python3 scripts/codegen/standalone_skills.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code
Note
Low Risk
Copy and test-budget changes only; hooks and skill bodies are unchanged, with evals reported as unchanged skill-fire rates.
Overview
Listed skill frontmatter for
loom-code,loom-memory, andloom-mentoris shortened so each line states only when to load the skill (≤160 bytes, ≤480 for all three). Detail that used to sit in the description stays in eachSKILL.mdbody.The same text is synced to the Codex plugin, server served skills (
manifest.jsondigests refreshed), and docs/README skill tables; measured first-request overhead in code mode is updated (~2,400 → ~1,900 bytes withprompt_pack).Tests in
skills.test.mjsnow enforce the 160/480 byte caps and require aUse when/Use beforeclause. Both plugin manifests bump to 1.2.120.Reviewed by Cursor Bugbot for commit 639a531. Bugbot is set up for automated code reviews on this repo. Configure here.