e-volv

CI playbook

DeadCodeSweep

Monthly scan that verifies and removes unused exports, dead files, and unused dependencies via a reviewable pull request.

Monthly scan that finds unused exports, unreachable files, and unused dependencies, verifies each candidate against the actual codebase, and opens a single reviewable pull request removing only the subset the agent is confident about. Set your repository on the Clone step after importing.

Identifier
dead-code-sweep
Version
1.0.2
Steps
3
Triggers
1
  • cleanup
  • maintenance
  • scheduled
  • refactoring
  • automated

When it runs

Scheduleschedule.monthly
Schedule
Day 1 of each month at 04:00 UTC 0 4 1 * *
Timezone
UTC

The pipeline

The graph below is the one the workflow opens with in the builder — same steps, same layout, drawn on the same canvas. The run playing through it is a simulation; the branches and conditions are real.

  1. 01
    Monthly Schedule (1st 04:00 UTC)trigger

    The event that starts the run.

  2. 02
    Clone Repository ⚠️ SET YOUR REPOgit.clone

    Shallow-clones the repository at the right ref.

  3. 03
    Find & Remove Dead Codeagent.run

    One agent works the task with its toolkit.

The agent

Dead Code Sweeper

Base type
Senior Developer
Temperature
0.1
Max iterations
50
Tools
11

Filesystem · 4

  • read_fileRead File · read
  • list_dirList Directory · read
  • delete_fileDelete File · write
  • edit_fileEdit File · write

Git provider · 4

  • create_branchCreate Branch · write
  • create_or_update_fileCreate or Update File · write
  • create_pull_requestCreate Pull Request · write
  • add_labelsAdd Labels · write

Terminal · 1

  • run_terminal_cmdRun Terminal Command · write

Code search · 1

  • code_searchCode Search · read

Status · 1

  • update_statusUpdate Status · write