feat(start): add --hide flag and focus filter subcommand for tool visibility#79
Merged
Conversation
…ibility Adds a tool hidden-list to focus start so users can hide specific tools from their AI client without uninstalling the underlying brick. - focus start --hide=<patterns>: comma-separated glob patterns to hide at launch - ~/.focus/config.json tools.hidden: persistent hidden list; CLI arg overrides - focus filter hide/show/list/clear: CLI subcommand to manage the hidden list - focus_filter MCP tool: agents can manage the hidden list from the AI client - focus_filter is immune to the hidden list (deadlock protection) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Apr 28, 2026
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
--hide=<patterns>flag tofocus startto hide specific tools from the AI client at launch (comma-separated, trailing-*glob supported)~/.focus/config.jsontools.hiddenarray as persistent default; CLI flag overrides configfocus filter hide/show/list/clearCLI subcommand to manage the hidden list from the terminalfocus_filterMCP tool so agents can manage their own toolset visibility from within the AI clientfocus_filteris always visible regardless of the hidden list (prevents deadlock where agent can't re-show tools)Motivation
Previously
focus startexposed all tools or none (FOCUS_BENCH_MODE). Users wanting a curated toolset without uninstalling bricks had no option. This PR adds a blacklist model: everything is exposed by default, and users opt-in to hiding specific tools.Examples
Test plan
matchesPatternunit tests (exact + glob)isHiddenToolunit tests (null list, patterns, focus_filter immunity)--hide=sym_gethides sym_get fromtools/list--hide=focus_*hides focus_* but keepsfocus_filtervisibletools.hiddenused when no CLI flag--hideoverrides config file🤖 Generated with Claude Code