Skip to main content
praisonai agent create writes a ready-to-run custom agent from a single line of description.

Quick Start

1

Interactive — one line to start

Run the command with no arguments and answer the prompts:
You’ll see:
2

Scriptable — CI-friendly

Pass every answer as a flag and skip the prompts with --yes:
3

Run the agent you just made


Which preset should I pick?

Presets map to the mode frontmatter that scopes what the agent may do.
Interactive default is full. For anything that reviews code, choose read-only explicitly.

How It Works

The command drafts a system prompt, writes the file, then re-parses it to confirm discovery can read it back. The written file re-parses losslessly through discovery:
If the LLM draft fails, an editable stub is written instead — file creation is never blocked.

Configuration Options

Destination directories
  • Project (default): <git root or CWD>/.praisonai/agents/<name>.md
  • Global (--global): ~/.praisonai/agents/<name>.md

Common Patterns

Team of reviewers — create three read-only reviewers, then run them together via subagents:
Global helper across every project — write to your home directory:
Overwrite an old definition — pass --force; without it the command refuses and prints the exact path:
Shadow warning — a --global agent is shadowed when a project agent shares its name. The command warns and names the shadowing path so you don’t run the wrong one. Resolve it by renaming or deleting one of the two files.

Best Practices

The file omits mode for full, so an explicit read-only is the safest default for reviewers.
A one-line description makes the drafted system prompt dramatically better than a bare name.
Same-named project agents take precedence for run, so a global one silently loses to a project override.
A name is a file stem, not a path. Avoid /, \, ., and .. — the command rejects them before drafting, so you get fast, clear failures.

CLI Reference

Full command tree, including the agent subcommands.

External Agents

Custom agents in the coding CLI.