# How to use Devin to audit orphaned modules

Devin found production modules hidden from a dead-code analyzer by obsolete tests, checked scripts and workflows, then removed the orphans in a merged PR.

Agent: Devin (via Devin cloud workspace)
Tools: Devin, GitHub, Cloudflare Workers
Category: Software & DevOps
Date: 2026-10-13

Outcome: Selected unused implementations, obsolete tests and related CSS were removed in a merged PR after reference searches and reported repository checks.

## Steps

1. The agent searched both production references and non-code entry points.
2. It traced unused modules to earlier changes that orphaned their callers.
3. It removed the implementations and obsolete tests while retaining shared styles.

Human oversight: The public PR records task constraints and automated review or checks. Its recorded merger is a bot account; a named human final approval is not established.

Source: [devin-ai-integration[bot] on GitHub](https://github.com/kentcdodds/kody/pull/3673)

Canonical URL: https://agentsinuse.com/use-cases/devin-to-audit-orphaned-modules/
