Claude Harness

See what your harness does, then change it.
Claude Harness is a first-class tool for harness engineering, a VS Code editor for your whole Claude Code harness: memory, rules, agents, skills, commands, output styles, workflows, hooks, MCP servers and plugins, globally and per repository. It reads the session transcripts Claude Code already writes, so every part of the harness shows what it did and what it cost.
Replay a session to any checkpoint, see what each agent and skill cost, build plugins from your skills with Claude, and open every view as an @harness mention.
Best of all: once you have visualized and configured a scenario, you continue the task in a Claude terminal that opens with that context already filled in.

Watch the film as MP4
The Claude actions in the film run in your terminal on your own Claude plan. Claude Harness charges nothing on top.
Quick start
Install Claude Harness: it opens on the ~/.claude you already have.
- Open the Extensions view (Ctrl+Shift+X), search for Claude Harness, and click Install. You can also run
code --install-extension integrations-at.claude-harness in a terminal.
- Click Claude Harness in the status bar, or its icon in the activity bar. The main window opens, and the side bar keeps the view you had open.
- Pick an item in the sidebar to view and edit it. The global harness is read from
~/.claude.
Note: Claude Harness needs Claude Code and VS Code 1.100 or newer. The global MCP server list comes from claude mcp list, so the claude command must be on your PATH.
Why Claude Harness
A harness grows one rule, hook and skill at a time, and much of it loads into every session whether it helps or not. A few months in, nobody can say which parts still run, which ones only cost context, and why a session went the way it did.
Claude Harness reads the transcripts Claude Code already writes and sets them beside the files that shape them: you see what each part did, then change it in the same place. Nothing joins your sessions, no hook, proxy or server.
| Feature |
What it does |
| See how a session ran |
Know what a session cost, see how its agents ran in six views (plus a team view), and restore files to any checkpoint |
| Agent teams view |
The roster, task list and messages of a session's teammates, in a Team view |
| Remote Control |
Continue a session in a terminal with Remote Control on, after one confirm |
| Usage history and plan advisor |
Cost per day and per month at API list prices, set against the Pro, Max and Ultra plans |
| Find what never runs |
See which agents, skills, hooks and rules ran, fired or loaded in your sessions, and which never did |
| Keep the harness lean |
Find oversized skills, retire duplicate copies and repoint dead lines in CLAUDE.md |
| Harness security check |
Findings on hooks, MCP secrets, permission rules and unknown skill sources, with fixes after one confirm |
| Edit everything in one place |
Change all twelve kinds, globally or per repository, in one tree with typed fields |
| Sync instructions across tools |
Keeps CLAUDE.md in step with the AGENTS.md, Cursor, Copilot, Codex and Gemini instruction files |
| Worktrees |
Every git worktree with its branch, changes, sessions and a Stale tag, with Remove and Prune |
| Plugin Hunter |
Tell Claude which skills and agents you have, and get a plugin proposed, created and installed |
| Automation Hunter |
Turn a browser or desktop procedure you repeat, or one found in your own sessions, into a kept one, prototyped on the desktop and optimized in code |
| Drawings |
See how any element connects to a session and in what order it runs |
| Continue Cowork work in Code |
Pick up a desktop chat or Cowork session in a Claude terminal in your repo |
| Keep plugins current |
See which plugins have a newer version and update them all after one confirm |
| Skills catalog |
Searches the public skills on skills.sh and installs one after a confirm card |
| Permissions editor |
Edits allow, ask and deny rules and the default mode per scope, and shows what asked for permission |
| Status line builder |
Picks the fields and their order for Claude Code's status line, with a live preview |
| Claude Code routines |
Lists your cloud routines and repo schedules, and switches, renames or reschedules them after a confirm |
| Command line and @harness mentions |
Run harness commands and .harness scripts, or hand a view to Claude as an @harness mention |
See how a session ran
The session page reads Claude Code's session and subagent JSONL transcripts. Cost comes from each message's input, cache-write, cache-read and output tokens at API list prices. Under the cost and the KPIs, How the work ran has six views behind one toggle bar, and a seventh, Team, when the session had teammates; click a lane or a node for that agent's brief, report, tools and tokens.

