Code Age Analysis
code_ageAnalyze code age to identify stale files last modified months or years ago, helping plan cleanup and understand which parts of the codebase are actively evolving.
Instructions
Show the age of code in each file — when it was last modified. Identifies stale files that haven't been touched in months or years (potential dead code or abandoned features) vs actively maintained areas. Useful for cleanup planning, onboarding, and understanding which parts of the codebase are actively evolving. NOTE: If the server was not started inside a git repo, you MUST provide repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order: "oldest" shows stalest files first, "newest" shows most recent first | oldest |
| limit | No | Max files to return (default: 30, max: 100) | |
| repo_path | No | Absolute path to the git repository to analyze. Required if Claude Code was not opened in a git repo. | |
| path_filter | No | Filter to files under this path (e.g., "src/") |