Repository navigation
Add a read-only Sprite Inspector pane as a Claude Code mod - #2
Merged
Merged
Conversation
/sprites-inspector opens a pane in the terminal and the desktop Code tab that browses Sprites, their services, checkpoints, and recent logs, and attaches a selected Sprite (with its sprite_id) to the conversation. It calls the same read-only MCP tools as the Inspector the hosted server serves to MCP App hosts, over the plugin's own connection. The mod lists again when opened and when the pane regains focus, never polls, and keeps the listing's status over get_sprite_info's, which can lag the live runtime state. CI moves to Claude Code 2.1.287, the first release with mods generally available, and runs the mod's tests; older clients still load the rest of the plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A long checkpoint comment pushed its date past the pane's edge. The date now keeps its width, the comment truncates in the space left, and the id column fits `Current`. Row cells that grow also shrink below their text, so Sprite and service names truncate the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Summary
Adds
/sprites-inspector, a read-only pane for browsing Sprites from Claude Code, built as a Claude Code mod. It is the Claude Code counterpart of the Sprite Inspector that sprites-api serves to MCP App hosts (superfly/sprites-api#1297, used by the Codex plugin), and calls the same read-only tools over the plugin's own MCP connection, so it needs no new credentials or server changes.open_sprite_inspector), with a colored status dot per Sprite.get_sprite_info, which does not wake it).service_list,checkpoint_list) and the last 100 lines of a service's logs (service_logs), only on request, with a warning when that would wake a cold Sprite.sprite_id, so later calls are checked against that exact Sprite. Thespritesskill now explains these notes.claude -p), the command answers with a text listing.Compatibility
modulesandtypesentries (its MCP server registers as before), so older clients just don't get the pane.typesis required: 2.1.287's validator rejects the module's$.statekey without the contract. Older validators reject or warn ontypes, so CI moves from 2.1.224 to 2.1.287 and now also runsclaude plugin test ./plugins/sprites.check_repository.pynow checks.ts/.tsxfiles too, and a unit test asserts the mod is registered with its contract.Known issues
$.mcp.callthrough the auto-mode classifier, which has no request to judge a button press by and refuses it. The README documents allow rules for the five read-only tools. The mods docs say a plugin's call needs no permission prompt, so this looks like a Claude Code issue worth reporting.get_sprite_infocan report a running Sprite as cold while the listing (andsprite list) says running. The pane keeps the listing's status; the server fix is being worked on separately in sprites-api.Test plan
python3 scripts/check_repository.py,python3 -m unittest discover -s tests(14 tests)claude plugin validate ./plugins/sprites --strictandclaude plugin validate . --stricton 2.1.287claude plugin test ./plugins/spriteson 2.1.287: browse, select, runtime, logs, and refocus on terminal and desktop at narrow and wide widths, plus the sign-in messagesprite_id🤖 Generated with Claude Code
Pagination fixes and this description update were generated by OpenAI Codex.