跳到正文
TakoAPI
返回技能列表

smart-context

由 joe3112 提供

AI & LLMs
—暂无评分
你的评分

简介

Token-efficient agent behavior — response sizing, context pruning, tool efficiency, and delegation.

描述

该技能的功能

Instructs agents to match response length to question complexity, batch tool calls, and avoid loading files unnecessarily. Covers response sizing rules, context pruning, vision call costs, and delegating bulk work to cheaper sub-agent models.

Instead of applying uniform verbosity to every task, it uses a cost-aware decision tree that trims tokens on simple work while preserving depth where complexity demands it.

何时使用

  • Cutting API costs on high-volume agent pipelines
  • Batching parallel tool calls to reduce round-trips
  • Skipping memory lookups for simple greetings or status checks
  • Delegating bulk file formatting to a lighter model
  • Getting direct answers without preamble or restatements

示例工作流

输入

User asks: Is the config file present?

智能体
  1. 1

    Classifies question as yes/no type

  2. 2

    Determines a single targeted check is sufficient — no full file read needed

  3. 3

    Makes one tool call with a specific path lookup

  4. 4

    Skips confirmation read after the check

输出

Yes, config.json exists in the project root.

安装

clawhub install joe3112/smart-context

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接