独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
S

sebabottero/ai-setup

Guardrails + token savings for Claude Code, OpenCode & Codex: asks before git push/rm -rf, picks the right…

装之前:没有可直接复制的命令 · 许可证 MIT · 链接可访问

第一步:git clone https://github.com/sebabottero/ai-setup.git ~/Dev/ai-setup # clone into the final path: the links point to it

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
★ 数取值
2 ★ · sebabottero/ai-setup · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-11-02 · 最近见到 2026-11-14 · 共见到 13 次 · 被 1 个来源列出
评分构成
综合分 103 · 2 ★ · 1 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: Agent 技能。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 sebabottero/ai-setup;我们收录于 2026-11-02;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# ai-setup

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Make your AI coding agent ask before git push, rm -rf or reading your SSH keys, and stop burning tokens without noticing.
One folder configures Claude Code, OpenCode and Codex the same way, on every machine.
| | What you get |
| 🛡 Asks before anything hard to undo | One policy.json and one guard decide allow / ask / deny for every shell command. Secrets are a hard deny. Claude also gets an OS sandbox from the same policy. |
| 💸 Spends fewer tokens | coach picks model and effort before you start. A hook warns when the context passes 100k. usagereport.py audits your own sessions, locally. |
| 🔀 Same rules in every tool | Write rules, skills and agents once. They install into Claude Code, OpenCode and Codex. Your private bits live in layers, not in a fork. |
| 🎫 One writer per ticket | flow-ticket plans, a single sub-builder writes in its own git worktree, and review, tests and checks run read-only in parallel. |
## See it work
The guard on real commands:
console
$ echo '{"tool":"bash","command":"git push origin main"}' | python3 core/guard/guard.py
{"decision": "ask", "reason": "🔴 high risk: 'git push origin main' needs your explicit OK (policy: git push )"}
$ echo '{"tool":"bash","command":"git status"}' | python3 core/guard/guard.py
{"decision": "allow", "reason": ""}
The token audit on a month of real use (python3 -I adapters/claude/usagereport.py 30; reads only your local transcripts, sends nothing):
console
Sessions: 149 | over 150k: 35 (23%) | over 300k: 9 | peak: 772k
Turns by model: claude-sonnet-5-5 60%, claude-opus-5-5 39%
Guard: 1233 allowed, 352 asked, 4 denied. Rules that fire most: outside-sandbox 123, git push 80
/coach before a task (example): model and effort, plus your request rewritten as goal · done when · out of scope · start from.
Every ~30 days tune-setup re-tunes it from your own /insights data, and edits only after you approve.
## Install
macOS with Homebrew and python3, or Linux with python3.
bash
git clone https://github.com/sebabottero/ai-setup.git ~/Dev/ai-setup # clone into the final path: the links point to it
cd ~/Dev/ai-setup
./bootstrap.py --dry-run # shows what it would install, changes nothing
./bootstrap.py # tools, then ./install.sh (runs the tests, backs up whatever it replaces)
## Is it for you?
Yes if you use an agent on real repos and want pushes, deletes and secret reads to need your OK, switch between agent tools,
work from tickets, or want to see and cut your token spend.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/sebabottero-ai-setup/)
来源
github · https://github.com/sebabottero/ai-setup
按领域浏览
Agent 技能
Traction
2 ★
收录于
今天

同类推荐

全部 420 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引