| View |
Shows |
| Timeline |
When each agent ran, beside your prompts and the events of your hooks |
| Delegation map |
Who started which agent, with its tokens; a red stop sign marks a tool call a hook or mod denied |
| Decisions |
What happened after each prompt: delegated, worked itself, followed up an agent, or answered |
| Concurrency |
How many agents ran at the same time, with the peak marked |
| Token flow |
The tokens from the session through the main thread and each agent type to the outcome |
| Scatter |
Each agent by run time and tokens, so the slow or costly ones stand out |

- Checkpoints: a ring round a prompt in the Timeline marks one. Click it for the files changed since, each in a side-by-side diff. Restore files to here puts them back after a card that names every file; Rewind the conversation continues the session in a terminal, where Claude's own rewind takes it back to the prompt.
- Findings: failed or silent agents, stopped runs, general-purpose runs where one of your agents fits, and failing hooks, each with its token cost and what to do.
- Cost per agent type and model: the Models tab of a repo page sums the last 7 days of each account by model and by agent type, with the share of the weekly limit on a plan.
Agent teams view
When a session had teammates, How the work ran gets a seventh view, Team, that shows the team as it ran.
- Roster: each teammate with its name, agent type, color, model, tokens and run time.
- Tasks: the team's task list, with the status and owner of each task.
- Messages: the messages between teammates and the lead, in the order they were sent.
See Agent teams.
Remote Control
A Remote button in the Claude group of the session page continues that session in a terminal with Remote Control turned on, after a confirm card.
- Sessions that ran with Remote Control carry a Remote tag in the session lists, so you can find them.
See Remote Control.
Usage history and plan advisor
See what your Claude usage cost at API list prices, per day and per month, and which plan fits each month.
- Repository: a History tab beside Models on a repository page, over 30 days, 90 days or 12 months.
- All repositories: a Usage history page from the sidebar head, which adds the cost per project.
- Plan advisor: each month set against the Pro, Max and Ultra plan prices, with the plan that fits it.
See Usage history.
Find what never runs
| Tab |
On |
Shows |
| Used in |
Agents, skills, commands, plugins, output styles |
The sessions that used it; presets list what never ran |
| Fired in |
Hooks, MCP tools |
Runs, exit codes and durations; call counts per tool |
| Loaded in |
Rules, CLAUDE.md |
The sessions that loaded it, including path-scoped rules that never matched |

Keep the harness lean
- Skill size and context cost: a Size card flags descriptions over 200 tokens or 1024 characters and SKILL.md files over 500 lines, ranked by the context they cost; each finding has its own Resolve.
- Consolidate duplicates: a copy identical to Global is retired with a backup; one that differs opens a side-by-side compare, or Merge.
- CLAUDE.md lenses: dead pointers, such as an agent that no longer exists, with a quick fix to repoint or drop the line.
- Effective harness: the memory, rules, plugins and hooks a session in a repo loads, with the rules that were not loaded and the hooks that fail.
Harness security check
A Security button on the overview opens a page of findings about your harness, each with a severity tag, its file and line, and why it matters.
- What it finds: hooks that download and run code or read secrets, MCP configs with literal secrets, permission rules that allow every command or skip prompts, and skills or plugins from unknown sources or with scripts that fetch remote code.
- Secrets are masked on the page.
- Resolve fixes the mechanical findings, such as a rule, a mode key, or a literal secret in a repo
.mcp.json turned into a variable, after a confirm card.
- Chips filter the list by severity and by check.
See Security check.
Edit everything in one place
Global ~/.claude, each repository's .claude/ and plugin-shipped items (read-only) sit in one tree, all twelve kinds, with frontmatter as typed fields and a tool picker. The tree collapses to a rail of icons with their counts and expands again from any of them (Alt+Shift+B). The GitHub Repo overview puts every repository in one table, with a search.

