Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

About

One self-contained AGENTS.md with shared rules for AI coding agents: Claude Code, OpenAI Codex, Gemini, Cursor Agent, and more.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Silverback

Silverback

License: MIT Emojery

Note

Silverback continues khasky/awesome-agents-md, now archived. Coming from the awesome-agents-md plugin: uninstall it and install silverback as shown in Install as a plugin.

A ruleset in the AGENTS.md format for AI coding agents: Claude Code, Codex, Gemini CLI, Qwen Code, Kimi Code, Copilot CLI, Cursor and others. One always-loaded core plus modules in rules/ that load on demand. It is stack-agnostic and needs nothing extra installed.

The core covers concise communication, a coding discipline that stops at the smallest correct diff, a hard verification gate before any "done" claim, and commit proposals with no assistant traces. It stays under 200 instruction lines and 32 KiB (CI-enforced): models follow roughly 150 to 200 instructions reliably (IFScale), and Codex truncates project instructions past 32 KiB.

Repository layout

AGENTS.md     # the core ruleset, always loaded
rules/        # on-demand modules; rules/INDEX.md lists each with its trigger
hooks/        # the plugin hooks, each as .sh and .ps1 (Hooks below)
commands/     # /silverback:guard and /silverback:rules
evals/        # the benchmark and the trap tasks it scores (docs/benchmark.md)
scripts/      # lint.py, every gate CI runs, and the optional pre-commit hook
docs/         # manual import notes, benchmark, sources
llms.txt      # index of the core and every module for LLMs

Plugin manifests live in .claude-plugin/, .codex-plugin/, .github/plugin/, gemini-extension.json, qwen-extension.json and kimi.plugin.json.

Install as a plugin

The plugin loads AGENTS.md into the agent's instructions; Claude Code, Codex, GitHub Copilot CLI, Qwen Code and Kimi Code also get the hooks. Pick the plugin or the manual import, not both: both put the core in context twice.

Agent Install Update Uninstall
Claude Code /plugin marketplace add khasky/silverback, then /plugin install silverback@silverback /plugin marketplace update silverback, or turn on auto-update under /plugin → Marketplaces /plugin uninstall silverback@silverback
Codex codex plugin marketplace add khasky/silverback, then codex plugin add silverback@silverback codex plugin marketplace upgrade silverback, then the add again codex plugin remove silverback@silverback
Gemini CLI gemini extensions install https://github.com/khasky/silverback (add --auto-update to follow the repository) gemini extensions update silverback gemini extensions uninstall silverback
Qwen Code qwen extensions install https://github.com/khasky/silverback qwen extensions update silverback qwen extensions uninstall silverback
Kimi Code /plugins install https://github.com/khasky/silverback/tree/main, then /reload Reinstall from the same URL, then /reload /plugins remove silverback
GitHub Copilot CLI copilot plugin marketplace add khasky/silverback, then copilot plugin install silverback@silverback copilot plugin update silverback copilot plugin uninstall silverback

