Repository navigation
Releases
@harnessforce/claude-code-plugin@0.8.1
Patch Changes
- f1ad6ed: When the Harnessforce MCP server is not connected, the
record-sessionskill now has the agent relay the login message word for word in its final reply, with both the Claude Code (/mcp) and the Codex (codex mcp login harnessforce) commands. With Codex 0.172.0, the agent had reworded the message and dropped the command, or said it only in a progress update and left it out of the final reply.
@harnessforce/cli@0.9.0
Minor Changes
- 0447f3c:
harnessforce importandharnessforce insightsnow read Codex rollouts compressed to.jsonl.zstwhen the Node.js running them can decompress zstd (22.15 or later, 23.8 or later on 23.x). A compressed rollout next to a plain one of the same name is skipped, as Codex does. On an older Node.js,harnessforce importstill counts them, and the message now names the Node.js version and the versions that can read them. - 821e4ee: Codex sessions now send their config snapshot, so the Harness inventory counts the skills, rules, hooks, MCP servers, models and permissions Codex sessions run with, like Claude Code's.
harnessforce hook session-startandharnessforce hook subagent-startcollect what Codex reads:AGENTS.md(orAGENTS.override.md) inCODEX_HOMEand at the repository root, skills in.agents/skillsand.codex/skills,config.tomlandhooks.jsonof the user layer, of/etc/codex(withmanaged_config.tomland the hooks ofrequirements.toml) and of a trusted project, and the enabled plugins as their manifest declares them. Like Claude Code's snapshot, it holds only names and hashes: header values, environment values, arguments, URL queries and the OAuth client secret are left out of the hashes. Hooks and permissions are named after their file (config.toml:SessionStart,config.toml:permissions) so they do not merge with Claude Code's settings. No new hook is needed. Theusing-harnessforcetable now says both agents send the snapshot. - 1c72a48:
harnessforce loginno longer writes the user ingest key into the Codexconfig.toml. It writes[otel].headers_helper = "harnessforce otel-headers --agent codex"(the launcher path when the fixed location is used,harnessforce.cmdon Windows) and removes theheadersofexporterandtrace_exporter, so Codex reads the key from the keychain like Claude Code.harnessforce otel-headers --agent codexprints the key only when every OTLP/HTTP exporter in theconfig.tomlof the current directory sends to the pinned origin, with the same exit codes asharnessforce otel-headers.harnessforce logoutremoves the helper. Codex 0.170.0 or later is required:harnessforce loginprints a line whencodex --versionis older, andharnessforce statusreports Codex older than 0.170.0. Runharnessforce loginagain to replace the key in an existingconfig.toml. The CodexSessionStarthook's warnings for a missing or unreadable ingest key now say that telemetry is not sent either, since Codex reads the key from the same keychain. - 95ddaa3:
harnessforce hook session-start,post-tool-useandstopnow pick the key like the Claude Code plugin hook. When the Claude Code managed settings file (managed-settings.jsonand the.jsonfiles inmanaged-settings.d/not starting with.) hasHARNESSFORCE_INGEST_KEYinenv, the Codex hooks send with that Workspace key to that file'sHARNESSFORCE_ENDPOINTwithout reading the keychain, and do not addissue_identifierorsource=cli. A 401 with the Workspace key tells the user to contact a Workspace administrator. Without that key, the hooks keep using the user ingest key from the keychain. This lets an organization that distributes/etc/codex/requirements.tomlregister Codex sessions in the same Workspace as their telemetry. - cba7f9d:
harnessforce insightsnow analyzes Codex rollouts in~/.codex/sessions/as well as Claude Code sessions, and sends their analysis reports withagent: "codex"(withoutfirst_prompt_id). The rollout's instructions, agent messages, shell commands, file changes and MCP calls are read as the Claude Code elements they correspond to, so the same rules and vocabulary decide the interventions, loops and MCP servers; the listed MCP servers come from the Codex configuration (~/.codex/config.tomland the trusted project's.codex/config.toml, notCODEX_HOME). A rollout that is not written in the paginated history format reports its interventions, loops and MCP servers as not measured. Subagent threads are not analyzed on their own: their responses count toward the parent'ssubagent_models, and they are imported with the parent before sending. Terminal-only usage addscompactions; Codex sessions havenullauto and manual counts and matchfrequent_compactionfrom 2 compactions. Suggestions stay Claude Code only:sufficientand "Not enough data" count Claude Code sessions, a line says how many Codex sessions were analyzed,harnessforce insights recordrejects a Codex session as evidence, and/harnessforce:insightsjudges its targets from Claude Code sessions.analyzer_versionis now 1.2.0. - 35c8986:
harnessforce otel-headers --agent codexnow also prints"Harnessforce-Send-Content": "on"or"off", read likeharnessforce config get send-content(onwhen~/.harnessforce/config.jsonor itssend_contentis missing). When that file cannot be read, is not a JSON object, orsend_contentis not a boolean, the header isoffand the key is still printed with exit 0, since Codex stops sending all telemetry while the helper fails. Codex sends tool arguments and output regardless oflog_user_promptandlog_agent_responses, so Harnessforce does not store content from a request whose header isoff.harnessforce otel-headersfor Claude Code is unchanged. - 15d7a4f: Codex subagents are no longer dropped. A Codex subagent runs in its own thread, which Codex never starts with
SessionStart, so Harnessforce could not tell which project its telemetry belonged to and discarded it.harnessforce loginnow adds aSubagentStarthook (harnessforce hook subagent-start, asynchronous) to Codex'sconfig.toml: it registers the subagent's thread as its own session with the repository, branch and commit of the working directory, so the subagent's work is kept and linked to the same pull request and Issue as the parent session. It prints nothing, because Codex adds its output to the subagent's context. Runharnessforce loginagain and trust the new hook with/hooksin Codex.harnessforce logoutremoves it. Theusing-harnessforcetable gains aSubagentStartrow. - 91512c6:
harnessforce loginnow also writes[otel].trace_exporterto the Codexconfig.toml, sending Codex traces to the ingest endpoint's/v1/traceswith the same key, so Codex turns appear in Tracing like Claude Code's.harnessforce logoutremoves it. Runharnessforce loginagain to add it to an existingconfig.toml. - 72cde2e: Codex no longer loses a session's registration when its
SessionStarthook fails or times out.harnessforce loginadds aUserPromptSubmithook (harnessforce hook user-prompt-submit, asynchronous) to Codex'sconfig.toml: on the first prompt of a session, it resends the registrationSessionStartsaved when that send failed, or registers the session from the prompt's working directory whenSessionStartsaved nothing. It sends nothing whenSessionStartalready registered the session. Runharnessforce loginagain and trust the new hook with/hooksin Codex.harnessforce logoutremoves it. Theusing-harnessforcetable now describes theUserPromptSubmitrow for both agents.
Patch Changes
- 9afe7cd:
harnessforce loginnow writes the CodexPostToolUsehook withmatcher = "^(apply_patch|Bash)$"and replaces the^apply_patch$matcher an earlier login wrote (a matcher you changed is kept).harnessforce hook post-tool-userecords the working tree of the absolute path aBashcommand first moves to (cd <absolute path> &&orgit -C <absolute path>at its start, whatever its exit code; not on Windows), so work done only through shell commands in a worktree links to its pull request. Only that path is read; the rest of the command is neither recorded nor sent.harnessforce hook session-startnow registers a Codex session whosesourceisfork, since a forked session has a new session ID. Runharnessforce loginagain and trust the changed hook in/hooks; until you do, Codex runs neitherapply_patchnorBashthrough it. - 0b4458f:
harnessforce hook post-tool-usenow also records the working tree of the directory a CodexBashcommand ran in. Codex runs each command in its own working directory (theworkdirargument), which does not appear in the command text and does not change the session's directory, so work done there, such asgit commitin a worktree, now links to its pull request, as Claude Code'sCwdChangeddoes. Only the repository and branch are sent, never the path. - 1dd5727:
harnessforce loginnow writes the Codex OTLP endpoint with the logs path (<ingest>/v1/logs). Codex uses the endpoint as the full logs URL, so the base URL written before sent every Codex log to the ingest root, where it was rejected and no Codex session reached Harnessforce. Runharnessforce loginagain to fix an existingconfig.toml. - 3b58c2e: After writing the Codex configuration,
harnessforce loginnow shows how to pin the Harnessforce plugin for Codex: runcodex plugin marketplace remove harnessforce-agent, thencodex plugin marketplace add lambda-script/harnessforce-agent --ref @harnessforce/claude-code-plugin@<version>with the versioncodex plugin listshows. In our check, Codex 0.172.0 reinstalled the plugin at startup after the marketplace changed. The line comes after the plugin install line, and the MCP login line now follows both. - 14ab958: Codex can now install the Harnessforce plugin for its skills, so a Codex agent records sessions on Issues with
record-sessionas Claude Code does. Runcodex plugin marketplace add lambda-script/harnessforce-agentandcodex plugin add harnessforce@harnessforce-agent. The plugin's new.codex-plugin/plugin.jsongives Codexrecord-session,using-harnessforceanddiagramonly: Codex no longer loads the Claude Code hooks, the MCP server whose URL it cannot expand, or the commands (Codex k...
@harnessforce/claude-code-plugin@0.8.0
Minor Changes
- 14ab958: Codex can now install the Harnessforce plugin for its skills, so a Codex agent records sessions on Issues with
record-sessionas Claude Code does. Runcodex plugin marketplace add lambda-script/harnessforce-agentandcodex plugin add harnessforce@harnessforce-agent. The plugin's new.codex-plugin/plugin.jsongives Codexrecord-session,using-harnessforceanddiagramonly: Codex no longer loads the Claude Code hooks, the MCP server whose URL it cannot expand, or the commands (Codex keeps its hooks and MCP server fromharnessforce login).harnessforce loginshows the two commands after writing the Codex configuration, andrecord-sessiontells a Codex user how to fix a hook that is not running.
Patch Changes
-
821e4ee: Codex sessions now send their config snapshot, so the Harness inventory counts the skills, rules, hooks, MCP servers, models and permissions Codex sessions run with, like Claude Code's.
harnessforce hook session-startandharnessforce hook subagent-startcollect what Codex reads:AGENTS.md(orAGENTS.override.md) inCODEX_HOMEand at the repository root, skills in.agents/skillsand.codex/skills,config.tomlandhooks.jsonof the user layer, of/etc/codex(withmanaged_config.tomland the hooks ofrequirements.toml) and of a trusted project, and the enabled plugins as their manifest declares them. Like Claude Code's snapshot, it holds only names and hashes: header values, environment values, arguments, URL queries and the OAuth client secret are left out of the hashes. Hooks and permissions are named after their file (config.toml:SessionStart,config.toml:permissions) so they do not merge with Claude Code's settings. No new hook is needed. Theusing-harnessforcetable now says both agents send the snapshot. -
cba7f9d:
harnessforce insightsnow analyzes Codex rollouts in~/.codex/sessions/as well as Claude Code sessions, and sends their analysis reports withagent: "codex"(withoutfirst_prompt_id). The rollout's instructions, agent messages, shell commands, file changes and MCP calls are read as the Claude Code elements they correspond to, so the same rules and vocabulary decide the interventions, loops and MCP servers; the listed MCP servers come from the Codex configuration (~/.codex/config.tomland the trusted project's.codex/config.toml, notCODEX_HOME). A rollout that is not written in the paginated history format reports its interventions, loops and MCP servers as not measured. Subagent threads are not analyzed on their own: their responses count toward the parent'ssubagent_models, and they are imported with the parent before sending. Terminal-only usage addscompactions; Codex sessions havenullauto and manual counts and matchfrequent_compactionfrom 2 compactions. Suggestions stay Claude Code only:sufficientand "Not enough data" count Claude Code sessions, a line says how many Codex sessions were analyzed,harnessforce insights recordrejects a Codex session as evidence, and/harnessforce:insightsjudges its targets from Claude Code sessions.analyzer_versionis now 1.2.0. -
e805010: The
record-sessionskill now tells the user how to log in when the Harnessforce MCP tools are missing, instead of failing silently. Codex shows none of a server's tools untilcodex mcp login harnessforce, so the skill says once: "The Harnessforce MCP server is not connected, so the Issue cannot be read and the Session cannot be recorded. In Claude Code, run/mcpand sign in to harnessforce. In Codex, runcodex mcp login harnessforce, then start a new session. If Codex has no MCP server named harnessforce, add it first as the Harnessforce docs for Codex describe", and continues the work./harnessforce:setupnow also tells Codex users the two commands that install the Harnessforce plugin for Codex andcodex mcp login harnessforce, before they restart. -
15d7a4f: Codex subagents are no longer dropped. A Codex subagent runs in its own thread, which Codex never starts with
SessionStart, so Harnessforce could not tell which project its telemetry belonged to and discarded it.harnessforce loginnow adds aSubagentStarthook (harnessforce hook subagent-start, asynchronous) to Codex'sconfig.toml: it registers the subagent's thread as its own session with the repository, branch and commit of the working directory, so the subagent's work is kept and linked to the same pull request and Issue as the parent session. It prints nothing, because Codex adds its output to the subagent's context. Runharnessforce loginagain and trust the new hook with/hooksin Codex.harnessforce logoutremoves it. Theusing-harnessforcetable gains aSubagentStartrow. -
72cde2e: Codex no longer loses a session's registration when its
SessionStarthook fails or times out.harnessforce loginadds aUserPromptSubmithook (harnessforce hook user-prompt-submit, asynchronous) to Codex'sconfig.toml: on the first prompt of a session, it resends the registrationSessionStartsaved when that send failed, or registers the session from the prompt's working directory whenSessionStartsaved nothing. It sends nothing whenSessionStartalready registered the session. Runharnessforce loginagain and trust the new hook with/hooksin Codex.harnessforce logoutremoves it. Theusing-harnessforcetable now describes theUserPromptSubmitrow for both agents. -
ced6afb: The Claude Code plugin's work location hook now also runs on
PostToolUseofBash(matcher^(Write|Edit|Bash)$) and records the working tree of the absolute path a command first moves to (cd <absolute path> &&orgit -C <absolute path>at its start; not on Windows), so work a session or its subagents do only through shell commands in a worktree links to its pull request. Only commands that succeeded are observed, since a failed one runsPostToolUseFailure. Only that path is read; the rest of the command is neither recorded nor sent. Theusing-harnessforcetext that both the plugin andharnessforceadd to the context now listsBashamong the tools after which the working tree is noted.
@harnessforce/semconv@0.6.1
Patch Changes
- 3dde9c0: Point the npm package homepage and the README link at https://harnessforce.dev.
@harnessforce/cli@0.8.0
Minor Changes
- 2c7c440: Keep the hooks and Claude Code's
otelHeadersHelperworking after switching Node.js versions. The CLI keeps a launcher in a fixed location (~/.local/share/harnessforce/bin, or%LOCALAPPDATA%\harnessforce\binon Windows),harnessforce loginwrites its absolute path intootelHeadersHelperand the Codex hooks, and the plugin hooks fall back to it whenharnessforceis not onPATH. The plugin now warns at session start when it cannot find the CLI or when Claude Code cannot runotelHeadersHelper, andharnessforce statusshows the CLI the hooks use and rewrites anotelHeadersHelperthat namesharnessforceto the launcher.
Patch Changes
- 3dde9c0: Point the npm package homepage and the README link at https://harnessforce.dev.
- Updated dependencies [3dde9c0]
- @harnessforce/semconv@0.6.1
@harnessforce/claude-code-plugin@0.7.0
Minor Changes
- 2c7c440: Keep the hooks and Claude Code's
otelHeadersHelperworking after switching Node.js versions. The CLI keeps a launcher in a fixed location (~/.local/share/harnessforce/bin, or%LOCALAPPDATA%\harnessforce\binon Windows),harnessforce loginwrites its absolute path intootelHeadersHelperand the Codex hooks, and the plugin hooks fall back to it whenharnessforceis not onPATH. The plugin now warns at session start when it cannot find the CLI or when Claude Code cannot runotelHeadersHelper, andharnessforce statusshows the CLI the hooks use and rewrites anotelHeadersHelperthat namesharnessforceto the launcher.
Patch Changes
- 3dde9c0: Point the npm package homepage and the README link at https://harnessforce.dev.
@harnessforce/semconv@0.6.0
Minor Changes
- f264c11: Add the MCP agent contract: the tools the plugin calls by name (
get_issue,start_session,complete_session,list_issues), their closed input schemas and examples, the result fields the plugin reads, the error codes it branches on, and theqit sends.openResultopens a result schema so that Harnessforce can check its tool results without rejecting fields it adds.
@harnessforce/cli@0.7.4
Patch Changes
- Updated dependencies [f264c11]
- @harnessforce/semconv@0.6.0
@harnessforce/cli@0.7.3
Patch Changes
- 0e7edb2:
harnessforce loginnow ends by pointing at the page that assigns repositories to a project while the Workspace has none assigned, instead of suggestingharnessforce import, which imports nothing until a repository is assigned. - eb5b69d: When
start_sessionreturnsforbiddenorconflict(this session belongs to another user), the record-session skill now tells the user why the work cannot be linked and continues without callingstart_sessionagain, callingcomplete_session, or guessing another session ID, for an Issue the user named as well as one picked from the candidates. Aforbiddenorconflictfromcomplete_sessionis reported and not retried. The injected introduction lists this as a Red Flag.
@harnessforce/claude-code-plugin@0.6.3
Patch Changes
- d6fdf8a: The diagram skill's portable block stays readable on GitHub in dark mode for sequence, ER, state and gantt diagrams. The block keeps its light theme on the dark page, where the titles, messages, conditions, section names and axis labels that stand on the page vanished in dark ink.
render.mjs --portablenow sets those text colors to#64748bthroughthemeVariables, which reach every diagram type, instead of relying on CSS, which mermaid empties when a rule needs>. - 7ec4e43: The diagram skill delivers one file per diagram.
render.mjswithout a delivery option writes the light and dark PNGs it looks at into~/.cache/harnessforce-diagram/renders/instead of next to the diagram.--portable,--pngand--svgeach write one file (a PNG or SVG in the light theme,--theme darkfor a dark one), and the portable Markdown carries the.mmdafter the block, whichrender.mjs --sourcewrites back out, so a repository no longer keeps the.mmdor a light and dark pair of SVGs. - eb5b69d: When
start_sessionreturnsforbiddenorconflict(this session belongs to another user), the record-session skill now tells the user why the work cannot be linked and continues without callingstart_sessionagain, callingcomplete_session, or guessing another session ID, for an Issue the user named as well as one picked from the candidates. Aforbiddenorconflictfromcomplete_sessionis reported and not retried. The injected introduction lists this as a Red Flag.