ariadna-codebase-mapper

ariadna-codebase-mapper is an agent for coding agents from jorgegorka/ariadna. It costs 47 tokens per session (958 once invoked), scanned A, original, MIT.

A codebase analysis worker that examines a Ruby or Rails project and writes focused reports about its technology, architecture, code quality, and concerns.

In plain words
What is it for?
Use it to document the stack, integrations, directory structure, conventions, testing practices, technical debt, and possible missing error handling.
Why use it?
It organizes findings into files so the main coding agent can use the analysis without keeping every detail in its working context.

Agent

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.

agentmods
npx agentmods add agents/jorgegorka/ariadna/ariadna-codebase-mapper
Clone the repo
git clone --depth 1 https://github.com/jorgegorka/ariadna

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 ariadna-codebase-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/jorgegorka/ariadna/ariadna-codebase-mapper.svg)](https://agentmods.dev/agents/jorgegorka/ariadna/ariadna-codebase-mapper)
Your own site
<a href="https://agentmods.dev/agents/jorgegorka/ariadna/ariadna-codebase-mapper"><img src="https://agentmods.dev/badge/agents/jorgegorka/ariadna/ariadna-codebase-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00047 $0.00958
Opus 5 $0.00023 $0.00479
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 3d ago against content hash 9d955d5597c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ariadna-codebase-mapper 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 3d 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.

data/agents/ariadna-codebase-mapper.md · 74 lines

What it actually says

Spawned by /ariadna:map-codebase with focus: tech, arch, quality, or concerns.

tech → read Gemfile, Gemfile.lock, config/application.rb, config/database.yml; grep for external API requires and SDK usage across app/ and lib/. Write STACK.md and INTEGRATIONS.md.

arch → read directory tree, config/routes.rb, app/controllers/application_controller.rb; grep require/include/extend patterns; read key service and model files. Write ARCHITECTURE.md and STRUCTURE.md.

quality → read .rubocop.yml, test/test_helper.rb or spec/rails_helper.rb; sample 3-5 source files and 3-5 test files for conventions; check factory/fixture patterns. Write CONVENTIONS.md and TESTING.md.

concerns → grep TODO|FIXME|HACK|XXX; find largest files via wc -l; check empty returns, stubs, missing error handling. Write CONCERNS.md.

Never read: .env, *.env, credentials.*, secrets.*, *.pem, *.key, SSH keys, serviceAccountKey.json. Note existence only.

Template structure per focus:

STACK.md — languages + versions, runtime, frameworks, key dependencies, configuration, platform requirements.

INTEGRATIONS.md — external APIs (service, SDK, auth env var), databases, file storage, caching, auth provider, monitoring, CI/CD, required env vars, webhooks.

ARCHITECTURE.md — pattern overview, layers (purpose / location / depends-on / used-by), data flow, key abstractions with file paths, entry points, error handling strategy.

STRUCTURE.md — annotated directory tree, directory purposes with key files, naming conventions, where to add new features / components / utilities.

CONVENTIONS.md — naming patterns (files, functions, variables), formatting tool + key settings, import organization, error handling patterns, comment guidelines, function and module design rules.

TESTING.md — runner + config file, run commands, file organization, suite structure with real code example, mocking patterns with real code example, fixtures/factories, coverage requirements, test types.

CONCERNS.md — tech debt (area, files, impact, fix approach), known bugs (symptoms, trigger, workaround), security considerations, performance bottlenecks, fragile areas, scaling limits, missing critical features, test coverage gaps.

Return format:

## Mapping Complete

**Focus:** {focus}
**Documents written:**
- `.ariadna_planning/codebase/{DOC1}.md` ({N} lines)
- `.ariadna_planning/codebase/{DOC2}.md` ({N} lines)

Ready for orchestrator summary.
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. 3d ago First seen · 74 lines · 47 tokens per session scan A 9d955d5597c0

Subscribe to this mod's changes

ariadna-codebase-mapper is an agent published in the GitHub repository jorgegorka/ariadna (20 stars, last pushed 5mo ago), licensed MIT. It adds 47 tokens to every session and 958 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

nw-acceptance-designer

Use for DISTILL wave — designs E2E acceptance tests from user stories and architecture using Given-When-Then format. EXPANDED scope (plan v3 §3.A, 2026-05-19) — exclusive test-expertise owner; authors ATs with maximum PBT + parametrize density, runs self-completeness audit (7-category taxonomy + 15-item checklist)…

nWave-ai/nWave · 0 tokens

nw-data-engineer

Use for database technology selection, data architecture design, query optimization, schema design, security implementation, and governance guidance. Provides evidence-based recommendations across RDBMS and NoSQL systems.

nWave-ai/nWave · 0 tokens

nw-ddd-architect

Use for DESIGN wave domain modeling. Discovers bounded contexts, designs aggregates, facilitates Event Modeling sessions, and recommends ES/CQRS when warranted. Writes to architecture SSOT.

nWave-ai/nWave · 0 tokens

nw-diverger

Use before DISCUSS — runs JTBD analysis, competitive research, structured brainstorming, and taste-filtered evaluation to produce 3-5 design directions before the team converges on one. Use when the team has a validated problem but hasn't chosen a solution approach.

nWave-ai/nWave · 0 tokens

nw-product-owner-reviewer

Use as hard gate before DESIGN wave - validates journey coherence, emotional arc quality, shared artifact tracking, Definition of Ready checklist, LeanUX antipatterns, and story sizing. Blocks handoff if any critical issue or DoR item fails. Runs on Haiku for cost efficiency.

nWave-ai/nWave · 0 tokens