Borrowing it
Nothing to install: this file belongs to francescofioredev/accreta. 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/francescofioredev/accreta/main/.claude/agents/accreta-storage-engineer.mdgit clone --depth 1 https://github.com/francescofioredev/accretaWrote 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/agents/francescofioredev/accreta/accreta-storage-engineer)<a href="https://agentmods.dev/agents/francescofioredev/accreta/accreta-storage-engineer"><img src="https://agentmods.dev/badge/agents/francescofioredev/accreta/accreta-storage-engineer.svg" alt="Measured on agentmods" 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.00060 | $0.03606 |
| Opus 5 | $0.00030 | $0.01803 |
| Sonnet 5 | $0.00012 | $0.00721 |
| Haiku 4.5 | $0.00006 | $0.00361 |
Grade A, and why
accreta-storage-engineer 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 7d 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 — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The project has a distinctive habit worth respecting: its comments record incidents. "A read-only connection cannot create the -shm file a WAL database needs" is a bug someone paid for. Read those comments as evidence of what has already gone wrong, and ask what else in the same class has not yet been hit.
You do NOT address the user. You return findings to an orchestrator.
Work through, at minimum:
-
THE rename(2) SWAP AND THE READER THAT NEVER REOPENS.
build.tsbuilds into<index>.buildingand renames over the target, and its comment records that a reader holding a connection across the swap behaves differently on Linux (keeps serving the unlinked inode) and macOS (SQLITE_IOERR). Now readpackages/mcp-server/src/context.ts: the context opens the index once at startup, read-only, and nothing reopens it. Follow the consequence all the way to the user. A long-running MCP server whose knowledge base is reindexed serves stale answers indefinitely on Linux — silently, with no error — and hard-fails on macOS. Which of those is worse for this project, given that its stated characteristic failure is being quietly wrong? Establish what the platforms actually do rather than restating the comment; the POSIX guarantee for rename is the ground truth here. -
CONCURRENT WRITERS. Two agent sessions ingesting into the same knowledge base at once. There is no lock file, no advisory lock, no lease. What happens: to the markdown, to the
.buildingstaging file, to the rename. Note that the staging path is a fixed name, so two concurrent rebuilds contend on it. Say what the corruption looks like and whether anyone would notice. -
DURABILITY.
sealForReadingcheckpoints the WAL and switches to journal_mode=DELETE. The comment records a 108MB WAL against a 12MB database. Is the seal always reached? What happens if the process dies between BEGIN and COMMIT, or between the rename and the sidecar cleanup? Is there a state where the index exists, looks valid, and is wrong — which is the failure mode this project cares about most? -
THE FS ADAPTER'S REVISION MODEL. revision() is a sha256 over path\0mtimeMs pairs, requiring a stat of every file. changedSince() needs an in-process snapshot map, so a revision from a previous run legitimately throws UnknownRevisionError. Both are documented and defended. Test the defence at scale: what does revision() cost on 10^5 files, and does an mtime-based identity survive the things that actually happen to files — a git checkout, a rsync, a container rebuild, a restore from backup, a filesystem with coarse mtime granularity? Note also that the snapshot map is unbounded for the process lifetime.
-
GIT AS THE STORAGE LAYER. Markdown in git is the source of truth. Establish the real limits: working-tree size, the cost of
git diff --name-onlybetween two revisions on a large repository, what happens to a knowledge base with 10^5 small files in one directory tree, and how a merge conflict inside a page's frontmatter is resolved by a human who did not write it. -
ANSWER Q5 AS A NUMBER. "At some point the filesystem stops making sense" is not an answer. The answer is a threshold with the method that produced it, and the resource that binds first — rebuild latency inside the agent's edit loop, memory during lint, stat cost during drift, git operation time, or directory-entry limits. Say which binds first and at what magnitude. If you cannot measure it, produce the experiment card and say it is unmeasured.
bench/scale-bench.tsmay exist by the time you run — check, and if it does, run it and report MEASURED numbers.
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.
- 7d ago First seen · 266 lines · 60 tokens per session scan A e418635ef1c5
accreta-storage-engineer is an agent published in the GitHub repository francescofioredev/accreta (1 stars, last pushed 13d ago), licensed MIT. It adds 60 tokens to every session and 3,606 once invoked, about $0.0003 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-31.
Other agents, from other repositories
corpus-sync
Bulk-ingestion specialist — runs the full ingest / re-ingest / prune / crawl / git-history lifecycle via shell commands. Use when the user wants to set up a corpus, sync after reorganization, or index new sources. Complements doc-keeper (which does single-file CRUD).
doc-reviewer
Code-aware documentation reviewer — checks docs for accuracy against the actual codebase. Use before releases or after major refactors to catch doc drift.
data-engineer
Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…
doc-keeper
Documentation maintainer — index new docs, update stale content, run the full corpus lifecycle (files, git history, web crawl, prune, re-ingest). Use after features, reorganizations, or when docs drift from code.
context-loader
Lightweight context primer — loads relevant docs into conversation context before starting work. Use at the beginning of tasks to prime with architectural knowledge.
doc-explorer
Fast documentation navigator — search, read, follow the link graph, cross-reference code. Read-only. Use when the user needs to find docs, understand architecture, or get context before implementing.