ground: Instructions file for Claude Code

CLAUDE.md

ground CLAUDE.md is an instructions file for Claude Code from teranos/ground. It costs 677 tokens per session, scanned A, original, MIT.

Repository instructions for Ground, a project that controls agent actions, messages, execution, and error handling. They direct the agent to inspect the project’s source files and documentation to understand those mechanisms.

In plain words
What is it for?
Working on Ground’s hooks, controls, deferred messages, command execution, status output, and error-handling code.
Why use it?
They help the agent follow Ground’s intended authority and error rules when changing or operating the project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is teranos/ground's own configuration. It tells Claude Code how to work on ground 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 ground configures →

Reuse

Borrowing it

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

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 ground CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/teranos/ground/claude-md"><img src="https://agentmods.dev/badge/instructions/teranos/ground/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 677 This file is loaded in full into every session.
When invoked 677 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00677 $0.00677
Opus 5.5 $0.00271 $0.00271
Sonnet 5.5 $0.00135 $0.00135
Haiku 4.5 $0.00068 $0.00068

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

Security

Grade A, and why

ground CLAUDE.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 5d 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.

CLAUDE.md · 68 lines

How it starts

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

New sessions should always read: README.md

OPERATIONAL DOC

Read the following files:

  • source/hooks.d for control types, scope struct, and trigger builders.
  • source/strop.d for value-shape validation on extracted flag values.
  • source/sand/builtin.d for CTFE wiring — how pbt becomes static immutable scope arrays.
  • source/controls.d and source/sand/load.d for the sand the engine holds — the built-in one, or a landed one whose ABI (source/sand/view.d) is the engine's.
  • source/sand/text.d for what the controls compile from — the floor (an engine, -d-version=Floor) or everything wind gathered (make sand).
  • source/nodeconfig.d for nodes.pbt, the node a ground speaks to when its controls name none.
  • source/control_handlers.d for check, delay, and deliver handler implementations.
  • source/immediate.d for immediate delivery — attestation format for external writers (QNTX, etc). A deferred message is an immediate row with an after gate.
  • source/sky.d for the courier that carries the immediate queue to its session.
  • source/exec.d for exec dispatch — fork+pipe+wrapper, stdout/stderr capture, timeout.
  • source/errors.d for the GroundError primitive and deliverError fallback chain (db → breadcrumb → stderr).
  • source/pretooluse.d and source/stop.d for the two hook handlers everything above is wired into.
  • source/git.d for git discovery — repo root and branch are file reads, check-ignore is libgit2; its one subprocess is gh auth token, asked when the env holds no token and the store has no visibility for a GitHub origin.
  • grove/controls/*.pbt for the rituals — each carries its agent's system:, so nothing else has to describe them.

Read UNDERGROUND.md for ug, the statusline, ug/*.d

The commands are the ground-commands skill, written by press from the modules that implement them.

TEST DRIVEN DEVELOPMENT (TDD)

RED: Write a failing test before implementing, Confirm it fails GREEN: Write code that makes the test pass. REFACTOR: Cohere with the rest of the codebase, finish the implementation fully.

Read the full file on GitHub · 68 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. 5d ago Changed · +3 lines · +98 tokens per session 1359cd9d3981
  2. 15d ago Changed · -1 lines · -19 tokens per session 9640b2953371
  3. 28d ago Changed · +45 tokens per session 846bae29ea44
  4. 1mo ago Changed · +7 lines · +22 tokens per session f3791f7b33c3
  5. 1mo ago Changed · +10 lines · +13 tokens per session 48678f450cec
  6. 2mo ago First seen · 49 lines · 518 tokens per session scan A 6f18dce31665

Subscribe to this mod's changes

ground CLAUDE.md is an instructions file published in the GitHub repository teranos/ground (4 stars, last pushed today), licensed MIT. It adds 677 tokens to every session, about $0.0027 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-31.

Related

ground CLAUDE.md compared with instructions from other repositories

ground CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ground CLAUDE.mdteranos/groundInstructions file4todayMITA677Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot