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
累計下載
4046
星標
2
全站排名
#2,524
全站前 50% · 「AI 智慧體」前 51%
平台累計安裝累計下載星標評論
ClawHub ↗131392822
SkillHub ↗13140462—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

AgentSentinel 可在本地評估擬執行操作是否符合策略與預算,檢視狀態、建立預設策略檔案、重置本地支出跟蹤,並在配置 API key 後由操作者顯式執行 sync 上傳事件。防護判斷屬於建議,不能直接視作可靠的安全邊界;應審閱策略、明確拒絕規則,並對破壞性或高成本操作進行人工複核。包裝器會在本地記錄原始命令文字,同步前檢查日誌並避免包含秘密;僅在信任遠端服務時啟用同步。

資料釋出於 2026-10-29

可以用來做什麼

  • 需要在執行成本高或風險較大的 agent 操作前增加本地策略與預算檢查的開發者和運維人員。

什麼時候用

  • 不要將建議性檢查當成唯一安全控制;明確拒絕規則,人工稽核高風險動作。命令可能被本地記錄,避免檢查包含秘密的內容,並在上傳前審閱事件日誌。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

解釋本地策略檢查、預算狀態和可選同步的區別;不要執行命令、修改策略或上傳事件。

月度資料趨勢

累計下載4046
2616338441522026-03 · 累計下載 27222026-05 · 累計下載 33142026-06 · 累計下載 34852026-07 · 累計下載 37002026-08 · 累計下載 38412026-09 · 累計下載 404626-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094046—2
2026-083841+3.8%2
2026-073700+6.2%2
2026-063485+5.2%2
2026-053314—2
2026-032722—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),按月更新。口徑說明見資料方法。