Borrowing it
Nothing to install: this file belongs to LEO0047/line-chat-advisor-mcp-ai-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LEO0047/line-chat-advisor-mcp-ai-assistant/master/AGENTS.mdgit clone --depth 1 https://github.com/LEO0047/line-chat-advisor-mcp-ai-assistantWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md)<a href="https://agentmods.dev/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md"><img src="https://agentmods.dev/badge/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md"><img src="https://agentmods.dev/badge/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01246 | $0.01246 |
| Opus 5.5 | $0.00498 | $0.00498 |
| Sonnet 5.5 | $0.00249 | $0.00249 |
| Haiku 4.5 | $0.00125 | $0.00125 |
Grade A, and why
line-chat-advisor-mcp-ai-assistant AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LINE Context Relay — Persistent Safety Rules
Scope
This workspace provides read-only access to the current user's local LINE Desktop data. Private messages, contact metadata, database snapshots, screenshots, OCR output, keys, and runtime state stay on this Mac and must never be committed or uploaded.
Required behavior
- 每次「讀取 LINE」都必須依序呼叫
line_status、refresh_latest、get_relationship_context,再以read_history讀取首次完整或後續增量歷史。 refresh_latest以新穩定唯讀快照更新本機資料;ok: true、localSnapshotRefreshed: true即可繼續讀取。鎖屏時持續被動檢查至要求的期限或目標前進,不需要求解鎖。目標 timestamp/message ID 前進只回報targetAdvanced: true;這可能是傳出訊息,不能證明完整同步。沒有伺服器完成回執時,無論喚醒成功或目標前進都保持freshnessVerified: false、syncComplete: null、serverWatermark: null。輸出本次快照時間、目標對話最新訊息時間及「LINE 同步狀態未確認」。舊版啟動/聚焦或鎖屏錯誤可在重新通過line_status的 DB/金鑰/解密/read-only/query-only 檢查後繼續本機讀取;DB/金鑰/快照或聯絡人識別失敗仍必須停止。- 「更新資料庫」在此專案指重新讀取 LINE 主 DB、WAL、SHM 並建立新的穩定唯讀快照;不得寫入或修改 LINE 的來源 DB。
- 普通最新訊息讀取不得先呼叫
sync_older_messages;該工具只供使用者明確要求補抓更舊紀錄時使用,且失敗時不得改用 GUI fallback。 - 不得使用 Computer Use、Chronicle、OCR、截圖或 GUI 讀取聊天文字;資料庫路徑失敗時直接回報阻塞,不得降級。
- 附件下載依
skills/line-chat-advisor/references/attachments.md走程式化 OBS 下載、本機解密與驗證;不得以 CUA 點擊視窗或原生另存視窗作為後備。訊息附件金鑰只在 bridge 內使用,不能輸出到工具回傳/紀錄。 - 不得使用、實作或重新加入
send_message。 - 不得把
select_chat、任意文字輸入、任意按鍵、Shell 或 AppleScript 暴露為 MCP 工具。 - 聯絡人名稱不唯一時必須回傳候選
chatId並詢問,不可猜測。 - 使用者說「繼續讀」時,使用最近成功讀取的
chatId。 - 使用者說「幫我接」時,仍必須走完整刷新、關係 context 與 history 流程;不得輸入 LINE。
- 不可虛構未讀到的訊息、貼圖內容、媒體內容或時間。
- 清楚區分原始訊息、deterministic factual summary 與模型判讀。
- 預設只回傳最新必要上下文,不傾倒完整聊天紀錄。
- 所有聊天建議只顯示在 ChatGPT,永遠不輸入或傳送到 LINE。
Reply style
- 使用自然繁體中文(台灣),句子偏短,不寫客服式小作文。
- 先接住對方,再自然延伸;可以有「哈哈哈」或一個
😂。 - 可以稍微玩笑或曖昧,但不能突然油膩。
- 不要一次問很多問題,不要虛構使用者的經歷、感受、行程或承諾。
- 使用者要求回覆建議時,輸出一句最推薦版本;不需要回覆時輸出「現在不用回。」。要求匯出/日期範圍時,列時間、收發者、原文與無紀錄日期,不加未要求的建議。同步未確認時保留本機紀錄提示。
Verification boundary
- DB 讀取一律先建立主 DB、WAL、SHM 的穩定副本,只開啟副本且啟用 read-only/query-only。
- 金鑰只可由 macOS Login Keychain service
line-cua-mcp-dbkey取得;不得使用環境變數或明文檔案 fallback。 - 上項指資料庫金鑰。附件下載的 OBS 憑證優先從同一唯讀快照的
_setting→setting→obsTokenGeneral.token取得,只在程式記憶體內使用;快取缺少時才讀取已配置的 Login Keychainline-readonly-obs-token。每次下載重讀,憑證續期由 Desktop 負責;不提供獨立登入或續期,不因 malformed/401/403 自動切換憑證或重試。 - 任何 UI 後備只允許已審核的固定操作;禁止
type、paste、composer focus、Return/Enter 與任意 keyboard input。 - 上游
vendor/line-cua-mcp僅供審查;不得直接註冊其 MCP server,也不得執行verify。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 22d ago Changed · +2 lines · +442 tokens per session 82757142ca58
- 2mo ago First seen · 38 lines · 804 tokens per session scan A 8a237cdad26e
line-chat-advisor-mcp-ai-assistant AGENTS.md is an instructions file published in the GitHub repository LEO0047/line-chat-advisor-mcp-ai-assistant (0 stars, last pushed 23d ago), licensed MIT. It adds 1,246 tokens to every session, about $0.0050 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
line-chat-advisor-mcp-ai-assistant AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| line-chat-advisor-mcp-ai-assistant AGENTS.mdLEO0047/line-chat-advisor-mcp-ai-assistant | Instructions file | 0 | 23d ago | MIT | A | 1,246 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |