ccf-codebase-analyzer

ccf-codebase-analyzer is an agent for Claude Code from naniiluja/ccf. It costs 113 tokens per session (1,604 once invoked), scanned A, original, MIT.

A read-only codebase explorer that examines one assigned part of an existing project and returns a structured report.

In plain words
What is it for?
Mapping one area of a codebase, such as its architecture, database, API, frontend, or state management.
Why use it?
It shows what already exists before planning or changing code, without proposing or writing a solution.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the ccf plugin — 2 skills, 4 commands, 6 agents, 4 hooks, 2 MCP servers shipped together

Good fit Mapping one area of a codebase, such as its architecture, database, API, frontend, or state management.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/naniiluja/ccf/ccf-codebase-analyzer
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/naniiluja/ccf

Made for: Claude Code.

Or install ccf, the plugin that ships this one along with the rest of its 2 skills, 4 commands, 6 agents, 4 hooks, 2 MCP servers.

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 ccf-codebase-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/naniiluja/ccf/ccf-codebase-analyzer/github.svg)](https://agentmods.dev/agents/naniiluja/ccf/ccf-codebase-analyzer)
Your own site
<a href="https://agentmods.dev/agents/naniiluja/ccf/ccf-codebase-analyzer"><img src="https://agentmods.dev/badge/agents/naniiluja/ccf/ccf-codebase-analyzer/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 ccf-codebase-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/naniiluja/ccf/ccf-codebase-analyzer"><img src="https://agentmods.dev/badge/agents/naniiluja/ccf/ccf-codebase-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 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,604 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.00113 $0.01604
Opus 5.5 $0.00045 $0.00642
Sonnet 5.5 $0.00023 $0.00321
Haiku 4.5 $0.00011 $0.00160

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

Security

Grade A, and why

ccf-codebase-analyzer 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 14d 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/ccf/agents/ccf-codebase-analyzer.md · 78 lines

How it starts

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

You are the CCF Codebase Analyzer. You analyze exactly the one slice assigned in your prompt and return a structured report on it. Four other analyzers run beside you on the other slices, so anything you write outside your slice is duplicated work that the caller then has to reconcile.

You are READ-ONLY: you write no files, and you mutate no external system through MCP (SELECT and read calls only). You are also a leaf agent: you do not spawn other agents (the Task/Agent tool), you return your result to the caller instead.

Possible slices

Your prompt assigns exactly ONE slice, drawn from one of the two sets below. The calling command chooses the set and names the slice explicitly, so never pick a slice yourself and never answer for a slice you were not given.

Set A — onboarding slices (/ccf:init): map the WHOLE project

The prompt will assign one of:

  1. Architecture & module boundaries — layering, module boundaries, dependency direction, entry points.
  2. Data layer & DB — schema, migrations, ORM and query patterns, DB connection.
  3. API surface — routes and endpoints, request and response contracts, versioning, auth.
  4. Frontend & state — component structure, state management, routing, data fetching.
  5. Build/test/CI + conventions & logging + git history — build and test scripts, CI config, the coding conventions actually observed, the logging approach, and the repo's git conventions. For git, run read-only git log, git branch -a and git tag, then INFER the real patterns rather than inventing them: commit subject style (conventional commits? which type set? which scope language?), whether bodies and a Co-Authored-By or sign-off trailer are used, branch naming (feat/*, fix/*, or only main), and tag and PR usage. Report each pattern with example commit hashes as evidence. When history is thin (2 commits or fewer) or mixes styles, say so explicitly, because /ccf:init writes your answer straight into the project's git-workflow.md and a guessed convention becomes a rule nobody agreed to.

Read the full file on GitHub · 78 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. 14d ago Changed · +17 tokens per session 7e58af44a725
  2. 1mo ago First seen · 78 lines · 96 tokens per session scan A 029b75b44a30

Subscribe to this mod's changes

ccf-codebase-analyzer is an agent published in the GitHub repository naniiluja/ccf (9 stars, last pushed 3d ago), licensed MIT. It adds 113 tokens to every session and 1,604 once invoked, about $0.0005 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-08-31.

Related

Other agents, from other repositories

code-reviewer

Use this agent to review pull request diffs for code quality, correctness, security, and best practices. Invoke when a PR is created and needs review before merge. Context: An issue PR has been created targeting the feature branch. assistant: "I'll use the code-reviewer agent to review this PR." Context: A feature PR…

skullninja/coco-workflow · 127 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens

pre-commit-tester

Use this agent to validate UI/UX changes before committing. Invoke when staged files match UI change patterns from config, or when the user wants visual feedback on pending changes. Context: User has made UI changes and wants to validate before committing. user: "Test the changes before I commit" assistant: "I'll use…

skullninja/coco-workflow · 159 tokens

kotlin-android-architect

Android + Kotlin + Jetpack Compose + MVVM architecture specialist. Validates UI/ViewModel/domain/data layering, StateFlow discipline, UseCase single-responsibility, repository pattern, and Hilt DI correctness. Dispatch when touching screens, ViewModels, UseCases, repositories, or DI modules.

onlygian/G-Forge · 66 tokens

python-data-architect

Python data pipeline (Pandas/Polars + SQLAlchemy) architecture specialist. Validates pipeline/transform/loader/writer layering, pure-function transforms, no-mutation discipline, type hint requirements, and Polars-over-Pandas guidance. Dispatch when touching pipelines, transforms, loaders, writers, or schema models.

onlygian/G-Forge · 68 tokens

python-ml-architect

Python ML (PyTorch/scikit-learn) architecture specialist. Validates data/model/training/evaluation/inference layering, config-driven hyperparameters, reproducibility discipline, and pipeline separation. Dispatch when touching model definitions, training loops, datasets, or inference code.

onlygian/G-Forge · 59 tokens