AGENT SKILL

jev-guardrail

Screen text or agent tool calls with a battery of local System One Noul hazards plus a Score, with policy in code — and the Claude Code PreToolUse guard (hooks/pretooluse-guard) that puts deterministic hard rules first and lets Jev only raise friction. Use for injection/secret/destructive-action screening or when the user runs /jev-guardrail.

License 许可
Apache-2.0
最近更新
2026-11-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
jev-guardrail
description
Screen text or agent tool calls with a battery of local System One Noul hazards plus a Score, with policy in code — and the Claude Code PreToolUse guard (hooks/pretooluse-guard) that puts deterministic hard rules first and lets Jev only raise friction. Use for injection/secret/destructive-action screening or when the user runs /jev-guardrail.

03 SKILL.md 正文

Jev guardrail (local first, raise-only)

Adapted from cobusgreyling/Jev skills/jev-guardrail (MIT). Cookbook: docs.typesafe.ai/cookbooks/llm_guardrails.

Jev doesn't refuse in prose. It scores hazards, and code returns pass, review, or block.

FORBIDDEN

  • Hard rules run first and are final. A deterministic deny/ask (rm -rf outside tmp, force-push to main/master, credential paths, confirm: true on stripe_*/cloudflare_deploy_*, prod migrations, shell deploy/publish) is never softened, skipped, or re-asked by Jev.
  • Raise-only. Jev can turn pass into review, or no-decision into ask. It never emits allow, never approves, and never lowers a hard-rule verdict.
  • Never the decider for money, publishing, deploys, or client comms. Those are human gates in CLAUDE.md whatever the scores say.
  • No client or regulated data, and no secrets, in state for remote backends. The Claude Code guard only ever sends the tool name, redacted command text, redacted paths, the cwd, and MCP argument keys. It never sends file contents, edit bodies, or MCP argument values.
  • Injection-exposed state is never screened by Jev alone. A 3B local model is easy to talk around. Keep a deterministic layer in front.

Two lanes

1. Content guardrail (product code). One request carrying independent Nouls per hazard (jailbreak, prompt_injection, secret_exfil, harmful_request; on output secret_leak, broke_policy, hallucination) plus a harm Score. Gate each Noul on its probability. Content guardrails fail closed: if the call errors, send the item to review.

2. Claude Code PreToolUse guard (tools/system-one-local/hooks/pretooluse-guard):

  • The hard rules settle the call first. When they do, the model isn't called at all.
  • Otherwise the hazard pack (destructive, exfiltration, production, money_or_publish Nouls and a blast_radius Score) goes to the local server.
  • SYSTEM_ONE_HOOK_MODE=log (default) is a dry run. It never emits a decision and appends to ~/.allternit/system-one/dryrun/<date>.jsonl.
  • advise emits hard-rule deny/ask, and may escalate to ask when any Noul is at or above 0.7 or the Score is at or above 2.5.
  • If the server is down or times out, the hook emits no decision, so Claude Code's normal permission flow applies. It never fails to allow.
  • Review with bun scripts/dryrun-summary.ts before switching on advise.

Measured on llama3.2 3B (2026-09-29, 8 commands, not a calibration study): the destructive Noul separated benign reads (0.45–0.67) from deletes/resets (0.90–0.97). blast_radius stayed flat at about 2.0 on everything, so it carries no signal on this model. Treat the dry-run log as the evidence to collect before trusting any threshold.

04 同仓库更多 Skills

Allternit
Allternit/allternit-platform

Jev类型化判断推理

jev

针对 Allternit 的本地 System One 服务器发起类型化的 System One 判断(noul / choice / score),而不是通过提示让聊天模型“返回 JSON”。用于分类、路由、评分或筛选场景:当代码需要一个可据以分支的概率值,或当用户运行 /jev 时使用。官方 TypeSafe Jev 是可选且显式的远程通道。

AI 工程师大模型应用开发
★ 1
Allternit
Allternit/allternit-platform

jev-route

Route with local System One answers — map Choice + confidence to act / confirm / human lanes, or pick a model tier by Choice label. Also documents the separate `route-model` helper for OpenRouter's typesafe/jev-router (a chat-model router, NOT System One). Use for confidence routing, model-tier routing, or when the user runs /jev-route.

★ 1
Allternit
Allternit/allternit-platform

jev-fanout

Ask every independent System One question over the same state in ONE POST /v1/systemone to the local server (speculative fan-out). Use for parallel judgments, compound commands, one-call turn assessment, or when the user runs /jev-fanout. Do not fire one HTTP call per question.

★ 1
Allternit
Allternit/allternit-platform

memory-drive

Read and write the user's Allternit Memory Drive, a git repo of markdown memories in the open Agent Memory Repo format. Use at the start of a session to load what the user's agents remember (MEMORY.md), when the user says "remember this", when you learn a durable fact about the user or their work, and before answering questions that depend on past sessions.

★ 1
Allternit
Allternit/allternit-platform

外部 CLI 代理编排

agent-orchestrator

通过 Allternit Factory(gizzi agents / orchestration / workspace / workflows)编排外部 CLI 代理(kimi、codex、agy、claude、grok、gizzi)。当用户要求将实现工作委派、转移或分派给其他 CLI 代理/终端会话,或在本会话之外运行工作以节省 token 时使用。属于 Allternit Agents / Bot Agents 的一部分——并非独立产品。

软件开发工程师编码任务委派
★ 1
Allternit
Allternit/allternit-platform

WebObsidian 笔记管理

webobsidian

通过 WebObsidian 的 Agent REST API(/api/v1)读取、写入、搜索和管理 WebObsidian 库(vault)中的笔记。当用户要求在 WebObsidian / Obsidian 库中查找、读取、创建、更新、追加或删除笔记、列出标签、获取反向链接,或执行库搜索时使用。凭证(base URL + API key)存储在 ~/.webobsidian/credentials.json;如缺失,请先向用户索取并保存,再发起请求。

知识工作者知识管理与沉淀
★ 1