feat(start): rename filter→config, add pin/alwaysLoad support#80
Closed
samuelds wants to merge 3 commits into
Closed
feat(start): rename filter→config, add pin/alwaysLoad support#80samuelds wants to merge 3 commits into
samuelds wants to merge 3 commits into
Conversation
- Replace `focus filter` with `focus config tools hide/show/pin/unpin/list/clear` - New config.ts with full tools.hidden + tools.alwaysLoad management - Add --pin=<patterns> arg to `focus start` for per-launch alwaysLoad - MCP: rename focus_filter → focus_config with tools.* action namespace - README updated to reflect new command surface Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- isHiddenTool now checks `focus_config` (not `focus_tools`) for immunity - Dispatcher handles `focus_config` (not `focus_tools`) tool calls - Remove src/commands/filter.ts (superseded by config.ts) - Update changeset to reflect final feature scope - Remove dead `runTools` function from focus.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All references to the MCP tool and immunity check now consistently use focus_config — source, tests, and docs aligned. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9d339c1 to
20b129a
Compare
Contributor
Author
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
Follow-up to #79 — renames the tool visibility surface from
filtertoconfigand addsalwaysLoad(--pin) support.focus_filterMCP tool renamed tofocus_configwithtools.*action namespacefocus filterCLI subcommand renamed tofocus config tools--pin=<patterns>flag tofocus startfor per-launch alwaysLoad markingtools.alwaysLoadsupport in~/.focus/config.json(persistent alwaysLoad list)_meta.anthropic/alwaysLoad: trueby default:focus_list,focus_load,focus_search,focus_install,focus_configfilter.ts(replaced byconfig.tsfrom previous commit)API surface
Test plan
isHiddenTool:focus_configalways visible (immune)--hide=focus_*:focus_configstays visible--pin=focus_list:_meta.anthropic/alwaysLoad: trueinjectedtools.alwaysLoadapplied when no CLI args🤖 Generated with Claude Code