Product · Improvement
Find out, on your own machine, which parts of your work AI can take all the way.
It analyzes your sessions from the last 30 days on your machine and finds where you keep stepping in, repetitions that could run as a loop, and MCP servers that go unused. A diff you can apply as it is comes with each suggestion.
/harnessforce:insightsRun it in Claude Code after installing the Harnessforce plugin.
> /harnessforce:insights
Sessions analyzed: 42 (analyzer 1.1.0, parser 1.1.0)
Human interventions (count, sessions with interventions, median wait time):
approval: not measured
continue: 18 time(s), 7 session(s), 3.1s
ci_relay: 7 time(s), 4 session(s), 41.0s
review_relay: 4 time(s), 3 session(s), 55.2s
answer: not measured
other: 33 time(s), 15 session(s), 15.8s
Repeatable loops (count, interventions during them, median duration):
issue_to_pr: 6 time(s), 14 intervention(s), 1820.0s
ci_fix: 9 time(s), 23 intervention(s), 610.0s
review_response: 3 time(s), 5 intervention(s), 420.0s
test_fix: 0 time(s), 0 intervention(s), —
lint_fix: 0 time(s), 0 intervention(s), —
dependency_update: 0 time(s), 0 intervention(s), —
MCP servers (sessions where configured, calls, failures):
docs-search: configured in 42 session(s), 0 call(s), 0 failure(s)
Usage (matching sessions):
frequent_compaction: 4 session(s)
low_cache_reuse: 2 session(s)
model (share of output_tokens): main claude-opus-5-5 100.0%The analysis part of what /harnessforce:insights shows (the numbers are a sample). The targets for suggestions and the suggestions and diffs the agent writes follow it.
What it finds
The analysis follows fixed rules, so the same records under the same rule version give the same results. Where there is not enough data, it makes no suggestion and tells you what else it needs.
| Target | What it looks for | Output lines |
|---|---|---|
| Human interventions | Bare “continue” prompts, and pasting CI failures or review comments to the agent. Answers to permission prompts and to the agent's questions cannot be told apart in the records, so they show as not measured | approval, continue, ci_relay, review_relay, answer, other |
| Repeatable loops | Steps such as CI failure → fix → push, which the AI can run through on its own once a person decides where to stop | issue_to_pr, ci_fix, review_response, test_fix, lint_fix, dependency_update |
| MCP servers | Servers that are configured but unused, and servers that fail often | configured, calls, failures |
| Usage | Sessions that compact often, sessions that reuse little cache, and how models are split (shown on your machine only) | frequent_compaction, low_cache_reuse, model |
Get a suggestion, apply it, check it
1
Run it in your terminal
Type /harnessforce:insights in Claude Code and the analysis scrolls by, then the suggestions come one at a time. To write them, your usual AI agent reads part of your records.
The team screens show where permission prompts pile up, too. On the Harness screen, Prompts and failures by tool lists how often each tool asked for permission and how long it waited, for the team and for you.

- Failures by tool
- Permission wait by tool
Harness (Prompts and failures by tool) (sample data)
2
Apply the diff yourself
Each suggestion comes with its evidence (the counts and the matching sessions) and a diff you can apply as it is. For repository settings it becomes a pull request draft. Whether to apply it is your call; Harnessforce never rewrites your settings.
--- /dev/null
+++ b/.claude/commands/fix-ci.md
@@ -0,0 +1,5 @@
+Fix the failing CI of the current pull request, push, and wait for the next run.
+
+- Repeat at most 3 times.
+- Stop and ask me before changing what a test expects.
+- Stop when the same check fails twice in a row with the same error.A sample diff. A loop suggestion always includes when to stop: the maximum number of repetitions and the points where a person checks.
3
See the before and after of the last suggestion on the next run
A suggestion you applied is detected on the next run. Before the new suggestions, it shows how the value the suggestion aimed to reduce changed over 14 days before and after it was applied.
Before and after the previous suggestion (Before/after difference (does not show causation). The starting point is the time the application was detected):
- loop.kind=ci_fix (loop_prompt /home/dev/src/platform/.claude/commands/fix-ci.md) starting point 2026-11-10T09:00:00.000Z
Before 2026-10-27T09:00:00.000Z to 2026-11-10T09:00:00.000Z: 19 session(s), 2.6
After 2026-11-10T09:00:00.000Z to 2026-11-24T09:00:00.000Z: 21 session(s), 1.4A sample of the output (the numbers are a sample).
If the suggestion adds a skill or hook, the Harness screen also lists, once it is in use, the members who used that element before and after.

- 14 days before and after it came into use
- The difference in the first-time CI pass rate
- Who uses it
- Recent sessions that used this element
Harness element (sample data)
What leaves your machine
| Where it goes | What |
|---|---|
| Sent to Harnessforce | Only counts and times for a fixed set of items (how many interventions of each kind, the median wait and so on), the number of suggestions, and the versions of the rules. Add --no-send and nothing is sent |
| Read by your usual AI agent | To write the suggestions, the agent reads part of your records. What it reads goes to the provider of the model you normally use, the same way as in a normal session. It does not go to Harnessforce |
| Stays on your machine | The record contents, the evidence excerpts, the diffs and the usage values |
How to use this feature
Step-by-step instructions for each feature are in the Usage section of the docs.
Frequently asked questions
Can I run it on a schedule?
harnessforce insights schedule prints the one line that runs it once a week. Whether to register it is up to you.
Does it analyze Codex sessions too?
It analyzes Claude Code sessions only.
Can I delete what it keeps on my machine?
harnessforce insights clear deletes every analysis and suggestion it recorded.
Run it once before your next session.
It works after you install the plugin and finish harnessforce login.