Skip to content

Initial prompt ​

declareInitialPrompt ​

File: parameters/tasks/<task>/initial-prompts/<name>.ts

What the agent is asked. Its fragment writes the prompt to /thunderjar/prompt.txt, for the harness's run script to read. Takes the shared options too, but applyParameter gets no ctx.dir.

ts
export default declareInitialPrompt({
  applyParameter: () => writePrompt("Create a file isPrime.ts exporting a function that tests for primality."),
  timeoutSeconds: 600,
});

timeoutSeconds ​

Type: number

Required. How long the harness's run script may run before it's killed.