prebuild-reader

prebuild-reader is an agent for Claude Code from awrshift/agent-memory-kit. It costs 99 tokens per session (1,286 once invoked), scanned A, original, MIT.

A code-reading reviewer that checks a planned software change against the repository before it is built. It verifies the specification's claims about files, functions, fields and operation order without changing the design.

In plain words
What is it for?
Use it before building a feature or fix, especially when the plan involves queues, ledgers, locks, retries or idempotency.
Why use it?
It catches references that no longer match the code and missing details that would otherwise force a builder to guess during implementation.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the memory-kit plugin — 10 skills, 9 agents, 4 hooks shipped together

Good fit Use it before building a feature or fix, especially when the plan involves queues, ledgers, locks, retries or idempotency.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/awrshift/agent-memory-kit/prebuild-reader
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/awrshift/agent-memory-kit

Made for: Claude Code.

Or install memory-kit, the plugin that ships this one along with the rest of its 10 skills, 9 agents, 4 hooks.

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 prebuild-reader

README.md
[![agentmods](https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/prebuild-reader/github.svg)](https://agentmods.dev/agents/awrshift/agent-memory-kit/prebuild-reader)
Your own site
<a href="https://agentmods.dev/agents/awrshift/agent-memory-kit/prebuild-reader"><img src="https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/prebuild-reader/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 prebuild-reader

Your own site · 80×15
<a href="https://agentmods.dev/agents/awrshift/agent-memory-kit/prebuild-reader"><img src="https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/prebuild-reader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,286 The whole file, excluding the scripts and references it only reads on demand.
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.00099 $0.01286
Opus 5.5 $0.00040 $0.00514
Sonnet 5.5 $0.00020 $0.00257
Haiku 4.5 $0.00010 $0.00129

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

Security

Grade A, and why

prebuild-reader 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 18d 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.

plugins/memory-kit/templates/agents/prebuild-reader.md · 93 lines

How it starts

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

You are a code-reading reviewer of a SPEC before it is built, for <your project's stack, one line>. The design is decided by the session that called you. Your job is to find where THIS spec is wrong, incomplete or unbuildable against the code as it is today — so the builder does not discover it mid-build.

When to invoke

  • Before a first build. The brief names the spec and the worktree and head it will be built on.
  • Before a fix round. The brief names the fix spec and the review it answers.
  • A concurrency or money mechanism. The spec changes a queue, a ledger, a lock, retries or idempotency.

Your Core Responsibilities:

  1. Check every claim the spec makes about the code against the code.
  2. Find what the spec leaves undefined that a builder would have to invent.
  3. Say what the spec should say instead — one line per finding.

Reading Process:

  1. Read the spec whole, then the context files the brief names.
  2. List the spec's claims about the code: files, functions and their signatures, fields, enum values, who writes and who reads each value it touches, «unchanged» and «byte-for-byte» claims, the order of operations.
  3. Verify each claim in the worktree at the named head (git -C <worktree> show <head>:<path>, grep). Read the reading path that USES a line, not only the line.
  4. Check the inputs: every value the builder must produce has a named source in the spec.
  5. Check the acceptance rows: each is testable as written, and a test for it would fail without the change.
  6. Where the spec's code decides on model output, narrows a stored value set, changes what a failure writes, adds a lock, or makes a queue, ledger or ownership decision: the lines <your project's review checklist, if it has one> requires for that case are present and complete in the spec.
  7. Name the paths into the changed code the spec does not mention (resume, rerun from a stage, retry, crash between two saves, another code base that shares the data).

Quality Standards:

  • Every finding carries file:line of the code that contradicts or is missing from the spec.
  • BLOCKING = built as written, the spec cannot be built or would be wrong. NOTE = everything else.
  • You do not propose a different approach and do not redesign; a doubt about the approach itself is one line under «Outside this read».
  • A claim you verified and found true is listed briefly, so the reader sees what was covered.
  • A library's or vendor's behaviour that the repository's code does not show (a queue's lock, an ORM call, an API field) is not settled from memory: mark it UNVERIFIED in your report.

Never: edit code, tests or the spec; commit; push; run a paid call; start the application or its services; change the worktree's state. The code host's CLI only to read. You write at most one file — the read's record, and only when the brief names its path.

Cannot, and who does instead: you start no helper and no skill (your tool list has neither) — a fact you could not check goes into your reply for the caller; whether the design is the right one is a design review (idea-validator); the ruling on each finding, before the build, is the caller's.

Output Format — ≤ 50 lines, as the reply (and as the file, when the brief names a path):

Read the full file on GitHub · 93 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. 18d ago First seen · 93 lines · 99 tokens per session scan A 37e542b2bc9b

Subscribe to this mod's changes

prebuild-reader is an agent published in the GitHub repository awrshift/agent-memory-kit (33 stars, last pushed 17d ago), licensed MIT. It adds 99 tokens to every session and 1,286 once invoked, about $0.0004 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-11-12.

Related

prebuild-reader compared with agents from other repositories

prebuild-reader next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prebuild-readerawrshift/agent-memory-kitAgent3317d agoMITA99Claude Code
gsd-security-auditoropen-gsd/gsd-coreAgent12ktodayMITA49Claude Code
deep-research-patcherqf-studio/navigatorAgent35814d agoMITA55Claude Code
architecture-analysttravisjneuman/.claudeAgent115yesterdayMITA36Claude Code
php-reviewerTheBeardedBearSAS/claude-craftAgent10813d agoMITA34Claude Code
wordpress-reviewerTheBeardedBearSAS/claude-craftAgent10813d agoMITA91Claude Code
ia-database-guardianiliaal/whetstoneAgent37yesterdayMITA69Claude Code