better-agents

langwatchMIT更新放缓

一套构建 AI Agent 的规范与配套 CLI 工具,帮开发者统一 Agent 的开发和测试流程,避免各写各的。

Standards for building agents, better

v0.1.23发布于 2026-02-22 13:00 UTC1,560star148fork同步于 2026-11-07 07:29 UTC

怎么上手

由 README 提炼,执行前请确认
npm install -g @langwatch/better-agents
better-agents init my-awesome-agent
硬件要求按 README 说明

README 未说明,仅要求 Node.js 22+ 与 npm 或 pnpm,无需本地 GPU

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

项目说明

由 README 自动翻译提炼

给编码助手装上所选 Agent 框架最佳实践的 CLI 脚手架,一键生成可上生产的标准项目结构

一套构建 AI Agent 的规范与配套 CLI 工具,帮开发者统一 Agent 的开发和测试流程,避免各写各的。

核心能力

  • 按所选框架生成 app/、tests/、prompts/ 标准目录
  • 生成 AGENTS.md 开发规范约束编码助手行为
  • 内置 Scenario 端到端对话测试保证 Agent 行为
  • 提供 evaluations 笔记本评估 RAG、分类等环节
  • prompts 以 YAML 版本化并由 prompts.json 统一管理

容易踩的坑

需先准备 LangWatch API key 和所选 LLM 提供商的 API key;必须已安装 Claude Code、Cursor、Antigravity 或 Kilocode 之一作为编码助手;默认开启匿名遥测,可用 BETTER_AGENTS_TELEMETRY=0 关闭

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

最近发版

5 个版本v0.1.23
  1. v0.1.23最新正式版2026-02-22 · 2026-02-22 13:00 UTC

    0.1.23 (2026-02-22)

    Features

    • pass LANGWATCH_API_KEY to MCP server config (#84) (8ab576e)
  2. v0.1.22pre-release2026-01-13 · 2026-01-13 09:57 UTC
    查看更新说明

    0.1.22 (2026-01-13)

    Features

    Bug Fixes

    • add missing AI SDK framework option in documentation generation (#80) (5d3ee08)
    • add missing Vercel AI SDK framework option in documentation generation (5d3ee08)

    Miscellaneous

  3. v0.1.212025-12-11 · 2025-12-11 14:47 UTC
    查看更新说明

    0.1.20 (2025-12-11)

    Features

    • add non-interactive mode with CLI options (#77) (0ff5bd1)

    Miscellaneous

  4. v0.1.202025-12-10 · 2025-12-10 10:10 UTC
    查看更新说明

    0.1.20 (2025-12-09)

    Features

    Bug Fixes

  5. v0.1.192025-12-04 · 2025-12-04 14:43 UTC
    查看更新说明

    0.1.19 (2025-12-04)

    Features

    Bug Fixes

用户点评

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

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

    README 原文

    未翻译

    Better Agents

    Better Agents is a CLI tool and a set of standards for agent building.

    It supercharges your coding assistant (Kilocode, Claude Code, Cursor, etc), making it an expert in any agent framework you choose (Agno, Mastra, LangGraph etc) and all their best practices.

    It's the best way to start any new agent project.

    The Better Agent Structure and generated AGENTS.md ensures industry best practices, making your agent ready for production:

    • Scenario agent tests written for every feature to ensure agent behaviour
    • Versioning of the prompts for collaboration
    • Evaluation notebooks for measuring specific prompts performance
    • Already instrumented for full observability
    • Standardization of structure for better project maintainability

    The Better Agent Structure

    my-agent-project/
    ├── app/ (or src/)           # The actual agent code, according to the chosen framework
    ├── tests/
    │   ├── evaluations/         # Jupyter notebooks for evaluations
    │   │   └── example_eval.ipynb
    │   └── scenarios/           # End-to-end scenario tests
    │       └── example_scenario.test.{py,ts}
    ├── prompts/                 # Versioned prompt files for team collaboration
    │   └── sample_prompt.yaml
    ├── prompts.json             # Prompt registry
    ├── .mcp.json                # MCP server configuration
    ├── AGENTS.md                # Development guidelines
    ├── .env                     # Environment variables
    └── .gitignore
    

    The structure and guidelines on AGENTS.md ensure every new feature required for the coding assistant is properly tested, evaluated, and that the prompts are versioned.

    The .mcp.json comes with all the right MCPs set up so you coding assistant becomes an expert in your framework of choice and in writing Scenario tests for your agent.

    scenarios/ tests guarantee the agent behaves as expected, which simulates a conversation with the agent making sure it does what expected.

    evaluations/ notebooks holds dataset and notebooks for evaluating pieces of your agent pipeline such as a RAG or classification tasks it must do

    Finally, prompts/ hold all your versioned prompts in yaml format, synced and controlled by prompts.json, to allow for playground and team collaboration.

    Getting Started

    Installation

    npm install -g @langwatch/better-agents
    

    Or use with npx:

    npx @langwatch/better-agents init my-agent-project
    

    Initialize a new project

    # In current directory
    better-agents init .
    
    # In a new directory
    better-agents init my-awesome-agent
    

    The CLI will guide you through selecting your programming language, agent framework, coding assistant, LLM provider, and API keys.

    Documentation

    Requirements

    • Node.js 22+
    • npm or pnpm
    • A coding assistant (one of the following):
    • API Keys:
    • Telemetry (optional):
      • Anonymous usage telemetry is enabled by default.
      • To opt out, set the environment variable:
        BETTER_AGENTS_TELEMETRY=0
        

    Resources

    License

    MIT


    Built with ❤️ by the LangWatch team