Attributes
- Companion
- class
- Source
- HarnessProfile.scala
- Graph
-
- Supertypes
- Self type
-
HarnessProfile.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
A profile; every argument defaults to the minimal profile's: the file tools over a new StateFileBackend.
A profile; every argument defaults to the minimal profile's: the file tools over a new StateFileBackend.
Attributes
- Source
- HarnessProfile.scala
The opinionated preset: the file tools over a new StateFileBackend, todos, summarisation (with the model-free digest compressor), offload of large results, skills under /skills and instructions in /AGENTS.md, each at its component's defaults, with the default prompt, and the general-purpose subagent (SubagentConfig.deepAgents), offered through the task tool. Each call has its own backend.
The opinionated preset: the file tools over a new StateFileBackend, todos, summarisation (with the model-free digest compressor), offload of large results, skills under /skills and instructions in /AGENTS.md, each at its component's defaults, with the default prompt, and the general-purpose subagent (SubagentConfig.deepAgents), offered through the task tool. Each call has its own backend.
Its permission rules are standingFileRules for those paths: a write or delete of /AGENTS.md or anything under /skills asks for approval, since what is written there becomes part of the system prompt from the next run - a prompt injection in a tool result could otherwise make itself a standing instruction (#3268) - and every other call is allowed. withPermissions replaces them; keep standingFileRules in front of your own rules, or serve the instructions and skills from a read-only StaticFileBackend.
The rules see the file tools; execute is guarded apart (#3327). With a sandbox (withSandbox), a command whose file system is the one the standing files are read from (a backend over the sandbox's directory) could change them without asking (echo ... > AGENTS.md), so the harness reads them before and after each command and puts back any it changed, telling the model to use a file tool (StandingFilesGuard). The guard holds while these rules (or standingFileRules kept in front of your own) are the profile's.
Attributes
- Source
- HarnessProfile.scala
The prompt PromptMode.Default gives profile: how to plan, act and verify, manage context and use tools safely, with a part for each of the file tools, the plan, context management, execute and subagents that the profile turns on. Its parts are fixed text, so its size is bounded by them.
The prompt PromptMode.Default gives profile: how to plan, act and verify, manage context and use tools safely, with a part for each of the file tools, the plan, context management, execute and subagents that the profile turns on. Its parts are fixed text, so its size is bounded by them.
Attributes
- Source
- HarnessProfile.scala
The default retention: the latest DefaultRetainedCheckpoints checkpoints.
The default retention: the latest DefaultRetainedCheckpoints checkpoints.
Attributes
- Source
- HarnessProfile.scala
Rules that ask approval for a Write or Delete of each instruction file in instructionPaths and of anything under each skill source in skillSources (#3268). They decide only those operations on those paths, so put them first and follow them with the rules for everything else: a PermissionMiddleware denies a call no rule matches.
Rules that ask approval for a Write or Delete of each instruction file in instructionPaths and of anything under each skill source in skillSources (#3268). They decide only those operations on those paths, so put them first and follow them with the rules for everything else: a PermissionMiddleware denies a call no rule matches.
Attributes
- Source
- HarnessProfile.scala
Concrete fields
How many checkpoints a thread keeps by default: every checkpoint is a full snapshot of its state (rule 6).
How many checkpoints a thread keeps by default: every checkpoint is a full snapshot of its state (rule 6).
Attributes
- Source
- HarnessProfile.scala
