Borrowing it
Nothing to install: this file belongs to hraness/wrench. 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/hraness/wrench/main/AGENTS.mdgit clone --depth 1 https://github.com/hraness/wrenchWrote 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/hraness/wrench/agents-md)<a href="https://agentmods.dev/instructions/hraness/wrench/agents-md"><img src="https://agentmods.dev/badge/instructions/hraness/wrench/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/hraness/wrench/agents-md"><img src="https://agentmods.dev/badge/instructions/hraness/wrench/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.05056 | $0.05056 |
| Opus 5.5 | $0.02022 | $0.02022 |
| Sonnet 5.5 | $0.01011 | $0.01011 |
| Haiku 4.5 | $0.00506 | $0.00506 |
Grade A, and why
wrench 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 1mo 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.
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.
Contents
src/– the CLI, page-capture runtime, strict data and protocol models, provider-plugin kernel, built-in providers, runtime assets, helpers, and colocated tests.src/media/– the finite-item media acquisition, archive, derivation, transcript, revision, verification, and cancellation runtime.skills/wrench/– the single public Agent Skill and its focused operational references, including social publishing..agents/skills/– reusable cross-repository KB and phased-execution workflows; product-specific Wrench operations remain underskills/wrench/.kb/– authored repository rationale, evidence, synthesis, and plans.WRITING.mdandSTYLE.md– internal and public prose contracts.docs/– provider-plugin authoring, trust-boundary guidance, and the public Puerto Rico rental-listings search contract.scripts/– standalone CLI, plugin lifecycle, and clean-consumer package verification.website/– the dependency-free, statically generatedwrench.ripdocumentation and landing surface; it is excluded from the published package..github/workflows/– read-only Linux and macOS checks plus checks-gated immutable releases and release-only website production promotion.README.md,CONTRIBUTING.md,SECURITY.md, andLICENSE– usage, project policy, security reporting, and terms.package.json,bunfig.toml,tsconfig.json, andbun.lock– the standalone Bun package, isolated dependency layout, and frozen dependency graph.
Guidelines
- Use Bun 1.3.14 and run
bun run checkbefore handing off a change. - Follow
WRITING.mdfor internal prose andSTYLE.mdfor public prose. - Apply unreasonably robust programming when agent work is cheap. Model invalid states out of existence and pair readable regression examples with property tests for general laws.
- Deliver changes to
mainthrough a current-head pull request. Keep the stableRequiredCI job green, resolve every review thread, and serialize merges. Human approval stays optional while one regular maintainer would otherwise self-review. Never force-push or bypass the gate. - Pin Hraness dependencies to reviewed immutable releases or full commits. Never replace them with sibling paths, Git submodules, or coordinated
mainassumptions. - Extract a shared package only after two concrete consumers need the same stable interface. Keep shared packages product-neutral and keep consumer planning, policy, agent loops, and product UI outside Wrench.
- For UI work, consume shared design-kit or
@hraness/uiprimitives only at immutable versions; keep product composition in the owning product and keepwebsite/dependency-free. - Freeze shared interfaces before parallel lanes begin. Give public barrels, manifests, lockfiles, generated catalogs, and other convergence surfaces one owner while lanes edit disjoint paths.
- Keep mandatory rules in the closest
AGENTS.md, current procedures indocs/, executable contracts in types and tests, and pull-based rationale, evidence, synthesis, and plans inkb/. - Keep Wrench a bring-your-own-agent CLI and TypeScript SDK. Do not add a bundled model, planning or tool loop, agent runtime, application UI, native app, or app template; consumers own those layers.
- Keep exactly one public Agent Skill at
skills/wrench/. Bundle product workflows as references and mark repository-maintenance skills under.agents/skills/internal. - Keep
website/informational: it may explain and document Wrench, but must not grow an agent runtime, authenticated product surface, or browser-based substitute for the CLI and SDK. - Keep the package root import side-effect-free. Importing
@hraness/wrenchmust not start the CLI, inspect local state, load built-in providers, or access the network. - Expose bounded semantic operations, never caller-selected requests, endpoints, headers, cookies, selectors, scripts, shell commands, or arbitrary file access.
- Keep media acquisition to one authorized, accessible, finite, non-DRM item. Reject playlists, live streams, affirmative DRM, unsupported authentication, and access-control bypasses. Promote an item only after its inspectable archive, versioned manifest, and SHA-256 records pass complete verification.
- Treat source plugins as trusted in-process code. Treat portable child-process execution as ordinary-failure containment, not a hostile-code sandbox, and require an explicit trust decision for the exact verified bundle.
- Parse every foreign manifest, package, message, plan, receipt, response, and CLI value from
unknown; reject extra fields, malformed bounds, ambiguous ownership, and drift. - Keep installed support discoverable from the validated active catalog. Reject duplicate plugin, route, or operation ownership before a command can use it.
- Keep built-in durable contract hashes versioned and invariant across package layout and execution environment. Derive the exact current source/dependency closure automatically, snapshot it at registry startup, and revalidate it before and after lazy runtime load; do not maintain a manual closure allowlist or ask an end user, provider operator, or maintainer to approve source hashes. Portable-plugin identity must remain bound to its exact verified artifact.
- Bind every authenticated request to one exact account realm, provider target, transport, contract version, and implementation identity. Never silently switch transport.
- Keep mutations behind exact preview, confirmation, durable dispatch, and at-most-once evidence. Never retry or clear an indeterminate dispatch; reconcile it from separately obtained exact evidence.
- Keep raw authenticated traffic, cookies, tokens, profiles, private content, and local paths out of Git, tests, receipts, logs, and diagnostics.
- Pair concrete behavior with deterministic example tests. Add property tests for strict parsers, canonical encodings, identifiers, ordering, round trips, lifecycle transitions, and arbitrary input.
- Model consequential lifecycle workloads as bounded action and fault schedules over the production reducer or port. State safety and conditional progress laws with their environmental assumptions explicitly, keep clocks and randomness injected, and retain fast-check's seed and shrink path. Replay one exact property with
WRENCH_PROPERTY_SEED,WRENCH_PROPERTY_PATH, and an anchored--test-name-pattern, then promote a minimized failure to a named regression. Reducer terminalization from supplied reconciliation evidence is not provider liveness. - Keep the Bun runner timeout and concurrency policy in
package.json; test bodies may own explicit product deadlines and elapsed assertions, but must not callsetDefaultTimeoutor pass per-test runner timeouts. - Treat this repository as the complete project. Use only its public names, paths, commands, and dependencies in code, tests, documentation, and Git prose.
- Follow
docs/publishing.mdfor the interactive npm bootstrap and later stage-only trusted publishing. A monotonically greater stable version reachingmainmust automatically enter exact candidate verification and upload one uniquely named package artifact; an unchanged version must no-op, and default workflow dispatch remains the current-maincandidate recovery path. A push or defaultworkflow_dispatchmust never enter the GitHub environment, request an OIDC token, or mutate npm. Only an explicit owner-authorized current-maindispatch with booleanpublish_to_npm=truemay pass the already verified stable artifact to the minimal OIDC job behind the main-onlynpm-stageenvironment with no required GitHub deployment reviewers; an agent acting under standing repository delivery authority may make that dispatch without adding a separate human approval gate. Bind npm trust to that exact environment and stage-only action; never authorize direct OIDC publication for this dual-use package. Bind the staged artifact to source commitC; protectedmainmay advance only by proven linear ancestry while the long gate runs, and the terminal job must observe two equal combined main-plus-tag-absence advertisements around that ancestry proof immediately before staging. Human inspection and two-factor approval of the npm stage remain mandatory before the version becomes public. Verify that exact public artifact before creating its tag. Treat a rawv*tag as a release request, not a completed release; completed immutable Releases define ordering. Keep the requested tag as a direct lightweight tag on package commitC, with protected linearmainequal to or descended fromC; the read-only release gate must rebuild and compare the public npm tarball before its solecontents: writejob creates or verifies the immutable Latest GitHub Release withmake_latest=legacy. Immediately before tag dispatch, require signed-in administrator readback that immutable Releases are enabled; do not grant Administration to the workflow, and treat the residual setting-toggle window as a trusted control-plane boundary. The Release workflow must never read, create, or updatewebsite-production, receive the release App key, or wait for Vercel. Load the separate production-promotion workflow from reviewed main sourceW; prove releaseC<=W<=Mfor protected current mainM, allowing only linear descendant movement after dispatch; bind its automaticworkflow_runto Wrench repository ID1316443113and Release workflow ID323493609plus the exact path, tag-push event, first attempt, success, head repository, tag, peeled immutable release SHA, and payload run ID. Manual recovery on that same main-origin workflow accepts only an untrusted stable-tag input and carries no upstream SHA, run ID, or attempt. Derive the authoritative run ID from the Release's sampled exact Actions receipt. In the initial verify job, read that Actions run exactly once and bind stable actor and triggering-actor numeric IDs and types, repository identities, workflow ID and path, tag-push event, source SHA, completion, success, and the applicable attempt; do not authorize on mutable logins or the run display name. Manual recovery requires a positive current attempt. Later strict by-tag Release reads revalidate the sampled exact source receipt, tag, Latest projection, Release ID and publication time, source SHA, and workflow source using the carried run ID without rereading Actions. Carry that run ID through exactwrench-provider-baseline-v4andwrench-provider-promotion-v3receipts and every later authority, promotion, and outcome check. Grantactions: readonly to the initial verify job. Record the complete bounded Vercel Production baseline before any key-environment wait. An already-exact ref must take a separate read-only path with no environment, App variable, private key, token mint, or Git push. - Treat the Release display title, Actions workflow-run display name, actor logins, and receipt body as mutable presentation or control-plane data. Validate the sampled exact source receipt on every accepted Release read; stable numeric identities and types, the protected tag, and immutable Release coordinates remain authority.
- Keep the
npm-stageenvironment fail closed: administrator bypass disabled, no reviewers, no secrets, sole protection rulebranch_policy, and sole selected deployment branchmainwith policy typebranch. Any drift blocks npm staging; do not weaken the environment or npm's separate 2FA promotion gate to recover a run. - A required fast-forward must enter
production-ref-writer-keywithdeployment: false, reviewer0thernet,prevent_self_review=false, and no administrator bypass; revalidate source and immutable release authority after approval; and authenticate one private Hraness App. The App registration and every minted token must close to exactlymetadata:read,contents:write, andworkflows:write, with no Administration or other permission. Workflows write is required because an admitted fast-forward may introduce reviewed.github/workflowschanges. Runtime must request and validate a token narrowed to Wrench repository ID1316443113; privileged setup must separately enumerate the installation-wide selected-repository set and prove it contains only Wrench before key admission. The writer's retained admission proof is workflow run33691443614: an ordinaryPtoCupdate was denied, the dedicated App performed the only leased fast-forward, the stale lease was rejected, and token revocation converged to two stable authorization denials. Retain persistent canaryrefs/heads/website-production-canaryat exactC=0bf88a064233635e0c5485c61f9c533974a7dca4; never reset, delete, or repurpose it. Keep the production lifecycle and App-only update rules mirrored on that ref, keep the single-use canary source removed, and retain the exact run, ref, ruleset, rule-suite, denial, and token-revocation evidence. Keep the production helper hard-bound towebsite-production. Never broaden permissions silently. Scrub everyWRENCH_RELEASE_APP_*value from read-onlyghchildren. Fetch only the exact verified tag through the private askpass token, peel it locally to the independently verified SHA without executing tagged code, and then push that admitted object through the same ephemeral credential boundary with explicit--force-with-lease=refs/heads/website-production:<expected-old>. Mask the installation token around that exact fetch and one leased push, then send exactly one empty-204 revocation request and require two stable authorization denials from the exact Wrench installation-repository endpoint inside the reviewed ten-slot, 30-second monotonic operational window before the exact ref post-read. Require canonical GitHubDateheaders strictly before the mintedexpires_aton that DELETE 204 and every accepted 200 or 401. In the sanitized receipt,propagationObserved=falsemeans the first two probes were the stable 401 pair with no observed 200;propagationObserved=truemeans at least one exact 200 preceded the final two stable 401s. Bind that exact bounded object asreleaseAppRevocationin every advancedwrench-provider-promotion-v3receipt, and bindnullon the separate no-writealready-exactpath. Treat the window as a fail-closed ceiling, not a GitHub propagation SLA; reject a denial that returns to authorization, nonconvergence, indeterminate timing or transport, and any malformed or unexpected response. Never retry the action, retain concurrent operation and revocation failures, and cap the App path at fourteen REST requests. Require bounded read-only jobs to bracket promotion with authenticated GitHub server time, fingerprint the complete current state andlatestStatusof at most 500 Production deployments, and exhaustively audit only the pinned candidate's REST status history. Reject any retained failure, error, or inactive candidate status even after success. Bind the REST deployment's lowercase commit.refand.shato the verified release while GraphQL reports a nullrefand the samecommitOid. Keep 20 observation slots at absolute minute offsets zero through 19 inside one injected monotonic 20-minute[start, deadline)interval and a separate 30-minute read-only job. Charge API latency to that window without sliding later slots, and never start a provider read at the deadline. Bind one exact successful Vercel Production deployment plus stable terminal tag, Release, Latest, workflow source, ref, inventory, status, and canonical-host readbacks before promotion succeeds. A verified Production build emits one exact seven-key/.well-known/wrench-release.jsonafter its site build, binding the verifier-proven local HEAD and release tag to the strict unique Vercel deployment URL. The provider baseline reads it twice; only exact v0.16.5 may begin from 404. Outcome requires that deployment URL to equal the pinned status URLs, permits only baseline-to-target movement, and finishes with two stable apex marker/health snapshots plus one exact no-followwww308 in each snapshot. Preview and local builds emit no marker. Do not make correctness depend on bypassing Vercel's static cache, and do not make the global receipt depend on previous deployment statuses that GitHub deletes after 90 days; GitHub preserves the current status on the deployment. - Before every stable tag push, a signed-in administrator must freshly prove immutable Releases enabled and two exact active repository tag rulesets targeting only
refs/tags/v*. The creation-only ruleset must have exact rulecreationand sole always-bypass User894119; it must never authorize update or deletion. The immutable ruleset must have no bypass actors and exact deletion plus update rules; it must never authorize creation. Current rulesets22311815/Release tag creationand19989752/Immutable version tagsare retained evidence; their split semantics, not their IDs or names, are authority. Never give GitHub Actions or another Integration a release-tag bypass. The Release workflow must not receive Administration permission or call ruleset endpoints. The only manual branch-create exception is the documented one-time Vercel bootstrap at the exact current immutable Latest Release commit. After it, a missing production branch is a hard failure. Live ruleset21832074supplies no-bypass creation, deletion, and non-fast-forward protection to the production and persistent canary refs. Live ruleset21887484supplies the sole update restriction and exact App4783991Integrationbypass withbypass_mode=always; no other actor may update either ref. Incident freeze ruleset22182820was removed by captured numeric ID during the audited v0.16.4 production promotion and is historical, not a live control. Checked-inCODEOWNERSsupplies ownership and notification only. Protect-main has no bypass actors and retains pull-request admission plus the exact Required CI check. Keep its approval minimum at zero andrequire_code_owner_review=falseuntil a second eligible independent code owner exists. Keep Vercel's Production Branch onwebsite-production; keep exact projectprj_TZbDZ38ABPan158IqnczgsuTu6Ue, teamteam_UAd1iD2XogJlbFg4h14mRaPM, GitHub repository ID1316443113,link.productionBranch=website-production,autoExposeSystemEnvs=true, and persistentautoAssignCustomDomains=true. False may stage without moving the canonical domains and is never a release-time toggle. Require exact setting-only before/after readback for first enablement and the full persistent project/target/domain preflight thereafter. Ambiguity is readback-only; recovery never blindly reruns, rewrites the ref, or individually aliases a candidate.mainand pull requests are preview sources, never production website sources. - The retained proof is evidence, not standing mutation authority. Before every required fast-forward, fresh administrator readback must reconfirm the permanent rulesets and target refs; the sole App
4783991Integrationbypass; the exact App permission set; installation158077029selects only Wrench repository ID1316443113; and the main-only, reviewer-gatedproduction-ref-writer-keyenvironment with no administrator bypass,prevent_self_review=false, exactly four App identity variables and the one private-key secret. Any drift leaves production unchanged. The audited v0.16.4 removal of incident freeze22182820does not authorize changing either permanent rule or silently weakening a future incident freeze.
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.
- 1mo ago Changed · +11 lines · +1,233 tokens per session bb47c1ab0ca2
- 1mo ago Changed · +9 lines · +1,223 tokens per session 44e07ac4123c
- 1mo ago First seen · 48 lines · 2,600 tokens per session scan A dba433101970
wrench AGENTS.md is an instructions file published in the GitHub repository hraness/wrench (4 stars, last pushed 1mo ago), licensed MIT. It adds 5,056 tokens to every session, about $0.0202 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.
Other instructions, from other repositories
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.