Coding guides

Get useful code on the first pass.

Model choice matters, but clear context matters more. These patterns make coding conversations easier to verify and continue.

Give the smallest useful context

Use tools when facts may have changed

Ask for a way to verify the result

Describe the outcome first

Start with what should be true when the work is complete. Add the framework, important versions, and behavior that must not change.

Build a Next.js route that streams OpenRouter output. Keep authentication server-side, abort upstream work when the client disconnects, and return NDJSON events. Include one parser test.

Attach evidence, not everything

Include the failing component, exact error, and relevant configuration. Focused evidence improves attention and makes proposed changes easier to review.

Include
The error text, one reproduction path, and files directly involved in the failure.
Leave out
Secrets, build output, unrelated source, and personal customer information.

Choose for the work in front of you

GLM 5.3 Flash

Start here for low-cost long-context reasoning, images, video, tools, and complex implementation.

Qwen3 Coder Next

Use it for focused text-based implementation, refactoring, and code review.

GLM 5.2 Free

Choose a named zero-cost reasoning model for everyday coding work.

OpenRouter Free

Let OpenRouter select a compatible free model when zero model cost matters most.

Ask the model to prove the change

Request the exact typecheck, test, build, or manual workflow that would catch a regression. A useful answer includes a way to challenge it.

Start coding