Code Age Analysis
code_ageIdentify stale files and actively maintained areas by showing each file's last modification date. Pinpoint potential dead code for cleanup planning and onboarding.
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/") |