codebase-analysis-pipeline

codebase-analysis-pipeline is an agent for coding agents from AndrewAltimit/template-repo. It costs 0 tokens per session (3,970 once invoked), scanned A, original, Unlicense.

A two-stage process for analysing a codebase and improving its backlog. It examines the main branch, creates GitHub issues, and uses review and approval before an issue becomes a pull request.

In plain words
What is it for?
It is for finding quality, security, performance, maintenance, documentation, testing, dependency, and architecture work, then refining and processing the resulting backlog.
Why use it?
It turns recurring code review findings into a tracked workflow with human approval before changes are proposed.

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/andrewaltimit/template-repo/codebase-analysis-pipeline
Clone the repo
git clone --depth 1 https://github.com/AndrewAltimit/template-repo

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 codebase-analysis-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/agents/andrewaltimit/template-repo/codebase-analysis-pipeline.svg)](https://agentmods.dev/agents/andrewaltimit/template-repo/codebase-analysis-pipeline)
Your own site
<a href="https://agentmods.dev/agents/andrewaltimit/template-repo/codebase-analysis-pipeline"><img src="https://agentmods.dev/badge/agents/andrewaltimit/template-repo/codebase-analysis-pipeline.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,970 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.00000 $0.03970
Opus 5 $0.00000 $0.01985
Sonnet 5 $0.00000 $0.00794
Haiku 4.5 $0.00000 $0.00397

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

Security

Grade A, and why

codebase-analysis-pipeline 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 5d 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.

docs/agents/codebase-analysis-pipeline.md · 583 lines

How it starts

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

Agentic Codebase Analysis & Issue Creation Pipeline

Overview

This document describes a two-stage automated pipeline for continuous codebase improvement:

  1. Daily Codebase Analysis Pipeline - Deep inspection of main branch with automated issue creation
  2. Multi-Agent Backlog Refinement Pipeline - Scheduled review of backlog items by multiple agents

The workflow follows the existing pattern: Issues are created with analysis data, admin reviews and approves via [Approved] comment, then the Issue Monitor Agent creates PRs.

[Daily Analysis] → [Issues Created] → [Admin Review] → [Approved] → [PR Created]
                         ↓
              [Backlog Refinement]
                         ↓
           [Multi-Agent Comments]

Part 1: Daily Codebase Analysis Pipeline

Purpose

Automatically pull main branch, perform deep analysis, and create GitHub issues for:

  • Code quality improvements
  • Security vulnerabilities
  • Performance optimizations
  • Technical debt reduction
  • Documentation gaps
  • Test coverage improvements
  • Dependency updates
  • Architectural refactoring opportunities

Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                    Daily Codebase Analysis Pipeline                  │
├─────────────────────────────────────────────────────────────────────┤
│                                                                      │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐          │
│  │   Pull Main  │───▶│Deep Analysis │───▶│ Deduplicate  │          │
│  │    Branch    │    │   Agents     │    │  & Filter    │          │
│  └──────────────┘    └──────────────┘    └──────────────┘          │
│                             │                   │                    │
│                             ▼                   ▼                    │
│                      ┌──────────────┐    ┌──────────────┐          │
│                      │   Claude     │    │Create Issues │          │
│                      │   Gemini     │    │  On Board    │          │
│                      │   Codex      │    └──────────────┘          │
│                      │   OpenCode   │           │                   │
│                      └──────────────┘           ▼                   │
│                                          ┌──────────────┐          │
│                                          │Admin Review  │          │
│                                          │  Required    │          │
│                                          └──────────────┘          │
│                                                                      │
└─────────────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 583 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. 5d ago First seen · 583 lines · 0 tokens per session scan A d6382d0fed8e

Subscribe to this mod's changes

codebase-analysis-pipeline is an agent published in the GitHub repository AndrewAltimit/template-repo (131 stars, last pushed 2mo ago), licensed Unlicense. It costs nothing until one of its globs matches a file; then it loads 3,970 tokens. 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

Executive PM

Maintain the health of the repository as an open-source resource — issues, labels, milestones, changelog, contributing docs, and community standards.

EndogenAI/dogma · 31 tokens

Issue Triage

First-pass triage on new issues — suggest labels, priority, effort; flag duplicates; draft clarifying comments. Does not close or merge without human confirmation.

EndogenAI/dogma · 36 tokens

agent-system

An AgentSystem composes multiple Agents into a directed graph that Orloj executes as a coordinated workflow. The graph defines how messages flow between agents during task execution.

OrlojHQ/orloj · 0 tokens

plan-creation-eng-lead

Engineering and Delivery Lead for implementation planning. Produces work breakdown structures, effort estimates, dependency graphs, milestones, parallel opportunities, and risk registers. Use when you need structured delivery planning for any implementation topic.

QBall-Inc/the-bulwark · 48 tokens

scrum-leader

Use this agent for sprint planning, backlog grooming, velocity tracking, and agile coaching. Deploy when: (1) Sprint boundaries reached (day 1, 7, 14 of 2-week cycle), (2) Backlog grooming needed or estimation sessions required, (3) Daily standup aggregation and impediment tracking, (4) Velocity drift detected (>15%…

Zeekeey-jpeg/LeRoy-HQ · 145 tokens

compliance

The Compliance agent protects your project from legal and regulatory risk. It audits dependency licenses for compatibility (is that GPL-3.0 package going to force your MIT project open-source?), checks data handling against GDPR requirements (do you have a data inventory? can users request deletion?), verifies WCAG…

nxtg-ai/forge-plugin · 0 tokens