- 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>
342 B
342 B
Dead Code Scan
Find and remove unreachable code, unused functions, and orphaned files.
Process
go vet ./...for compiler-detected dead code- Search for unexported functions with zero callers
- Check for unreachable branches (always-true conditions)
- Verify before deleting — some code is used via reflection or build tags