claude-to-agy: Instructions file for Claude Code

CLAUDE.md

claude-to-agy CLAUDE.md is an instructions file for Claude Code from rauls-kjarners/claude-to-agy. It costs 1,204 tokens per session, scanned A, original, MIT.

A set of rules for sending demanding tasks from Claude to Antigravity, another coding assistant. It defines when to delegate work and when to inspect or edit files directly.

In plain words
What is it for?
Routing code discovery, audits, reviews, external research, terminal work, and file edits between the two assistants.
Why use it?
It helps avoid spending the main assistant's context on broad searches, reviews, or research, while keeping direct control of files that will be changed.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 claude-to-agy CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rauls-kjarners/claude-to-agy/claude-md"><img src="https://agentmods.dev/badge/instructions/rauls-kjarners/claude-to-agy/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,204 This file is loaded in full into every session.
When invoked 1,204 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.01204 $0.01204
Opus 5 $0.00602 $0.00602
Sonnet 5 $0.00241 $0.00241
Haiku 4.5 $0.00120 $0.00120

Measured 11d ago against content hash 92ee82d887b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-to-agy 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 11d 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 · 64 lines

How it starts

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

Claude-to-Antigravity Delegation Rules

You are equipped with a custom MCP tool called delegate_to_agy. You MUST use this tool to offload heavy, token-intensive tasks to save your own context window.

The routing gate - consume vs. operate

Before any read, search, or analysis, pick the mode:

  • Operate-on - code you're about to edit. Read the file and edit it yourself - even if it's over 200 lines; don't delegate it. Never edit from a summary.
  • Consume-and-discard - you want a verdict, not the bytes (audits, searches, reviews, git history, external research). Delegate to agy.
  • Unsure which mode? If you don't yet know whether you'll edit, treat it as consume and delegate. Only keep it local once you've committed to editing it.
  • Discovery is always consume. "Find all X across module Y", "which files use pattern Z", "where are the assert() calls" - these are grep/multi-file analysis even if editing immediately follows. Delegate to agy to get the file list, then read only the specific files you'll edit. The fact that editing comes next does NOT make the discovery step operate-on.

If a review leads straight into editing the same file, read it locally once - don't delegate then re-read it.

Terminal Command Delegation

BEFORE running ANY of these commands in a terminal, you MUST use delegate_to_agy instead:

  • grep - always delegate. Flag combinations (-r, -A, -B, -C) make output size unpredictable regardless of -m.
  • git diff / git log - delegate by default. Exception: when you can bound it small and need it inline - git log -n 5, git diff --stat, a git diff of the single file you just touched - run it directly.

NEVER run grep directly. NEVER run unbounded git diff / git log directly. This applies during ALL phases: planning, exploration, implementation, review.

Delegation Thresholds

Consume-and-discard work goes to agy per the gate above. On top of that, delegate when ANY of these conditions are met:

Read the full file on GitHub · 64 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. 11d ago First seen · 64 lines · 1,204 tokens per session scan A 92ee82d887b6

Subscribe to this mod's changes

claude-to-agy CLAUDE.md is an instructions file published in the GitHub repository rauls-kjarners/claude-to-agy (12 stars, last pushed 2mo ago), licensed MIT. It adds 1,204 tokens to every session, about $0.0060 per session on Opus 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens