Getting startedSet up integrationsCreate your first initiativeInvite your teamPlan today's workShare your first update
OverviewQuickstartRuntime manifestACP contractDocuments & toolsMCP toolsDistributeRun & monitorBuild cloud agentAgent sessionsReferenceLimits & securityTroubleshooting
DocsAPI Reference

Main

  • Home
  • About
  • Pricing
  • Vault
  • Changelog
  • Docs

Features

  • Roadmaps
  • Planning
  • Standups
  • Status updates
  • Insights
  • AI assistant / MCP
  • 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
  • API reference
  • CLI
  • Desktop app
  • SDK

© 2026 One Horizon. All rights reserved

FacebookInstagramThreadsXRedditTikTokYouTubeMedium


Custom agent reference

Custom runtimes implement the execution boundary around One Horizon agent sessions. This page summarizes the contract and links to the OpenAPI reference for exact request and response schemas. For the enforced payload sizes, upload rules, authentication scope, and rate limits, see limits and security.

Runtime responsibilities

ResponsibilityRequired behavior
AuthorizationUse OAuth user tokens for agent endpoints. Keep tokens out of workspace-authored context.
RegistrationPersist the workspace, agent profile, runtime, owner for local execution, mode, capabilities, and optional group.
DiscoveryPoll eligible sessions; cloud runtimes also use verified webhooks as wake-up notifications.
ClaimClaim before execution and store the active claimId. Stop on conflict.
ExecutionApply trusted runtime 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.

FieldRuntime 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, or review 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

ModeRuntime 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.

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 runtime 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. Use the document block operations to list indexes, load selected bodies, append blocks, replace one block body, or update block metadata. Do not rewrite the entire workflow document or commit these files to the product repository.

ArtifactCommon block types
Plangoal, requirement, implementation_task, decision, risk, open_question
Researchresearch_question, context, existing_solutions, approach, findings, options, tradeoffs, recommendation, open_questions, sources
Reviewreview_finding with severity and lifecycle status
Result summaryimplementation_note, fixed_finding, blocker

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 runtime 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 runtime process.
ONE_WORKER_NAMEHuman-readable process name.
ONE_WORKER_CONFIG_PATHExplicit local runtime configuration path.
ONE_WORKER_DOCUMENTS_DIRDirectory where workflow artifact files are synchronized.
ONE_WORKER_DOCUMENT_URLDocument service endpoint exposed to the runtime.
ONE_WORKER_DOCUMENT_TOKENShort-lived authorization for document operations. Keep it out of workspace files and logs.
ONE_WORKER_DOCUMENT_CMDCommand used by the runtime'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; runtimes 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
Runtime 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.


PreviousAgent sessionsNextLimits & security

Limits & security

Enforced restrictions on what a custom agent can send into One Horizon, what it receives back, uploads, authentication scope, and rate limits.

MCP tools

Every MCP tool the worker runtime can register for a turn, generated straight from the runtime tool catalog.

Workflows

Create, publish, launch, and operate workflows with agent steps and human review gates.

Documents & tools

The MCP tools every runtime receives: workflow artifacts, review verdicts, result summaries, and visual artifacts.

  • Runtime responsibilities
  • Workflow context fields
  • Task modes
  • Artifact documents
  • Environment variables
  • API operation families
  • Back to top