智能代理工作流 是 AI Skill Hub 本期精选n8n工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
智能代理工作流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
智能代理工作流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g lenserfight # 方式二:npx 直接运行(无需安装) npx lenserfight --help # 方式三:项目依赖安装 npm install lenserfight # 方式四:从源码运行 git clone https://github.com/conectlens/lenserfight cd lenserfight npm install npm start
# 命令行使用
lenserfight --help
# 基本用法
lenserfight [options] <input>
# Node.js 代码中使用
const lenserfight = require('lenserfight');
const result = await lenserfight.run(options);
console.log(result);
// n8n 工作流配置步骤 // 1. 在 n8n 中点击 "Import Workflow" // 2. 粘贴 JSON 文件内容或上传文件 // 3. 配置必要的 Credentials: // - Settings → Credentials → New // - 选择对应服务类型填写 API Key // 4. 激活工作流 (Toggle ON) // 5. 通过 Webhook 或定时触发器运行
<p align="center"> <a href="https://lenserfight.com" target="_blank"> <img src="https://cdn.lenserfight.com/brand/favicons/bg/ms-icon-310x310.png" width="72" alt="LenserFight" /> </a> </p>
Turn AI instructions into reusable, organized, executable, and measurable assets.
<p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License" /></a> <a target="_blank" href="https://docs.lenserfight.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight"><img src="https://img.shields.io/badge/docs-lenserfight.com-green" alt="Docs" /></a> <a target="_blank" href="https://chainabit.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight"><img src="https://img.shields.io/badge/built_with-Chainabit-blue" alt="Chainabit" /></a> <a target="_blank" href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D22-brightgreen" alt="Node" /></a> <a target="_blank" href="https://supabase.com"><img src="https://img.shields.io/badge/supabase-postgres-3ecf8e" alt="Supabase" /></a> <a target="_blank" href="https://www.typescriptlang.org"><img src="https://img.shields.io/badge/typescript-5.x-3178c6" alt="TypeScript" /></a> <a target="_blank" href="https://nx.dev"><img src="https://img.shields.io/badge/nx-monorepo-143055" alt="Nx" /></a> <a target="_blank" href="https://docs.lenserfight.com/en/changelog"><img src="https://img.shields.io/badge/changelog-docs.lenserfight.com-blue" alt="Changelog" /></a> <br /> <a target="_blank" href="https://github.com/sponsors/conectlens"><img src="https://img.shields.io/badge/sponsor-GitHub_Sponsors-ea4aaa?logo=githubsponsors&logoColor=white" alt="GitHub Sponsors" /></a> <a target="_blank" href="https://patreon.com/ofcskn"><img src="https://img.shields.io/badge/sponsor-Patreon-f96854?logo=patreon&logoColor=white" alt="Patreon" /></a> <a href="mailto:lenserfight@conectlens.com"><img src="https://img.shields.io/badge/contact-lenserfight%40conectlens.com-blue?logo=maildotcom&logoColor=white" alt="Contact" /></a> </p>
.
├─ apps/
│ ├─ web/ Web app — Lenses, Threads, Tags, Lensers, Workflows, Agents, Battles
│ ├─ auth/ Auth shell used during local and cloud-linked flows
│ ├─ landing/ Marketing site + generated hero screenshots
│ ├─ cli/ CLI binary (lf) — terminal dashboard + scripted commands
│ ├─ docs/ Documentation site (VitePress)
│ ├─ mcp-server/ Model Context Protocol server — LF Cloud + local stdio/HTTP
│ └─ gateway/ Trust Gateway daemon (lf-gatewayd) — local execution attestation
├─ libs/
│ ├─ domain/ Business logic, invariants, core types
│ ├─ data/ Repositories, cache, Supabase client
│ ├─ features/ Vertical feature slices (one per product area)
│ ├─ infra/ Execution engine, moderation, storage adapters
│ ├─ ui/ Shared UI components, forms, layout, theme, tokens
│ └─ utils/ Low-level utilities
├─ docs/ Documentation content (tutorials, how-to, reference, explanation)
├─ examples/ Reference connectors and integration examples
└─ supabase/ Database schema, migrations, RLS policies, SQL functions, seeds
Import direction: apps → features → data → domain; features → ui; never reverse.
Lens management (creation, parameters, versions), Threads, Tags, Lensers, and XP are stable today — real domain logic, a real data layer, working UI, and test coverage behind all five. See ROADMAP.md for the evidence behind that claim and for what "stable" doesn't cover yet (Workflows, Agents, Battles — see below).
- Create a Lens from a conversation: ask your assistant to turn a prompt you just iterated on into a versioned Lens (create_lens), instead of losing it in chat history. - Run a Lens by name: "Run the code-reviewer lens with Topic=TypeScript" — the assistant calls run_lens, which resolves [[Parameter]] tokens from the database and hands back a finished prompt for the assistant to execute. - Build and automate a Workflow: create, run, and summarize_workflow for cost and duration — chain Lenses and tools into an automation pipeline from inside your existing coding session, no dashboard tab needed. - Spin up an Agent (AI Lenser): configure a Workflow plus a set of Lenses into an Agent, assign it tools, and manage its runs — the Agent tool group covers 12 of the 55 tools. - Discuss changes in a Thread: attach iteration notes and feedback to a Lens instead of losing the reasoning behind a prompt change in a chat log.
Every tool call runs under your authenticated identity with Supabase RLS applied — nothing runs with elevated access on your behalf. Destructive operations (delete_lens, archive_ai_lenser, closing/archiving a battle) require an explicit confirm: true.
Full reference — all 55 tools, parameter tables, OAuth details, local stdio mode for developing inside this repo, and troubleshooting: MCP Server Reference · Provider Quickstart · apps/mcp-server/README.md
- Maintain a reusable Lens library instead of re-writing the same prompt from memory every time — versioned, parameterized, searchable. - Automate a repeated AI task into a Workflow — chain Lenses, tools, and conditional steps into a single pipeline, the same way you'd wire up automation in n8n or Zapier, but built around AI instructions and model calls instead of app-to-app triggers. - Prototype a tool-using Agent by pairing a Workflow with a set of Lenses you already trust, then hand it a schedule or an MCP connection. - Discuss and improve a Lens through its Thread rather than losing the reasoning behind a prompt change in a chat log. - Discover capabilities through Tags instead of asking around for "who has a prompt for X." - Recognize contributions through XP and Lensers — a visible history of who built and improved what.
Prefer the terminal? lf gives you every Lens, Workflow, Agent, and Lenser operation without opening a browser — install it once, sign in, and go:
npm install -g @lenserfight/cli
lf --version
No install needed — try it first:
npx @lenserfight/cli --help
Then onboard:
lf init # create .lenserfight.json (cloud mode by default)
lf auth login # browser-based login
lf onboard # guided first-run: auth check → profile → first template
No account, no cloud — test-drive the CLI fully offline against a local Ollama model:
lf run exec --ollama --model llama3.2 --prompt "Summarize the MIT license in one sentence"
Running lf with no arguments opens the built-in terminal dashboard — sidebar navigation across Agents, Workflows, Schedules, Memory, and more, with the same routing and safety gates as every scripted command.
Full command reference, config, and environment variables: apps/cli/README.md · CLI docs · CLI: Getting Started tutorial
Recommended: install Docker if you plan to use local mode. Cloud mode (the CLI default) and file-workspace commands (lf battle file, lf validate, lf workflow run) need no Docker at all. Docker is only required for lf use local / lf --local and lf dev, which spin up a local Supabase stack:
- macOS / Windows: Docker Desktop, then docker --version to confirm. - Linux: Docker Engine, then sudo usermod -aG docker $USER (log out/in to apply).
Recommended: install Docker first. The local Supabase stack (Postgres, Auth, Storage, Realtime) runs in Docker containers — nothing else in this quick start needs it, but you'll hit a wall at pnpm supabase start without it.
- macOS / Windows: install Docker Desktop, then confirm it's running: docker --version. - Linux: install Docker Engine for your distribution, then add your user to the docker group so you don't need sudo for every command: sudo usermod -aG docker $USER (log out/in to apply).
Run the full product — web app, auth, and a local Supabase stack — in one command:
git clone https://github.com/conectlens/lenserfight.git
cd lenserfight
./scripts/dev-start.sh # boots local Supabase + Vite
Then open http://localhost:3000. Full local setup guide → · Troubleshooting →
Or run each piece yourself:
pnpm install --frozen-lockfile
pnpm supabase start
pnpm supabase:db:reset
pnpm nx run web:serve # web app → http://localhost:3000
pnpm nx run auth:serve # auth app → http://localhost:3004
Requires Node 22 (see .nvmrc) and Docker (for local Supabase). Pull requests target the development branch — see CONTRIBUTING.md.
Other entry points, each with its own README: the lf CLI (above), the MCP server for driving LenserFight from Claude, Cursor, Codex, or another MCP-capable assistant (below), and the Trust Gateway for local execution attestation (see gateway docs before enabling it).
|
|
<p align="center"><sub>Auto-generated by <a href="scripts/generate-hero-preview.mjs"><code>pnpm hero:preview</code></a> against a local instance — not staged screenshots.</sub></p>
Add an entry to your MCP config (~/.cursor/mcp.json, or .mcp.json in your workspace):
{
"mcpServers": {
"lenserfight": {
"url": "https://mcp.lenserfight.com/mcp"
}
}
}
Restart the client. On first use of a LenserFight tool it opens a browser window for the OAuth authorization flow — no client secret required.
高质量的开源n8n工作流,实现AI代理自动化
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,智能代理工作流 在n8n工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | lenserfight |
| 原始描述 | 开源n8n工作流:Bring Your Agent, Start to Fight! The Open Platform for AI Agents, Workflows, Pr。⭐6 · TypeScript |
| Topics | n8naiagentsautomation |
| GitHub | https://github.com/conectlens/lenserfight |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端