agent/pkg/lib/task/code/dead-code.md
Snider 53482cb0c8 feat: workspace templates via Extract — Gosod pattern for agent dispatch
- Move pkg/prompts/lib → pkg/lib (prompt, task, flow, persona, workspace)
- New lib.go: unified package with ExtractWorkspace() using text/template
- Workspace templates: default, security, review — .tmpl files with data injection
- prep.go: uses lib.ExtractWorkspace() + detect helpers for language/build/test
- prompts.go: thin re-export wrapper for backwards compat

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-18 14:03:06 +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