aios-interception-runtime

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

A setup guide for RTK and Caveman, local tools that shorten command and agent output before it reaches the conversation.

In plain words
What is it for?
Use it to detect, install, configure, and verify these output-compression tools for supported coding-agent clients.
Why use it?
It reduces the amount of repeated terminal text the agent must process while keeping the underlying work local.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Good fit Use it to detect, install, configure, and verify these output-compression tools for supported coding-agent clients.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rexleimo/aios/aios-interception-runtime
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 aios-interception-runtime
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/aios-interception-runtime/github.svg)](https://agentmods.dev/skills/rexleimo/aios/aios-interception-runtime)
Your own site
<a href="https://agentmods.dev/skills/rexleimo/aios/aios-interception-runtime"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/aios-interception-runtime/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 aios-interception-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/rexleimo/aios/aios-interception-runtime"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/aios-interception-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,878 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00080 $0.01878
Opus 5.5 $0.00032 $0.00751
Sonnet 5.5 $0.00016 $0.00376
Haiku 4.5 $0.00008 $0.00188

Measured 28d ago against content hash 364d2bbcb24d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

aios-interception-runtime scanned grade C with 2 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 28d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
skill-sources/aios-interception-runtime/SKILL.md · 185 lines

How it starts

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

RTK + Caveman 社区工具安装配置指南

AIOS 原生拦截运行时已废弃。Token 压缩改由社区维护的 RTK 和 Caveman 处理。

  • RTK (https://github.com/rtk-ai/rtk) — Rust CLI 代理,过滤和压缩命令输出 60-90%。单二进制,<10ms 开销,100+ 支持命令。本地运行,无外部服务。
  • Caveman (https://github.com/JuliusBrussee/caveman) — Claude Code skill/插件,压缩 agent 输出 token ~75%。保持技术准确性,仅压缩表述风格。本地 prompt skill。

一、自动安装

aios init 会自动检测并安装 RTK + Caveman(带有安装确认提示):

# 交互式安装(会提示确认)
aios init --agent <claude|codex|gemini|opencode>

# 跳过确认提示(用于 CI/无人值守场景)
aios init --yes-compression-tools

# 仅检测不安装
aios init --dry-run

安装后 aios init 会自动运行 rtk init -g 为检测到的客户端注册 hook/plugin。

二、手动安装

RTK

# macOS (推荐)
brew install rtk

# Linux / macOS / WSL
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

# Windows (下载预编译二进制)
# 从 https://github.com/rtk-ai/rtk/releases 下载 rtk-x86_64-pc-windows-msvc.zip
# 解压到 PATH 中的目录(如 C:\Users\<you>\.local\bin)

# Cargo
cargo install --git https://github.com/rtk-ai/rtk

# 验证
rtk --version   # 应显示 rtk 0.28.2+
rtk gain        # 查看 token 节省统计
RTK 初始化
rtk init -g                     # Claude Code / Copilot (默认)
rtk init -g --gemini            # Gemini CLI
rtk init -g --codex             # Codex (OpenAI)
rtk init --agent cursor         # Cursor
rtk init --agent windsurf        # Windsurf
rtk init --agent cline          # Cline / Roo Code
rtk init --agent hermes         # Hermes

Caveman

# macOS / Linux / WSL / Git Bash
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash

# Windows (PowerShell 5.1+)
$installer = Join-Path $env:TEMP 'caveman-install.ps1'
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.ps1 -OutFile $installer
powershell -NoProfile -ExecutionPolicy Bypass -File $installer
Remove-Item $installer -Force

安装后约 30 秒。需要 Node >= 18。会自动检测已安装的客户端并跳过没有的。 安全重复运行。

Caveman 使用
/caveman              # 激活 caveman 模式(默认 full)
/caveman lite         # 轻度:去掉填充语
/caveman full         # 完整 caveman 模式(默认)
/caveman ultra        # 极简:电报体
/caveman wenyan       # 文言文模式(更短)

# 其他命令
/caveman-commit       # 压缩 commit message
/caveman-review       # 一行 PR 评论
/caveman-stats        # token 使用统计
/caveman-compress <file>  # 压缩文件内容

# 退出
"normal mode"         # 恢复正常输出

Read the full file on GitHub · 185 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 28d ago Changed 364d2bbcb24d
  2. 1mo ago Changed 18222c0db578
  3. 1mo ago Changed 55a027404e5b
  4. 1mo ago First seen · 185 lines · 80 tokens per session scan C 4b1bdbd13e65

Subscribe to this mod's changes

aios-interception-runtime is a skill published in the GitHub repository rexleimo/aios (54 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 1,878 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories