accreta: Agent for Claude Code

.claude/agents/accreta-storage-engineer.md

accreta-storage-engineer is an agent for Claude Code from francescofioredev/accreta. It costs 60 tokens per session (3,606 once invoked), scanned A, original, MIT.

A read-only reviewer for the storage and concurrency design of Accreta, focusing on how its filesystem and database index behave when data is rebuilt or accessed at the same time. It examines durability, platform differences, and stale or failed reads.

In plain words
What is it for?
Use it to review Accreta's storage architecture and ADR-0004, especially index rebuilding, SQLite behavior, reader reopening, and differences between Linux and macOS. It returns findings without changing files.
Why use it?
It exposes cases where a long-running server may quietly serve old knowledge or fail after an index is replaced. This helps identify risks in file swaps, database connections, and concurrent access.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is francescofioredev/accreta's own configuration. It tells Claude Code how to work on accreta 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 accreta configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/francescofioredev/accreta/main/.claude/agents/accreta-storage-engineer.md
Clone the repo
git clone --depth 1 https://github.com/francescofioredev/accreta

Made for: Claude Code.

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 accreta-storage-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/francescofioredev/accreta/accreta-storage-engineer.svg)](https://agentmods.dev/agents/francescofioredev/accreta/accreta-storage-engineer)
Your own site
<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>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,606 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.00060 $0.03606
Opus 5 $0.00030 $0.01803
Sonnet 5 $0.00012 $0.00721
Haiku 4.5 $0.00006 $0.00361

Measured 7d ago against content hash e418635ef1c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.claude/agents/accreta-storage-engineer.md · 266 lines

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:

  1. THE rename(2) SWAP AND THE READER THAT NEVER REOPENS. build.ts builds into <index>.building and 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 read packages/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.

  2. 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 .building staging 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.

  3. DURABILITY. sealForReading checkpoints 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?

  4. 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.

  5. 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-only between 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.

  6. 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.ts may exist by the time you run — check, and if it does, run it and report MEASURED numbers.

Read the full file on GitHub · 266 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. 7d ago First seen · 266 lines · 60 tokens per session scan A e418635ef1c5

Subscribe to this mod's changes

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.

Related

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).

nicholasglazer/gnosis-mcp · 62 tokens

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.

nicholasglazer/gnosis-mcp · 32 tokens

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…

testdouble/han · 216 tokens

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.

nicholasglazer/gnosis-mcp · 50 tokens

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.

nicholasglazer/gnosis-mcp · 30 tokens

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.

nicholasglazer/gnosis-mcp · 42 tokens