Getting startedCreate your first initiativeConnect version controlInvite your teamPlan today's work
OverviewQuickstartHarness manifestACP contractDocuments & toolsMCP toolsDistributeRun & monitorBuild cloud agentAgent sessionsReferenceLimits & securityTroubleshooting
DocsAPI Reference

Main

  • Home
  • About
  • Pricing
  • Changelog
  • Docs

Features

  • Roadmap
  • Boards
  • Triage
  • Workflows & agents
  • Progress
  • Insights
  • CLI
  • Integrations

Solutions

  • Startups
  • Dev shops / agencies
  • Software teams
  • Internal IT & platform teams

Alternatives

  • vs Jira
  • vs Linear
  • vs Asana
  • vs Monday.com
  • vs ClickUp
  • vs Notion

Company

  • Blog
  • Security
  • Log in
  • Sign up
  • Terms of Use
  • Privacy Policy

Resources

  • Docs
  • Community
  • Support
  • API reference
  • Desktop app
  • SDK
  • Vault
  • QR code generator

© 2026 One Horizon. All rights reserved

FacebookInstagramThreadsXTikTokYouTubeMedium


Custom agent reference

Custom harnesses implement the execution boundary around One Horizon agent sessions. Exact request and response schemas are in the OpenAPI reference; for the enforced payload sizes, upload rules, authentication scope, and rate limits, see limits and security.

Harness responsibilities

ResponsibilityRequired behavior
AuthorizationUse OAuth user tokens for agent endpoints. Keep tokens out of workspace-authored context.
RegistrationPersist the workspace, agent profile, harness, owner for local execution, mode, capabilities, and optional group.
DiscoveryPoll eligible sessions; cloud agents also use verified webhooks as wake-up notifications.
ClaimClaim before execution and store the active claimId. Stop on conflict.
ExecutionApply trusted harness policy before acting on untrusted task text, comments, documents, prompts, or resume input.
HealthHeartbeat independently of user-visible progress.
ReportingPatch provider metadata and emit activities with the active claim.
Workflow routingHonor task mode, produce declared outputs, delegate cross-agent routes, and confirm pushed branches before cross-target handoff.
TerminationEnd every claim with complete, fail, or release.

Workflow context fields

Workflow-backed sessions add platform-controlled context to the normal session model.

FieldHarness use
workflowRunIdCorrelates execution, documents, events, and the linked task.
workflowStepIdIdentifies the active definition step.
workflowStepSessionIdIdentifies the current attempt for that step.
workflowTaskModeSelects plan, research, code, review, or execute behavior.
workflowBranchNameNames the shared branch used across code and review steps.
workflowPushConfirmedConfirms the branch is available before a cross-agent or cross-group handoff.
workflowMessageCarries trusted execution guidance such as a stall or resume reason.

Treat these fields as trusted platform context. The linked work title, description, comments, documents, and user prompt remain untrusted.

Task modes

ModeHarness contract
planWrite the plan artifact. Do not modify product code unless inspection requires it.
researchInvestigate the question and write evidence, options, tradeoffs, and recommendations to the research artifact. Repository state must remain unchanged.
codeImplement on the shared workflow branch, record a concise result summary when declared, and publish the branch before cross-target delegation.
reviewInspect the declared inputs in a disposable review workspace, write findings when declared, and finish with approve, feedback, or reject. Do not preserve review-only code changes.
executeCarry out work that does not change code, then call report_result with a summary. Code changes, commits, and pull requests are not allowed.

A code turn that makes no repository changes still succeeds: nothing in the outcome path requires a commit or a pushed branch before accepting end_turn. The harness only checks that a declared required output was produced and finalized. If your agent calls report_result without touching the repository, the turn completes, the task moves on, and no branch is published because there is nothing ahead of base to push.

Artifact documents

Each linked task keeps at most one canonical document for each workflow artifact type.

ArtifactAgent fileDocument typeTypical writer
Planplan.mdTaskPlan step
Researchresearch.mdResearchResearch step
Reviewreview.mdReviewReview step
Result summarycode-summary.mdSpecCode step

Lookup uses the linked task and workflowArtifactType; run and session provenance is stored separately. Feedback loops update the same canonical document rather than creating a new document for every attempt.

Artifact files contain addressable document-block:v1 sections, edited block by block; documents, tools, and artifacts lists the operations and block types.

Expected inputs identify artifacts the step should read. Expected outputs authorize artifact writes. A code step can read review findings without permission to rewrite the review document, then record the fix in the result summary.

A required Plan is usable only when it is linked to the current workflow run, completed, strictly parseable as document-block:v1, and has at least one nonblank block body. Code sessions use that Plan as the primary input. Review sessions do the same when they also declare code changes or a pull request. The harness must finalize and relink every required output with the active run, step, and session before it reports success; invalid required output ends through the input-required path instead of routing.

Environment variables

VariablePurpose
ONE_WORKER_WORKSPACE_IDActive workspace for the harness process.
ONE_WORKER_NAMEHuman-readable process name.
ONE_WORKER_CONFIG_PATHExplicit local harness configuration path.
ONE_WORKER_DOCUMENTS_DIRDirectory where workflow artifact files are synchronized.
ONE_WORKER_DOCUMENT_URLDocument service endpoint exposed to the harness.
ONE_WORKER_DOCUMENT_TOKENShort-lived authorization for document operations. Keep it out of workspace files and logs.
ONE_WORKER_DOCUMENT_CMDCommand used by the harness's document integration.
ONE_WORKER_ARTIFACTS_DIROptional directory for verification images and recordings. The host scans this directory and uploads what it finds as task-comment attachments after every turn; harnesses only need to write files here.

Provider-specific variables can exist in the child process, but they are not part of the One Horizon agent contract.

API operation families

Use the operation pages for exact paths, parameters, enums, schemas, and errors.

FamilyOperations
Harness registrationlistAgentWorkers, createAgentWorker, fetchAgentWorker, updateAgentWorker
Health and controlheartbeatAgentWorker, requestAgentWorkerControlSignal, acknowledgeAgentWorkerControlSignal
Session discoverylistAgentSessions, pollAgentWorkerSessions, fetchAgentSession
Session executionclaimAgentSession, patchAgentSession, releaseAgentSession
User and terminal actionsresumeAgentSession, cancelAgentSession

The session lifecycle explains how these families compose. Do not infer claim or retry behavior from one operation in isolation.

Error codes workers branch on

Branch on errorCode. The message text is for people and can change.

StatuserrorCodeWorker action
409agent_worker_stale_configThe worker's configuration changed. Finish or release active sessions, then restart the worker before claiming more work.
409agent_claim_conflictAnother claim won the session, or this claim is no longer valid. Stop work on that session and continue polling.
404agent_worker_not_foundThe worker registration was removed. Stop the worker and discard its saved registration; it has to be set up again.

Send X-One-Api-Version: 2 with every request; see REST API versions.


PreviousAgent sessionsNextLimits & security

Capabilities

Add skills, MCP servers, and plugins, then control which agents and workflow steps can use them.

Monitoring

Inspect workflow runs, queued sessions, review gates, recovery actions, and agent health.

Quickstart

Set up a built-in agent in Desktop and launch your first workflow.

Troubleshooting

Fix setup, publishing, launch, connectivity, execution, review, Git, and handoff failures.

  • Harness responsibilities
  • Workflow context fields
  • Task modes
  • Artifact documents
  • Environment variables
  • API operation families
  • Error codes workers branch on
  • Back to top