jimmystacks

AgentSentinel Safety Layer

AI 智能体v0.1.2
作者:jimmystacks更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-04-05agent-sentinel@clawhub_jimmystacks/agent-sentinel
工作流编排工具调用#Policy#Sync

据 AlphaMoat 统计,截至 2026-09,AgentSentinel Safety Layer 累计下载 4,046 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,524 位,在「AI 智能体」分类(969 个)中排名第 492 位。

累计安装
131
累计下载
4,046
星标
2
全站排名
#2,524
全站前 50% · 「AI 智能体」前 51%
平台累计安装累计下载星标评论
ClawHub ↗1313,92822
SkillHub ↗1314,0462—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

AgentSentinel 可在本地评估拟执行操作是否符合策略与预算,查看状态、创建默认策略文件、重置本地支出跟踪,并在配置 API key 后由操作者显式运行 sync 上传事件。防护判断属于建议,不能直接视作可靠的安全边界;应审阅策略、明确拒绝规则,并对破坏性或高成本操作进行人工复核。包装器会在本地记录原始命令文本,同步前检查日志并避免包含秘密;仅在信任远程服务时启用同步。

资料发布于 2026-10-29

可以用来做什么

  • 需要在执行成本高或风险较大的 agent 操作前增加本地策略与预算检查的开发者和运维人员。

什么时候用

  • 不要将建议性检查当成唯一安全控制;明确拒绝规则,人工审核高风险动作。命令可能被本地记录,避免检查包含秘密的内容,并在上传前审阅事件日志。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

解释本地策略检查、预算状态和可选同步的区别;不要运行命令、修改策略或上传事件。

月度数据趋势

累计下载4,046
2,6163,3844,1522026-03 · 累计下载 2,7222026-05 · 累计下载 3,3142026-06 · 累计下载 3,4852026-07 · 累计下载 3,7002026-08 · 累计下载 3,8412026-09 · 累计下载 4,04626-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,046—2
2026-083,841+3.8%2
2026-073,700+6.2%2
2026-063,485+5.2%2
2026-053,314—2
2026-032,722—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.8 KB · ClawHub v0.1.2
---
name: agent-sentinel
description: Local-first budget and policy guardrails for agent actions, with optional remote sync to AgentSentinel.
homepage: https://github.com/jimmystacks/agent-sentinel
metadata: {"openclaw":{"emoji":"🛡️","homepage":"https://github.com/jimmystacks/agent-sentinel/tree/main/skills/agent-sentinel","primaryEnv":"AGENT_SENTINEL_API_KEY","files":["sentinel_wrapper.py","README.md","CHANGELOG.md"],"requires":{"bins":["python3"]}}}
---

# AgentSentinel Protection Layer

Use this skill when you want a local policy gate before an agent performs a costly or risky action.
展开全部(共 117 行)

This OpenClaw skill is the lightweight entry point to the broader AgentSentinel product:
- this skill for local-first OpenClaw guardrails
- AgentSentinel SDK for deeper Python agent instrumentation
- AgentSentinel platform for centralized monitoring, dashboards, and approval workflows

AgentSentinel is local-first by default:
- Policy checks run locally.
- Budget tracking runs locally.
- No remote sync is attempted unless the operator runs `sync` with an API key configured.

## When To Use It

Use AgentSentinel before:
- expensive model or API calls
- file deletion or destructive shell commands
- high-volume automation loops
- actions that should be blocked by policy or capped by budget

## Commands

### `check`

Check whether a proposed action is allowed under the current local policy and budget.

```bash
python3 sentinel_wrapper.py check --cmd "rm -rf build" --cost 0.05
```

### `status`

Show the current local status, including budget usage and whether optional remote sync is enabled.

```bash
python3 sentinel_wrapper.py status
```

### `sync`

Upload locally recorded events to AgentSentinel cloud when `AGENT_SENTINEL_API_KEY` is set.

```bash
python3 sentinel_wrapper.py sync
```

### `bootstrap`

Create a default `callguard.yaml` in the current workspace if one does not already exist.

```bash
python3 sentinel_wrapper.py --bootstrap
```

### `reset`

Reset local tracked spend for the current run, or for the entire local session state.

```bash
python3 sentinel_wrapper.py reset --scope run
python3 sentinel_wrapper.py reset --scope all
```

## Configuration

Policy is loaded from `callguard.yaml` in the current workspace when present.

Optional cloud mode is enabled by setting:
- `AGENT_SENTINEL_API_KEY`

If the API key is not present, the skill remains local-only.
Locally recorded events stay on-machine until `sync` is run.

## AgentSentinel Product Path

Use this skill if you want fast local guardrails inside OpenClaw.

Use the AgentSentinel SDK when you want:
- richer Python integrations
- broader policy and telemetry coverage
- framework-level instrumentation outside OpenClaw

Use the AgentSentinel platform when you want:
- centralized visibility across agents
- dashboards and historical analysis
- human approval workflows and operational review

## External Endpoints

| Endpoint | When it is called | Data sent |
| --- | --- | --- |
| `https://api.agentsentinel.dev` | Only when `AGENT_SENTINEL_API_KEY` is present and `python3 sentinel_wrapper.py sync` is run | locally recorded action events generated by AgentSentinel |

## Security And Privacy

- Local mode does not send data off-machine.
- The wrapper does not write API keys to `.env` or other files.
- Remote sync is opt-in and requires both `AGENT_SENTINEL_API_KEY` and an explicit `sync` command.
- If remote sync fails, policy checks still continue locally.

## Model Invocation Note

OpenClaw may invoke this skill automatically when the task suggests budget enforcement, policy checks, or action gating. That behavior is expected for an installed skill.

## Trust Statement

By enabling remote sync, you allow AgentSentinel telemetry to be sent to `agentsentinel.dev`. Only enable that mode if you trust the service and want centralized monitoring.

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。