gridctl: Instructions file for Claude Code

AGENTS.md

gridctl AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from gridctl/gridctl. It costs 9,159 tokens per session, scanned B, original, Apache-2.0.

Repository instructions for gridctl, a gateway that manages MCP servers and distributes agent skills and rules. MCP is a standard for connecting AI agents to tools.

In plain words
What is it for?
Use it when developing or maintaining stack configuration, MCP server orchestration, skill projection, registry features, or the built-in web interface.
Why use it?
It explains how gridctl is structured, configured, built, and run, helping an agent work within the project's intended architecture.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is gridctl/gridctl's own configuration. It tells Claude Code, Codex and OpenCode how to work on gridctl 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 gridctl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gridctl/gridctl. 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/gridctl/gridctl/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/gridctl/gridctl

Made for: Claude Code, Codex, OpenCode.

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 gridctl AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gridctl/gridctl/agents-md/github.svg)](https://agentmods.dev/instructions/gridctl/gridctl/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gridctl/gridctl/agents-md"><img src="https://agentmods.dev/badge/instructions/gridctl/gridctl/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.

agentmods 80×15 button for gridctl AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gridctl/gridctl/agents-md"><img src="https://agentmods.dev/badge/instructions/gridctl/gridctl/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,159 This file is loaded in full into every session.
When invoked 9,159 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.09159 $0.09159
Opus 5.5 $0.03664 $0.03664
Sonnet 5.5 $0.01832 $0.01832
Haiku 4.5 $0.00916 $0.00916

Measured 2d ago against content hash 1869e42d2454, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

gridctl AGENTS.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 2d 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.

~/.claude/settings.json. gridctl never executes a hook. Other clients are reported.
AGENTS.md · 358 lines

How it starts

The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Guidance for AI coding agents working in this repository. Follows the agents.md open specification: a single, predictable entry point for agent-relevant context. Human-facing onboarding lives in README.md and CONTRIBUTING.md; agent-specific tooling files (CLAUDE.md, etc.) re-export this file rather than duplicating it.

What gridctl is

Gridctl is an MCP (Model Context Protocol) gateway with a built-in skills and agents registry. A user declares a stack of MCP servers (containerized stdio, SSE/HTTP, OpenAPI-backed, local processes, SaaS proxies) in stack.yaml, runs gridctl apply, and gridctl orchestrates the containers, fans tool calls to the right server, aggregates downstream prompts and resources with registry skills, and surfaces every active SKILL.md to upstream clients as an MCP prompt. A projection engine (pkg/project, one lockfile at ~/.gridctl/project.lock.yaml) also places skills, agents, global-context rules, and gateway wiring onto disk for file-reading clients, and packs (gridctl-pack.yaml) import skills, agents, rules, and wiring from one git repo, may select skills and agents from declared external git sources pinned by commit (gridctl pack lock writes gridctl-pack.lock.yaml), can start an optional carried stack from a pinned checkout under ~/.gridctl/packs/, and can compose booster fragments onto that base daemon. The same process embeds a React web UI on :8180. Inspired by Containerlab.

Registry skills also expose io.modelcontextprotocol/skills through the existing MCP endpoints. Handshake sessions opt in; stateless discovery declares it while the registry provider is available. The global skill policy governs manifests and reads, including grouped endpoints. CLI skill lists report local manifest summaries, including a per-row error when one skill cannot be hashed; status reports declared extensions. The compatibility baseline is tests/integration/skills-extension-baseline.md.

Build and run

Read the full file on GitHub · 358 lines

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. 2d ago Changed · +6 lines · +190 tokens per session scan A → B 1869e42d2454
  2. 3d ago Changed · +8 lines · +343 tokens per session 2f521def9aa8
  3. 5d ago Changed · +2 tokens per session 643355837b36
  4. 7d ago Changed · +1 lines · +15 tokens per session 06c745e243d0
  5. 9d ago Changed 0f1ff5b41bda
  6. 13d ago Changed · +2 lines · +137 tokens per session 826eda78e7a8
  7. 14d ago Changed · +21 tokens per session 3b7d78dc794f
  8. 15d ago Changed · +8 lines · +146 tokens per session 99d477c5e484
  9. 16d ago Changed · +6 lines · +105 tokens per session 5c88a91368bf
  10. 17d ago First seen · 327 lines · 8,200 tokens per session scan A 5456022595a1

Subscribe to this mod's changes

gridctl AGENTS.md is an instructions file published in the GitHub repository gridctl/gridctl (46 stars, last pushed today), licensed Apache-2.0. It adds 9,159 tokens to every session, about $0.0366 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

gridctl AGENTS.md compared with instructions from other repositories

gridctl AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gridctl AGENTS.mdgridctl/gridctlInstructions file46todayApache-2.0B9,159Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode