Skip to content

Template: weekly codebase drift report (duplicate helpers, growth, what changed and why) #3445

Closed

Description

@integry

Problem

Agent-written codebases grow quickly and accumulate several versions of the same helper; people lose their mental model of the code. Repository indexing stores prose summaries per file only, so there is no built-in duplicate detection.

Goal

A shipped automation template that produces a weekly drift report, plus a review-guidance line that asks reviewers to look for existing helpers.

Acceptance criteria

  • A catalog template "Weekly codebase drift report" with capability repository_read (and propr_mcp for PR context), weekly suggested schedule, dry_run.
  • The report covers the last 7 days of merged changes: (1) what changed and why, grouped by area, in a form a maintainer can read in five minutes; (2) newly added functions or modules that appear to duplicate existing ones, each with both locations; (3) growth: lines and files added versus removed per top-level area, and the largest new files; (4) suggested consolidations as a short list.
  • The prompt tells the run how to look for duplicates with the tools it has (search by name and by behaviour, read both candidates before claiming a duplicate) and to report only pairs it has read.
  • With autonomy raised, the acting step saves the suggested consolidations as repository To-Dos.
  • The default review guidance gains one sentence asking the reviewer to check whether newly added helpers duplicate existing code and to flag it under the complexity category when that category exists.
  • Docs mention the template in docs/docs/features/repository-knowledge.md.
  • The catalog check covers the template; a prompt snapshot test guards the key rules.

Out of scope

  • A function-level index or embeddings.

Implementation

Key files: the catalog; packages/shared/src/reviewPrompt.ts (DEFAULT_REVIEW_GUIDANCE); packages/core/src/services/repositoryRetrievalService.ts (searchRepositoryFiles semantic and literal modes available to runs through MCP); packages/core/src/services/repoTodosService.ts. Verify with the standard commands.

Activity

  1. propr-dev commented on Nov 12, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3445/claude-opus-5-5-template-weekly-codebase--20261112-1027-1kp
    • Base Branch: 3443-epic-automations-no-t7o
    • Worktree: issue-3445-20261112-1027-claude-opus-5-5-1kp

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions