The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(imessage): hints match the stripped-on-link send path
teknium1b3624cc3af28
diff --git a/agent/prompt_builder.py b/agent/prompt_builder.pyindex 982411f9d40..37bb56dc790 100644--- a/agent/prompt_builder.py+++ b/agent/prompt_builder.py@@ -723,12 +723,12 @@ PLATFORM_HINTS = {"formatting. SMS messages are limited to ~1600 characters, so be brief and direct."),"bluebubbles": (- # The adapter runs strip_markdown(): markers vanish but the layout stays, and [label](url) loses its URL.+ # The adapter runs strip_markdown(keep_link_targets=True): markers vanish, the layout stays."You are texting via iMessage (BlueBubbles). Replies arrive as plain text bubbles, so write like a person ""texting: short and conversational, answer first, no preamble or recap. Markdown does not render and is ""stripped, so skip headers, tables, code fences and backticks; for a few items use short lines or a ""sentence rather than nested bullets. Put a command or code snippet on its own line as plain text so it "- "can be copied. Write links as bare URLs (iMessage auto-links them); [text](url) links lose the URL. "+ "can be copied. Write links as bare URLs (iMessage auto-links them). "f"{_MEDIA_NATIVE}Images (.jpg, .png, .heic) appear as photos and other files arrive as attachments."),"mattermost": (diff --git a/plugins/platforms/photon/adapter.py b/plugins/platforms/photon/adapter.pyindex 2ee5d6756b8..a4444ffeec0 100644--- a/plugins/platforms/photon/adapter.py+++ b/plugins/platforms/photon/adapter.py@@ -1587,12 +1587,12 @@ def register(ctx) -> None:pii_safe=True, # E.164 phone numbers: redact session descriptions before they reach the LLMallow_update_command=True,# Grounded in spectrum-ts markdownToIMessageText + sidecar send-format.mjs: headings -> bold, tables ->- # "a | b" rows, code -> Unicode math-monospace; any message containing a URL is sent as raw text.+ # "a | b" rows, code -> Unicode math-monospace; any message containing a URL is stripped to plain text.platform_hint=("You are texting via iMessage (Photon). Write like a person texting: short and conversational, "- "answer first, no preamble or recap. Markdown mostly does not survive here: a message containing "- "a link is sent as raw text (every *, #, ``` and | shows literally), headings flatten to bold, "- "tables to pipe-separated lines, and backtick or code-block text turns into Unicode look-alike "+ "answer first, no preamble or recap. Markdown mostly does not survive here: any message containing "+ "a link is sent as plain text with all formatting stripped, headings flatten to bold, tables to "+ "pipe-separated lines, and backtick or code-block text turns into Unicode look-alike ""glyphs that break when copied. So no headers, tables, code fences or backticks; an occasional ""**bold** word is fine in a message without links. Put a command or code snippet on its own line ""as plain text so it copies and runs. Write links as bare URLs; a message that is only a URL "