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.

View as Markdownllms.txt

/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 login done. 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.

Run the command and read the analysis

  1. In Claude Code, run /harnessforce:insights.
  2. 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.
  3. The analysis is listed by target.
TargetWhat it findsMinimum to suggest
Human interventionsAnswering permission prompts, empty "continue" nudges, pasting CI failures or review comments into the agent10 or more of a kind across at least 3 sessions
Repeated work that could loopSteps like CI failure → fix → push, where a person only needs to decide when to stop3 or more of a kind
MCP serversServers configured but never used, and servers that fail often10 or more sessions with the server configured
UsageSessions with frequent auto-compaction, low cache reuse, and how you split work across modelsFor 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:

  1. 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.
  2. 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.
  3. 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.

Harness (Prompts and failures by tool)

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

  1. Pick the suggestions you want. You can leave the rest.
  2. Apply them by editing the files yourself, running git apply, or asking the agent to apply them in your own session.
  3. /harnessforce:insights and harnessforce insights never write to your files outside ~/.harnessforce/insights/.

Check the previous suggestion on the next run

  1. After applying, run /harnessforce:insights again. If your current setup contains the suggested content, the suggestion is recorded as applied.
  2. 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.
  3. 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.
  4. 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.

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-report prints exactly what would be sent.
  • harnessforce insights --no-send sends nothing for that run. Put {"insights": {"send_report": false}} in ~/.harnessforce/config.json to 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.