S
SiliconPsycheLabs/gate
A deterministic gate for the actions of AI agents: normalise every action, check it against Cedar rules,…
更新 2026-11-19
在 GitHub 查看 ↗直链 · 无中转页
装完之后怎么算装好了
- 装完该看到什么 — 命令正常结束时退出码为 0,终端里没有 "command not found" 或 "permission denied"。
- 一行自检 — 按该仓库 README 里给出的最小用法跑一次;能按 README 的描述输出就是通了。
- 答不出来怎么办 — 这个项目没有写排错说明,去仓库的 Issues 搜 install。
安装命令取自该仓库;以上判据只描述可观察到的结果,不替代项目自己的文档。
- ★ 数取值
- 0 ★ · SiliconPsycheLabs/gate · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 1 个来源列出
- 评分构成
- 综合分 103 · 1 个来源 · repo
- 安装
- 安装命令见上方「安装与配置」。
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
SiliconPsycheLabs/gate;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。README 原文(英文,未翻译) · 在 GitHub 读完整 README →
# gate
以下摘录自该仓库的 README(片段)
A deterministic gate for the actions of AI agents.
Every action an agent is about to take (run a shell command, write or delete a file, call a URL, push to git,
install a package, change a service) is turned into a structured record, checked against rules you wrote, and
allowed, denied or held for a person. The model gets a fixed reply. Same action, same rules, same answer,
every time.
Built for agents that run on models you own (an open-weights model behind vLLM driven by an agent framework, or a
hand-written loop), where nothing between the model and your shell decides what is allowed.
From Silicon Psyche Labs. Apache-2.0.
## Why deterministic
You cannot tell from text alone whether an action is the one you wanted: a planted instruction and a real request
can look exactly the same to any classifier. So the gate does not try to guess intention. It enforces what you
declared: which directories can change, which hosts can be reached, which branches can be pushed, which operations
need a person. Its correctness is measured against your rules, never against what the agent "meant", and it is
not a safety rating.
What it gives you is a ceiling on what an agent can do, and an exact count of how often the agent tried to go past it.
Every input a rule reads is computed deterministically from the action and the session transcript (parsing, path
resolution, string matching for provenance). No model, classifier or probability score feeds a decision: the same
action in the same session always gets the same answer, and an action either passes or it does not.
## Install
bash
pip install "git+https://github.com/SiliconPsycheLabs/gate@v0.1.16"
Requires Python 3.10+. Rules are evaluated with Cedar (cedarpy); shell commands are
parsed with bashlex.
## Claude Code
Every action of your Claude Code sessions (shell commands, file writes, web fetches, MCP tool calls) goes to the gate
before it runs. Create a gate-only key in Settings on splabs.io (it starts with psa_gate_ and
works only on the gate). Then install it one of two ways; both run the same hook.
As a Claude Code plugin (no pip; needs Python 3 on the machine). Inside Claude Code:
/plugin install splabs-gate --marketplace SiliconPsycheLabs/gate
On Claude Code older than 2.1.275, run /plugin marketplace add SiliconPsycheLabs/gate and then
/plugin install splabs-gate@splabs. Claude Code asks for the key (kept in the system's secure store), the mode
and the hosts the agent may contact without asking; /config changes them later. The plugin (folder
claude-code-plugin/) ships the hook only: if the service cannot be reached in enforce mode, an action that cannot be
checked is refused. Install the package too (below) to
have the same rules decide on your machine instead.
With pip:
bash
pip install "git+https://github.com/SiliconPsycheLabs/gate@v0.1.16"
gate claude-code install --key psa_gate_...
gate claude-code status shows the setup, gate claude-code uninstall removes the hook. Options: --scope project
(this repository only), --egress host1,host2 (hosts allowed without asking), --redact-file (a KEY=value file
whose values are never sent). If both are installed, the plugin's hook stands down and this one decides.
Every action an agent is about to take (run a shell command, write or delete a file, call a URL, push to git,
install a package, change a service) is turned into a structured record, checked against rules you wrote, and
allowed, denied or held for a person. The model gets a fixed reply. Same action, same rules, same answer,
every time.
Built for agents that run on models you own (an open-weights model behind vLLM driven by an agent framework, or a
hand-written loop), where nothing between the model and your shell decides what is allowed.
From Silicon Psyche Labs. Apache-2.0.
## Why deterministic
You cannot tell from text alone whether an action is the one you wanted: a planted instruction and a real request
can look exactly the same to any classifier. So the gate does not try to guess intention. It enforces what you
declared: which directories can change, which hosts can be reached, which branches can be pushed, which operations
need a person. Its correctness is measured against your rules, never against what the agent "meant", and it is
not a safety rating.
What it gives you is a ceiling on what an agent can do, and an exact count of how often the agent tried to go past it.
Every input a rule reads is computed deterministically from the action and the session transcript (parsing, path
resolution, string matching for provenance). No model, classifier or probability score feeds a decision: the same
action in the same session always gets the same answer, and an action either passes or it does not.
## Install
bash
pip install "git+https://github.com/SiliconPsycheLabs/gate@v0.1.16"
Requires Python 3.10+. Rules are evaluated with Cedar (cedarpy); shell commands are
parsed with bashlex.
## Claude Code
Every action of your Claude Code sessions (shell commands, file writes, web fetches, MCP tool calls) goes to the gate
before it runs. Create a gate-only key in Settings on splabs.io (it starts with psa_gate_ and
works only on the gate). Then install it one of two ways; both run the same hook.
As a Claude Code plugin (no pip; needs Python 3 on the machine). Inside Claude Code:
/plugin install splabs-gate --marketplace SiliconPsycheLabs/gate
On Claude Code older than 2.1.275, run /plugin marketplace add SiliconPsycheLabs/gate and then
/plugin install splabs-gate@splabs. Claude Code asks for the key (kept in the system's secure store), the mode
and the hosts the agent may contact without asking; /config changes them later. The plugin (folder
claude-code-plugin/) ships the hook only: if the service cannot be reached in enforce mode, an action that cannot be
checked is refused. Install the package too (below) to
have the same rules decide on your machine instead.
With pip:
bash
pip install "git+https://github.com/SiliconPsycheLabs/gate@v0.1.16"
gate claude-code install --key psa_gate_...
gate claude-code status shows the setup, gate claude-code uninstall removes the hook. Options: --scope project
(this repository only), --egress host1,host2 (hosts allowed without asking), --redact-file (a KEY=value file
whose values are never sent). If both are installed, the plugin's hook stands down and this one decides.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/siliconpsychelabs-gate/)
- 来源
- github · https://github.com/SiliconPsycheLabs/gate
- 按领域浏览
- 开源项目
- 收录于
- 今天
更多条目
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。