AI Skill Hub 推荐使用:gleann Agent工作流 是一款优质的Agent工作流。AI 综合评分 7.2 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
轻量级高性能的AI/RAG工作流和自主代理框架。用Go语言开发,支持知识库集成、工作流编排和AI代理自动化。适合需要构建智能自动化系统、知识管理平台和AI代理应用的开发者。
gleann Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
轻量级高性能的AI/RAG工作流和自主代理框架。用Go语言开发,支持知识库集成、工作流编排和AI代理自动化。适合需要构建智能自动化系统、知识管理平台和AI代理应用的开发者。
gleann Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:go install(推荐) go install github.com/tevfik/gleann@latest # 方式二:从源码编译 git clone https://github.com/tevfik/gleann cd gleann go build -o gleann . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/tevfik/gleann/releases
# 查看帮助 gleann --help # 基本运行 gleann [options] <input> # 详细使用说明请查阅文档 # https://github.com/tevfik/gleann
# gleann 配置说明 # 查看配置选项 gleann --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export GLEANN_CONFIG="/path/to/config.yml"
A lightweight, high-performance AI/RAG workspace and autonomous agent framework implemented in Go. Inspired by the Leann RAG backend architecture, designed for terminal environments.
🤖 Note: This project, including its documentation, was developed with the assistance of AI.

