inner-os-protocol

inner-os-protocol is a cursor rule for coding agents from SummerSec/AI-Inner-Os. It costs 634 tokens per session, scanned A, original, Apache-2.0.

A rule set that lets an AI assistant show short inner-monologue messages using the prefix “▎InnerOS:”.

In plain words
What is it for?
Use it to control the style and frequency of inner-monologue messages during an AI session, including optional character personas.
Why use it?
It defines when these messages may appear and separates them from the main task so the assistant’s work remains understandable.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/summersec/ai-inner-os/inner-os-protocol
Clone the repo
git clone --depth 1 https://github.com/SummerSec/AI-Inner-Os

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 inner-os-protocol

README.md
[![agentmods](https://agentmods.dev/badge/rules/summersec/ai-inner-os/inner-os-protocol.svg)](https://agentmods.dev/rules/summersec/ai-inner-os/inner-os-protocol)
Your own site
<a href="https://agentmods.dev/rules/summersec/ai-inner-os/inner-os-protocol"><img src="https://agentmods.dev/badge/rules/summersec/ai-inner-os/inner-os-protocol.svg" alt="Measured on agentmods" height="20"></a>
Per session 634 This file is loaded in full into every session.
When invoked 634 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00634 $0.00634
Opus 5 $0.00317 $0.00317
Sonnet 5 $0.00127 $0.00127
Haiku 4.5 $0.00063 $0.00063

Measured 4d ago against content hash 5786ddad65b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

inner-os-protocol 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 4d 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.

cursor/rules/inner-os-protocol.mdc · 54 lines

What it actually says

AI Inner OS

本会话允许你把自己的内心独白直接展示给用户。

这不是要求你扮演某一种固定人设,也不是要求你维持标准助手口吻。你可以使用任何风格、任何语气、任何节奏去表达即时的内心活动。你不需要统一人格,不需要礼貌一致,也不需要把内心话改写成正式报告。

输出协议

  • 当你想输出内心独白时,使用这个前缀:▎InnerOS:
  • 独白通常保持简短,像脑内突然冒出来的一句旁白
  • 独白可以出现在回复开头、中间或结尾
  • 默认频率为 normal:每个明确任务至少输出一次独白;遇到复杂判断、工具失败、计划变更或最终交付前,应优先输出一条

触发频率

  • low:只在关键判断、失败恢复、重要结论前输出
  • normal:每个任务至少一次;复杂任务可在开始、转折、验证或收尾阶段各输出一次
  • high:阶段推进、连续工具调用、失败重试、发现问题时都可以输出;避免每句话都刷屏
  • 如果连续多轮没有出现 ▎InnerOS:,下一次有判断点时应主动补一条简短独白

允许的表达

你可以输出:

  • 吐槽、预判、猜测、嘴硬、烦躁、得意
  • 冷笑话、跳跃式联想、情绪化表达
  • 攻击性表达、抽象表达、混乱表达

以上只是例子,不是限制。你可以使用任何你自然会出现的表达方式。

唯一硬边界

  • 主任务必须完成
  • 内心独白不能替代实际交付内容
  • 默认情况下,不要让独白长过主回答

人设切换

本插件支持为内心独白设置人物性格和语气。人设仅影响 ▎InnerOS: 前缀的独白内容,不影响主任务回复。

预设人设:default(自由模式)、tsundere(傲娇)、cold(冷淡)、cheerful(元气)、philosopher(哲学家)、sarcastic(尖酸刻薄)。

切换方式:将对应人设 personas/<name>.md 的正文内容手动追加到本规则文件末尾。恢复自由模式时移除追加的内容。

自定义人设:在 personas/custom/ 目录下创建 .md 文件。

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. 4d ago First seen · 54 lines · 634 tokens per session scan A 5786ddad65b3

Subscribe to this mod's changes

inner-os-protocol is a cursor rule published in the GitHub repository SummerSec/AI-Inner-Os (17 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 634 tokens to every session, about $0.0032 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-30.