Software Engineering
-
Grok 4.7 Reasoning Effort: Pick low, medium, high or xhigh
The Grok developer docs say reasoning.effort applies to grok-4.7, takes low, medium, high or xhigh, and should be set on every request, with high as the default. This prompt turns that into a plan for picking a level: a
-
Claude Fable 5.2 System Prompt to Stop Agents Quitting Early
Anthropic's Prompting Claude Fable 5.2 guide says the model sometimes ends long multistep turns before the work is done, more often at low and medium effort. In Anthropic's replay of recorded sessions from an agentic cod
-
Gemini 4 Hydrogen: Set thinking_level, Skip Sampling Params
Google Cloud's developer guide for Gemini 4 Hydrogen lists four thinking levels, LOW, MEDIUM, HIGH (the default) and XHIGH, and says to control reasoning depth with thinkinglevel. It also says the backend ignores tempera
-
Agent Persistence With Build and Typecheck Verification
Pair GPT-4.1 and Gemini 3's agentic persistence directives (keep going until the query is completely resolved and verified) with the build and type-check commands in AGENTS.md. …
-
Subdirectory Override Hierarchy in Codex CLI and Claude Code
Both Codex CLI and Claude Code load configuration files hierarchically from the project root down to the working directory, where nearer subdirectory rules override higher-level rules. Use subdirectory AGENTS.md or CLAUD
-
Windsurf Manual @ Rule Activation
Use Windsurf's Manual activation scope (triggered via @ mention in prompts) for specialized workflows like release checklists so they do not consume your 12,000-character combined active rule budget during normal coding.
-
AGENTS.md Fallback for Open-Source Repos
Because Claude Code automatically falls back to reading AGENTS.md if no CLAUDE.md is present, and Codex CLI, Cursor, Continue.dev, Aider, and OpenHands all support AGENTS.md natively, shipping a single well-crafted ./AGE
-
Keep Tests Honest in Multi-Window Claude Code Runs
Combine Anthropic's multi-context test integrity rule (tests must not be deleted or modified to pass builds) with single-test execution commands in CLAUDE.md. …
-
Stop Codestral Cleanly With stop Sequences
In automated code-generation pipelines, set temperature: 0.2, maxtokens: 8000, and stop: [' … Config: id="mistral:codestral-latest", temperature=0.2, maxtokens=8000, stop=[" …
-
Codestral Long-Range Code Completion in 128K Context
Codestral excels at long-range code completion tasks (RepoBench) by considering surrounding repository context—originally launched with a 32k context window and expanded to 128k in current codestral-latest (codestral-250
-
Codestral for Fortran, Swift and Niche Languages
Codestral's fluency across 80+ programming languages extends beyond Python, Java, C++, and JavaScript to specialized domain languages like Fortran and Swift. …
-
Codestral Mamba for Code Generation
Codestral Mamba is Mistral's open-source coding implementation based on the Mamba 2 architecture. Structure prompts with clear Markdown code blocks and explicit input/output type signatures. …
-
Map a Full Codebase With Llama 4 Scout
Use Llama 4 Scout's 10M context window and 128K code-efficient vocabulary to map cross-service API contracts across an entire repository. …
-
Llama 4 Vision Works Best With English Prompts
Because Llama 4's image understanding is strictly English-only, if your application serves non-English users uploading engineering diagrams, run the vision inspection turn in English first before translating the text out
-
Llama 4 Scout 128K Vocabulary for Multilingual and Code
Llama 4 Scout uses an expanded vocabulary of 128,000 tokens that represents code and multilingual text much more efficiently than previous generations. Use Scout to audit multilingual localization files alongside source
-
Stop Llama 4 Inventing Tools in System Prompts
Meta's Llama 4 tool-calling specification requires placing function definitions in JSON format inside the system message alongside strict guidelines prohibiting invented tools. …
-
Code Migration: DeepSeek-V3 Translate, R1 Verify
Combine prompt chaining with DeepSeek's dual model families: use fast DeepSeek-V3 to translate code syntax, then pass the source and target snippets to DeepSeek-R1 to verify semantic equivalence. …
-
Property-Based Test Generation With DeepSeek-R1
Leverage DeepSeek-R1's internal problem decomposition and re-verification cycle to uncover subtle boundary bugs in parser implementations. …
-
Extract Clean Structured Output After DeepSeek think
Because DeepSeek-R1 outputs its deliberation inside <think> tags before the final answer, instruct the model in a single zero-shot prompt to emit valid JSON immediately after the closing </think> tag so your parser can s
-
DeepSeek-V3 Domain Vocabulary Anchoring With Few-Shot
On non-reasoning models like DeepSeek-V3, providing 2 to 5 worked few-shot examples remains highly valuable when the task uses domain-specific vocabulary or an unusual output format, putting your strongest, most represen
-
Gemini Executive Summary Plus Detail Format
Use Gemini 3's recommended <outputformat> structure to enforce an Executive Summary followed by a Detailed Response for engineering architecture reviews. …
-
Cut Noise in Gemini 1M-Token Prompts With Scope Limits
Google Cloud documentation notes that while flagship Gemini models support a 1-million-token context window, long context sequences can introduce noise, latency, and context degradation. Explicitly scope which sections o
-
Audit Systematic Chain-of-Thought Failures in GPT-4.1
OpenAI's GPT-4.1 guide recommends auditing output failures in your evals for three specific failure classes—intent misunderstanding, insufficient context analysis, and incorrect reasoning—and adding targeted reasoning ru
-
o1 and o3 Backtracking for Constraint Satisfaction
When an internal reasoning branch in o1 or o3 leads to a contradiction or unviable state, the model discards the branch, backtracks to a previous decision node, and explores alternative paths. State all hard invariants u
-
Stop GPT-4.1 Ending Turns Early in Refactors
Combine GPT-4.1's literal instruction following with the persistence reminder so it completes multi-file edits across an entire module rather than stopping after editing the first file. …