Agent General Staff banner
FernandeZ-hjm FernandeZ-hjm

Agent General Staff

Development community

Description

A portable multi-agent engineering kit for Codex, Cursor, and Claude Code development workflows.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Agent Governance Suite

[English](README_EN.md)

Agent Governance Suite(AGS)v3 是一个**薄壳式 Agent 治理套件**:把治理从 "流程总线"改为"执行点上的薄壳"——平时隐形,危险时现身。

一句话理解

ags run --task card.md          # 校验 + 矩阵判权 + 审查级推导
   (宿主执行,ags-policy hooks 静默判权每个工具调用)
ags run --task card.md --verify # 结构化验证命令(无 shell)
ags run --task card.md --close --report report.json --effective heavy
                                # 证据链闭包 + 记忆指针

危险操作走封条:`ags upgrade`、`ags update` 等 sealed 命令先出 `action_ref`, `ags apply ` 单次消费,防重放、防篡改、跨绑定 fail-closed。

三个文件认识 AGS

  • ags.toml:每 workspace 一份的单一策略文件。权限矩阵 (surface:action → allow/ask/deny)、写边界、封条清单、验证命令、 审查升级表、宿主注册、能力源。ags init 生成脚手架。
  • .ags/evidence/events.jsonl:append-only 证据日志。每条事件内容 寻址 + 链式(prev_sha256),断链可检测;按日 + 10MB 滚动归档。
  • .ags/capabilities.lock:能力 hash 钉选。精确路由(id+hash), 无 staleness 状态机,只有 ags update / install / remove 刷新。
  • 本地入口投影AGENTS.md 等工作树文件包含 AGS managed block; repository-local clean/smudge filter 保证该区块不进入 Git。
  • 可核验构建:所有用户表面报告 v0.4.21,Doctor 单列 build=[.dirty],区分同版本的具体构建。

命令面(lark-cli 三层风格,每条命令带风险级)

命令
快捷层(+shortcut) ags run(一条命令的任务流)、ags initags doctor
类型化命令 ags mcpags checkags testags logags statusags setupags upgradeags updateags govern skill install/removeags schema
封条逃生舱 ags apply (唯一 mutation 面)

风险标注:`read`(零写入)/ `write`(封条计划 + apply)/ `high-risk-write`(封条 + 边界)。

宿主支持

宿主 判权
Claude Code / Codex / Cursor / CodeBuddy 全量 hooks(PreToolUse / PermissionRequest / PostToolUse → ags-policy
OMP / DSH MCP ags_decide / ags_apply 降级模式

hook 失效 fail-open 回落到宿主默认(D5),`ags doctor` 监控健康度。

五个 crate

`ags-kernel`(唯一深模块)· `ags-task-contract`(任务卡 + `ags run`)· `ags-cli` · `ags-mcp` · `ags-release`(公开投影边界)。用户侧 CLI 与 MCP 统一从 `ags` 进入; 适配器是内核的薄投影,不持有平行领域逻辑。

快速开始

cargo build --release
ags setup --source-root .                   # 验证五二进制并初始化 v3