Specify context

Language + version. Framework (React 18, FastAPI). Style guide (Google, PEP-8). Testing library. Import conventions.

Advertisement

Type hints + tests as spec

Show function signature + test cases. Model writes to spec. Beats prose description.

Advertisement

Execution feedback

Run generated code + tests. On failure: feed error + traceback back. Model corrects. Standard in Copilot Chat + Cursor.

Multi-file understanding

Include relevant files in context. Full file for edits, snippets for imports. Modern IDE integrations select automatically.