Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Good pointers on decompositing and looking at implementation or fixing in chunks.

1. Break down the feature or bug report into a technical implementation spec. Add in COT for the splits. 2. Verify the implementation spec. Feed reviews back to your original agent that has created the spec. Edit, merge, integrate feedback. 3. Transform implementation spec into an implementation plan - logically split into modules look at dependency chain. 4. Build, test and integrate continuously with coding agents 5. Squash the commits if needed into a single one for the whole feature.

Generally has worked well as a process when working on a complex feature. You can add in HITL at each stage if you need more verification.

For larger codebases always maintain an ARCHITECTURE.md and for larger modules a DESIGN.md



I admittedly haven't tried this approach at work yet but at home while working on a side project, I'll make a new feature branch and give CLAUDE a prompt about what the feature is with as much detail as possible. i then have it generate a CLAUDE-feature.md and place an implementation plan along with any supporting information (things we have access to in the codebase, etc.).

i'll then prompt it for more based on if my interpretation of the file is missing anything or has confusing instructions or details.

usually in-between larger prompts I'll do a full /reset rather than /compact, have it reference the doc, and then iterate some more.

once it's time to try implementing I do one more /reset, then go phase by phase of the plan in increments /reset-ing between each and having it update the doc with its progress.

generally works well enough but not sure i'd trust it at work.


My advice - never use compact, always stash your context to Md or a wordy git commit message and then clear context

You want control over and visibility into what’s being compacted, and /compact doesn’t do great on either




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: