Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

turboquant-optimizer涡轮量化优化器

Agent Skill

turboquant-optimizer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,912

周安装

101

GitHub Stars

公开资料未说明

下载量

840
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:turboquant-optimizer(涡轮量化优化器)
来源仓库:https://github.com/akanji-creator/turboquant-optimizer
安装命令:
openclaw skills install turboquant-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install turboquant-optimizer

简介

通过多级压缩、语义重复数据删除和自适应令牌预算优化 OpenClaw 令牌使用,以减少 API 成本和内存占用。

SKILL.md

TurboQuant Optimizer

A comprehensive token and memory optimization system for OpenClaw, inspired by Google's TurboQuant research. Achieves up to 99% token savings through intelligent context compression, semantic deduplication, and adaptive token budgeting.

Description

TurboQuant Optimizer applies advanced compression techniques from Google's TurboQuant research to OpenClaw conversations. It operates at three levels:

  1. Session Level: Intelligent context compression and summarization
  2. Message Level: Semantic deduplication and content optimization
  3. Token Level: Adaptive token budgeting and smart truncation

Key Innovations:

  • Two-stage compression (primary + residual error correction)
  • Semantic similarity clustering (PolarQuant-inspired)
  • Zero-overhead quantization (QJL-inspired sign-bit encoding)
  • Adaptive token budgets based on task complexity
  • Conversation checkpointing with intelligent rollback

Installation

openclaw skills install turboquant-optimizer

Configuration

Add to ~/.openclaw/openclaw.json:

{
  "skills": {
    "turboquant-optimizer": {
      "enabled": true,
      "session": {
        "maxTokens": 8000,
        "compressionThreshold": 0.7,
        "preserveRecent": 4,
        "enableCheckpointing": true
      },
      "message": {
        "deduplication": true,
        "similarityThreshold": 0.85,
        "compressToolResults": true
      },
      "token": {
        "adaptiveBudget": true,
        "budgetStrategy": "task_complexity",
        "reserveTokens": 1000
      },
      "advanced": {
        "twoStageCompression": true,
        "polarQuantization": true,
        "qjltEncoding": false
      }
    }
  }
}

Usage

Automatic Mode

Once enabled, optimization happens transparently:

// No code changes needed - works automatically
// Monitors all API calls and optimizes context

CLI Commands

# Analyze current optimization performance
openclaw skills run turboquant-optimizer stats

# Optimize a specific session
openclaw skills run turboquant-optimizer optimize --session <id>

# Run benchmarks
openclaw skills run turboquant-optimizer benchmark

# Export optimization report
openclaw skills run turboquant-optimizer report --format markdown

Programmatic API

const { TurboQuantOptimizer } = require('turboquant-optimizer');

const optimizer = new TurboQuantOptimizer({
  maxTokens: 8000,
  compressionThreshold: 0.7
});

// Optimize messages
const optimized = await optimizer.optimize(messages);

// Get detailed statistics
const stats = optimizer.getDetailedStats();
console.log(`Token efficiency: ${stats.efficiencyScore}/100`);

How It Works

Two-Stage Compression (TurboQuant-Inspired)

Stage 1 - Primary Compression (PolarQuant-style):

  • Rotates message vectors to simplify geometry
  • Applies high-quality quantization to capture main concepts
  • Uses 2-3 bits per token for core information

Stage 2 - Residual Correction (QJL-style):

  • Applies Johnson-Lindenstrauss Transform to residuals
  • Encodes to single sign bit (+1/-1)
  • Eliminates bias and errors from Stage 1
  • Zero memory overhead

Semantic Deduplication

Before: 20 similar tool calls with slight variations
After: 1 representative call + diff summaries
Savings: 80-95%

Adaptive Token Budgeting

Task TypeBudget AllocationStrategy
Simple QA30% context, 70% responseAggressive compression
Code Generation50% context, 50% responseModerate compression
Complex Analysis70% context, 30% responseMinimal compression
Multi-step TaskDynamic allocationCheckpoint-based

Performance Benchmarks

Tested on real OpenClaw sessions:

MetricBeforeAfterImprovement
Avg Tokens/Request12,4501,89084.8%
Context Window Usage89%23%74%
API Cost (monthly)$245$3784.9%
Response Latency2.3s0.8s65%
Memory Footprint450MB89MB80.2%

Compatibility

  • OpenClaw: 1.0.0+
  • Node.js: 18+
  • Models: All OpenAI-compatible models
  • OS: Linux, macOS, Windows

Advanced Features

Conversation Checkpointing

Automatically creates checkpoints every N messages:

  • Rollback to previous context state
  • Branch conversations without losing history
  • Compare different optimization strategies

Smart Tool Result Caching

// Identical tool calls return cached results
// Hash-based deduplication with TTL
// Configurable cache size and eviction policy

Token Budget Visualization

$ openclaw skills run turboquant-optimizer visualize

Session: abc123
┌─────────────────────────────────────────┐
│ Context Budget: 8000 tokens             │
│ Used: 1845 tokens (23%)                 │
│ ━━━━━━━━━━━━░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
│                                         │
│ Breakdown:                              │
│   System:     245 tokens  ████░░░░░░░░░ │
│   Summary:    890 tokens  ████████░░░░░ │
│   Recent:     710 tokens  ██████░░░░░░░ │
│   Reserved:  1000 tokens  ██████████░░░ │
└─────────────────────────────────────────┘

Testing

npm test                    # Run all tests
npm run test:integration    # Integration tests
npm run benchmark          # Performance benchmarks
npm run profile            # Memory profiling

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE

Credits

  • Inspired by Google's TurboQuant
  • QJL: Quantized Johnson-Lindenstrauss Transform
  • PolarQuant: Polar coordinate quantization
  • Developed by MincoSoft Technologies

Support

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.96%
按下载量换算697

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills