Borrowing it
Nothing to install: this file belongs to tiylabs/tiygate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tiylabs/tiygate/master/AGENTS.mdgit clone --depth 1 https://github.com/tiylabs/tiygateWrote 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.
[](https://agentmods.dev/instructions/tiylabs/tiygate/agents-md)<a href="https://agentmods.dev/instructions/tiylabs/tiygate/agents-md"><img src="https://agentmods.dev/badge/instructions/tiylabs/tiygate/agents-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.
<a href="https://agentmods.dev/instructions/tiylabs/tiygate/agents-md"><img src="https://agentmods.dev/badge/instructions/tiylabs/tiygate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01187 | $0.01187 |
| Opus 5.5 | $0.00475 | $0.00475 |
| Sonnet 5.5 | $0.00237 | $0.00237 |
| Haiku 4.5 | $0.00119 | $0.00119 |
Grade A, and why
tiygate AGENTS.md scanned grade A with 0 findings 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 2mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Contributor guide for TiyGate, an open-source Rust AI Gateway. Preserve the crate layering described below; it is intentional and enforced.
Project Structure & Module Organization
This repository is a Cargo workspace with 8 crates and an embedded admin console:
crates/corecontains canonical IR, traits, and pipeline code. It must stay zero-I/O and free of concrete provider, protocol, or database dependencies.crates/protocolsimplements protocol codecs for chat completions, messages, responses, Gemini, and embeddings.crates/providersstores built-in provider metadata and auth;crates/provider-bedrockisolates heavy AWS Bedrock SDK dependencies.crates/store,crates/cache,crates/admin, andcrates/servercover config storage, embedding cache, Admin REST/OAuth, and thetiygatebinary.webui/is the React + TypeScript + Vite admin console, embedded withrust-embedand served at/admin/ui.docs/holds architecture and protocol capability docs;scripts/contains helper checks such asverify-deps.sh.- Tests live in
crates/<crate>/tests/for integration tests and inline#[cfg(test)]modules for unit tests.
Engineering Principles
Keep changes aligned with three project constraints:
- Reliability first: keep the request hot path resilient with fallback budgets, circuit breakers, ingress limits, graceful drain, and telemetry/logging off the hot path.
- Extensible by design: add providers, protocols, routing strategies, cache backends, and log sinks through existing trait/registration boundaries instead of central rewrites.
- Maintainable layering: keep
coreas canonical IR + traits only, use the IR to avoid N×N protocol coupling, document lossy protocol behavior indocs/protocol-capability-matrix.md, and isolate heavy dependencies in dedicated crates.
Build, Test, and Development Commands
Run commands from the repository root. Use make help for the full list.
make build # Build webui, then release Rust binary
make build-debug # Build webui, then debug Rust binary
make dev # Build webui and run tiygate-server with webui feature
make dev-server # Run Rust server only, without webui embedding
make dev-web # Start the WebUI Vite dev server
make check # cargo check --workspace --all-targets --all-features
make test # cargo test --workspace --all-features
make lint # rustfmt check, clippy -D warnings, and webui tsc
make fmt # Format Rust and WebUI code
make audit # Run cargo audit and npm audit
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.
- 2mo ago First seen · 57 lines · 1,187 tokens per session scan A c6814217940f
tiygate AGENTS.md is an instructions file published in the GitHub repository tiylabs/tiygate (147 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,187 tokens to every session, about $0.0047 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
tiygate AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tiygate AGENTS.mdtiylabs/tiygate | Instructions file | 147 | 1mo ago | Apache-2.0 | A | 1,187 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |