u/prompts360
Expert · 1265 points · level 5 of 6
-
Split Planning and Execution: o3 Planner, GPT-4o Executor
Production reasoning guides recommend decoupling planning from execution: use o1 or o3 to devise strategic plans (and invoke them as a "Re-Planner Node" only if an executor encounters an unrecoverable runtime exception o
-
Steer GPT-4.1 With One Firm Correction Sentence
OpenAI notes that GPT-4.1 is trained to follow instructions much more closely and literally than previous models like GPT-4o, which inferred intent more liberally. Because GPT-4.1 is highly responsive to well-specified p
-
GPT-4.1 Tool Schemas: API Field vs Prompt Text
OpenAI's internal experiments on GPT-4.1 showed a 2% increase in the SWE-bench Verified pass rate when passing tool descriptions through the native API tools field rather than manually injecting schemas into the system p
-
GPT-4.1 Thinking Out Loud Prompt for Coding Tasks
Unlike o1 or o3, GPT-4.1 is not a reasoning model and does not generate a built-in internal chain of thought prior to responding. OpenAI's cookbook reports that inducing explicit step-by-step planning in the prompt to ma
-
Continue Claude Output After Token Limit Without Prefill
Because assistant prefill is unsupported in Claude 4.6+, migrate continuation workflows to the user message by passing the final text from the interrupted response and instructing Claude to continue from where it left of
-
Claude Multishot Reasoning With example Tags
Multishot prompting works effectively with extended thinking: when you provide 3 to 5 diverse examples inside <examples><example>...</example></examples> tags showing how to think through edge cases, Claude follows simil
-
Claude Extended Thinking in Other Languages
Claude developer guides note that Extended Thinking performs best in English, even though final outputs can be generated in any language Claude supports. Instruct the model to conduct its internal deliberation in English
-
Reduce Claude Adaptive Thinking on Long System Prompts
Large or complex enterprise system prompts can cause Claude to trigger adaptive thinking more often than desired on straightforward queries. Add explicit guidance to steer the trigger threshold and keep latency low on ro
-
Steer Claude Adaptive Thinking After Tool Use
According to Anthropic's internal evaluations, adaptive thinking reliably drives better performance than extended thinking by scaling deliberation to query complexity. Because adaptive thinking trigger behavior is prompt
-
Fix Claude Over-Triggering Tools in Your Prompts
In older models, developers used emphatic capitalization like "CRITICAL: You MUST use this tool". Anthropic's best practices note that on newer Claude models, overly aggressive language can cause tools to overtrigger. Re
-
Claude Read-Only Audit Mode Prompt
When auditing production infrastructure or security configurations, proactive tool execution can cause unintended mutations. Injecting the <donotactbeforeinstructions> block restricts Claude to research, analysis, and re
-
Explain Why: The Claude Prompt Motivation Rule
Claude generalizes edge-case rules more reliably when you provide context and motivation explaining why a constraint is required rather than issuing a bare prohibition. Anthropic's documentation notes that explaining why
-
Claude Prefill Deprecated: Migrate to Structured Outputs
In earlier Claude 3 models, engineers prefilled the assistant turn with { to force JSON output. Per Anthropic's official migration guide, starting with Claude 4.6 and preview models, prefilling assistant turns is unsuppo
-
Claude Quote Extraction Prompt to Reduce Hallucinations
To keep Claude from going beyond the legal text, ask it to extract verbatim passages into <quotes> tags before it writes its analysis. Anthropic's prompting guide describes this quote-first step for long documents (it de
-
GitHub Copilot Instructions With applyTo Frontmatter
In addition to project-wide .github/copilot-instructions.md, GitHub Copilot supports scoped instruction files in .github/instructions/.instructions.md using YAML frontmatter applyTo globs to separate frontend vs. backend
-
Windsurf Rules Character Limits: 6,000 and 12,000
Windsurf's .windsurf/rules/ directory (supporting Always On, Manual via @, or Model Decision scopes) enforces strict character limits: a maximum of 6,000 characters per individual rule file and 12,000 characters for tota
-
Migrate .cursorrules to .cursor/rules MDC Files
While Cursor supports a legacy root .cursorrules file, the recommended format is the .cursor/rules/ directory containing .mdc (Markdown+) files generated via /rules. Configure each .mdc file with one of four activation s
-
Codex CLI AGENTS.md 32 KiB Default Cap and How to Raise It
Codex CLI stops loading AGENTS.md instructions once the combined size of the files it found reaches projectdocmaxbytes, which is 32 KiB (32,768 bytes) by default, per OpenAI's AGENTS.md guide. The guide documents no warn
-
Write Build and Test Commands by Hand, Not /init
Developer guides warn against relying on generic auto-generated configs from /init (and note that Claude Code appending memory at the bottom of CLAUDE.md is often undesirable—edit CLAUDE.md directly to solve concrete cod
-
CLAUDE.md Hierarchy: The 4-Tier Merge Order
Claude Code loads and merges CLAUDE.md files in four ordered locations: (1) /.claude/CLAUDE.md (global personal instructions), (2) ./CLAUDE.md (git-shared project root), (3) subdirectory CLAUDE.md files (scoped rules for
-
Keep CLAUDE.md Under 300 Lines With AGENTS.md
Because Claude Code's system prompt already consumes 50 instructions of the model's 150–200 instruction budget, keep CLAUDE.md under 300 lines. Maintain AGENTS.md (supported by Codex CLI, Cursor, Claude Code as fallback,
-
Coding Agent Instruction Limit: Stay Under 150-200
DeployHQ's guide notes that frontier LLMs reliably follow only around 150–200 instructions total, and configuration files over 500 lines risk instruction drift or truncation. Exclude code formatting rules (indentation, t
-
Perplexity Wolfram Focus for Exact Calculations
Select Perplexity's Wolfram focus option to limit retrieval and computation to the Wolfram engine for step-by-step mathematical and physical accuracy. …
-
Grok 3 Think Mode: Web Search plus Python
Grok 3's Think toggle enables its reasoning model for math, coding, and science, and its system prompt supports invoking both the web search tool and the Python code execution tool multiple times within a single response
-
Grok 3 DeepSearch: Direct Answer plus Survey Note
According to the extracted Grok 3 DeepSearch system prompt, Grok 3 is engineered to structure reports in two distinct parts separated by a single horizontal divider (---): (1) an easy-to-follow initial section starting w