Product · Developers
Keep your usual terminal.
See what is sent before you install.
It runs on the Claude Code plugin and hooks, OpenTelemetry, MCP and the Read API. The plugin and the CLI live in a public repository, and the docs list every item that is sent.
> /plugin marketplace add lambda-script/harnessforce-agent
> /plugin install harnessforce@harnessforce-agent
> /harnessforce:setupRun the three lines in Claude Code. /harnessforce:setup walks you through checking Node.js, installing the CLI, harnessforce login and importing past sessions. On a machine with Codex only, start with npm install -g @harnessforce/cli.

The Harnessforce setup screen shows the same three lines, ready to copy.
- The Claude Code and Codex tabs
- The three lines you can copy
- Connecting the GitHub App
Setup (sample data)
[H] Hooks
What is sent, and when
The hooks send the session registration and a summary of names and counts. They do not send prompts, tool inputs and results, or file paths. A failing hook never stops the session.
| Hook | What it does |
|---|---|
| SessionStart | Registers the session (agent, session ID, repository, branch, commit, start time). In Claude Code it also sends the shape of the setup, and usage summaries other sessions could not send |
| UserPromptSubmit | On the first prompt only, sends the registration again with the prompt ID added (Claude Code) |
| PostToolUse and others | PostToolUse, PostToolUseFailure, UserPromptExpansion, PermissionRequest, PostCompact: counts calls to skills, commands, subagents and MCP servers, permission prompts and compactions on your machine. Names and counts only (Claude Code) |
| Stop | Sends the repository and branch you worked in when they changed. Paths are not sent |
| SessionEnd | On a machine with the workspace's ingest key, sends the counts as the session's usage summary. With a personal ingest key, the next SessionStart sends it (Claude Code) |
Docs: everything that is recorded (semantic conventions)

This is how what you sent appears on the Session screen. Even with content not sent, the time, tokens, cost, tool names and the links to issues and pull requests remain.
- The session title and its linked issue and pull request
- The outcome marks
- The person's instruction
- The step where a test failed
- The AI's reply
Session (sample data)
[O] OTel
Send with OpenTelemetry
Claude Code and Codex telemetry arrives over OTLP/HTTP. Tools without built-in support and your own scripts can send to the same endpoint with the same ingest key. On machines set up with harnessforce login, the ingest key lives in the OS keychain and is never written to a settings file in plain text.
Docs: generic OTLP and the generic ingest API
- The waterfall
- The step that failed
- Attributes of the selected step (OTel attributes as they are)
Trace (sample data)
[M] MCP
Pull an issue from your agent
Name an issue and the agent reads it from the MCP server with get_issue, then links the session to it with start_session. You sign in to the MCP server once with OAuth; its token is tied to the workspace and to the project you pick on the authorization screen.
Docs: Claude Code setup[R] Read API
Read the same data from your own tools
Read projects, issues, sessions, traces, logs and metrics over HTTP. The token is issued by harnessforce login and never reads beyond what your role allows.
Docs: Read API$ curl -H "Authorization: Bearer $HF_TOKEN" \
"https://harnessforce.dev/api/v1/issues?query=HF-123"
{
"items": [{ "identifier": "HF-123", "title": "Fix flaky retry in ingest worker" }],
"next_cursor": null
}A sample request and response (the response shows only some of each item's fields).
[P] Promises
What we commit to
We receive OpenTelemetry
We receive the standard telemetry Claude Code and Codex emit, over OTLP.
GitHub is read-only
We read GitHub with read-only permissions.
Your agent never stops
Even when nothing reaches Harnessforce, your agent keeps running.
Open under Apache-2.0
What goes into your agent (the plugin, the CLI and the semantic conventions) is published under Apache-2.0.
How to use this feature
Step-by-step instructions for each feature are in the Usage section of the docs.
Frequently asked questions
Does it need Node.js?
The hooks run on Node.js 18 or later on your machine. Without Node.js nothing is sent, but your sessions and prompts never stop.
Can it send from behind a proxy?
The hooks and harnessforce connect to the endpoint directly, without the proxy variables. On a network that only reaches the outside through a proxy, sending fails. Claude Code's own telemetry is not affected.
Can I bring in past sessions?
harnessforce import brings in the sessions of repositories connected to the GitHub App. It does not send their content.
[D] Docs
Start reading here
Paste three lines and watch your first session arrive.
Start on the Free plan, free for you alone.