# configuration/schemas/agent.schema.ts

> 15 lines of code and 1 definition.

Tree: GovLab Docs
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/docs#file-docs-configuration-schemas-agent-schema-ts
Source text: https://banes-lab.com/source/docs/configuration/schemas/agent.schema.ts.txt

Listed in [configuration/schemas](https://banes-lab.com/api/source/docs/configuration/schemas.md), before [configuration/schemas/document.schema.ts](https://banes-lab.com/source/docs/configuration/schemas/document.schema.ts.md).

## Definitions

- `AGENT_FRONTMATTER_SCHEMA` (lexical_declaration, line 3, exported)

## Contained in

- [configuration/schemas](https://banes-lab.com/anatomy/docs/folder-docs-configuration-schemas.md)

## Source

```typescript
import type { FrontmatterSchema } from "#types/metadata.types";

export const AGENT_FRONTMATTER_SCHEMA: FrontmatterSchema = {
    fields: {
        background: { kind: "boolean" },
        color: { enum: ["red", "blue", "green", "yellow", "purple", "orange", "pink", "cyan"] },
        effort: { enum: ["low", "medium", "high", "xhigh", "max"] },
        isolation: { enum: ["worktree"] },
        maxTurns: { kind: "integer" },
        memory: { enum: ["user", "project", "local"] },
        model: { enum: ["inherit", "sonnet", "opus", "haiku", "fable"] },
        name: { kind: "kebab" },
        permissionMode: { enum: ["default", "manual", "acceptEdits", "auto", "dontAsk", "bypassPermissions", "plan"] },
    },
    required: [],
};
```