A Sync button on the Memory page, globally or per repository, keeps your CLAUDE.md in step with the instruction files of other tools. CLAUDE.md is the source.
- Targets: one row per file, such as the repository's AGENTS.md, Cursor rules and Copilot instructions, or the global AGENTS.md, Codex, Gemini and Copilot files. The AGENTS.md row says whether Claude Code loads it.
- State: each row shows whether it is in sync, differs or is missing, and Compare opens a side-by-side diff.
- Sync writes the ticked targets after a confirm card and backs up each file it overwrites.
See Sync instructions.
Worktrees
A Worktrees tab on a repository page lists every git worktree of the repository.
- Each row shows the branch, the changes, how far it is ahead and behind, and the Claude sessions that ran in it.
- Stale tag: git reports the worktree as prunable, its upstream is gone, or no session ran in it for 7, 30 or 90 days.
- Remove deletes a worktree without force, so git refuses one with uncommitted changes. Prune clears the records of worktrees whose folders are gone. Each runs after a confirm card.
See Worktrees.
Build with Claude
Plugin Hunter: talk to Claude about the skills and agents you have, and it proposes a plugin. Open it with the telescope button in the Claude group of the Plugins page or the overview. Create writes the plugin into a marketplace folder of yours and installs it. Each copy you switch to Replace is then backed up and removed, and the plugin's version takes its place; a copy left off stays untouched. The History tab keeps every card with its chat, and New hunt starts a fresh one.

Automation Hunter: the browser and desktop procedures you repeat, such as DNS records, admin center settings or a publisher setup, prototyped on the desktop and then optimized in code. Pick a kept procedure, describe a new one, or ask for the ones in your own Cowork chats and Claude Code sessions of a period, such as "last week"; Claude proposes the steps and how to keep them (API script, command line, guided run or a tool), and you mark the manual ones. On the procedure card, Steps lists them, each opening to its link, the labels it clicks, its lessons and why it stays manual, with a person icon on the steps that need you; Simple draws them as a diagram by site, and Draw replaces that with Claude's drawing. Hovering the name lists what the procedure does. Create writes it into your browser-automations skill. Open it next to Plugin Hunter in the Claude group of the overview.

Drawings: one press of Draw draws any skill, agent, command, workflow, hook, MCP server, plugin, marketplace or automation procedure twice: the Harness view, how its parts connect to a session, and the Process view, what runs in which order, drawn for its kind (for a marketplace, how its plugins hand work to each other). A toggle switches between them.

Claude actions in your terminal: Edit, Slim, Try it, Analyze, Continue and Merge, in the Claude group of each page, start your claude CLI in a VS Code terminal with the prompt and the measured context filled in, after a confirm card. The terminals open in the editor area and run claudeHarness.terminal.command; Ctrl+F1 opens a new one. The runs count against your Claude plan, Claude Harness adds no charge, and the status bar shows your 5-hour and weekly limits live. See Settings.
Continue Cowork work in Code
Work that started in Cowork, in the Claude desktop app or on claude.ai, continues in Claude Code through Handover: in the Cowork region of the sidebar, or with Cowork Handover in the Claude group of the overview.
- Inbox: the desktop app's chats on this PC, your Cowork sessions on claude.ai, the app files of the last two weeks in Downloads, or a pasted claude.ai artifact link.
- Handover card: Draft proposes the task in one sentence, the rules the chat set, what exists and what is still to write. You tick the files that come along (a missing one is flagged, with Locate) and pick the target repository and folder.
- Continue in terminal: a confirm card lists every file and the first prompt. The files and a
CONTEXT.md land in handover/<chat>/ of the repository, and Claude Code opens there with that prompt.
The chats of claude.ai itself are not on your PC and the Claude Code sign-in cannot read them, and an artifact link's content needs a browser sign-in: paste its text into the card's snapshot.

Keep plugins current
The Marketplaces section of the sidebar lists every marketplace with its plugin count and how many plugins have a newer version than the one installed. A marketplace page shows its source, its plugins with the installed and the latest version, and its drawings. Sync all updates every plugin that is ahead after one confirm card.

Skills catalog
A Browse button on the Skills page searches the public skills on skills.sh. The network is used only when you search.
- Results list each skill's name, source and installs, and whether it is installed. The All, Not installed and Installed chips narrow the list.
- Install goes through the existing Add from skills.sh confirm card.
See Skills catalog.
Permissions editor
Settings in the sidebar, then Permissions, edits the permission rules of Claude Code.
- Rules: the User, Project and Local scopes, and the Managed scope when present, which is read-only. Each scope has the default mode as chips (default, acceptEdits, plan, auto, dontAsk, bypassPermissions), its allow, ask and deny rules, and its additional directories. Each change runs after a confirm card and keeps the other settings.
- Prompted in: the tools that asked for permission in your sessions over 24 hours, 7 days, 30 days or all time, counted per rule. Allow adds the rule to a scope you pick.
See Permissions.
Status line builder
Settings in the sidebar, then Status line, builds the status line that Claude Code shows at the bottom of its window.
- Fields: switch on the fields you want and order them: model, context used, 5-hour limit, weekly limit, session cost, git branch and folder.
- Preview: a live preview shows the line as you change it.
- Save writes the status line for User or Project after a confirm card. Remove puts back what was there before.
See Status line.
Claude Code routines
The Routines button in the sidebar head opens a page of your scheduled work.
- Lists: your cloud routines, not the Cowork ones, and the scheduled tasks of each repository, with All, Cloud and Repos chips. Each row shows the name, schedule, repository, last run, source and state.
- Changes: a cloud routine can be switched on or off and get a new name or schedule. A repo task gets a new prompt or schedule. Each change runs after a confirm card.
- Without a claude.ai sign-in, the repo tasks still list.
See Routines.
Command line and @harness mentions
Run Claude Harness: Install 'harness' Command Line once to put harness on your PATH, with Tab completion in PowerShell and Git Bash. In Claude Code, with the harness plugin installed, type @h in a prompt for a view such as @harness:usage: when you send the prompt, the view runs and Claude reads its output as context.
A second example is harness sessions open --session <id> with its mention @harness:session-analyze: typed in a Claude Code prompt, it opens the current session on the panel's session page.
| Area |
Commands |
| Read the harness |
inventory, consolidate, agents list, agents route, marketplaces, repos, check, sync, sources |
| Sessions |
usage, delegation, sessions, sessions open, mods, time, lessons |
| Plugins |
hunt catalog, hunt plan, hunt create, hunt add, plugins rename, marketplaces rename, sync plugin |
| Automations |
browser-hunt procedures, browser-hunt sessions, browser-hunt plan, browser-hunt create |
| Cowork |
cowork chats, cowork chat, cowork artifacts, cowork handover sources, cowork handover plan, cowork handover create |
| Skills and copies |
consolidate retire, skills move, split, put, remove, rename, repoint, fix-paths, sync apply |
| Build a harness |
generate, add, new, update, validate, run |
| Media |
media doctor |
Add --dry-run to a command that writes to print each action instead, and --json for one object whose last key is applied. Exit codes: 0 done, 1 error or problems found, 2 bad arguments. See Command line and Type-ahead.
A .harness script lists build commands, one per line, in a file you keep in the repo and review. harness validate checks it and writes nothing, and harness run applies it step by step:
# poems.harness: a poem writer and a poem reviewer
repo D:/demo/poems
generate agent poem-writer --model sonnet --tools Read,Write,Edit --description "Writes a short poem on a given theme into poems/"
generate agent poem-reviewer --model haiku --tools Read,Grep --description "Reviews a poem for meter, rhyme and imagery"
generate rule poem-style --paths poems/** --from templates/rules/poem-style.md
generate command review-poem --description "Review the newest poem" --from templates/commands/review-poem.md
See Harness scripts for the format.
Install the harness plugin
The harness plugin adds @harness: mentions to the Claude prompt box, with type-ahead, for the views that only read. It needs Claude Harness 0.9.0 or later, and its version always matches the extension's. It ships from this repository as the claude-harness marketplace.
In Claude Code:
/plugin marketplace add alexander-kastil/claude-harness
/plugin install harness@claude-harness
/reload-plugins
Or from a shell:
claude plugin marketplace add alexander-kastil/claude-harness
claude plugin install harness@claude-harness
Features
| Feature |
Summary |
| Main window |
Browses the global harness and each repository in one window, with search and an overview |
| Harness kinds |
The twelve kinds of harness items, where they are stored and which ones you can change |
| Editing |
Edits frontmatter and instructions, saves or reverts, and creates, renames, duplicates or deletes items |
| Repositories |
Shows the harness of each repo, and adds or removes repos |
| Worktrees |
Lists each git worktree of a repo with its branch, changes, sessions and Stale tag, with Remove and Prune |
| Sessions |
Lists the Claude Code sessions of each repo, with a search and a session page for cost, agents, delegation, findings and the events of mods, plus where each element was used and the last 7 days of cost |
| Agent teams |
The Team view of a session with teammates: roster, task list and messages in order |
| Remote Control |
Continues a session in a terminal with Remote Control on, and tags such sessions in the session lists |
| Usage history |
Cost per day and per month over 30 days, 90 days or 12 months, set against the Pro, Max and Ultra plans |
| CLAUDE.md lenses |
Flags dead pointers in CLAUDE.md and rules files, with quick fixes |
| Effective harness |
Lists the memory, rules, plugins and hooks that a session in a repo loads |
| Duplicates |
Finds copies of an item across scopes and plugins, compares them, and retires repo copies |
| Security check |
Findings on hooks, MCP secrets, permission rules and unknown skill sources, with Resolve for the mechanical fixes |
| Share and Import |
Packs an agent, skill, command, rule, plugin, MCP server or hook into a file in your Downloads folder, and imports one that someone shared, with a backup of what it replaces |
| Sync instructions |
Compares and syncs CLAUDE.md with the AGENTS.md, Cursor, Copilot, Codex and Gemini instruction files, globally and per repository, backing up each file it overwrites |
| Sync |
Brings a repo copy in step with Global, a plugin with its marketplace, a skill with its source, and an MCP server with its other copies |
| Bulk-edit guard |
Leaves out repos with uncommitted harness files, busy sessions or stale worktree copies before a bulk change |
| GitHub Repo overview |
One table of every repo, with a search by name or path, its lines, plugins and copies |
| Rules editor |
Shows which files a rule's paths match |
| Marketplace health |
Lists marketplaces and plugins, flags sources ahead of the installed copy, syncs every plugin that is ahead after one card, renames directory marketplaces, and gives each marketplace its own page, listed under Marketplaces in the sidebar |
| Configure Tools |
Picks the tools an agent, skill or command may use |
| MCP servers |
Lists MCP servers with their source and status, sorts them, shows their tools, and adds, copies or deletes them |
| MCP switches |
Turns an MCP server on or off for one repo or in every folder |
| Plugins |
Enables, disables, installs and uninstalls plugins, marks mods, builds a new plugin from your skills and agents with Plugin Hunter, and draws a plugin as a Harness and a Process view |
| Skills catalog |
Searches the public skills on skills.sh, shows which are installed, and installs one through the Add from skills.sh card |
| Skill sources |
Adds skills from skills.sh or GitHub, checks them for a newer version, updates them in place, and moves a global skill into a repo |
| Permissions |
Edits allow, ask and deny rules, the default mode and additional directories per scope, and lists the tools that asked for permission |
| Status line |
Builds the Claude Code status line from fields you switch on and order, with a live preview and a Save that writes it for User or Project |
| Routines |
Lists your cloud routines and each repo's scheduled tasks, and changes them after a confirm card |
| Settings |
Sets the global harness folder, the repo lists, where Claude terminals open and which command starts them, the Claude usage item in the status bar and the list lengths, and edits the settings files |
| Commands |
Every Claude Harness command, what it does and where to find it |
| Command line |
Runs inventory, consolidate, hunt, agents, usage, delegation and media checks from a terminal, with --json for scripts, builds a harness with generate, add, new and update, and hands the views to Claude as @harness: mentions |
| Harness scripts |
Runs a .harness file of build lines that adds agents, rules, skills, commands, hooks, MCP servers and plugins to a repo, checked by validate before run applies it |
| Type-ahead |
Offers the next word for @harness: mentions in the Claude Code prompt, for harness commands in a terminal, and for .harness scripts in VS Code |
Provider features appear when a harness standard provider plugin is installed.
Contributing
To contribute from a fork, follow the steps in CONTRIBUTE.md.
License
Claude Harness License 1.0: free for internal use, no redistribution or derived works. (c) 2026 Alexander Kastil, integrations.at. See LICENSE.
| |