Skip to main content

Examples

Example 1: A complete agent

This example shows every frontmatter field and a one-line prompt body.

Example 2: An agent with no file scope

This example declares no where block, so it has no file scope. Its scope is the whole repository, and it finds its own targets with Read, Glob, and Grep. See Agents with no file scope.
This example leaves maxTurnsPerBatch out, so it gets 150 turns, the default for an agent with no file scope. The default is 50 for an agent with a file scope. A declared value wins over either default, so the agent in example 1 gets the 40 it asks for.

Frontmatter fields

The slug rule

The slug value must match the filename. The filename must be <slug>.md.

noiseTier

The noiseTier field sets the false-positive rate to expect from the agent. It does not change how the agent runs.