Hooks

  • guard, before every shell command, blocks: printing the environment (from the shell or an interpreter one-liner), a secret variable, a secrets file (.env, .netrc, a private key; .env.example passes) or a CLI's stored token (gh auth token); a recursive delete of /, ~, . or .git; overwriting a disk (dd of=/dev/, mkfs, Format-Volume); discarding uncommitted or stashed work (git reset --hard, git checkout -- ., git restore ., git clean -f, git stash drop); a force push, a deleted remote branch or filter-repo; skipping git hooks (--no-verify, commit -n, a core.hooksPath override, HUSKY=0); DROP/TRUNCATE or DELETE without WHERE; a downloaded script piped into a shell. Run these yourself when you want them. It asks you first about a git push, any other recursive delete, a history rewrite (commit --amend, rebase, branch -D), a commit whose Co-Authored-By names an AI agent (a human co-author passes), and a command it cannot read.
  • guard-files, before every file edit, asks you first about an edit to a file that steers or gates the agent (AGENTS.md, CLAUDE.md and their kin, .gitignore, agent settings and hooks, git hook and pre-commit configs, CI workflows, the agent's memory files) and about an edit whose target it cannot read.
  • verify, after edits and commands and at the end of a turn, sends a turn back once when files were edited after the last command ran: the agent runs the check that exercises the change or says which check did not run and why. observe logs those turns to ~/.silverback/verify.log instead.
  • compact, before Claude Code compacts the conversation, asks the summary to keep the task and the user's constraints, the files changed, each check with its command and result, and what is still open, verbatim for commands, paths and errors.
  • subagent, when a subagent starts, gives it the core's Boundaries, Security and Verification sections.
  • guard-switch, on every prompt, answers two commands itself, without a model turn. /silverback:guard turns push, delete, history and files on or off and sets verify to on, observe or off; alone, it shows every switch. /silverback:rules off turns the ruleset off and keeps the guards, so load-core, subagent and compact print nothing; on turns it back. Switches live in ~/.silverback/guard, which the guard keeps the agent out of. A switched-off call goes through your agent's usual permission settings; the block rules and the co-author prompt stay on. The main session picks up a change at its next start or /clear, subagents at once. In Claude Code the switches are also plugin options in /plugin or /config; a switch set by command outranks its option, and an unrecognised value reads as on.

Per agent:

  • Codex runs the hooks only after you trust them at the next interactive start ("Hooks need review"). It does not act on a request to ask (codex-cli 0.169), so every prompt above blocks the call instead and names the switch that turns it off; compact prints nothing there.
  • Kimi Code has no way to ask either, so prompts block and verify sends a turn back through exit code 2. It loads the core from the manifest, so rules=off does not unload it. /reload applies the plugin; the tree/main URL selects the branch, since a plain URL selects the latest release, which may predate the manifest.
  • GitHub Copilot CLI reads .github/plugin/plugin.json and runs hooks/copilot-hooks.json; the scripts find the plugin through PLUGIN_ROOT, then CLAUDE_PLUGIN_ROOT. It drops a prompt hook's output, so the two commands do not work there: write the lines into ~/.silverback/guard yourself (push=off, verify=observe, rules=off).
  • Qwen Code runs the hooks from qwen-extension.json through bash, so on Windows Git Bash must be on PATH. It reads the core itself, so rules off stops only the subagent hook.
  • The Copilot, Qwen and Kimi hooks follow each agent's documentation and have not been run in those agents yet. Gemini CLI gets the core only, without hooks.
  • Antigravity CLI installs from a clone but loads nothing from it, Cursor has no manifest here yet (untested), and Kilo Code plugins are npm modules: these agents take the manual import.

Install manually

Clone the repository once:

git clone https://github.com/khasky/silverback.git

Then add one line to the agent's global instructions file (create it if it does not exist). The examples assume the clone is at C:\repos\silverback; on macOS or Linux use ~/.claude/... and your own path.

Agent File Line
Claude Code %USERPROFILE%\.claude\CLAUDE.md @C:/repos/silverback/AGENTS.md
Codex %USERPROFILE%\.codex\AGENTS.md @C:/repos/silverback/AGENTS.md
Gemini CLI %USERPROFILE%\.gemini\GEMINI.md @C:/repos/silverback/AGENTS.md
Qwen Code %USERPROFILE%\.qwen\QWEN.md @C:/repos/silverback/AGENTS.md
GitHub Copilot CLI %USERPROFILE%\.copilot\copilot-instructions.md paste the contents of AGENTS.md
Antigravity %USERPROFILE%\.gemini\AGENTS.md paste the contents of AGENTS.md
opencode %USERPROFILE%\.config\opencode\opencode.json "instructions": ["C:/repos/silverback/AGENTS.md"]
Kilo Code CLI %USERPROFILE%\.config\kilo\kilo.jsonc "instructions": ["C:/repos/silverback/AGENTS.md"]
Cursor Settings → Rules → User Rules paste the contents of AGENTS.md
Devin (formerly Windsurf) %USERPROFILE%\.config\devin\AGENTS.md paste the contents of AGENTS.md

The import gets no hooks. Update with git pull; a pasted copy needs pasting again. Per-agent caveats, per-project setup and how to check that the core loaded: docs/manual-install.md.

How modules load

The core points at rules/INDEX.md, one line per module naming the task that should open it. The agent reads the index when a task leaves the core, then the matching module, so a turn that needs no module does not pay for it. Never copy rules/ into .claude/rules/: Claude Code loads every file there at session start. Conflicts resolve in a fixed order: the user's message, then the nearest project AGENTS.md/CLAUDE.md, then this core and its modules.

Benchmark

On the held-out test split, with 40 trap tasks per arm, this ruleset passed 29 on claude-haiku-4-5 (baseline 20), 37 on claude-sonnet-5-5 (baseline 23) and 40 on claude-opus-5-5 (baseline 35), ahead of five other plugins on every model. It also gave the shortest answers and wrote less code on open requests than the baseline, at a higher cost per task. Full tables, method and how to reproduce: docs/benchmark.md.

Related

  • Awesome Agent Skills: portable SKILL.md skills for code review, debugging, security and leak audits, code and text cleanup.
  • Agent MCP Integrations: MCP servers that connect agents to browsers, cloud, databases, infra and domain APIs.
  • Claude Code Token Optimization: tools that cut token use, such as code navigation, structural search, documentation lookup and output compression.
  • Claude Code Security Audit: a layered security-audit workflow with deep audits, continuous guardrails and scanners.

A rule is a standing constraint the agent honors unasked; a skill is a procedure you invoke. rules/code-review.md here sets the bar a review must meet, and the awesome-code-review skill runs the review.

Contributing

A rule earns its line only if an agent would get it wrong without it. See CONTRIBUTING.md for the module format and the checks CI runs.

License

Released under the MIT license. Third-party material is credited in docs/SOURCES.md.

About

One self-contained AGENTS.md with shared rules for AI coding agents: Claude Code, OpenAI Codex, Gemini, Cursor Agent, and more.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages