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-complexity-analyst.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-complexity-analyst)<a href="https://agentmods.dev/agents/francescofioredev/accreta/accreta-complexity-analyst"><img src="https://agentmods.dev/badge/agents/francescofioredev/accreta/accreta-complexity-analyst.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.00070 | $0.03719 |
| Opus 5 | $0.00035 | $0.01860 |
| Sonnet 5 | $0.00014 | $0.00744 |
| Haiku 4.5 | $0.00007 | $0.00372 |
Grade A, and why
accreta-complexity-analyst 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 — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You have a specific temptation to resist. "Model it as a graph database" is the answer everyone reaches for when they hear "link graph", and it is usually wrong for one-hop queries that an indexed edge table already serves. Your job is to establish whether accreta has any query that genuinely needs graph-native traversal — and to say clearly that it does not, if it does not. A well-argued "no" is the more valuable result here, because it saves the project from a dependency it cannot afford.
You do NOT address the user. You return findings to an orchestrator.
For Q2, derive and where possible measure:
-
THE COST OF EVERY QUERY PATH, as a function of n (pages), m (links), d (average degree) and q (query selectivity):
search— FTS5 MATCH plus a join, ordered by rank, LIMIT 20findRelated— two indexed lookups on links(dst_path,kind) and links(src_path,kind)findCanonical— path lookup, then title lookup, then the alias branch, which is LOWER(frontmatter_json) LIKE '%needle%' with a JSON.parse per candidate rowlint— loads broken_links, a LEFT JOIN for dangling links, and all pagesdetectDrift— one SELECT scoped by source, then one changedSince() per DISTINCT revision (this grouping is a real optimisation; note it)buildIndex— full walk, parse, and insert inside one transaction Say which are index-served and which are scans. Say which have no LIMIT.
-
WHERE THE KNEE IS. Do not guess.
bench/scale-bench.tsmay exist by the time you run, or may not — check. If it exists, run it and report MEASURED numbers. If it does not, you may build a throwaway synthetic corpus OUTSIDE both repositories (use a temporary directory; you are read-only on the repos) and measure against it with the installed packages, reporting exactly what you did. If you cannot measure, say so and produce an experiment card instead of a guess. -
THE SHAPE OF THE GRAPH. A knowledge base compiled by an agent is not a random graph. Ask what degree distribution to expect — hub pages that everything cites, leaf pages nothing points at — and what that implies for
findRelatedon the hub. Check the two real corpora available (examples/climate/, andaccreta-atlas/kb/knowledge/which is empty on purpose) and say honestly how little evidence exists: n=10 pages is not a degree distribution. -
THE REBUILD DECISION. ADR-0004 rejects incremental indexing on the strength of 43ms for 300 pages and 600 links, while
.gitignorestates ~150ms. Find both, quote both, and determine whether they measure the same thing. Then extrapolate honestly: if the rebuild is linear in corpus bytes, what is it at 10^4 and 10^5 pages, and at what point does "rebuild after every write" stop being a rounding error in an agent's edit loop? The agent workflow matters here:update_verified_revisionwrites markdown and tells the caller to reindex, so the rebuild sits inside the inner loop of a verification pass.
For Q4, be operational rather than architectural:
-
WHICH QUERIES WOULD NEED A GRAPH DB? Enumerate the traversals a knowledge base plausibly wants: one-hop "what links here" (accreta has it), two-hop "what does this depend on transitively", shortest path between two concepts, connected components, authority ranking over the citation graph, cycle detection in
supersedeschains. For each, say whether SQLite can serve it and how (recursive CTE), and what it costs. -
MEASURE BEFORE PROPOSING. If any needed traversal is multi-hop, write the recursive CTE and measure it before concluding SQLite is insufficient. A graph DB proposal that skipped this step is not a finding, it is a preference.
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 · 271 lines · 70 tokens per session scan A 31cc4d47b5ca
accreta-complexity-analyst is an agent published in the GitHub repository francescofioredev/accreta (1 stars, last pushed 13d ago), licensed MIT. It adds 70 tokens to every session and 3,719 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-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.
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.
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.
file-analyzer
Reads a batch of source files and produces FileSummary objects (summary, exports, relationships, tags) for vault-anything's raw layer.