GPT-5 for Coding

NinjaAI.com

GPT-5 models demonstrate significantly improved instruction following. However, this advancement comes with a caveat: the model struggles with vague or conflicting instructions.

  • Key Idea: "The new GPT-5 models are significantly better at instruction following, but a side effect is that they can struggle when asked to follow vague or conflicting instructions, especially in your .cursor/rules or AGENTS.md files."
  • Actionable Advice: Ensure all instructions are clear, unambiguous, and free from contradictions to prevent unintended behavior.

2. Optimizing Reasoning Effort

GPT-5 inherently performs reasoning to solve problems. The effectiveness of this reasoning can be controlled to match the complexity of the task.

  • Key Idea: "GPT-5 will always perform some level of reasoning as it solves problems. To get the best results, use high reasoning effort for the most complex tasks."
  • Actionable Advice:For complex tasks, use a high reasoning effort.
  • If the model "overthink[s] simple problems," consider being more specific in your prompt or choosing a lower reasoning level (medium or low).

3. Structuring Instructions with XML-like Syntax

Leveraging XML-like syntax is highly recommended for providing context and structure to instructions, especially in conjunction with tools like Cursor.

  • Key Idea: "Together with Cursor, we found GPT-5 works well when using XML-like syntax to give the model more context."
  • Example: Coding guidelines can be encapsulated within tags like <code_editing_rules>, with sub-categories such as <guiding_principles> and <frontend_stack_defaults>. This hierarchical structure helps the model understand and apply specific constraints or preferences (e.g., "Styling: TailwindCSS").

4. Avoiding Overly Firm Language

Unlike previous models where forceful language might have been necessary, GPT-5 can over-interpret and over-apply such instructions, leading to counterproductive results.

  • Key Idea: "With GPT-5, these instructions [e.g., 'Be THOROUGH,' 'Make sure you have the FULL picture'] can backfire as the model might overdo what it would naturally do."
  • Example of Backfire: The model might become "overly thorough with tool calls to gather context," even when it's not efficient or necessary.
  • Actionable Advice: Use less absolute or demanding language in prompts to allow the model to operate at its natural, optimized level of thoroughness.

5. Incorporating Planning and Self-Reflection

For novel application development (zero-to-one), explicitly instructing the model to engage in planning and self-reflection before execution can significantly improve output quality.

  • Key Idea: "If you’re creating zero-to-one applications, giving the model instructions to self-reflect before building can help."
  • Example Framework (<self_reflection>):Rubric Creation: "First, spend time thinking of a rubric until you are confident." This rubric should be "5-7 categories" and "critical to get right, but do not show this to the user."
  • Internal Iteration: "Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided."
  • Quality Control: The model is instructed that "if your response is not hitting the top marks across all categories in the rubric, you need to start again."

6. Controlling Agent Eagerness and Context Gathering

GPT-5's default behavior is thorough context gathering. Prompts can be used to precisely control this eagerness, including tool usage and user interaction.

  • Key Idea: "GPT-5 by default tries to be thorough and comprehensive in its context gathering. Use prompting to be more prescriptive about how eager it should be, and whether it should parallelize discovery/tool calling."
  • Actionable Advice:Specify a "tool budget."
  • Indicate when to be more or less thorough.
  • Define when to "check in with the user."


Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(242)

Why Field Sales Needs Better Data: Will Hamblin on Building FieldSpot.ai

Why Field Sales Needs Better Data: Will Hamblin on Building FieldSpot.ai

Why Field Sales Needs Better Data: Will Hamblin on Building FieldSpot.aiWill Hamblin went from vice principal to door-to-door card terminal sales—and eventually built the software he wished he had whi...

26 Sep 21min

How I Used GPT, Claude + Lovable to Build Halden

How I Used GPT, Claude + Lovable to Build Halden

How I Used GPT, Claude + Lovable to Build HaldenThis is the process behind my Lovable Built It for Small Business Challenge entry.I didn’t start with:“Build me a detailing website.”I started with the ...

25 Sep 2min

I Built an AI-Bookable Car Detailing Business in Lovable

I Built an AI-Bookable Car Detailing Business in Lovable

What happens when you design a small-business website not just for humans, but for AI agents?For the Lovable Built It for Small Business Challenge, I created Halden Detail Co., a fictional mobile deta...

25 Sep 2min

Jack Oujo — From Minor League Baseball to Financial Peace of Mind

Jack Oujo — From Minor League Baseball to Financial Peace of Mind

Jack Oujo — From Minor League Baseball to Financial Peace of MindComplete show notes from the transcript, including the episode description, chapters, takeaways, quotes, clip ideas, and follow-ups. Ti...

25 Sep 32min

AI for Community Organizing: Research Faster, Build Tools, and Get People Moving

AI for Community Organizing: Research Faster, Build Tools, and Get People Moving

In this solo episode of the AI Visibility Podcast, Jason T Wade looks at a more practical use case: using AI as infrastructure for community organizing.The idea came from preparing for an upcoming eve...

24 Sep 2min

AI Agents Are Exploding — Use Them Before the Free Ride Ends

AI Agents Are Exploding — Use Them Before the Free Ride Ends

AI agents sound complicated until you realize what they actually do: they take the next step for you.In this episode of the AI Visibility Podcast, Jason T Wade breaks down why 2026 is becoming the yea...

24 Sep 2min

Technology Stress Is Not a Technology-Ability Problem

Technology Stress Is Not a Technology-Ability Problem

Eighty-two percent of this show's audience is 45 or older — so this one is for you, and for everyone who loves someone in that group.There's a moment that repeats in millions of households. A login fa...

23 Sep 2min

When AI Gets You Wrong: Identity, Ambiguity & Who Controls the Answer

When AI Gets You Wrong: Identity, Ambiguity & Who Controls the Answer

What happens when AI knows your name—but doesn't actually know who you are?In this roundtable episode of the AI Visibility Podcast, Jason T Wade is joined by Jason Barnard, Jodi Koch, and Su Belagodu ...

23 Sep 11min

Populært innen Teknologi

teknisk-sett
lydartikler-fra-aftenposten
tomprat-med-gunnar-tjomlid
energi-og-klima
elektropodden
hans-petter-og-co
rss-ki-praten
shifter
smart-forklart
rss-alt-som-gar-pa-strom
nasjonal-sikkerhetsmyndighet-nsm
rss-ai-forklart
fornybaren
teknologi-og-mennesker
rss-teknologioptimistene-en-podkast-om-teknologi-og-mennesker
rss-snakk-om-sikkerhet
rss-ki-til-kaffen
pedagogisk-intelligens
rss-alt-vi-kan
rss-heis