AI Skill Hub 推荐使用:Lean CLI 工具 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
Lean CLI 工具为 AI 代理和开发者提供了减少上下文、保存令牌的解决方案。
Lean CLI 工具 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Lean CLI 工具为 AI 代理和开发者提供了减少上下文、保存令牌的解决方案。
Lean CLI 工具 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g tokenlean # 方式二:npx 直接运行(无需安装) npx tokenlean --help # 方式三:项目依赖安装 npm install tokenlean # 方式四:从源码运行 git clone https://github.com/edimuj/tokenlean cd tokenlean npm install npm start
# 命令行使用
tokenlean --help
# 基本用法
tokenlean [options] <input>
# Node.js 代码中使用
const tokenlean = require('tokenlean');
const result = await tokenlean.run(options);
console.log(result);
# tokenlean 配置说明 # 查看配置选项 tokenlean --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export TOKENLEAN_CONFIG="/path/to/config.yml"
<p align="center"> <img src="https://raw.githubusercontent.com/edimuj/tokenlean/main/assets/tokenlean-mascot-200.png" alt="Tokenlean mascot - a squirrel collecting tokens" /> </p>
<p align="center"> <strong>60+ CLI tools + MCP server that let AI agents understand codebases without burning tokens</strong> </p>
<p align="center"> <a href="https://www.npmjs.com/package/tokenlean"><img src="https://img.shields.io/npm/v/tokenlean.svg" alt="npm version"></a> <a href="https://www.npmjs.com/package/tokenlean"><img src="https://img.shields.io/npm/dm/tokenlean.svg" alt="npm downloads"></a> <a href="https://github.com/edimuj/tokenlean/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/tokenlean.svg" alt="license"></a> </p>
<p align="center"> <a href="#the-problem">Why</a> • <a href="#install">Install</a> • <a href="#quick-reference">Quick Reference</a> • <a href="docs/tools.md">All Tools</a> • <a href="#ai-agent-integration">AI Integration</a> • <a href="docs/workflows.md">Workflows</a> • <a href="docs/language-support.md">Languages</a> </p>
---
Zero config — npm i -g tokenlean and you're done · Token-conscious — every tool outputs only what's needed · Fast — ripgrep-powered with disk caching · Multi-language — JS/TS, Python, Go, Rust, Ruby · MCP native — structured tool access, no shell overhead · Minimal deps — installs in seconds
---
npm install -g tokenlean
Requires Node.js >= 18, ripgrep for search tools, and git for history tools.
Use tl as the global entry point — one command, many subcommands:
tl # List all available commands
tl doctor # Verify Node.js, ripgrep, git, hooks, and config
tl doctor --agents # Check MCP, hooks, skills, and project instructions
tl update # Update the global tokenlean install
tl completions bash|zsh # Tab completions for subcommands and flags
<details> <summary>Development setup</summary>
git clone https://github.com/edimuj/tokenlean.git
cd tokenlean
npm link
</details>
```
Every tool supports -l N (limit lines), -t N (limit tokens), -j (JSON output), -q (quiet), and -h (help).
See all tools for the complete reference.
```bash
Add tokenlean instructions to your AI tool's config with a single command:
| AI Tool | Command |
|---|---|
| Claude Code | tl prompt >> CLAUDE.md |
| Codex | tl prompt --codex >> AGENTS.md |
| Cursor | tl prompt --minimal >> .cursorrules |
| GitHub Copilot | tl prompt >> .github/copilot-instructions.md |
| Windsurf | tl prompt --minimal >> .windsurfrules |
MCP Server — expose tokenlean as native MCP tools for structured, faster access with no CLI overhead:
```bash
cp -r node_modules/tokenlean/skills/claude/ ~/.claude/skills/ cp -r node_modules/tokenlean/skills/codex/ ~/.codex/skills/
cp -r node_modules/tokenlean/skills/claude/code-review ~/.claude/skills/ cp -r node_modules/tokenlean/skills/codex/code-review ~/.codex/skills/ ```
When working from a clone, replace node_modules/tokenlean with the local repo path.
Lean CLI 工具是一个开源的 AI 工作流,提供了 Lean CLI 工具的解决方案,减少上下文,保存令牌,提高工作效率。然而,工具的使用人数较少,可能存在一些 bug 或问题。总体来说,Lean CLI 工具是一个有用的工具,值得尝试。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Lean CLI 工具 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | tokenlean |
| 原始描述 | 开源AI工作流:Lean CLI tools for AI agents and developers - reduce context, save tokens。⭐9 · JavaScript |
| Topics | workflowagent-toolsai-agent-toolscli-toolsjavascript |
| GitHub | https://github.com/edimuj/tokenlean |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-06-07 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端