Public Beta. This content is updated as features change.

Semantic conventions

The hf.* telemetry attributes Harnessforce reads, and the shape of the session registrations, imports, and config snapshots the plugin and CLI send.

View as Markdownllms.txt
Claude Code install commands
/plugin marketplace add lambda-script/harnessforce-agent
/plugin install harnessforce@harnessforce-agent
/harnessforce:setup

Semantic conventions define the telemetry attributes Harnessforce reads (hf.*) and the shape of the data the plugin and CLI send. If you use the plugin and CLI, this data is sent for you. Refer to this page when you add hf.* attributes to telemetry from your own tools, or when you need to know what a field in the data means.

Attributes

AttributeMeaning
hf.workspace.idThe sending workspace. If it doesn't match the workspace of the ingest key, the ingest key wins
hf.project.id, hf.project.keyThe project
hf.issue.idThe issue's internal ID
hf.issue.identifierThe issue identifier, such as ENG-123
hf.agent.config_versionThe config snapshot ID
hf.execution.modehuman, ai, or hybrid
hf.execution.actor_typeuser, agent, integration, or system
hf.execution.actor_idWho ran it
hf.vcs.repositoryThe repository as <host>/<owner>/<name>, such as github.com/acme/web
hf.vcs.branchThe branch name
hf.vcs.commitThe commit SHA at startup
hf.sdk.name, hf.sdk.versionThe plugin, CLI, or MCP server that sent the data, and its version
  • Every attribute except hf.workspace.id is accepted even if its value doesn't match an existing internal ID. Harnessforce treats it as unresolved when linking.
  • Attributes outside hf.*, such as gen_ai.*, claude_code.*, and codex.*, are interpreted per agent and never override the meaning of hf.*.
  • Harnessforce accepts attributes from both the current major version and the previous one.

Session registration

The session registration is what the plugin hook and harnessforce import send for each agent session. For sessions started with harnessforce run, the hook adds issue_identifier and sets source to cli.

FieldMeaning
agentThe agent type (claude_code or codex)
session_idThe agent's session ID
first_prompt_idThe ID of the session's first prompt. Matches prompt.id in the telemetry. Omitted if absent
repositorySame format as hf.vcs.repository. Omitted if absent
branch, commitThe branch and commit SHA when the session started. Omitted if absent
issue_identifierThe identifier passed to harnessforce run --issue, 1 to 300 characters with no whitespace. Omitted if absent
sourceWhere the registration came from: hook, cli, mcp, or import
started_atWhen the session started

Session work location

The repositories and branches of the Git working trees a session worked in, sent by the plugin hook and the Codex hook at the end of a turn in which they changed.

FieldMeaning
agentThe agent type: claude_code or codex
session_idThe agent's session ID
locationsAn array of 1 to 10 distinct pairs that have only repository and branch

It doesn't carry paths, commits, or file names.

Session import

A session import is the metadata harnessforce import sends for a past session. It has every session registration field plus the fields below, and source is always import.

FieldMeaning
ended_atThe time of the last record
modelThe model used. If there were several, the one with the most responses
input_tokens, output_tokensToken totals. input_tokens excludes cache reads and writes
tool_callsCalls and failures for each tool name
parser_versionThe version of the code that read the records

Imports never include prompts, responses, or tool input and output.

Config snapshot

A config snapshot captures an agent session's configuration at the moment the session starts. The plugin's SessionStart hook sends it, and Harnessforce ties it to the session so you can compare session cost and failures by configuration.

FieldMeaning
agent, session_idThe session the configuration was collected from
componentsThe configuration components, at least one

Each component has a kind, an identifier, a version, a hash of its content, and the source it came from. The kind is one of skill, rule, agent, command, hook, mcp_server, permissions, model, or workflow. The source maps to a Claude Code settings scope: managed, user, repository, local, or plugin.

  • The snapshot ID is the SHA-256 of the normalized components, so the same configuration always produces the same ID.
  • Hashes are computed over definition files and settings values. The files and values themselves are never sent.
  • Sessions without a snapshot are treated as "unknown configuration" in comparisons.

Repository normalization

Repositories are normalized from the remote URL to <host>/<owner>/<name>. Session registrations, hf.vcs.repository, and repositories from the GitHub App all use the same steps.

  1. Remove the scheme, user info, port, and any trailing .git or /. scp-style URLs such as git@github.com:owner/name are converted to the same form.
  2. Lowercase the host. ssh.github.com is treated as github.com.
  3. If the host is github.com, lowercase the owner and name too. GitHub doesn't distinguish case.

For example, each of these remote URLs becomes github.com/acme/web:

git@github.com:Acme/Web.git
https://GitHub.com/Acme/Web/
ssh://git@ssh.github.com:443/acme/web.git

URLs without a host, such as local paths and file:// URLs, and URLs where the path after the host isn't exactly an owner and a name can't be normalized, so the repository has no value. Repositories whose host isn't github.com aren't linked to pull requests.