Repository navigation
Let agents run index, and keep skill replies as envelopes - #62
Merged
Merged
Conversation
…a nu error `index` may run at any time: the human-ask wording is gone from SKILL.md, the script's header and its help table. It still takes one path and no flag, and no read command sends it; skill_nu proves both against a fake binary that records argv. The raw-count note now rides only on a successful `cochange` count. A `not_found` or other failure envelope carries the CLI's fields unchanged; `--rust` keeps its note on a failure, since that note says to drop `--rust`. `where` checks that a `show` success holds a symbol record. Without one it answers an error envelope (exit 1) instead of a nu error, and it skips any match or find hit that is not a record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README and the MCP text no longer ask an agent to wait for a person before indexing. The skill list says index may run whenever the index is missing or stale, or to make it current, and that it writes only to Phantom own data directory, never to the repository. The pasteable MCP block, the server instructions and the index_repo description say the same: refresh with index_repo where offered, or phantom-fractal index. A tree outside the roots still needs the server started with --root. 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.
Lets agents keep their own index current, and tidies two skill replies.
What changes
indexneeds no human request. Agents may runindexwhenever the index is missing or stale, or to bring it up to date. It writes only to Phantom's own data directory, never to the repository. The skill, the README and the MCP instructions andindex_repodescription now say so.indexstill takes one path and no flags, and no read command ever sends it.not_foundor error reply. A failed--rustquery keeps its hint, because that hint says what to do next.wherealways returns a reply envelope. If ashowsuccess comes back without a symbol,wherenow returns a one-line error envelope (exit 1), not a raw Nushell error.Checks
The skill tests pass on nu 0.115.1 and 0.116.1, and the CLI tests and clippy pass. Only MCP description and instruction text changed; no reply key or tool schema changed.
🤖 Generated with Claude Code