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.
/plugin marketplace add lambda-script/harnessforce-agent
/plugin install harnessforce@harnessforce-agent
/harnessforce:setupSemantic 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
| Attribute | Meaning |
|---|---|
hf.workspace.id | The sending workspace. If it doesn't match the workspace of the ingest key, the ingest key wins |
hf.project.id, hf.project.key | The project |
hf.issue.id | The issue's internal ID |
hf.issue.identifier | The issue identifier, such as ENG-123 |
hf.agent.config_version | The config snapshot ID |
hf.execution.mode | human, ai, or hybrid |
hf.execution.actor_type | user, agent, integration, or system |
hf.execution.actor_id | Who ran it |
hf.vcs.repository | The repository as <host>/<owner>/<name>, such as github.com/acme/web |
hf.vcs.branch | The branch name |
hf.vcs.commit | The commit SHA at startup |
hf.sdk.name, hf.sdk.version | The plugin, CLI, or MCP server that sent the data, and its version |
- Every attribute except
hf.workspace.idis accepted even if its value doesn't match an existing internal ID. Harnessforce treats it as unresolved when linking. - Attributes outside
hf.*, such asgen_ai.*,claude_code.*, andcodex.*, are interpreted per agent and never override the meaning ofhf.*. - 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.
| Field | Meaning |
|---|---|
agent | The agent type (claude_code or codex) |
session_id | The agent's session ID |
first_prompt_id | The ID of the session's first prompt. Matches prompt.id in the telemetry. Omitted if absent |
repository | Same format as hf.vcs.repository. Omitted if absent |
branch, commit | The branch and commit SHA when the session started. Omitted if absent |
issue_identifier | The identifier passed to harnessforce run --issue, 1 to 300 characters with no whitespace. Omitted if absent |
source | Where the registration came from: hook, cli, mcp, or import |
started_at | When 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.
| Field | Meaning |
|---|---|
agent | The agent type: claude_code or codex |
session_id | The agent's session ID |
locations | An 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.
| Field | Meaning |
|---|---|
ended_at | The time of the last record |
model | The model used. If there were several, the one with the most responses |
input_tokens, output_tokens | Token totals. input_tokens excludes cache reads and writes |
tool_calls | Calls and failures for each tool name |
parser_version | The 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.
| Field | Meaning |
|---|---|
agent, session_id | The session the configuration was collected from |
components | The 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.
- Remove the scheme, user info, port, and any trailing
.gitor/. scp-style URLs such asgit@github.com:owner/nameare converted to the same form. - Lowercase the host.
ssh.github.comis treated asgithub.com. - 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.gitURLs 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.
Read next
- Configure Claude Code: How the hooks and CLI send this data
- Linking sessions to issues: How registrations link to issues
- Read API: Reading the stored data