LLM-Agents-Ecosystem-Handbook

oxbshwMIT更新放缓

一本覆盖 LLM Agent 全流程的实战手册,提供 60+ 代码骨架、教程、生态指南和评测工具,帮你从零搭建、部署并理解智能体系统。

One-stop handbook for building, deploying, and understanding LLM agents with 60+ skeletons, tutorials, ecosystem guides, and evaluation tools.

暂无版本558star93fork同步于 2026-11-07 07:29 UTC

怎么上手

由 README 提炼,执行前请确认
from utilities import get_provider
out = get_provider("groq").chat([{"role": "user", "content": "Summarize MCP."}], model="llama-3.1-8b-instant")
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

构建与部署 LLM Agent 的一站式手册,涵盖概念、模板、适配器与评测

一本覆盖 LLM Agent 全流程的实战手册,提供 60+ 代码骨架、教程、生态指南和评测工具,帮你从零搭建、部署并理解智能体系统。

核心能力

  • 提供 24+ 家 LLM 提供商的 LLMProvider 抽象与路由回退链
  • 给出 Agent OS 分层概念:身份、记忆、技能、MCP、安全、可观测性
  • 附带 AGENTS.md、SOUL.md、MEMORY.md、SKILL.md 等可复用模板
  • 收录 100+ 个 Agent 骨架与框架对比、评测工具目录
  • 提供提示词工程、注入防御与编码 Agent 工作流指南

容易踩的坑

