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.
curl -O https://raw.githubusercontent.com/yiminspace/quarry/main/AGENTS.mdgit clone --depth 1 https://github.com/yiminspace/quarryWrote 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/yiminspace/quarry/agents-md)<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.
<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>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
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.
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.
- 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.
- New feature points get a browser test in
tests/test_gui_browser_features.py(page fixtures come fromtests/conftest.py; console errors are an autouse invariant in that module). Backend/API logic belongs intest_gui_backend.py/test_gui_api.py— do not re-test engine behavior through the browser. - Design tokens are law: every visible color in
web/srcmust reference the CSS variables defined at the top ofweb/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.pypins the tokens viagetComputedStylein both themes — extend it when styling new chrome. - 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").
- Existence: every interaction binding, localStorage key, and consumed
- 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.
- 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()inuseSqlHistory; Cmd/Ctrl+↓ restores the stash; - connections configured with
production = truedefault 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 (includingprodandjp) are labels only; - overlapping query responses are latest-wins (the per-tab
startReq/isCurrentReq/endReqrequest-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).
- 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
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.
- today Changed · -1 lines · -67 tokens per session d5061694947f
- 2d ago Changed · +7 lines · +50 tokens per session d63af45713c7
- 19d ago Changed · +2 tokens per session 7ef895d1bfae
- 1mo ago Changed · +3 lines · +29 tokens per session b759f42f3c15
- 1mo ago Changed · +1 lines · +21 tokens per session 8630e4129171
- 1mo ago Changed · +1 lines · +22 tokens per session cc0032350de1
- 2mo ago First seen · 78 lines · 1,130 tokens per session scan A 0bdd82aedaec
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.
quarry AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| quarry AGENTS.mdyiminspace/quarry | Instructions file | 4 | today | MIT | 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 | today | 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 |