English | 日本語
harness-scope
Claude Code showed my writing repo 101 skills. 94 didn't belong. This mod hides them with one line.

Quick start · How it works · Profiles · Limitations
harness-scope is a Claude Code mod (a plugin whose code runs inside Claude Code, added in 2.1.287 as Claude Mods) that turns your global skills, agents, instruction files (CLAUDE.md and rules) and tools on or off per repo. You keep named profiles once in ~/.claude. A repo picks one with a one-line file, and Claude sees only what that profile allows. The repo's own skills, agents and CLAUDE.md always stay.
It is for Claude Code users whose harness (the CLAUDE.md, rules, skills and agents under ~/.claude, plus their plugins) follows them into repos where most of it does not belong. I built it to keep my coding setup out of my writing repo.
What changes
Measured on 2026-10-03 in my writing repo with the bundled writing profile (Claude Code 2.1.287, claude -p):
| Without harness-scope | With writing |
|---|
| Skill listing | 101 skills, 26,551 chars | the repo's own 7, 1,623 chars |
| Agent listing | 38 types, 18,988 chars | the repo's own 7 + Explore, general-purpose; 4,134 chars |
Calling an off skill (tdd) | loads | refused, with the reason |
Your numbers depend on how many skills, plugins and MCP servers you have. To check yours, run /context in a repo and look at the skills it lists: if most of them have nothing to do with that repo, this is for you. If you have only a handful, you probably do not need it.
Quick start
You need Claude Code 2.1.287 or later, where mods are on by default. No account or API key.
-
Install the mod once:
claude plugin install harness-scope --marketplace shimo4228/harness-scope
In a session, /plugin then names it on the line under the tabs, for example 1 mod active · harness-scope.
-
In the repo, add .claude/harness-scope.json. The writing profile ships with the mod; to write your own, see Profiles.
{ "profile": "writing" }
-
Start a new conversation in that repo, or run /clear. This line on screen means the profile is on:
harness-scope: profile "writing" (bundled) on, selected by .claude/harness-scope.json — /harness-scope for details
While it is on, the status line under the prompt reads ⚠ harness-scope: profile "writing" on. Claude Code draws the ⚠ in front of a mod's status line; here it is not a warning. If that status line is missing, or says it is passing everything through, nothing is turned off. A mod that did not load cannot print a warning, so the missing status line is the signal.
After the first message, run /harness-scope to see what the profile turned off. From a test repo on Claude Code 2.1.294, with the name lists trimmed:
harness-scope: profile "writing" (bundled), selected by .claude/harness-scope.json
skills (allow): 91 off — adr-writer, archify, authorship-strategy, …
agents (allow): 30 off — adr-reviewer, architect, claude, …
agents kept: Explore, general-purpose
instructions: not in the profile
tools (deny): 4 off — EnterWorktree, ExitWorktree, LSP, NotebookEdit
To turn it off: delete .claude/harness-scope.json, then /clear. harness-scope writes no files.
It also lists patterns in your profile that matched nothing, and the repo's own skills it kept. The list stays on your screen and out of the conversation; only under claude -p, which has no screen, does it come back as the command's output.
To undo it in one repo, delete .claude/harness-scope.json; everywhere, run claude plugin uninstall harness-scope@harness-scope. The mod writes no files, so there is nothing else to clean up. Repos without the file are never changed.
How it works