调用提供商需自备对应 API Key 与网络访问;本地运行时(Ollama、vLLM 等)需自行部署模型;仓库以文档和模板为主,示例代码需按目录自行安装依赖

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    LLM Agents Ecosystem Handbook

    A practical operating manual for building, evaluating, securing, and shipping modern LLM agent systems.

    Awesome License: MIT PRs Welcome LLM-Friendly Providers


    Modern agents are not "a prompt + a tool." They are systems — with identity, memory, skills, tools, MCP integrations, guardrails, observability, evals, and a provider strategy. This handbook teaches the whole stack and ships templates, blueprints, runnable adapters, and curated examples you can adopt today.

    What's in this repo

    A curated, opinionated, production-oriented handbook in seven parts:

    1. Concepts — Agent OS, identity, memory, skills, MCP, safety, observability — every layer of the modern agent stack
    2. Provider ecosystem — adapters + docs for 24+ LLM providers (frontier APIs, fast inference, marketplaces, enterprise clouds, specialty, local runtimes), with a router for fallback chains
    3. Skills ecosystem — design guide, taxonomy, maturity model, security checklist, and a curated skill catalog
    4. Prompt engineering — agent prompt patterns, instruction hierarchy, context engineering, prompt-injection defense
    5. Coding-agent workflows — for Claude Code, Cursor, Codex, Aider, Cline, and custom runtimes — repo instructions, prompts, review checklist, safe refactoring
    6. Design docs — agent / technical design docs, ADR guide, design reviews, rollout plans, the DESIGN.md machine-readable spec
    7. Curated catalog — 100+ existing agent skeletons, framework comparisons, evaluation tools, tutorials — preserved and improved

    Who this is for

    You are…Start at
    New to agentsdocs/beginners_guide.md → agent_os/README.md
    Building a production agentblueprints/ → checklists/production_readiness_checklist.md
    Picking / wiring providersproviders/README.md → providers/provider_matrix.md
    Comparing frameworksdocs/framework_comparison.md
    Adding memory / RAGmemory/ → tutorials/rag_tutorials
    Adding MCPmcp/ → mcp/mcp_security.md
    Designing Skillsskills/ → skills/skill_design_guide.md
    Working with coding agentscoding_agents/ → coding_agents/prompts/
    Writing better promptsprompt_engineering/
    Designing & rolling outdesign_docs/
    Hardening safety/evalssafety/ → evals/
    Coding agent reading this repollms.txt → llm_wiki/index.md

    Modern Agent Stack

    LayerPurposeWhere in this repo
    Model / ProviderLLM choice + abstraction + routingproviders/
    OrchestrationAgent loops, planning, handoffsdocs/framework_comparison.md, blueprints/
    ToolFunction calling and external actionsagent_os/mcp_layer.md
    MCPStandardized external context and toolsmcp/
    MemoryDurable user/project/semantic memorymemory/
    SkillsReusable, progressive-loading workflowsskills/
    IdentityPersonality, mission, refusal styleagent_os/agent_identity.md, templates/
    PromptSystem prompt design, instruction hierarchy, defensesprompt_engineering/
    SafetyGuardrails, approvals, policysafety/
    ObservabilityTracing, spans, cost, latency, evalsobservability/, evals/
    DeploymentShipping agents to productiondesign_docs/rollout_plan.md
    Coding-agent harnessClaude Code, Cursor, Codex, Aider, Clinecoding_agents/

    📖 Deep dive: agent_os/README.md


    Provider ecosystem

    The handbook ships an LLMProvider abstraction with 24+ providers across six families. Most providers go through a single OpenAI-compatible code path; specialty / local providers are first-class.

    Provider typeExamplesBest for
    Frontier APIsOpenAI, Anthropic, Google GeminiReasoning, tool use, production agents
    Fast inferenceGroq, Cerebras, SambaNovaLow-latency workloads
    MarketplacesOpenRouter, Together, Fireworks, DeepInfraModel choice and routing
    Enterprise cloudsAzure OpenAI, AWS Bedrock, Vertex AICompliance, governance
    SpecialtyxAI, Perplexity, Mistral, Cohere, DeepSeek, Hugging Face, Replicate, NVIDIA NIM, MiniMaxDomain-specific
    Local runtimesOllama, LM Studio, vLLM, llama.cppPrivacy, cost control, offline dev

    If you want a governed OpenAI-compatible control plane in front of those providers, Tuning Engines is a useful runtime option for policy enforcement, approval gates, MCP and agent tracing, and usage or cost visibility without changing the surrounding agent framework.

    Quick start:

    from utilities import get_provider
    from utilities.provider_router import ProviderRouter
    
    # Use any single provider
    out = get_provider("groq").chat(
        [{"role": "user", "content": "Summarize MCP."}],
        model="llama-3.1-8b-instant",
    )
    
    # Or route by task class with fallback
    router = ProviderRouter()
    out = router.chat(messages, task_class="cheap")  # Groq → DeepSeek → Together → OpenRouter
    

    📖 providers/README.md • providers/provider_matrix.md • providers/router_patterns.md • providers/local_models.md


    Repository map

    .
    ├── README.md • llms.txt • llms-full.txt
    ├── agent_os/                ← the Agent OS concept, layers, workspace examples
    ├── providers/               ← 24+ provider docs + adapters + router patterns
    ├── templates/               ← AGENTS.md / SOUL.md / MEMORY.md / SKILL.md / DESIGN_DOC / ADR / …
    ├── skills/                  ← design guide + taxonomy + maturity model + curated catalog + 4 examples
    ├── memory/                  ← memory taxonomy, distillation, security, examples
    ├── mcp/                     ← MCP basics, architecture, security, server catalog, examples
    ├── prompt_engineering/      ← agent prompt patterns, instruction hierarchy, defenses
    ├── coding_agents/           ← Claude Code, Cursor, Codex, workflows, prompts, review
    ├── design_docs/             ← agent + technical design docs, ADR guide, design.md spec
    ├── safety/                  ← guardrails, approvals, prompt injection, secure checklist
    ├── observability/           ← tracing, spans, cost/latency, dashboards
    ├── evals/                   ← eval design, regression / tool / memory / MCP / safety / prompt
    ├── blueprints/              ← production architectures by use case
    ├── examples/                ← end-to-end runnable agent workspaces
    ├── checklists/              ← agent design, prod readiness, MCP security, …
    ├── llm_wiki/                ← LLM-friendly index, glossary, matrices, wiki pattern
    ├── docs/                    ← framework comparison, best practices, beginners' guide
    ├── tutorials/               ← RAG, memory, fine-tuning, chat-with-X
    ├── utilities/               ← LLMProvider + router + provider_config
    ├── agents/                  ← 100+ curated agent skeletons (preserved)
    ├── complete_apps/, web_apps/, notebooks/, datasets/, design/, resources/, scripts/, tests/, ecosystem/
    └── .github/                 ← issue / PR templates
    

    Skills ecosystem

    A curated, in-repo catalog plus a clear taxonomy and maturity model:

    Curated skills shipped: research-summarizer, repo-auditor, mcp-security-reviewer, agent-memory-curator, api-design-reviewer, pr-summarizer, adr-writer, incident-postmortem, sprint-planner, dataset-profiler.


    Prompt engineering

    A dedicated section, agent-focused:

    Templates: SYSTEM_PROMPT, AGENT_PROMPT. Checklist: agent_prompt_checklist.


    Use this repo with coding agents

    The handbook is itself a great surface for coding agents. Drop your favorite tool (Claude Code, Cursor, Codex, Aider, Cline) into the repo:

    The guidance is tool-neutral: same AGENTS.md, same workflows, regardless of harness.


    Design docs

    Agent + technical design docs, ADRs, reviews, rollouts, and the DESIGN.md machine-readable spec for design tokens:

    Templates: DESIGN_DOC, ADR.


    Frameworks at a glance

    FrameworkBest forLangMCPTracing
    OpenAI Agents SDKProduction agentsPy / JS✅✅ built-in
    LangGraphStateful, branching graphsPy / JS✅✅ LangSmith
    CrewAIRole-based teamsPy✅⚠️ via partners
    AutoGen (AG2)Event-driven multi-agent + HITLPy⚠️ partial✅
    LlamaIndex WorkflowsData-heavy / RAG-firstPy / TS✅✅
    Pydantic AIType-safe, FastAPI-nativePy✅✅ Logfire
    SmolagentsCode-execution mini-agentsPy⚠️basic
    Semantic Kernel.NET / enterprise / AzureC# / Py / Java✅✅
    DSPyProgrammatic prompt optimizationPy—✅
    Strands AgentsProvider-agnostic, OpenTelemetryPy✅✅ OTEL
    Vercel AI SDKApp-layer agents in Next.jsTS / JS✅✅
    Google ADKGemini / Vertex hierarchical toolsPy✅✅

    📖 Full comparison + decision tree: docs/framework_comparison.md. Capability tags hedged: verify against current upstream docs.


    Skills, MCP, and Memory in one minute

    • Skills are reusable, model-loaded workflows (SKILL.md + scripts + references). Use when a task is repeatable, multi-step, and benefits from progressive disclosure. → skills/
    • MCP (Model Context Protocol) is a standard for exposing tools/context to any agent. Use when integrations should be reusable (GitHub, filesystem, browser, internal APIs). → mcp/
    • Memory is durable state across runs (MEMORY.md, vector stores, decision logs). → memory/

    A useful rule of thumb:

    If the thing is…Use
    A repeatable workflow with steps and referencesSkill
    An external system with tools to callMCP server
    State that should outlive the current runMemory
    A single function the model needs oncePlain tool

    📖 Decision matrix: skills/skill_vs_tool_vs_mcp.md


    Guardrails & safety

    Production agents need risk-tiered tool controls and human approval gates for high-impact actions.

    Risk levelExamplesApproval
    Lowread-only search, summarizationnone
    Mediumdrafting files, creating ticketssometimes
    Highsending email, modifying repos, running shellrequired
    Criticaldeleting data, spending money, changing permissionsalways + audit

    📖 safety/README.md • safety/prompt_injection.md • safety/secure_agent_checklist.md


    Observability & evals

    You cannot ship what you cannot measure. The handbook ships:


    Templates (copy-paste ready)

    FilePurpose
    AGENTS.mdRepo-specific agent instructions
    SOUL.mdIdentity, voice, values, refusal style
    MEMORY.mdDurable project + user memory index
    USER.mdUser profile and preferences
    TOOLS.mdAllowed/restricted/approval-gated tools
    SKILL.mdSkill spec with progressive loading
    MCP_SERVER.mdDocumenting an MCP integration
    SYSTEM_PROMPT.mdLong-lived system prompt
    AGENT_PROMPT.mdPer-task / per-session prompt
    DESIGN_DOC.mdAgent / technical design doc
    ADR.mdArchitecture Decision Record
    EVAL_PLAN.mdWhat you'll evaluate and how
    GUARDRAILS.mdPolicy, refusals, escalation
    HUMAN_APPROVAL_POLICY.mdWho approves what
    CODING_AGENT_TASK.mdTask contract for coding agents
    REPO_MODERNIZATION_PROMPT.mdMulti-phase modernization
    AGENT_RELEASE_CHECKLIST.mdShip/no-ship gate

    Merged knowledge areas (1.0.1)

    This release merged seven external projects into the handbook. Each was adapted (not bulk-copied) into the structure above:

    Source themeLives in
    Skills catalog + taxonomy patternsskills/ — taxonomy, maturity, packaging, validation, awesome catalog
    Personal-wiki / self-maintaining KBllm_wiki/wiki_pattern.md, docs/llm_readable_docs.md
    Agent prompt research patternsprompt_engineering/
    Production coding-agent prompts + workflowscoding_agents/ — prompts, workflows, review
    Machine-readable design specsdesign_docs/design_md_spec.md, templates/DESIGN_DOC.md.template
    ADRs + design reviewsdesign_docs/adr_guide.md, design_docs/design_review.md

    📖 Full migration plan: MIGRATION_AND_PROVIDER_EXPANSION_PLAN.md


    Supported LLM providers

    The utilities/llm_provider.py module exposes a single LLMProvider interface (and a backwards-compatible complete() function). Switch via LLM_PROVIDER without touching agent code; route automatically with ProviderRouter.

    24+ providers across frontier / fast / marketplace / enterprise / specialty / local. See:


    Contributing

    Contributions are very welcome — new examples, framework updates, fixes, and translations all help. Start with:

    Roadmap & changelog

    License

    MIT — see LICENSE.

    Maintainer

    Curated & maintained by Sayed Allam (oxbshw). If this handbook helped you ship, please ⭐ the repo and open a PR with what you learned along the way.