# Send Token Saver to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "token-saver",
    "name": "Token Saver",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/RubenAQuispe/token-saver",
    "canonicalUrl": "https://clawhub.ai/RubenAQuispe/token-saver",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/token-saver",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=token-saver",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "audit.json",
      "package.json",
      "README.md",
      "scripts/analyzer.js",
      "scripts/compressor.js",
      "scripts/models.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "token-saver",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T04:05:26.082Z",
      "expiresAt": "2026-05-11T04:05:26.082Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=token-saver",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=token-saver",
        "contentDisposition": "attachment; filename=\"token-saver-3.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "token-saver"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/token-saver"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/token-saver",
    "downloadUrl": "https://openagent3.xyz/downloads/token-saver",
    "agentUrl": "https://openagent3.xyz/skills/token-saver/agent",
    "manifestUrl": "https://openagent3.xyz/skills/token-saver/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/token-saver/agent.md"
  }
}
```
## Documentation

### Token Saver v3

💡 Did you know? Every API call sends your workspace files (SOUL.md, USER.md, MEMORY.md, AGENTS.md, etc.) along with your message. These files count toward your context window, slowing responses and costing real money on every message.

Token Saver v3 is model-aware — it knows your model's context window and adapts recommendations accordingly. Using Gemini's 1M context? Presets scale up. On GPT-4o's 128K? Presets adjust down.

### What's New in v3

Featurev2v3Compaction presetsFixed (80K/120K/160K)Dynamic (% of model's context)Model detectionFragile, env-onlyRobust fallback chainContext windowsNot trackedFull registry (9 models)Model infoHardcoded pricingJSON registry, easy updatesAlready-optimizedRe-compressedSmart bypass

### Commands

CommandWhat it does/optimizeFull dashboard — files, models, context usage %/optimize tokensCompress workspace files (auto-backup)/optimize compactionChat compaction control (model-aware)/optimize compaction balancedApply balanced preset (60% of context)/optimize compaction 120Custom threshold (compact at 120K)/optimize modelsDetailed model audit with registry/optimize revertRestore backups, disable persistent mode

### 📊 Model-Aware Dashboard

Shows current model, context window, and usage percentage:

🤖 Model: Claude Opus 4.5 (200K context)
   Detected: openclaw.json

📊 Context Usage: [████████░░░░░░░░░░░░] 42% (84K/200K)

### 📁 Workspace File Compression

Scans all .md files, shows token count and potential savings. Smart bypass skips already-optimized files.

File-aware compression:

SOUL.md — Light compression, keeps personality language
AGENTS.md — Medium compression, dense instructions
USER.md / MEMORY.md — Heavy compression, key:value format
PROJECTS.md — No compression (user structure preserved)

### 💬 Dynamic Compaction Presets

Presets adapt to your model's context window:

Preset% of ContextClaude 200KGPT-4o 128KGemini 1MAggressive40%80K51K400KBalanced60%120K77K600KConservative80%160K102K800KOff95%190K122K950K

### 🤖 Model Registry

24+ models with context windows, pricing, and aliases:

Claude: Opus 4.6 (1M), Opus 4.5, Sonnet 4.5, Sonnet 4, Haiku 4.5, Haiku 3.5 (200K)
OpenAI: GPT-5.2, GPT-5.1, GPT-5-mini, GPT-5-nano (256K), GPT-4.1, GPT-4o (128K), o1, o3, o4-mini
Gemini: 3 Pro (2M), 2.5 Pro, 2.0 Flash (1M)
Others: DeepSeek V3 (64K), Kimi K2.5 (128K), Llama 3.3 70B, Mistral Large

### 🔍 Robust Model Detection

Detection priority:

Runtime injection (--model=...)
Environment variables (SKILL_MODEL, OPENCLAW_MODEL)
Config file (~/.openclaw/openclaw.json)
File inference (TOOLS.md, MEMORY.md mentions)
Fallback: Claude Sonnet 4 (safe default)

Unknown model handling:

Strict version matching — opus-6.5 won't fuzzy-match to opus-4.5
Unknown models get safe defaults (200K context) + warning
Easy to add new models to scripts/models.json

### 📝 Persistent Mode

Adds writing guidance to AGENTS.md for continued token efficiency:

FileWriting StyleSOUL.mdEvocative, personality-shapingAGENTS.mdDense instructions, symbols OKUSER.mdKey:value factsMEMORY.mdUltra-dense data

### Safety

Auto-backup — All modified files get .backup extension
Integrity > Size — Never sacrifices meaning for smaller tokens
Smart bypass — Skips already-optimized files
Revert anytime — /optimize revert restores everything
No external calls — All analysis runs locally

### Installation

clawhub install token-saver --registry "https://www.clawhub.ai"

### Version History

3.0.0 — Model registry, dynamic presets, robust detection, smart bypass
2.0.1 — Chat compaction, file-aware compression, persistent mode
1.0.0 — Initial release
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RubenAQuispe
- Version: 3.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T04:05:26.082Z
- Expires at: 2026-05-11T04:05:26.082Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/token-saver)
- [Send to Agent page](https://openagent3.xyz/skills/token-saver/agent)
- [JSON manifest](https://openagent3.xyz/skills/token-saver/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/token-saver/agent.md)
- [Download page](https://openagent3.xyz/downloads/token-saver)