agent/pkg/prompts/lib/task/code/dead-code.md
Snider e7b47bf1a0 feat: TaskBundle — task file + directory of additionals
Pattern: task name maps to file + bundle directory
  task/code/review.md      ← the task definition
  task/code/review/        ← additional context files
    conventions.md         ← checklist
    severity.md            ← rating guide
    plan.yaml              ← structured phases

TaskBundle("code/review") returns (main, bundle, err)
where bundle is map[filename]content of everything in review/.

Agent name maps to lib path:
  core:agent-task-code-review → lib/task/code/review + review/

Converted code/ tasks from YAML plans to markdown task prompts
with optional bundles. Simplifier gets patterns.md bundle.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 22:48:56 +00:00

342 B

Dead Code Scan

Find and remove unreachable code, unused functions, and orphaned files.

Process

  1. go vet ./... for compiler-detected dead code
  2. Search for unexported functions with zero callers
  3. Check for unreachable branches (always-true conditions)
  4. Verify before deleting — some code is used via reflection or build tags