Repository navigation
@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.