---
map, signatures, entropy, diff, task, reference, aggressive, lines:N, auto, and full. Saves 60–90% of context-window tokens.gleann install auto-detects and configures OpenCode, Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Cline/Roo, Amp, Kiro, Amazon Q, Continue, Zed, Neovim, JetBrains, OpenClaw, Aider, and GitHub Copilot CLI.gleann_gain MCP tool reports cumulative token savings across a session, enabling budget-aware agent loops.gleann ask docs,code "question". Results are merged by relevance score.--continue, --continue-last, --title. Manage via gleann chat --list / --show / --delete.--role code, --role shell) and output format control (--format json, --format markdown). Custom roles in config.--raw.--word-wrap N for streaming output.cat file | gleann ask index "review"), auto-raw mode when stdout is piped, --quiet for scripting.--no-cache skips conversation save, --no-limit removes token cap for unlimited output..gleannignore: Gitignore-style patterns to exclude files during index builds.gleann config show/path/edit/validate for easy configuration./remember, browse with /memories.model: "gleann/<index>" for instant RAG.gleann_batch_ask runs up to 10 questions concurrently against an index in a single round-trip./.well-known/agent-card.json.POST /api/memory/ingest + POST /api/memory/recall interface that orchestrates block memory, knowledge graph, and vector search in parallel.GET /api/tasks.gleann serve detects Ollama, selects models, and creates an initial config file without manual intervention.gleann setup --auto — Zero-Friction Onboarding Tool: Detects environment, pulls required models, and builds initial indexes via an automated workflow.gleann service install/start/stop/status manages a background server via systemd (Linux), launchd (macOS), or Task Scheduler (Windows).The easiest way to install Gleann is via go install:
go install github.com/tevfik/gleann/cmd/gleann@latest
curl -sSfL https://raw.githubusercontent.com/tevfik/gleann/main/scripts/install.sh | sh
Options:
GLEANN_VERSION=v1.0.0 curl -sSfL .../install.sh | sh # specific version
GLEANN_FULL=1 curl -sSfL .../install.sh | sh # full build (tree-sitter)
GLEANN_INSTALL_DIR=/usr/local/bin curl -sSfL .../install.sh | sh # custom location
go build -o gleann ./cmd/gleann/
./gleann setup ```
Requires Go 1.24+.
```bash
docker-compose up -d
The setup wizard (gleann setup / gleann tui → Setup) installs the binary to ~/.local/bin or /usr/local/bin with shell completions (bash, zsh, fish).
You can also install via Makefile:
```bash
make install-user
make install-user-lite
sudo make install ```
gleann setup
gleann index build my-docs --docs ./documents/
gleann index build my-code --docs ./src --graph
```bash
gleann setup --auto
gleann setup --auto --docs ./my-project --name my-project --yes ```
gleann setup --auto detects your environment, shows the configuration for confirmation, pulls any missing models automatically, indexes your current directory, and prints next steps.
gleann setup --bootstrap
gleann config show gleann config edit gleann config validate
gleann serve --port 8080
open http://localhost:8080/api/docs ```
Gleann supports external Plugins for parsing complex files via local HTTP APIs. Registry: ~/.gleann/plugins.json.
| [LEANN](https://github.com/yichuan-w/LEANN) | Gleann | |
|---|---|---|
| **Language** | Python | Go |
| **Deploy** | pip install + venv | Single static binary |
| **Core innovation** | Graph-based selective recomputation (97% less storage) | Full-stack AI assistant — RAG + code graph + memory + MCP server in one binary |
| **Vector backends** | HNSW, DiskANN | HNSW, DiskANN, FAISS |
| **Code analysis** | AST-aware chunking | AST call-graph, callers/callees, impact analysis, community detection |
| **Long-term memory** | — | Tiered BBolt blocks (short / medium / long), auto-injected into every prompt |
| **Agent protocol** | MCP client (reads from servers) | MCP **server** (exposes tools) + Google A2A protocol |
| **Privacy** | Local-first | Local-first |
| **Platforms** | Linux, macOS, Windows (WSL) | Linux, macOS, Windows (native) |
Both projects share the same foundational idea — graph-based ANN indices + selective recomputation — but optimise for different trade-offs: LEANN minimises storage overhead for massive personal-data corpora, while Gleann maximises developer ergonomics and AI-editor integration.
gleann ask my-docs "Explain the architecture" gleann ask my-docs "Explain the architecture" --interactive
gleann 是一个专为 LLM Agent 设计的高效上下文管理工具。它通过创新的上下文场论(Context Field Theory)技术,能够智能地处理和检索信息,帮助开发者在与 AI 交互时提供更精准、更具相关性的上下文,从而提升 AI 任务的执行效率与准确度。
gleann 具备核心竞争力:首先是基于 Context Field Theory 的 Φ Scoring 机制,通过对 MCP 搜索结果进行时间衰减、频率、图邻��度及结构度中心性的多因子重排序,确保信息质量;其次是提供 10 种智能文件读取模式(如 map, signatures, entropy 等),能够根据需求精准提取信息,为 LLM Agent 节省 60%–90% 的 Context Window Token 消耗。
推荐使用 Go 环境进行安装,通过执行 `go install github.com/tevfik/gleann/cmd/gleann@latest` 即可快速部署。对于 Linux 或 macOS 用户,我们也提供了便捷的一键安装脚本(One-Liner Install),支持通过环境变量自定义安装版本(GLEANN_VERSION)、是否进行全量构建(GLEANN_FULL)以及指定的安装目录(GLEANN_INSTALL_DIR)。
gleann 提供了极简的快速上手体验。通过 `gleann setup --auto` 命令,系统会自动检测环境、配置参数、下载缺失的模型并对当前目录进行索引。如果你需要针对特定项目进行初始化,可以使用 `--docs` 和 `--name` 参数进行自定义配置。对于交互式问答,可以使用 `gleann ask` 命令直接向文档提问。
gleann 设计了“零摩擦”的配置体验。通过 `gleann setup --auto` 或 `gleann setup --bootstrap`,系统能够自动识别本地的 Ollama 环境并完成自动配置。用户无需手动编辑复杂的配置文件,即可完成从���型准备到项目索引的全流程自动化设置。
gleann 内置了 REST API 服务功能。开发者可以通过 `gleann serve --port 8080` 命令启动 API 服务器。为了方便调试与集成,系统集成了 Swagger UI,你可以通过浏览器访问 `http://localhost:8080/api/docs` 来查看交互式的 API 文档,轻松进行接口测试。
gleann 采用了通用的插件架构(Generic Plugin Architecture),支持通过本地 HTTP API 调用外部 Plugins 来解析复杂文件。用户可以通过修改 `~/.gleann/plugins.json` 注册插件。例如,使用 `gleann-plugin-docs` 插件可以利用 MarkItDown 技术实现对 PDF、Docx 和 Xlsx 等格式的深度提取。
通过 `gleann ask` 命令,你可以实现单次提问(single-shot)或进入交互模式(--interactive)。该功能允许你直接针对已索引的文档内容进行提问,例如“解释一下架构设计”,非常适合用于快速理解复杂代码库或文档。
Gleann是基于Go���轻量级AI工作流框架,性能优势明显。核心特性完整,支持RAG和代理开发。但项目成熟度有限,社区规模较小,适合对Go技术栈有需求的开发者探索。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,gleann Agent工作流 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | gleann |
| 原始描述 | 开源AI工作流:A lightweight, high-performance AI/RAG workspace and autonomous agent framework 。⭐28 · Go |
| Topics | 工作流引擎AI代理RAG系统Go语言知识库 |
| GitHub | https://github.com/tevfik/gleann |
| License | MIT |
| 语言 | Go |
收录时间:2026-05-16 · 更新时间:2026-05-24 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端