‹ BackHN Continuity

Thread

Prompting Claude Opus 5.5

207 points · 227 comments · Michelangelo11

  1. simonw · · focus · HN ↗
    That &quot;mark pasted text&quot; thing is interesting: <a href="https:&#x2F;&#x2F;platform.claude.com&#x2F;docs&#x2F;en&#x2F;build-with-claude&#x2F;prompt-engineering&#x2F;prompting-claude-opus-5-5#mark-pasted-text-in-user-messages" rel="nofollow">https:&#x2F;&#x2F;platform.claude.com&#x2F;docs&#x2F;en&#x2F;build-with-claude&#x2F;prompt...

      Summarize the main complaints in this thread.
      
      &lt;pasted_content id=&quot;ab12&quot;&gt;
      ...text the user pasted...
      &lt;&#x2F;pasted_content id=&quot;ab12&quot;&gt;
    
    Where those IDs are randomly generated and unknown to the user, and the model is told to use that markup to help avoid it suffering prompt injection attacks.

    In the past I&#x27;ve been very skeptical of this kind of protection. Anthropic have clearly trained their models for this though, so maybe Opus 5.5 is smart enough for this to work?

    Will be interesting to see if minds more devious than mine can break it.

    1. nialse · · focus · HN ↗
      Got to love the pseudo markup slop! An id attribute on an XML closing tag?!? Complete nonsense. Working nonsens, of course, but still nonsense.
      1. aaronharnly · · focus · HN ↗
        in retrospect though, how many malformed 3-column website layouts could we have avoided with this technology? :-)
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.