
Willitsend
io.github.abryfs由 GitHub 帳號 abryfs 發布v0.1.0更新於 Oct 24, 2026
Deterministic pre-send lint for SMS/iMessage: silent carrier filtering and segment blowups.
概覽
一個在本機執行的確定性傳送前檢查工具,用於簡訊和 iMessage 草稿,在傳送前標出電信商無聲過濾風險、分段膨脹和 iMessage 功能遺失問題。
- 可以做什麼
- 檢查簡訊或 iMessage 草稿內容,回傳通過、警告、阻擋或需要上下文四種判定之一,並附上問題說明、修正建議和引用來源,全程不傳送任何訊息。檢查首則訊息合規性,例如退訂說明、品牌識別和訂閱確認措辭,品牌名稱需由你提供。估算分段情況:編碼方式、七位元組與碼元計數、逐段打包,包括非 GSM 字元造成的 Unicode 重新編碼膨脹。標記 iMessage 功能退回、無效傳送樣式、輪播數量超出範圍和新聯絡人傳送上限。篩檢電信商過濾詞、公開短網址和垃圾訊息式寫法,並輸出包含目的地分類和配額計算的傳送追蹤。
- 適用情境
- 適合助理大量撰寫或傳送簡訊、iMessage 時,在每次傳送前做一次低成本、可重複的檢查,尤其是傳給新聯絡人的首則訊息,缺少退訂或品牌說明可能被無聲過濾的情況。也適合需要確定性判定而非提示詞規則的 CI 流程和代理迴圈。
- 執行需求
- 透過 npx 以本機 stdio 程序執行,需要 Node.js。不需帳號或 API 金鑰,檢查器可完全離線運作。選用環境變數 AGENTPHONE_API_KEY 可對手機號碼目標啟用即時電信商與能力查詢。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Willitsend,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
willitsend
Your AI agent sends texts. Carriers silently drop the non-compliant ones, and the API never tells you. willitsend is the missing check between the model and the carrier: a deterministic preflight for outbound SMS/iMessage that catches silent filtering, segment blowups, and dropped iMessage features before you spend the send.
Try it in the browser: runs client-side, nothing leaves the page.
The problem
Messaging APIs report "sent" when a message reaches the downstream carrier, not when it reaches a phone. AgentPhone's rate-limit docs spell out the consequence: first messages that skip brand identification, opt-in acknowledgment, or opt-out instructions "may be silently filtered by carriers. The API will not return an error."
AI agents now send texts autonomously, and nothing sits between the model and the carrier. An agent that drops the opt-out line gets no error and no delivery. An agent that adds one emoji turns a 160-character message into three billable segments and never notices.
willitsend is the missing check: a deterministic, stateless lint for a draft message. Text and context in, verdict and evidence out. It sends nothing and stores nothing.
Why not just prompt the rules into your agent?
A fair question: AgentPhone's docs are agent-readable, so you could feed them into every generation call and ask the model to comply. Two things break, and one gets expensive:
- Generation is probabilistic; verification is deterministic. A model with the rules in context complies usually. This checker returns the same verdict every time, and its failure mode is a visible finding rather than a silently filtered message. Compose-time guidance and pre-send verification are complements — this repo ships both (the agent skill is the compose-time half).
- Models can't do segment math. Septet counting, GSM-7 extension characters, encoding flips from one smart quote, placement-aware packing — token-based models are structurally bad at exactly this arithmetic. No amount of prompting fixes it; a 300-line deterministic function does.
- The token math, measured (char-count/4 heuristic on the actual pages, July 2026):
Roughly 30× fewer tokens per message in default mode — several hundred× in concise mode — and the checker's own compute rounds to zero (~4µs locally, no API). If you compress the rules into your system prompt instead — our skill file does, at ~950 tokens — you keep the compose-time benefit but still have no verifier and no segment math. Bulk senders feel this most: the tool exists precisely for AI agents sending texts at volume.
Quickstart
As an MCP tool (Claude Code):
or in any MCP client config:
For AI agents — paste this block into your agent (or point it at this README):
No API key required. Set AGENTPHONE_API_KEY if you want a live iMessage/SMS capabilities lookup for phone-number destinations; without it the tool runs offline. The config above installs straight from this repo (a prepare script builds on install) — nothing to sign up for. willitsend also publishes to npm and the MCP Registry under the server name io.github.abryfs/willitsend; once a release is cut, registry-aware clients can add it by name and npx -y willitsend starts the server directly. See docs/publishing.md for the release runbook.
As a library (npm install github:abryfs/willitsend):
As a CLI: npx -y -p github:abryfs/willitsend willitsend-cli --help (or npx -y -p willitsend willitsend-cli once installed from npm). Exit codes: 0 pass/warn, 1 block, 2 needs context, 3 usage error. It drops into CI or a shell pipeline as-is.
What it checks
Rules come in two labeled tiers. Rules sourced from AgentPhone's own documentation can block. Industry-sourced rules warn at most, because a keyword heuristic has no business vetoing your send.
The verdict model
A finding that depends on context you didn't supply doesn't pretend to be certain. If you never say whether this is the first message to a contact, the opt-out rule reports conditionally and the verdict is needs_context. You get no fake pass and no fake block.
Every report also carries a send trace: destination classification, assumed channel (iMessage/SMS/MMS), full segment math (encoding, septet and code-unit counts, placement-aware per-segment packing), and, given a 10DLC campaign tier, what this message costs against published daily segment caps.
Benchmarks
Reproduce every number here from the repo; none of them require an account.
- Segment-math parity: agrees with Twilio's reference segment calculator on encoding and segment count across a frozen 126-vector corpus: GSM-7/UCS-2 boundaries, extension characters, emoji, ZWJ sequences, and a deterministic fuzz sweep. The corpus and suite live in
test/parity.test.ts; runnpm test. - Latency: median ~4µs per message, ~100,000 messages/second on one thread (Node 22, Apple Silicon laptop; single-pass code-point tables, zero per-character allocation). Run
npm run benchon yours. Preflighting every outbound message is cheaper than logging it. - Worked cost example, from published caps: a sole-proprietor 10DLC campaign gets 1,000 T-Mobile segments/day (≈3,000 total US, per AgentPhone's published estimate). One stray emoji that flips a 2-segment GSM-7 message to 4 UCS-2 segments halves the number of messages that quota buys. Same text, same recipients, half the reach.
You will find no delivery-rate improvement claims here. That claim needs send data we don't have.
What this can't do
Carriers filter with systems whose rules they don't publish. The policy layer is public (conduct codes, content categories, volume caps); the runtime filtering decisions are deliberately opaque, and only part of the outcome is observable (some blocks return explicit filter errors, some messages are accepted and silently never delivered). This tool covers the deterministic, documented layer, and nothing else:
- A
passis not a delivery guarantee. It means nothing documented will kill the message. - The opt-in check verifies language presence, not that consent exists. Consent lives in your records, not in message text.
- Detection is English-only in v1 (findings carry a
localefield). - Quota math is a static illustration from published caps, not your account's live state.
- The tool never infers line type (VoIP/mobile) from a phone number. Pass
destination_line_typefrom a lookup service if you have one; libphonenumber-js gives a free approximation, with known limits for US numbers.
Prior art
- TwilioDevEd/message-segment-calculator is the reference for segment math. This library is tested for parity against it rather than competing with it.
- sms_policy_checker covers similar compliance ground for Ruby/Rails with an LLM layer; willitsend is the deterministic, zero-network counterpart.
- Web checkers (10dlccheck.com, Calilio) cover overlapping rules as human-facing forms. willitsend makes those checks embeddable: a library an agent can call a hundred thousand times a second, with citations.
- As far as we can tell, this is the first MCP tool for pre-send SMS content compliance. Corrections welcome.
Privacy
No telemetry. No network calls, except the optional capabilities lookup you enable with an API key. The tool never logs, stores, or echoes message bodies in its output. The playground runs in your browser and sends nothing anywhere.
Future
- The engine's natural home is server-side: a
dry_runparameter on the send endpoint itself. The library is written to drop in, as a pure function with no state and a dependency-free core. - Close the loop: correlate preflight verdicts with delivery-status webhooks, so rule precision is measured against real outcomes instead of assumed. Filtering is partially observable (explicit filter errors on some blocks, silence on others), which is exactly enough signal to grade a deterministic ruleset honestly. Learning the opaque layer itself takes aggregate send data across many senders; that belongs to platforms, not to a stateless client tool.
- A rendered deliverability report card via the MCP Apps extension.
- Locale packs beyond English.
Developing
License
MIT
來源:README.md,提交 67dfbaa
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分