Skip to main content
Every new agents.yaml PraisonAI scaffolds comes pre-wired for editor autocomplete β€” no setup required.

Quick Start

1

Zero-config β€” scaffold a new project

The generated agents.yaml has the schema directive on line 1:
Open it in VS Code (with the Red Hat YAML extension) and you get autocomplete immediately.
2

Add it to an existing agents.yaml

Paste this one line at the top of any agents.yaml:
Your editor fetches the schema and starts suggesting fields as you type.
3

Pin the schema locally

For offline or air-gapped setups, write the schema to a file:
Then point the header at the local copy:

How It Works

The header is a leading YAML comment, so yaml.safe_load ignores it β€” runtime parsing and execution are unchanged. It’s authoring-time only.

Editor Support


Two Flavours

The published (editor) schema is intentionally a touch more permissive than the strict runtime validator, so editors never red-underline valid, executable YAML. Two intentional relaxations in the editor schema:
  • role/goal/backstory are optional β€” the runtime auto-fills role/goal from the agent key and maps instructions β†’ backstory.
  • roles and agents accept either the canonical dict form or a list form (anyOf).
The strict validator behind praisonai validate still requires the dict form and all three fields, so run validate before shipping.

Best Practices

Run praisonai validate schema -o agents.schema.json and point the header at ./agents.schema.json so authoring works with no network access.
The header catches typos while you type; praisonai validate enforces the strict runtime rules before you run. They cover different layers β€” use both.
After pip install -U praisonai, refresh your local copy: praisonai validate schema -o agents.schema.json.
Power users can import AGENTS_SCHEMA_URL, AGENTS_SCHEMA_HEADER, and generate_agents_schema() from praisonai.config to generate or host the schema themselves.

Validate CLI

Fail-fast YAML validation and the schema --agents / -o flags

YAML Configuration Reference

Complete field reference for agents.yaml and workflow.yaml