Skip to content
Agent
AGH RuntimeAgent

agh agent create

Create a global or workspace-local AGENT.md definition

Audience
Operators running durable agent work
Focus
Agent guidance shaped for scanability, day-two clarity, and operator context.

agh agent create

Create a global or workspace-local AGENT.md definition

agh agent create <name> [flags]

Examples

  # Create a workspace-local agent definition
  agh agent create pricing_strategist \
    --workspace ~/dev/ad8 \
    --provider claude \
    --model claude-sonnet-4-6 \
    --prompt "You own pricing strategy." \
    -o json

Options

      --category stringArray    Agent category path segment (repeatable)
      --command string          Optional provider command override
      --deny-tool stringArray   Denied tool pattern (repeatable)
      --force                   Overwrite an existing AGENT.md definition
  -h, --help                    help for create
      --model string            Optional provider model
      --permissions string      Optional permission mode
      --prompt string           Agent system prompt body
      --prompt-file string      Read the agent system prompt body from a file
      --provider string         Provider name for sessions using this agent
      --tool stringArray        Allowed tool pattern (repeatable)
      --toolset stringArray     Allowed toolset reference (repeatable)
      --workspace string        Workspace id, name, or path to create the agent under

Options inherited from parent commands

      --json            Emit JSON output
  -o, --output string   Output format: human, json, jsonl, or toon (default "human")

Output Formats

Every AGH command supports -o, --output:

  • human for interactive terminal use
  • json for scripts and other machine-readable consumers
  • jsonl for wait or streaming commands that emit one JSON record per line
  • toon for compact agent-readable summaries

Example:

agh agent create <name> -o json

On this page