Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By shimo4228v0.1.7MITIn 2 marketplaces
Turn global skills, rules, agents and tools on or off per repo with named profiles. Add a one-line .claude/harness-scope.json to a repo; /harness-scope shows what is off
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Claude Code configuration directoryconfigDir
Where your profiles live (<this>/harness-scope/profiles/). Leave empty: it is read off where the plugin is installed. Set it when you load the plugin with --plugin-dir.
stringdefault
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads files; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The Claude Code mod itself: the folder Claude Code installs. It turns your global skills, agents, instruction files (CLAUDE.md and rules) and tools on or off per repo, using named profiles you keep in ~/.claude/harness-scope/profiles/. A repo picks one profile with a one-line .claude/harness-scope.json; the repo's own skills, agents and CLAUDE.md always stay.
You decide what is hidden. Nothing changes in a repo until you put that file there, and the file can only name one of your profiles.
Install it once (Claude Code 2.1.287 or later, where mods are on by default), in a session:
/plugin install harness-scope --marketplace shimo4228/harness-scope
or from a shell: claude plugin install harness-scope --marketplace shimo4228/harness-scope.
⚠ harness-scope: profile "writing" on (Claude Code draws the ⚠ in front of a mod's status line; it is not a warning), and one line on screen says which file selected it. If that line is missing in such a repo, the mod did not load./harness-scope. It lists what is off and kept, and any profile pattern that matched nothing (a typo)./harness-scope names. It lists the skill, agent and tool names this conversation offered, in any repo..claude/harness-scope.json and run /clear (or start a new conversation). To remove the mod itself: claude plugin uninstall harness-scope@harness-scope. The mod writes no files, so there is nothing else to clean up.{ "profile": "writing" } in the repo's .claude/harness-scope.json. The bundled writing profile keeps the repo's own skills, the Explore and general-purpose agents, and turns off LSP, NotebookEdit, EnterWorktree and ExitWorktree.~/.claude/harness-scope/profiles/docs.json as { "skills": { "allow": ["prose-translation", "anthropic-skills:docx"] } } and select docs in the repo. Every other global, plugin and built-in skill drops out of the listing there.{ "instructions": { "deny": ["~/.claude/rules/common/testing.md"] }, "tools": { "deny": ["mcp__github__*"] } } as a profile and select it. That rule file is not loaded, and the matching tools are refused when called.| Hook | What it changes |
|---|---|
classic.SessionStart | Nothing in the session. On /clear and resume it forgets the loaded profile so the next request reads it again. |
session.start | Registers the /harness-scope command. |
command.run | Answers /harness-scope with what the profile turned off, and /harness-scope names with the names offered. Other commands pass through untouched. |
prompt.context | Removes your own instruction files (kind user) that the profile turns off. Project, local, managed and memory files are never removed. |
prompt.attachment | Removes turned-off skills from the skill listing and turned-off tools from the deferred tool list. Reminders from hooks and other plugins pass through untouched. If it cannot tell for sure where each skill's entry starts, it leaves the listing as it is and says so on screen. |
agent.offer | Stops offering agent types the profile turns off. The repo's own agents are always offered. |
tool.describe | Moves turned-off tools behind ToolSearch. |
tool.call | Refuses calls to turned-off tools, and Skill calls to skills it removed from the listing, with the reason. |
With no .claude/harness-scope.json, or with a profile it cannot read, every hook passes everything through unchanged. A profile it cannot read is reported once on screen and in the status line.
The mod reads the profile files in ~/.claude/harness-scope/profiles/, the repo's .claude/harness-scope.json, and Claude Code's session usage (to tell the repo's own skills apart, to find where each skill entry in the listing starts, and for /harness-scope names). It also asks Claude Code for the session's root directory and git repo root (to find the repo file) and whether a screen is attached (to show /harness-scope output there instead of sending it to the model). It reads no environment variables: it finds ~/.claude from where the plugin is installed, or from the optional configDir setting. It writes nothing, sends nothing over the network, starts no processes and calls no model.
Usage, the profile format, measurements and limitations are in the README of the shimo4228/harness-scope repository on GitHub.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub shimo4228/harness-scope --plugin harness-scopePlugins from other owners that cover similar ground