能力标签
gleann Agent工作流
⚙️
Agent工作流

gleann Agent工作流

基于 Go · 无代码搭建完整 AI 自动化流程
英文名:gleann
⭐ 28 Stars 🍴 4 Forks 💻 Go 📄 MIT 🏷 AI 7.2分
7.2AI 综合评分
工作流引擎AI代理RAG系统Go语言知识库
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:gleann Agent工作流 是一款优质的Agent工作流。AI 综合评分 7.2 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

gleann Agent工作流 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

gleann Agent工作流 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.2 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

轻量级高性能的AI/RAG工作流和自主代理框架。用Go语言开发,支持知识库集成、工作流编排和AI代理自动化。适合需要构建智能自动化系统、知识管理平台和AI代理应用的开发者。

gleann Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 28
开发语言
Go
支持平台
Windows / macOS / Linux(跨平台)
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.2 分
工具类型
Agent工作流
Forks
4

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

轻量级高性能的AI/RAG工作流和自主代理框架。用Go语言开发,支持知识库集成、工作流编排和AI代理自动化。适合需要构建智能自动化系统、知识管理平台和AI代理应用的开发者。

gleann Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一: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
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
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"
📑 README 深度解析 真实文档 完整度 89/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

gleann

CI Go Report Card License: MIT Go Reference

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.

Gleann terminal demo — index AI docs, semantic search, RAG Q&A, long-term memory, MCP setup

---

Key Features

  • Context Field Theory (Φ Scoring): MCP search results are re-ranked using a multi-factor Φ score — recency (1hr half-life decay), frequency, graph proximity, and structural degree centrality.
  • 10 File Read Modes: Smart file reading for LLM agents: map, signatures, entropy, diff, task, reference, aggressive, lines:N, auto, and full. Saves 60–90% of context-window tokens.
  • Shell Output Compression: 95+ tool-specific regex patterns (Git, Go, NPM, Docker, Cargo) collapse noisy terminal output before it enters the LLM context window.
  • 17 Agent & IDE Platforms: 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.
  • Token Gain Tracking: gleann_gain MCP tool reports cumulative token savings across a session, enabling budget-aware agent loops.
  • Academic Vision, Full-Fledged Agent: Built on the shoulders of Leann's RAG architecture to create an autonomous assistant where LLM, vector/graph DBs, and plugins unite in one Go app.
  • Zero-Config Extractive Summarization: High-density sentences are extracted algorithmically during build time, bypassing LLMs and enabling zero-latency "Smart Summaries".
  • Flexible Intelligence (Local or Cloud): Run LLMs 100% locally via llama.cpp for total privacy, or connect to any OpenAI-compatible API for high-reasoning tasks.
  • Advanced RAG (Faiss / HNSW & Graph DB): Indexes documents and code semantically (vector) and relationally (graph), not just via simple keyword matching.
  • Smart Chunking (Tree-sitter): Intelligent AST-aware partitioning preserves the structural integrity of your code functions and classes.
  • Graph-Augmented Search: Search results are enriched with callers/callees from the AST graph, giving LLMs structural code context alongside semantic matches.
  • Impact Analysis: Blast radius analysis via BFS traversal — find all direct and transitive callers of any symbol and the files they belong to.
  • Multi-Index Chat: Ask questions across multiple indexes simultaneously with gleann ask docs,code "question". Results are merged by relevance score.
  • Conversations: Persistent conversation history with --continue, --continue-last, --title. Manage via gleann chat --list / --show / --delete.
  • Roles & Format Control: Named system prompt roles (--role code, --role shell) and output format control (--format json, --format markdown). Custom roles in config.
  • Markdown Rendering: Terminal markdown rendering via glamour. Disable with --raw.
  • Word-wrap: Terminal-aware word wrapping with --word-wrap N for streaming output.
  • LLM Title Summarization: Auto-generated conversation titles via LLM when no title is provided.
  • Embedding Cache: Two-tier cache (L1: otter in-memory ≤50k vectors; L2: disk keyed by SHA-256). L2 hits are promoted to L1; unchanged chunks skip recompute entirely during rebuilds.
  • Pipe-Friendly: Full stdin/pipe support (cat file | gleann ask index "review"), auto-raw mode when stdout is piped, --quiet for scripting.
  • No-Cache / No-Limit: --no-cache skips conversation save, --no-limit removes token cap for unlimited output.
  • .gleannignore: Gitignore-style patterns to exclude files during index builds.
  • Config Management: gleann config show/path/edit/validate for easy configuration.
  • Model Context Protocol (MCP) Server: A background service that bridges the gap between your local context and AI tools like Cursor or Claude Desktop.
  • Long-term Memory (BBolt Blocks): Hierarchical short/medium/long-term memory that is automatically injected into every LLM query. Store facts with /remember, browse with /memories.
  • OpenAI-Compatible Proxy: Drop-in replacement for OpenAI API — use any OpenAI SDK with model: "gleann/<index>" for instant RAG.
  • Batch Query (MCP): gleann_batch_ask runs up to 10 questions concurrently against an index in a single round-trip.
  • Rate Limiting & Timeouts: Per-IP token-bucket rate limiting (429) and per-endpoint context deadlines (504) protect the server in production.
  • Retry Logic: Automatic exponential-backoff retry for transient LLM/embedding failures (503, 502, 429, connection refused).
  • Background Maintenance: Scheduler auto-promotes memory blocks between tiers and prunes expired entries.
  • A2A Protocol (Agent-to-Agent): Google's A2A protocol for agent discovery — other AI agents find and communicate with gleann via /.well-known/agent-card.json.
  • Unified Memory API: Single POST /api/memory/ingest + POST /api/memory/recall interface that orchestrates block memory, knowledge graph, and vector search in parallel.
  • Multimodal Detection: Automatically detects and uses multimodal Ollama models (Gemma4, Qwen3-VL, LLaVA) for processing images, audio, and video.
  • Background Task Manager: Monitor long-running operations (indexing, memory consolidation) with progress tracking via GET /api/tasks.
  • Auto-Bootstrap: 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.
  • Cross-Platform Service Management: gleann service install/start/stop/status manages a background server via systemd (Linux), launchd (macOS), or Task Scheduler (Windows).
  • Auto Model Management: Missing models are automatically retrieved with progress tracking.
  • Tiered Model Strategy: Defaults to lightweight models for fast initialization, with the ability to configure larger models for advanced use cases.
  • Terminal User Interface (TUI): A keyboard-centric interface for interacting with indexed data and executing AI operations directly from the shell.

