Skip to content

buildAutonomousInstructions

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/autonomous/autonomous-loop.ts

Build the autonomous investigation-verify loop instructions.

This generates a system prompt section — not a complete system prompt. Domain layers combine it with their own base instructions + tool usage guide.

The prompt teaches the agent to:

  1. Investigate before acting (read files, explore structure, check config)
  2. Prefer existing tools/scripts over writing from scratch
  3. Plan based on what it discovers (not on assumptions)
  4. Verify after every significant action
  5. Loop until quality gates pass

Signature

ts
function buildAutonomousInstructions(options: AutonomousInstructionsOptions): string

Parameters

NameType
optionsAutonomousInstructionsOptions

Returns: string

Was this page helpful?

Download as PDF