saige
llms.txt4 starsChanged 5 months agoApache-2.0View on GitHub
A Go SDK and CLI for building AI agents, giving them context and memory, and evaluating them. Combines three packages: agent (streaming AI agent loop with typed deltas, tool dispatch, sub-agents, human-in-the-loop markers, structured output, provider resilience via retry/fallback, conversation tree with branching and compaction, and RLHF feedback), knowledge (LLM-powered knowledge graph construction with PostgreSQL + pgvector and hybrid search), and rag (multi-modal RAG pipelines with chunking, multi-retriever fusion, reranking, HyDE query transformation, and citations). Includes research tools (web search…
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentSkill
- knowledge-graphSkill
- ragSkill
The file
Files
# saige: Super Artificial Intelligence Graph Environment > A Go SDK and CLI for building AI agents, giving them context and memory, and evaluating them. Combines three packages: agent (streaming AI agent loop with typed deltas, tool dispatch, sub-agents, human-in-the-loop markers, structured output, provider resilience via retry/fallback, conversation tree with branching and compaction, and RLHF feedback), knowledge (LLM-powered knowledge graph construction with PostgreSQL + pgvector and hybrid search), and rag (multi-modal RAG pipelines with chunking, multi-retriever fusion, reranking, HyDE query transformation, and citations). Includes research tools (web search via SearXNG, file search/read, knowledge graph CRUD) and an MCP server binary (`saige-mcp`) that exposes tool packs over stdio for Claude Code, Gemini CLI, and other MCP clients. Includes a universal evaluation framework with built-in scorers for text quality, agent performance, RAG relevance, and knowledge graph extraction. Ships a CLI (`saige`) with interactive chat, single-shot queries, and standalone RAG/KG operations. ## Docs - [README](README.md): Overview, installation, quick start - [agent/README.md](agent/README.md): Agent framework: providers, deltas, tools, sub-agents, markers, conversation tree, RLHF feedback, TUI, testing - [rag/knowledge/README.md](rag/knowledge/README.md): Knowledge graph SDK: graph interface, hybrid search, deduplication, PostgreSQL backend - [rag/README.md](rag/README.md): RAG pipelines: data model, chunking, retrieval, reranking, HyDE, metrics, tool bindings - [eval/README.md](eval/README.md): Evaluation framework: scorers, A/B experiments, LLM-as-judge, stream timing - [cmd/saige/README.md](cmd/saige/README.md): CLI reference: chat, ask, rag, kg - [cmd/saige-mcp/README.md](cmd/saige-mcp/README.md): MCP server setup for Claude Code, Codex, Gemini CLI - [tools/research/README.md](tools/research/README.md): Research tools: web search, file ops, knowledge graph CRUD - [examples/README.md](examples/README.md): Runnable example index - [AGENTS.md](AGENTS.md): Architecture, packages, CLI, commands, code style - [CONTRIBUTING.md](CONTRIBUTING.md): Development setup, commit conventions ## Key Files - CLI: cmd/saige/main.go, cmd/saige/chat.go, cmd/saige/ask.go, cmd/saige/rag.go, cmd/saige/kg.go, cmd/saige/provider.go, cmd/saige/connect.go - MCP: cmd/saige-mcp/main.go, cmd/saige-mcp/bridge.go, cmd/saige-mcp/deps.go - Agent: agent/agent.go, agent/types/provider.go, agent/types/tool.go, agent/types/message.go, agent/types/delta.go, agent/types/content.go, agent/types/node.go, agent/types/compactor.go - Tree: agent/tree/tree.go, agent/tree/compact.go, agent/tree/serialize.go - Knowledge: rag/knowledge/config.go, rag/knowledge/types/types.go, rag/knowledge/pgstore/store.go, rag/knowledge/tool/tools.go, rag/knowledge/graph/format.go - RAG: rag/config.go, rag/types/types.go, rag/internal/pipeline/pipeline.go, rag/tool/tools.go - Eval: eval/eval.go, eval/experiment.go, eval/scorer.go, eval/judge.go, eval/textquality.go, agent/eval/scorers.go, rag/knowledge/eval/scorers.go, rag/eval/scorers.go - Research: tools/research/tools.go, tools/research/web_search.go, tools/research/file_search.go, tools/research/read_file.go, tools/research/search_knowledge.go, tools/research/store_knowledge.go, tools/research/get_graph.go - SearXNG: rag/source/searxng/searxng.go - Shared: postgres/pool.go, postgres/migrate.go
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