Installation

One-Liner Install (Linux / macOS)

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

Build CLI (includes TUI, REST server, MCP server)

go build -o gleann ./cmd/gleann/

Run setup wizard

./gleann setup ```

Requires Go 1.24+.

Docker

```bash

docker-compose (gleann + Ollama sidecar)

docker-compose up -d

Install to PATH

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

Install gleann-full (FAISS + tree-sitter) to ~/.local/bin/gleann (recommended)

make install-user

Install plain gleann (no FAISS, just tree-sitter) to ~/.local/bin/gleann

make install-user-lite

Install gleann to /usr/local/bin (system-wide, needs sudo)

sudo make install ```

Interactive setup wizard

gleann setup

Build index from documents

gleann index build my-docs --docs ./documents/

Build with AST code graph

gleann index build my-code --docs ./src --graph

Usage

Quick Start

```bash

Zero-friction onboarding: detect Ollama → auto-configure → pull models → index

gleann setup --auto

Or with specific options

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.

Quick auto-configuration (detects Ollama + models)

gleann setup --bootstrap

Configuration management

gleann config show gleann config edit gleann config validate

Start REST API server

gleann serve --port 8080

Open interactive API docs (Swagger UI)

open http://localhost:8080/api/docs ```

Generic Plugin Architecture

Gleann supports external Plugins for parsing complex files via local HTTP APIs. Registry: ~/.gleann/plugins.json.

Gleann vs LEANN — side by side

[LEANN](https://github.com/yichuan-w/LEANN)Gleann
**Language**PythonGo
**Deploy**pip install + venvSingle 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, DiskANNHNSW, DiskANN, FAISS
**Code analysis**AST-aware chunkingAST 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-firstLocal-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.

Ask a question (single-shot)

gleann ask my-docs "Explain the architecture" gleann ask my-docs "Explain the architecture" --interactive

🇨🇳 中文文档镜像 AI 翻译 2026-06-01
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

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 消耗。

🛠 安装步骤(Docker/pip/源码)

推荐使用 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` 命令直接向文档提问。

⚙️ 配置说明(含 MCP / env)

gleann 设计了“零摩擦”的配置体验。通过 `gleann setup --auto` 或 `gleann setup --bootstrap`,系统能够自动识别本地的 Ollama 环境并完成自动配置。用户无需手动编辑复杂的配置文件,即可完成从���型准备到项目索引的全流程自动化设置。

🔌 API 说明

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 等格式的深度提取。

❓ FAQ 摘要

通过 `gleann ask` 命令,你可以实现单次提问(single-shot)或进入交互模式(--interactive)。该功能允许你直接针对已索引的文档内容进行提问,例如“解释一下架构设计”,非常适合用于快速理解复杂代码库或文档。

🎯 aiskill88 AI 点评 B 级 2026-05-23

Gleann是基于Go���轻量级AI工作流框架,性能优势明显。核心特性完整,支持RAG和代理开发。但项目成熟度有限,社区规模较小,适合对Go技术栈有需求的开发者探索。

📚 实用指南(长尾问题)
适合谁
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • embedding 模型与查询模型不一致导致检索失效
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
gleann 中文教程gleann 安装报错怎么办gleann 与同类工具对比gleann 最佳实践gleann 适合谁用

⚡ 核心功能

👥 适合谁
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • embedding 模型与查询模型不一致导致检索失效

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

采用Go开发,具有轻量级、高并发的特点,性能表现优异。
💡 AI Skill Hub 点评

总体来看,gleann Agent工作流 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 gleann Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 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
🔗 原始来源
🐙 GitHub 仓库  https://github.com/tevfik/gleann

收录时间:2026-05-16 · 更新时间:2026-05-24 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →