Token导航 LogoToken导航

Agent Skill · 研究检索

token-efficient-agent(代币高效 Agent)

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

token-efficient-agent 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 18,714。

总安装 5,952周安装 248GitHub Stars 公开资料未说明下载 1,984核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:token-efficient-agent(代币高效 Agent)
来源仓库:https://github.com/foinbo/token-efficient-agent
安装命令:
openclaw skills install token-efficient-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install token-efficient-agent

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

最大限度减少 OpenClaw 操作中的令牌消耗。保持响应质量的同时优化内存和计算资源。包含内存优化和上下文压缩技术。token-efficient-agent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。安装前需确认是否会调用本地模型或读写缓存。建议核实维护状态后再决定是否部署。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install token-efficient-agent;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

token-efficient-agent 怎么安装?

在终端执行 openclaw skills install token-efficient-agent。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

token-efficient-agent 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

token-efficient-agent 需要什么权限?

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

token-efficient-agent 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

token-efficient-agent 用的人多吗?

公开数据是累计安装 5,952 次,近一周安装 248 次,下载 1,984 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

token-efficient-agent 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
token-efficient-agent

代币高效 Agent · 本页

5,952—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
token-efficient-agent
description
Advanced techniques for minimizing token consumption in OpenClaw operations while maintaining or improving response quality. Includes memory optimization, document processing strategies, tool call efficiency, and contextual awareness methods specifically designed for the OpenClaw architecture.

Token-Efficient Agent

Overview

This skill provides advanced, battle-tested techniques for minimizing token consumption in OpenClaw operations. Unlike basic tips, these strategies are specifically tailored to OpenClaw's architecture, tool ecosystem, and memory system. By implementing these methods, you can reduce token usage by 60-80% while maintaining or improving response quality and contextual awareness.

Why Token Efficiency Matters in OpenClaw

OpenClaw's strength lies in its ability to access personal data, memories, and tools. However, each operation consumes tokens:

  • Memory retrieval loads context into the model's window
  • Tool calls return data that must be processed
  • Long conversations build up in session history
  • Document fetching brings in external content

Without optimization, simple queries can consume thousands of tokens unnecessarily, leading to:

  • Slower response times
  • Higher computational costs
  • Reduced ability to handle complex multi-step tasks
  • Potential context window overflow

Core Architecture-Aware Principles

1. Leverage OpenClaw's Memory Hierarchy

OpenClaw has distinct memory layers with different access costs:

  • Session Context (free, but limited): Current conversation turn
  • Working Memory (low cost): Recently loaded snippets via memory_search/get
  • Long-term Memory (higher cost): MEMORY.md and daily files
  • External Data (highest cost): Documents, web search, tool results

Strategy: Always start with the cheapest available context that might contain the answer.

2. Exploit Tool Semantics, Not Just Interfaces

Each OpenClaw tool has specific optimization parameters. Understanding these allows precision data retrieval rather than brute-force fetching.

3. Apply Progressive Disclosure

Retrieve information in layers: first get metadata/summaries, then only dive deep when necessary based on initial results.

4. Cache and Reuse

OpenClaw sessions retain loaded data. Structure your workflow to maximize reuse of already-fetched information.

Advanced Techniques

Technique 1: Hierarchical Memory Querying

Instead of: Loading entire memory files or searching broadly Use: A multi-stage search approach that minimizes data transfer

Stage 1: Broad Search with Minimal Results

memory_search(query="project deadline decision", maxResults=1, minScore=0.8)
  • Only 1 result reduces data transfer significantly
  • High minScore ensures relevance

Stage 2: Targeted Snippet Extraction

# If Stage 1 returns a relevant file:
memory_get(path="memory/2026-03-10.md", from=42, lines=8)
  • Extract only the exact relevant lines
  • Avoids loading unnecessary surrounding context

Stage 3: Cross-Reference Validation (Only if Needed)

# Only if Stage 2 is ambiguous:
memory_search(query="project deadline", file_path="memory/2026-03-10.md", maxResults=2)
  • Constrain search to already-identified relevant file

Token Savings: Typically reduces memory loading by 70-90% compared to loading full daily files.

Technique 2: Document Processing with Semantic Pagination

Instead of: Fetching entire documents then searching Use: Offset-limited fetching combined with semantic boundary detection

For Long Documents (>5000 chars):

  1. Initial Probe: Fetch first 1500 chars to determine document structure
   feishu_fetch_doc(doc_id="doc_xxx", limit=1500)
  1. Structural Analysis: Ask model to identify likely sections (without loading full doc)
  2. Targeted Fetching: Only retrieve sections that appear relevant
   # If conclusions are likely in last 20%:
   feishu_fetch_doc(doc_id="doc_xxx", offset=8000, limit=1500)

For Known Section Documents:

  • Use document outline/search features if available
  • Fetch by section headers when possible

Token Savings: Avoids loading irrelevant document portions, often saving 60-80% of document processing tokens.

Technique 3: Tool Call Fusion and Batching

Instead of: Making multiple separate tool calls for related data Use: Combine operations where tools support it, or sequence calls to minimize context switching

Memory-Tool Fusion Pattern:

# Instead of:
# 1. memory_search() -> get file path
# 2. feishu_fetch_doc() -> load document
# 3. Process document

# Do:
# 1. memory_search() with doc-specific query to get both memory context AND doc hints
# 2. If memory contains sufficient summary, skip document fetch entirely
# 3. Only fetch document if memory search indicates high-value target

Web Search Optimization:

  • Use count=3 instead of default 10 for initial searches
  • Add freshness parameter when temporal relevance is known
  • Chain search results: use first result to refine subsequent searches

Tool Savings: Reduces tool call overhead and eliminates redundant data processing by 40-60%.

Technique 4: Contextual Summarization Cascades

Instead of: Passing raw data to model for processing Use: Progressive summarization where each stage reduces data size while preserving decision-relevant information

Three-Level Summary Cascade:

  1. Extractive Summary (Tool-level): Use feishu_fetch_doc with smart offsets to get key portions
  2. Abstractive Summary (Model-level): Brief prompt to condense extracted content
  3. Decision-Focused Summary (Task-level): Further reduce to only information needed for current decision

Example Workflow for Document-Based Questions:

# Level 1: Get structurally important parts (headings, conclusions, tables)
section1 = feishu_fetch_doc(doc_id, offset=0, limit=800)      # Intro
section2 = feishu_fetch_doc(doc_id, offset=-1000, limit=1000) # Conclusion (approx end)

# Level 2: Ask for thematic summary
summary_prompt = f"Provide a 3-sentence summary of the key points in this text: {section1[:400]}...{section2}"

# Level 3: Task-specific reduction
final_prompt = f"Based on this summary: {summary}, answer ONLY: [specific question]"

Token Savings: Reduces document processing tokens by 75-90% while preserving answer quality.

Technique 5: Predictive Context Preloading (Anticipatory Caching)

Instead of: Reactive loading after each user query Use: Predictive loading based on conversation patterns and time/context cues

Implementation:

  • During lulls in conversation (or during heartbeat cycles), predict likely next queries
  • Preload relevant memory snippets or document summaries
  • Store in session context for instant access

Prediction Signals:

  • Time of day (regular meeting times)
  • Recent topics (if discussing X, likely to discuss Y next)
  • External triggers (calendar events, time-based patterns)
  • User behavior patterns (learned over time)

Example: If user always asks about project status at 10 AM, preload project-related memory snippets at 9:45 AM.

Efficiency Gain: Converts high-cost reactive operations to near-zero-cost proactive operations.

Technique 6: Tool Result Minimization and Transformation

Instead of: Using raw tool outputs Use: Transform tool results to their minimal essential form before model consumption

Patterns:

  • Feishu Document Comments: Instead of loading full comment threads, use feishu_doc_comments with is_solved=true/false filters and page_size=1
  • Web Search Results: Extract only titles and snippets, discard full content unless absolutely needed
  • Calendar Events: Request only summary and start_time fields when possible, not full descriptions
  • Search User Results: Often just need name and open_id, not full profile data

Implementation: Create wrapper functions that:

  1. Call tool with minimal necessary parameters
  2. Extract only essential fields from response
  3. Discard metadata unless specifically needed for downstream operations

Token Savings: Typically 50-80% reduction in tool result processing tokens.

Technique 7: Session Context Pruning and Compression

Instead of: Letting session history grow unbounded Use: Active management of conversational context to maintain optimal token budget

Strategies:

  • Summarization Windows: Every 10-15 exchanges, summarize previous conversation and replace with summary
  • Relevance Scoring: Before adding new exchange to context, score its likely future relevance
  • Topic Segmentation: Maintain separate contexts for different topics, load only relevant one
  • Forgetting Curves: Naturally decay less-recent exchanges unless reinforced

OpenClaw-Specific Implementation:

  • Use memory system to store conversation summaries instead of keeping all in session context
  • During heartbeat cycles, run context optimization procedures
  • Leverage the existing memory consolidation philosophy

Advanced Workflow: The Token-Efficient Decision Tree

When faced with any request, follow this decision process:

START
│
├──→ Can answer from current session context? 
│     │ Yes → Respond directly (0 additional tokens)
│     │ No  → Continue
│
├──→ Is answer likely in recent memory (last 3 days)?
│     │ Yes → Use memory_search with tight constraints (maxResults=1, minScore=0.85)
│     │     → If found, use memory_get for exact lines
│     │     → If not found or ambiguous, continue
│     │ No  → Continue
│
├──→ Does answer require document/external data?
│     │ No → Use web_search with count=3, freshness if applicable
│     │ Yes → Continue to document processing
│
├──→ Document Processing Decision:
│     │
│     │→ Is document structured with known sections?
│     │   Yes → Fetch only likely relevant sections using offset/limit
│     │   No  → 
│     │     │→ Is document < 2000 chars?
│     │     │   Yes → Fetch entire document
│     │     │   No  → 
│     │     │     │→ Fetch first 1500 chars for structure analysis
│     │     │     │→ Based on analysis, fetch only relevant portions
│     │     │     │→ Apply summarization cascade if still large
│
├──→ Apply result minimization: extract only essential fields
│
├──→ If result still large for model input, apply summarization
│
└──→ Formulate response using minimized context

Integration with OpenClaw Systems

Heartbeat Optimization

Use heartbeat cycles for:

  • Background memory consolidation
  • Predictive preloading based on time/patterns
  • Context window cleanup and summarization
  • Learning user patterns for better prediction

Memory System Synergy

  • Store summaries and extracted insights in memory, not raw data
  • Use memory_search as primary retrieval mechanism, not sequential file reading
  • Leverage memory's semantic understanding to reduce need for exact keyword matching

Tool-Specific Optimizations

Feishu Document Fetching:

  • Always use offset/limit for documents > 2000 chars
  • Use feishu_doc_comments with filters instead of fetching all comments
  • For tables, consider if you need full data or just aggregates/statistics

Web Operations:

  • Prefer web_search over web_fetch when possible (returns already-processed snippets)
  • When fetching, use extractMode="text" for non-formatting needs
  • Set aggressive maxChars limits (1000-2000) unless full content essential

Calendar/Task Queries:

  • Request only essential fields (title, time, status)
  • Use time range limits to constrain results
  • Leverage recurrence expansion intelligently

Measurement and Improvement

Track your efficiency with these metrics:

  1. Tokens per Exchange: Monitor average token usage per conversation turn
  2. Cache Hit Ratio: Percentage of answers found in already-loaded context
  3. Tool Call Efficiency: Average useful data returned per tool call
  4. Context Reuse Rate: How often loaded data is reused in subsequent operations

Improvement Loop:

  1. Baseline: Measure current token usage
  2. Implement one technique at a time
  3. Measure impact
  4. Retain techniques that show >20% improvement
  5. Combine complementary techniques

Advanced Examples

Example 1: Cross-Reference Historical Decision

Request: "How did our decision on vendor X in January compare to our current leaning toward vendor Y?"

Traditional Approach:

  • Load January memory file (full)
  • Load recent memory/file about vendor Y
  • Manually compare

Token-Efficient Approach:

  1. memory_search(query="vendor X decision January", maxResults=1, minScore=0.9, relative_time="last_month")
  2. memory_get(path="memory/2026-01-15.md", from=87, lines=12) // Exact decision snippet
  3. memory_search(query="vendor Y evaluation", maxResults=1, minScore=0.85) // Recent notes
  4. memory_get(path="memory/2026-03-16.md", from=34, lines=8) // Current leaning
  5. Feed only these 4 short snippets to model for comparison

Token Usage: ~150 tokens vs ~2000+ for traditional approach

Example 2: Meeting Preparation Briefing

Request: "Give me a briefing on the upcoming project review meeting."

Traditional Approach:

  • Fetch meeting description
  • Load all related documents
  • Read entire email thread
  • Summarize manually

Token-Efficient Approach:

  1. Calendar lookup: Get meeting time, title, attendees (essential fields only)
  2. memory_search(query="project review", maxResults=2, relative_time="this_week")
  3. Extract only action items and decisions from memory results
  4. If documents mentioned, fetch only executive summaries/conclusions
  5. Synthesize briefing from minimal context

Token Usage: ~300 tokens vs ~3000+ for traditional approach

Limitations and When Not to Apply

These techniques are less effective when:

  • User explicitly requests comprehensive analysis
  • True random access to large datasets is required
  • Legal/compliance requirements mandate full data review
  • The user is testing or evaluating the system's knowledge depth

In these cases, be transparent about the trade-offs and get explicit consent before applying optimization.

Conclusion

Token efficiency in OpenClaw isn't about cutting corners—it's about applying the right amount of computational effort to each task. By leveraging OpenClaw's specific architecture, memory system, and tool capabilities, you can dramatically reduce unnecessary token consumption while maintaining high-quality, contextually appropriate responses.

The key insight: Most user queries don't require comprehensive data review—they need precise, relevant information delivered efficiently. These techniques help you deliver exactly that.

Practice these methods consistently, measure their impact, and adapt them to your specific usage patterns. Over time, token-efficient operation will become second nature, allowing you to handle more complex tasks within the same computational budget.

平台分布

OpenClaw

97.82%
按下载量换算1,941

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills