Public Beta. This content is updated as features change.
Get improvement suggestions in your terminal
Run /harnessforce:insights in Claude Code, review suggestions that come with evidence and a ready-to-apply diff, and apply the ones you want yourself.
/harnessforce:insights analyzes the session records on your machine, right there, and finds where you keep stepping in by hand, repeated work that could become a loop, MCP servers you never use, and habits in how you use the agent. Each suggestion comes with evidence and a diff you can apply as is. You decide whether to apply it; Harnessforce never writes to your settings or repositories.
What you need first
- The Harnessforce plugin installed in Claude Code, and
harnessforce logindone. Machines set up through managed settings also need one login to use this. - The Owner, Admin, or Member role. Viewers can't hold an ingest key, so they can't use this.
- Only Claude Code sessions are analyzed. By default it reads sessions from the last 30 days in repositories connected to your workspace. Codex sessions aren't read.
Not installed yetUsage: Configure Claude Code →
Run the command and read the analysis
- In Claude Code, run
/harnessforce:insights. - It first tells you that the agent will read parts of your records to write suggestions. What it reads goes to your usual model provider through the same path as any session. It doesn't go to Harnessforce.
- The analysis is listed by target.
| Target | What it finds | Minimum to suggest |
|---|---|---|
| Human interventions | Answering permission prompts, empty "continue" nudges, pasting CI failures or review comments into the agent | 10 or more of a kind across at least 3 sessions |
| Repeated work that could loop | Steps like CI failure → fix → push, where a person only needs to decide when to stop | 3 or more of a kind |
| MCP servers | Servers configured but never used, and servers that fail often | 10 or more sessions with the server configured |
| Usage | Sessions with frequent auto-compaction, low cache reuse, and how you split work across models | For example, 3 or more matching sessions |
If fewer than 10 sessions were analyzed, it makes no suggestions and tells you how many more it needs. Kinds that can't be told apart in the records show as not measured, never as zero.
Read the evidence and the diff
Each suggestion has:
- Target and evidence: which kind happened how many times over what period, when the matching sessions ran, and excerpts from your records. Excerpts appear only in your terminal.
- Change: where it applies (your user settings, the repository, or managed settings), the file path, and a diff you can apply as is. For repository settings it's a pull request draft with branch name, title, body, and diff; for managed settings it's a diff for an Owner or Admin to paste.
- Expected effect and how to measure it: which values should drop and which existing metrics should change.
Suggestions that cut permission prompts only propose the narrowest rule that covers the prompted tools, never broad permissions. Loop suggestions always include stop conditions: a maximum number of iterations and the point where a person checks.
You can also see where permission prompts pile up for the team.

Prompts and wait time for each tool, with the team and you side by side.
Harness (Prompts and failures by tool) (sample data)
Apply the diff yourself
- Pick the suggestions you want. You can leave the rest.
- Apply them by editing the files yourself, running
git apply, or asking the agent to apply them in your own session. /harnessforce:insightsandharnessforce insightsnever write to your files outside~/.harnessforce/insights/.
Check the previous suggestion on the next run
- After applying, run
/harnessforce:insightsagain. If your current setup contains the suggested content, the suggestion is recorded as applied. - Before any new suggestions, you see "Before and after the previous suggestion": the value the suggestion aimed to reduce, over the 14 days before and the 14 days after the point it was detected.
- If either side has fewer than 5 sessions, you see "No comparison data" instead of a zero difference. The starting point is when the application was detected, not when you applied it.
- If a suggestion didn't move things the right way, the next suggestion for the same target cites it as evidence instead of repeating the same diff.
If a suggestion adds a skill or hook, the Harness screen also shows the before and after for members who started using that element.
Before and after for the teamUsage: Compare results before and after adoption →
Check what is sent, and turn it off
- Harnessforce receives only counts and times for fixed categories (such as interventions by kind and median wait time), suggestion counts, and the rules version. No prompts, paths, commands, or error text.
- Usage values (compactions, cache reuse, model share) are shown in your terminal only and never sent.
harnessforce insights --show-reportprints exactly what would be sent.harnessforce insights --no-sendsends nothing for that run. Put{"insights": {"send_report": false}}in~/.harnessforce/config.jsonto stop sending from then on.- Results from people without a developer seat are dropped, like any other telemetry.
FAQ
Can I run it on a schedule?
harnessforce insights schedule prints a cron line that runs harnessforce insights --quiet once a week. You decide whether to add it; Harnessforce doesn't register anything. --quiet only analyzes and sends, without making suggestions.
Can I delete what it keeps on my machine?
Analysis results, suggestions, and evidence excerpts are kept only in ~/.harnessforce/insights/. harnessforce insights clear deletes them all.
Can it analyze sessions older than 30 days?
Add --all to analyze every session on your machine. Only results for sessions in connected repositories, within the sending range, are sent.