casbin-gateway: Instructions file for Claude Code

CLAUDE.md

casbin-gateway CLAUDE.md is an instructions file for Claude Code from apache/casbin-gateway. It costs 134 tokens per session, scanned B, original, Apache-2.0.

A set of Claude Code instructions for the Apache Casbin Gateway project, covering its instruction file and coding style. It says not to add Go tests unless requested and to verify changes by building or running the code.

In plain words
What is it for?
Use it when working on Apache Casbin Gateway to follow its code style and verification practices.
Why use it?
It gives the coding agent project-specific rules so its changes and checks match the repository’s expectations.

Instructions file for Claude Code ✓ vendor

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents; reads ~/.codex paths.

This is apache/casbin-gateway's own configuration. It tells Claude Code how to work on casbin-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything casbin-gateway configures →

About the project

Casbin Gateway is a local gateway that lets coding agents on a computer use different AI model providers through one endpoint. It runs on the user's machine and provides a local web interface for managing access to those agents and models.

apache/casbin-gateway · 643 stars · on GitHub · gateway.casbin.org

Reuse

Borrowing it

Nothing to install: this file belongs to apache/casbin-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apache/casbin-gateway/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/apache/casbin-gateway

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for casbin-gateway CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apache/casbin-gateway/claude-md/github.svg)](https://agentmods.dev/instructions/apache/casbin-gateway/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/apache/casbin-gateway/claude-md"><img src="https://agentmods.dev/badge/instructions/apache/casbin-gateway/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for casbin-gateway CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apache/casbin-gateway/claude-md"><img src="https://agentmods.dev/badge/instructions/apache/casbin-gateway/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 This file is loaded in full into every session.
When invoked 134 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.00134
Opus 5.5 $0.00054 $0.00054
Sonnet 5.5 $0.00027 $0.00027
Haiku 4.5 $0.00013 $0.00013

Measured 1mo ago against content hash 06f049debd2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

casbin-gateway CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Never put a space between Chinese and Latin letters, digits, or placeholders. Write `每个Agent`, `覆盖{count}个`, `写在~/.codex/config.toml里` — not `每个 Agent`.
CLAUDE.md · 12 lines

What it actually says

CLAUDE.md

Code style

  • Don't add Go tests unless asked. Verify changes by building or running the code instead.
  • Keep comments sparse and short. No paragraph-length doc blocks, no narration of what the code obviously does.

Chinese translations

  • Never put a space between Chinese and Latin letters, digits, or placeholders. Write 每个Agent, 覆盖{count}个, 写在~/.codex/config.toml里 — not 每个 Agent.
  • "Agent" stays English in Chinese text. The product term is Agent客户端; a spawned sub-agent is 子Agent. Never 智能体.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +5 lines · +84 tokens per session scan A → B 06f049debd2e
  2. 1mo ago First seen · 7 lines · 50 tokens per session scan A c730885a6ccd

Subscribe to this mod's changes

casbin-gateway CLAUDE.md is an instructions file published in the GitHub repository apache/casbin-gateway (643 stars, last pushed 5d ago), licensed Apache-2.0. It adds 134 tokens to every session, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories