Repository navigation
Ship a Claude Code plugin that lists NodeSpace's skills and watches the item being worked on; slim the static skill; remove the tool shims - #3636
Conversation
Pragmatic Code Review: PR #3636Review Type: Initial Review (no prior reviews or comments on the PR) SummaryA clear net improvement. The plugin is thin glue around CLI calls as ADR-093 §5 asks, every outside call goes through No blockers. The findings are concentrated in the item watch ( Verified locally:
Not run: the Rust suite, Requirements CheckPlugin
Static skill
Removal
General
Code Review Findings🟡 Important1. Any NodeSpace write re-baselines the watched item without comparing first, so an outside change can be absorbed and never reported After any Failure scenario: the agent is working task T. A person cancels T in the app. Within the same interval the agent runs The PR body mentions absorption "in the same interval as the session's own write", but the window is every write to any node, and the write need not concern the item. Recommendation: when a Bash command holds a non-read Principle: correctness of the guarded invariant. The refusal is the feature's reason to exist; a routine command should not disarm it. 2. A write the shell-line reader does not recognise is reported as someone else's change, and stops the session
Failure scenario: the agent runs The comment on Recommendation: a cheap fallback closes most of it. If the Bash command text contains the word Principle: fail safe. A heuristic that guards a hard stop should err toward not stopping. 3. While refused, the tools a session uses to reach the user are refused too A block denies every Failure scenario: a desktop or SDK-hosted session hits a block. The model calls Recommendation: let the user-facing tools through while blocked (a short named list: Principle: the refusal exists so the agent stops and reports. It should not remove the means of reporting. 4. The item's title is printed outside the graph marker, in the plugin's own voice Skill titles, descriptions, field changes and part labels are all inside The refusal is the most authoritative thing this plugin says, so it is the one place graph text should not sit unmarked. Under ADR-052 the exposure is local, so this is not a blocker. Recommendation: name the item by id in the plugin's sentence and put the title inside the marker with the changes. Extend the "cannot close the marker" test to cover a hostile item title. Principle: the PR's own rule, applied everywhere: graph text is always inside the marker (ADR-093 §7). 🟢 Suggestions5. Two tool calls dispatched together both run the check 6. 7. A deleted item is indistinguishable from a failed check 8. A failed skill-list read at session start is shown as an empty graph 9. 10. A watched item is replaced by any 11. Nothing in the gate reads 12. Published plugin files are rewritten but never pruned Nitpicks
What is done well
RecommendationAPPROVE No blocker, and the change is a definite improvement over a static skill and four files that did nothing. Findings 1 to 3 affect the one part of the plugin that can stop a session or fail to, and are small, local changes to |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressed (commit bead04b)Addressed
Skipped
Plugin tests: 32 passed. Skill package: 138 passed. Scripts: passed. Re-review: needed. The item watch's control flow changed. |
Pragmatic Code Review: PR #3636Review Type: Re-Review (scope: Previous Review Summary
Verified locally on
Not run: Previous findings, judged from the code
Code Review Findings🟡 Important1. A line with a parsed read and an unparsed write is treated as a read
The reader only sees a
Failure scenario: the agent runs the first line, and it sets the watched item's status. The new unit test covers lines with only unparsed mentions and lines with only parsed ones, not a mix. Recommendation: count the mentions and compare. A line may write when any parsed invocation is not a read, or when the pattern (with the Principle: fail safe. The function's own comment says erring toward "may write" costs one read and erring the other way stops the session; the mixed line errs the costly way. 🟢 Suggestions2. An answer through The block is cleared only on Recommendation: clear 3. The passthrough tool path has no test
4. Nit: the marker name is now written twice
What is done well
RecommendationAPPROVE The commit addresses what it says it does, and the skips are sound. Finding 1 is a small, local change to |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Re-review addressed (commit e680817)All four items from the re-review are addressed; none skipped.
Plugin tests: 33 passed, Re-review: not needed. The changes are small, local to |
…the tool shims (#3545) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…le, mark the title as graph data (#3545) - Compare the watched item before any command that may write, so an unrelated write cannot absorb someone else's change - Treat a nodespace command the shell reader cannot parse, and the nodespace passthrough tool, as a possible write of the session's own - Let the user-facing tools through while tool calls are refused - Put the item's title inside the graph marker - Claim the interval check in one write; keep the session on a reload - Say when the skill list could not be read; a flagged or empty listing is not a fetch - Parse the hooks module in the scripts tests Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…; a tool answer lifts the stop (#3545) - A line with a read this module parsed and a write it did not (after xargs, do or then) may write - An answer through a user-facing tool clears the refusal, as a prompt does - Test the nodespace passthrough tool path - One definition of the graph marker Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
e680817 to
86b48cd
Compare
Closes #3545
What this does
A Claude Code session now has NodeSpace in it from the start, instead of only when the model decides to open the static skill.
packages/skill/plugins/claude-code/): a manifest, a hooks file, one hooks module, and the type contract for the session state the module keeps. The installer copies those four files into<claude config dir>/skills/nodespace/besideSKILL.md, where Claude Code loads them with no flag. The published plugin carries the same files at the public repo's root.nodespace --version,nodespace diagnostics, and the query that finds the project by the checkout's remote in its HTTPS form.tsconfig.shims.json, and every staging, packaging and publishing reference to them.AgentConfig.shimsis gone; an agent now has an optionalpluginentry. A reinstall removes a previously installed shim through the install record.The two findings the issue asks for
Measured in a live headless session (Claude Code 2.1.289) against a stub
nodespace:nodespaceskill (asnodespace:nodespacewhen the folder is loaded with--plugin-dir); the graph's skills are only in the section.Also confirmed: with the installed folder as a user-level skills folder, Claude Code loaded the plugin with no flag, and
claude plugin validateon the installed folder reports no refusals.Decisions worth a look
version. A different node version refuses tool calls; anything else is a note.--versioncheck on writes still catches a conflicting write..nodespace-install.json) are read asSKILL.mdplus the fixed reference list. A shim from an install that old is not removed; any install with a record is.Not in this PR
repository.urlexactly (no.gitsuffix, HTTPS form). A project stored with another spelling does not match.Testing
bun run --cwd packages/skill test:plugin:claude plugin validateplus 24 plugin tests, run inside Claude Code's engine. These are outside the merge gate; the package README says how to run them.bun run --cwd packages/skill test: 138 passed (installer, including the plugin install, whole-or-nothing, and shim removal through the record).bun test scripts/publish-skill-repo.test.ts scripts/build-skill.test.ts: passed.bun run test:changed: see the comment below for the result.Docs:
architecture/agent-session.md,architecture/prompt-skill-system.mdand the passages that still described the shims are updated in nodespace-docs.🤖 Generated with Claude Code