给 Agent 授予永久操作权限的机制,定义自主执行的程序边界。

核心价值

没有 Standing Orders:每次任务都需要提示,Agent 在请求间空闲,例行工作被遗忘。

有 Standing Orders:Agent 在定义边界内自主执行,例行工作按计划进行,只有异常才需要人工介入。

工作原理

Standing Orders 定义在工作区文件中(推荐放在 AGENTS.md),每次会话自动注入。

每个程序指定:

  1. Scope — Agent 被授权做什么
  2. Triggers — 何时执行(调度/事件/条件)
  3. Approval gates — 什么需要人工审批
  4. Escalation rules — 何时停止并寻求帮助

示例

## Program: Weekly Status Report
 
**Authority:** Compile data, generate report, deliver to stakeholders
**Trigger:** Every Friday at 4 PM (enforced via cron job)
**Approval gate:** None for standard reports. Flag anomalies for human review.
**Escalation:** If data source unavailable or metrics look unusual (>2σ from norm)
 
### Execution steps
1. Pull metrics from configured sources
2. Compare to prior week and targets
3. Generate report in Reports/weekly/YYYY-MM-DD.md
4. Deliver summary via configured channel
5. Log completion to Agent/Logs/
 
### What NOT to do
- Do not send reports to external parties
- Do not modify source data

Standing Orders + Cron 协同

Standing Order: "You own the daily inbox triage"
    ↓
Cron Job (8 AM daily): "Execute inbox triage per standing orders"
    ↓
Agent executes within defined boundaries

Standing Orders 定义 做什么,Cron 定义 何时做。

放置位置

  • 推荐:直接放在 AGENTS.md(每次会话自动注入)
  • 大型配置:放在 standing-orders.md,从 AGENTS.md 引用

相关

  • concepts/automation-overview — 自动化机制选择
  • concepts/automation-cron — 定时任务
  • agent-workspace — 工作区文件布局
  • soul — SOUL.md 人格配置