quarry: Instructions file for Codex

AGENTS.md

quarry AGENTS.md is an instructions file for Codex, OpenCode from yiminspace/quarry. It costs 1,187 tokens per session, scanned A, original, MIT.

Repository instructions for Quarry, covering its AI-agent rules and its graphical user interface. The interface is a React and TypeScript web app served by a Python backend.

In plain words
What is it for?
Guiding GUI changes, building the web frontend, updating the feature matrix, and running browser tests for user-visible behavior.
Why use it?
They explain where frontend and backend changes belong, how the development loop works, and which tests document visible interface behavior. They also require the feature matrix to stay accurate.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

Made for: 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 quarry AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yiminspace/quarry/agents-md"><img src="https://agentmods.dev/badge/instructions/yiminspace/quarry/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,187 This file is loaded in full into every session.
When invoked 1,187 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.01187 $0.01187
Opus 5.5 $0.00475 $0.00475
Sonnet 5.5 $0.00237 $0.00237
Haiku 4.5 $0.00119 $0.00119

Measured today against content hash d5061694947f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quarry 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 today.

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.

AGENTS.md · 89 lines

How it starts

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

Agent rules for this repo

Guidance for AI coding agents (and humans) working on Quarry.

GUI changes (web/ frontend + apps/qy/src/http.rs backend)

The production runtime is Rust: apps/qy adapts the shared crates to CLI, HTTP and MCP. The React/TypeScript SPA in web/ is embedded from src/quarry/web_dist at compile time. Build web/ before Cargo when UI changes. Python source is a development/test baseline only and is not shipped as runtime.

  1. The GUI feature matrix in TESTING.md is the source of truth for frontend coverage. Any change that adds, alters, or removes a user-visible GUI behavior must update the matching matrix row(s) in the same PR — including honest status downgrades (✅→🟡/❌) when behavior changed and the old test no longer proves it.
  2. New feature points get a browser test in tests/test_gui_browser_features.py (page fixtures come from tests/conftest.py; console errors are an autouse invariant in that module). Backend/API logic belongs in test_gui_backend.py / test_gui_api.py — do not re-test engine behavior through the browser.
  3. Design tokens are law: every visible color in web/src must reference the CSS variables defined at the top of web/src/App.css (the legacy "Slate & Copper" palette, dark default + html[data-theme=light]). Never introduce a literal color value in a component or stylesheet body. tests/test_gui_visual.py pins the tokens via getComputedStyle in both themes — extend it when styling new chrome.
  4. Run all three audits after touching web/src/ (details + state inventory in TESTING.md "Keeping the matrix honest"):
    • Existence: every interaction binding, localStorage key, and consumed /api/* endpoint maps to a matrix row (catches untested code);
    • Capability: per UI region, list what a SQL-client user would expect, diff against reality, file misses in the Design-gaps table (catches missing features — existence auditing can never see these);
    • Shared-state: when writing any store state (connStore, tabsStore, uiStore, the per-tab result snapshots, sort/selection state, …), check every reader; features sharing state need an interaction test (catches cross-feature bugs like "export uses another tab's result").
  5. When adding a UX invariant, enumerate ALL write sites of the protected state (grep, list them in the PR) and cover each — partial rollout of an invariant is how "closing a tab loses SQL" shipped.
  6. UX invariants that must never regress (each is pinned by a browser test):
    • hand-written editor SQL is never silently lost — a table click with existing SQL opens a new tab (the draft stays on the previous one); every remaining editor overwrite (Alt+click table / key inspect / saved query / history recall / tab close) goes through keepDraft()/ pushHist() in useSqlHistory; Cmd/Ctrl+↓ restores the stash;
    • connections configured with production = true default to Auto-run off; automatic execution requires an explicit opt-in for that workspace/database/ environment and production classification. Changing the mode never runs the current SQL or a pending navigation; environment names (including prod and jp) are labels only;
    • overlapping query responses are latest-wins (the per-tab startReq/isCurrentReq/endReq request-tracking guard) — a stale response must never repaint the grid;
    • the grid, status bar, and exports always reflect the active tab's result (its own snapshot in tabsStore), never another tab's;
    • column sort is numeric-aware, and a third click restores original order;
    • lists are never silently truncated (redis 400-key cap, 5000-table cap → visible notice).

Read the full file on GitHub · 89 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. today Changed · -1 lines · -67 tokens per session d5061694947f
  2. 2d ago Changed · +7 lines · +50 tokens per session d63af45713c7
  3. 19d ago Changed · +2 tokens per session 7ef895d1bfae
  4. 1mo ago Changed · +3 lines · +29 tokens per session b759f42f3c15
  5. 1mo ago Changed · +1 lines · +21 tokens per session 8630e4129171
  6. 1mo ago Changed · +1 lines · +22 tokens per session cc0032350de1
  7. 2mo ago First seen · 78 lines · 1,130 tokens per session scan A 0bdd82aedaec

Subscribe to this mod's changes

quarry AGENTS.md is an instructions file published in the GitHub repository yiminspace/quarry (4 stars, last pushed today), licensed MIT. 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-31.

Related

quarry AGENTS.md compared with instructions from other repositories

quarry AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quarry AGENTS.mdyiminspace/quarryInstructions file4todayMITA1,187Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode