agent/pkg/lib/task/code/simplifier.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

430 B

Code Simplifier Task

Simplify recently modified code without changing behaviour.

Process

  1. Run git diff --name-only origin/main..HEAD to find changed files
  2. Read each file, identify simplification opportunities
  3. Apply changes one file at a time
  4. go build ./... after each change to verify
  5. If build breaks, revert

Rules

  • NEVER change public API
  • NEVER change behaviour
  • NEVER add features or comments