aios-interception-runtime

aios-interception-runtime is a skill for Claude Code, Codex from rexleimo/aios. It costs 65 tokens per session (1,641 once invoked), scanned A, original, MIT.

A runtime layer that shortens information going into and coming out of an AI agent and can intercept data exchanged with tools and services.

In plain words
What is it for?
It is for compressing agent responses, browser or page content, tool output, and MCP traffic, with modes for concise, very concise, or fully explicit output.
Why use it?
It reduces unnecessary token use while preserving exact details such as commands, errors, URLs, names, dates, and numbers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for compressing agent responses, browser or page content, tool output, and MCP traffic, with modes for concise, very concise, or fully explicit output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rexleimo/aios/best
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.

Any agent
npx skills add rexleimo/aios --skill best
Clone the repo
git clone --depth 1 https://github.com/rexleimo/aios

Made for: Claude Code, Codex.

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 aios-interception-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/rexleimo/aios/best.svg)](https://agentmods.dev/skills/rexleimo/aios/best)
Your own site
<a href="https://agentmods.dev/skills/rexleimo/aios/best"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/best.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,641 The whole file, excluding the scripts and references it only reads on demand.
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.00065 $0.01641
Opus 5 $0.00032 $0.00821
Sonnet 5 $0.00013 $0.00328
Haiku 4.5 $0.00006 $0.00164

Measured 3d ago against content hash 1b406d702035, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

aios-interception-runtime 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 3d 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.

.skillopt/aios-interception-runtime-2026-06-05/best_skill.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AIOS Interception Runtime

AIOS 的原生 token 优化层,覆盖三个层面:输出压缩(agent 写什么)、输入压缩(agent 读什么)、数据面拦截(自动截获和压缩)。

不安装 RTK、Caveman 或任何竞品。RTK/Caveman 仅作为 prior art 参考。

Always Read

  1. references/runtime-contract.md

一、输出压缩 (Output Compression)

压缩回答,不压缩真相。

  • Default level: tight
  • Switch command: /compress tight|ultra|precise|off
  • User overrides win: precise modestop compress、或任何要求更多细节的请求会禁用当前响应的压缩

Levels

Level Output shape Use for
tight Short sentences, fragments ok, no filler Normal analysis, code work, status updates
ultra One-liners, A -> B notation, only evidence/next action Harness logs, heartbeat updates, checkpoint summaries
precise Full explicit wording, no compression Browser actions, irreversible operations, safety/security warnings

Rules

  • Drop filler: pleasantries, hedging, repeated setup, generic summaries
  • Keep exact: commands, code, errors, file paths, URLs, API names, selectors, dates, numbers
  • Prefer: changed X in path. verified with command. next Y.
  • Do not compress quoted user text, legal/security warnings, or step sequences where order matters

Auto-Precise Guard

Use precise for:

  • Browser operation instructions (page.click, page.type, page.goto, selector choice)
  • Auth, payment, deletion, publishing, external network, or irreversible actions
  • User confusion, contradiction, or repeated clarification
  • Any response where missing a qualifier could change behavior

Return to tight after the precise segment unless the user requested otherwise.

二、输入压缩 (Input Compression)

在数据进入模型之前减少 token。

Browser Tool Priority

Priority Tool When
1 page.semantic_snapshot Navigation, buttons, links, current page structure
2 targeted page.extract_text Specific section, post body, form, comments
3 full page.extract_text Need page text and no target is known
4 page.get_html Last resort when text/snapshot lacks required evidence
5 page.screenshot Visual-only fallback

Read the full file on GitHub · 127 lines

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. 3d ago First seen · 127 lines · 65 tokens per session scan A 1b406d702035

Subscribe to this mod's changes

aios-interception-runtime is a skill published in the GitHub repository rexleimo/aios (52 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 1,641 once invoked, about $0.0003 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-09-03.