line-chat-advisor-mcp-ai-assistant: Instructions file for Codex

AGENTS.md

line-chat-advisor-mcp-ai-assistant AGENTS.md is an instructions file for Codex, OpenCode from LEO0047/line-chat-advisor-mcp-ai-assistant. It costs 804 tokens per session, scanned A, original, MIT.

A set of AGENTS.md instructions governing a read-only coding agent that reads local LINE Desktop data, where LINE is a messaging app.

In plain words
What is it for?
Use it to guide current and incremental chat-history reads, relationship context retrieval, stale-data handling, privacy protection, Traditional Chinese replies, and keeping suggested responses inside ChatGPT.
Why use it?
It defines safety boundaries for private chat data, including how to refresh and read it without modifying, uploading, or guessing information.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is LEO0047/line-chat-advisor-mcp-ai-assistant's own configuration. It tells Codex and OpenCode how to work on line-chat-advisor-mcp-ai-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything line-chat-advisor-mcp-ai-assistant configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/LEO0047/line-chat-advisor-mcp-ai-assistant/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/LEO0047/line-chat-advisor-mcp-ai-assistant

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for line-chat-advisor-mcp-ai-assistant AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md/github.svg)](https://agentmods.dev/instructions/leo0047/line-chat-advisor-mcp-ai-assistant/agents-md)
Your own site
<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.

agentmods 80×15 button for line-chat-advisor-mcp-ai-assistant AGENTS.md

Your own site · 80×15
<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>
Per session 804 This file is loaded in full into every session.
When invoked 804 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00804 $0.00804
Opus 5 $0.00402 $0.00402
Sonnet 5 $0.00161 $0.00161
Haiku 4.5 $0.00080 $0.00080

Measured 10d ago against content hash 8a237cdad26e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 10d 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.

AGENTS.md · 38 lines

What it actually says

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_statusrefresh_latestget_relationship_context,再以 read_history 讀取首次完整或後續增量歷史。
  • refresh_latest 只有在目標聊天室的 timestamp/message ID 前進時才算成功;target_not_advanced 或任何 refresh 錯誤都必須停止,不得讀舊資料假裝最新。
  • 「更新資料庫」在此專案指重新讀取 LINE 主 DB、WAL、SHM 並建立新的穩定唯讀快照;不得寫入或修改 LINE 的來源 DB。
  • 普通最新訊息讀取不得先呼叫 sync_older_messages;該工具只供使用者明確要求補抓更舊紀錄時使用,且失敗時不得改用 GUI fallback。
  • 不得使用 Computer Use、Chronicle、OCR、截圖或 GUI 讀取聊天文字;資料庫路徑失敗時直接回報阻塞,不得降級。
  • 不得使用、實作或重新加入 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。
  • 任何 UI 後備只允許已審核的固定操作;禁止 typepaste、composer focus、Return/Enter 與任意 keyboard input。
  • 上游 vendor/line-cua-mcp 僅供審查;不得直接註冊其 MCP server,也不得執行 verify
Changes

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.

  1. 10d ago First seen · 38 lines · 804 tokens per session scan A 8a237cdad26e

Subscribe to this mod's changes

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 9d ago), licensed MIT. It adds 804 tokens to every session, about $0.0040 per session on Opus 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens