技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
taniwhaai/arai

taniwhaai/arai

Enforces rules from existing agent instruction fil
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add arai -- npx -y arai
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
7 ★ · taniwhaai/arai · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 7 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 taniwhaai/arai;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Arai

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

An instruction file is advice — the model can read CLAUDE.md and still force-push anyway. Arai turns instruction files (CLAUDE.md, AGENTS.md, .cursorrules, and others) into enforcement via native hooks: rules derived from prohibitive language **block the tool call outright**, advisory rules inject the relevant constraint at the point it applies, and a tamper-evident audit log records, per rule, whether the model actually complied.
Quick Start
Arai discovers your instruction files, extracts the rules, classifies their intent, scans your codebase for context, and registers native hooks. In Codex, review and enable the project hooks through /hooks; writing the configuration does not grant host trust. See Codex setup and coverage.
Codex support and the hardening described below require **v1.1.2 or newer** (released 2026-09-16). Every install path below serves it; to build from source instead, run cargo install --path . --locked from this checkout.
To also block violating diffs at git commit (universal across tools that have no PreToolUse hook):
Or add this local pre-commit framework hook. It requires an installed arai with check-diff on PATH; language: system does not install Arai. The repository's own .pre-commit-hooks.yaml manifest exists from v1.1.2 onward.
What It Does
When your AI coding assistant (Claude Code, Grok Build, Codex, or Cursor) is about to do something your rules cover, Arai injects the relevant guardrail — right when it matters. Rules derived from prohibitive predicates (never, forbids, must_not) actually **block the tool call** when the host has enabled the hooks.
Rules only fire when relevant. No noise on ls. No repeating principles already in your instruction files.
Every firing is written to a local audit log, and every PostToolUse is correlated with the matching PreToolUse to produce a **compliance verdict** — so you can measure whether the model actually honours the rules you wrote.
How It Works
1. **Discovers** instruction files in your project and home directory
2. **Extracts** rules by pattern-matching imperative language ("never", "always", "don't", "must")
3. **Classifies** each rule's intent — what action it governs, which tools it applies to, when it should fire
4. **Scans** your codebase with tree-sitter to understand which tools own which directories
5. **Tracks** session state — knows if you've already run tests before pushing
6. **Fires** only relevant rules at the right moment via native hooks (where supported)
Supported Instruction Files
| File | Tool | Enforcement |
|------|------|-------------|
| CLAUDE.md | Claude Code | Hooks (block + advise) |
| .claude/rules/**/*.md | Claude Code | Path-scoped hooks (block + advise) |
| AGENTS.md / Agents.md | Grok Build (native) | Hooks (block; advise best-effort) |
| AGENTS.md / Agents.md | Codex (native) | Hooks (block + advise; requires host trust) |
| ~/.claude/CLAUDE.md | Claude Code (global) | Hooks (block + advise) |
| ~/.grok/ AGENTS.* files | Grok Build (global) | Hooks (block; advise best-effort) |
| .cursorrules / .cursor/rules | Cursor | Hooks (block; advise at session start and after tool calls) |
| .windsurfrules | Windsurf | MCP (advise) |
| .github/copilot-instructions.md | GitHub Copilot | Ingest only |
Rules from every file are parsed, classified, and stored the same way — but
enforcement strength depends on what surface the assistant exposes.
Nested instructions retain directory scope; Claude paths and Cursor globs
restrict file actions. Local scans preserve externally managed policy and prune
only sources they own. Existing stores require explicit adoption of legacy local
sources. See discovery, activation and upgrade handling
and Arai's place upstream of Kete.
On Windows, project state uses the resolved directory path so long names,
8.3 aliases, case variants, and PowerShell hooks share one store. See
Windows state upgrades
if you already have state created under a different path spelling.
- **Claude Code**, **Grok Build**, **Codex**, and **Cursor** support PreToolUse
hooks, so Arai can issue deny decisions and actually block tool calls.
来源
awesome · https://github.com/taniwhaai/arai
按领域浏览
MCP 服务
Traction
7 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

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

浏览全部领域 →

← 返回索引