授予代理对 git 操作、API 调用和外部交互的完全控制。配置更简单,但需要更高信任。示例: 在我们的 Auto Update Documentation cookbook 中,第一个工作流让代理:
分析 PR 变更
创建并管理 git 分支
提交并推送变更
在拉取请求中发布评论
处理所有错误场景
Copy
Ask AI
- name: Update docs (full autonomy) run: | cursor-agent -p "You have full access to git, GitHub CLI, and PR operations. Handle the entire docs update workflow including commits, pushes, and PR comments."