Skip to content

Agent-oriented task metadata #51

@8bitAlex

Description

@8bitAlex

Add optional metadata to task definitions so AI agents can reason about task safety and decide what they can run autonomously vs. what requires user approval.

Proposed schema

tasks:
  test:
    cmd: go test ./...
    agent:
      safe: true           # idempotent, no side effects
      reads: ["./..."]     # paths/globs read
      writes: []           # paths/globs written
      description: "Run unit tests"
  deploy:
    cmd: ./scripts/deploy.sh
    agent:
      safe: false          # has side effects — agent should prompt
      description: "Deploy to production"

Behavior

  • Agents (via MCP) check agent.safe before auto-executing
  • Unsafe tasks require explicit user confirmation in agent clients that respect the hint
  • Metadata mirrors Claude Code's permission model for consistency

Requirements

Acceptance criteria

  • Schema updated
  • MCP tool descriptions include safety metadata
  • Documentation explains the safety model
  • Example raid.yaml files demonstrate usage
  • Tasks lacking an agent: block are surfaced to MCP clients as safe: false by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1-betaScope for the v1 beta — clearing all of these ships v1.0

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions