Skip to content

@usine/agents/prompt

The Agent’s standing instructions and the focused task the parent delegates to a child.

readonly agent: string & Brand<"AgentName">

readonly persona: string & Brand<"AgentPersona">

readonly task: string

Free text authored by the parent model, not the rendered loop task.


The recorded trigger context, Agent instructions, and effective task presented to the parent.

readonly agent: string & Brand<"AgentName">

readonly payload: Json

readonly persona: string & Brand<"AgentPersona">

readonly repository: string & Brand<"RepositoryName">

readonly resume: Option<SalvagePushed>

The previous Attempt’s salvage checked out in the workspace, when the Run is retrying.

readonly task: string & Brand<"AttemptTask">

const assembleChildPrompt: (parts) => string

Builds a child’s instructions from the delegated task and Agent persona, including GitHub attribution.

Parameter Type
parts ChildPromptParts

string


const assemblePrompt: (parts) => string

Builds the parent’s instructions from the saved payload, effective task, and Agent persona, including GitHub attribution.

Parameter Type
parts PromptParts

string


const githubSignature: (agent) => string

The attribution line every GitHub comment or review written by an Agent ends with.

Parameter Type
agent AgentName

string