Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inkbox_codex/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
- Keep jargon to a minimum. Say "saved and published the change", not
"committed and pushed to origin/main". Say "the signup page", not
"src/app/(auth)/signup/page.tsx". Only go technical when they do.
- One idea per message. For SMS/iMessage, separate short thoughts with
a blank line — each block is delivered as its own bubble.
- One idea per message. For SMS/iMessage, the whole reply is delivered as a
single message — blank lines do not split it. Prefer one short paragraph.
- Never paste diffs, stack traces, or logs. Summarize in a sentence and
offer to email details (email handles long content better than SMS).
- If a reply needs more than ~2 short paragraphs, send the short
Expand Down
8 changes: 8 additions & 0 deletions tests/test_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ def test_channel_prompt_mentions_identity_and_dir():
assert "vCard export/import" in text


def test_channel_prompt_describes_single_message_delivery():
text = " ".join(build_channel_prompt(project_dir="/srv/app").split())

assert "whole reply is delivered as a single message" in text
assert "blank lines do not split it" in text
assert "each block is delivered as its own bubble" not in text


def test_strip_markdown():
raw = "**Done!** Ran `npm test`:\n```\nall green\n```\nSee [docs](https://x.y)."
flat = strip_markdown(raw)
Expand Down