qalatra/docs/agent.config reference

The agent.config file

A small JSON contract between your agent and Qalatra.

agent.config is a JSON file at the root of every agent folder. Qalatra scans folders for it, registers the folder as a runnable agent, and now also derives a structured capability record from the same file.

Minimal config

{
  "name": "Research Agent",
  "description": "Researches a topic and produces a markdown report",
  "context": "internal",
  "command": "claude --dangerously-skip-permissions"
}

Existing configs like this still work. Qalatra infers a default capability from the name, description, context, project, and folder path.

With capability metadata

{
  "name": "Filer",
  "description": "Files invoices and local documents into the right folders.",
  "context": "internal",
  "command": "claude --dangerously-skip-permissions",
  "timeout_minutes": 30,
  "capability": {
    "kind": "agent",
    "aliases": ["filing", "file organization", "desktop cleanup"],
    "triggers": [
      "file this invoice",
      "where should this go",
      "organize these files"
    ],
    "delegation": {
      "mode": "qalatra_agent",
      "target": "."
    },
    "permissions": {
      "read_files": "allowed",
      "move_files": "confirm",
      "delete_files": "double_confirm",
      "send_email": "never"
    },
    "files": [
      {
        "path": "AGENTS.md",
        "role": "instructions",
        "readable": true,
        "writable": false,
        "include_in_bundle": true
      },
      {
        "path": "knowledge/routing-rules.md",
        "role": "routing_rules",
        "readable": true,
        "writable": true,
        "include_in_bundle": true
      }
    ]
  }
}

Reference

KeyTypeDefaultNotes
namestringUnique. Used in task &agent references.
descriptionstringnoneUsed in agent lists and capability search.
contextstringnoneBroad operating bucket, such as internal, personal, or a client slug.
projectstringnoneNamed project or repo. Used for filtering agents and capabilities.
commandstringglobal defaultCLI command Qalatra uses to run the agent from its folder.
codingbooleanfalseWhen true, running the agent routes the task to the Code view.
timeout_minutesnumber15Maximum runtime before Qalatra stops the process.
capabilityobjectinferredAI-facing routing metadata, permissions, delegation, and owned files.
Agents vs capabilities. The top-level fields tell Qalatra how to run an agent. The optional capability block tells another AI when to pick it, what guardrails apply, and what files define it.