@langwatch/better-agents 0.1.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 LangWatch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,111 @@
1
+ # Better Agents
2
+
3
+ Better Agents is a CLI tool and a set of standards for agent building.
4
+
5
+ It supercharges your coding assistant (Kilocode, Claude Code, Cursor, etc), making it an expert in any agent framework you choose (Agno, Mastra, etc) and all their best practices.
6
+
7
+ It's the best way to start any new agent project.
8
+
9
+ ![](/images/cover-image.png)
10
+
11
+ The Better Agent Structure and generated AGENTS.md ensures industry best practices, making your agent ready for production:
12
+ - [Scenario](https://github.com/langwatch/scenario) agent tests written for every feature to ensure agent behaviour
13
+ - Versioning of the prompts for collaboration
14
+ - Evaluation notebooks for measuring specific prompts performance
15
+ - Already instrumented for full observability
16
+ - Standardization of structure for better project maintainability
17
+
18
+ ## The Better Agent Structure
19
+
20
+ ```
21
+ my-agent-project/
22
+ ├── app/ (or src/) # The actual agent code, according to the chosen framework
23
+ ├── tests/
24
+ │ ├── evaluations/ # Jupyter notebooks for evaluations
25
+ │ │ └── example_eval.ipynb
26
+ │ └── scenarios/ # End-to-end scenario tests
27
+ │ └── example_scenario.test.{py,ts}
28
+ ├── prompts/ # Versioned prompt files for team collaboration
29
+ │ └── sample_prompt.yaml
30
+ ├── prompts.json # Prompt registry
31
+ ├── .mcp.json # MCP server configuration
32
+ ├── AGENTS.md # Development guidelines
33
+ ├── .env # Environment variables
34
+ └── .gitignore
35
+ ```
36
+
37
+ 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.
38
+
39
+ The `.mcp.json` comes with all the right MCPs set up so you coding assistant becomes an expert in your framework of choice and know where to find new tools.
40
+
41
+ [`scenarios/`](https://github.com/langwatch/scenario) tests guarantee the agent behaves as expected, which simulates a conversation with the agent making sure it does what expected.
42
+
43
+ [`evaluations/`](https://docs.langwatch.ai/llm-evaluation/offline/code/evaluation-api) notebooks holds dataset and notebooks for evaluating pieces of your agent pipeline such as a RAG or classification tasks it must do
44
+
45
+ Finally, [`prompts/`](https://docs.langwatch.ai/prompt-management/cli) hold all your versioned prompts in yaml format, synced and controlled by `prompts.json`, to allow for playground and team collaboration.
46
+
47
+ ## Getting Started
48
+
49
+ ### Installation
50
+
51
+ ```bash
52
+ npm install -g @langwatch/better-agents
53
+ ```
54
+
55
+ Or use with npx:
56
+
57
+ ```bash
58
+ npx @langwatch/better-agents init my-agent-project
59
+ ```
60
+
61
+ ### Initialize a new project
62
+
63
+ ```bash
64
+ # In current directory
65
+ better-agents init .
66
+
67
+ # In a new directory
68
+ better-agents init my-awesome-agent
69
+ ```
70
+
71
+ The CLI will guide you through selecting your programming language, agent framework, coding assistant, LLM provider, and API keys.
72
+
73
+ ## Documentation
74
+
75
+ - **[Getting Started](docs/GETTING-STARTED.md)** - Quick start guide (2 minutes)
76
+ - **[Walkthrough](docs/WALKTHROUGH.md)** - Detailed step-by-step guide
77
+ - **[Project Structure](docs/STRUCTURE.md)** - Understanding the Better Agent structure
78
+ - **[Features](docs/FEATURES.md)** - Key features and capabilities
79
+ - **[Usage](docs/USAGE.md)** - CLI usage and examples
80
+ - **[Philosophy](docs/PHILOSOPHY.md)** - Agent Testing Pyramid approach
81
+ - **[Contributing](docs/CONTRIBUTING.md)** - How to contribute to Better Agents
82
+ - **[Changelog](CHANGELOG.md)** - Version history
83
+
84
+ ## Requirements
85
+
86
+ - Node.js 22+
87
+ - npm or pnpm
88
+ - A coding assistant (one of the following):
89
+ - [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code-agent) (`claude` CLI)
90
+ - [Cursor](https://www.cursor.com/)
91
+ - [Kilocode CLI](https://www.kilocode.ai/) (`kilocode`)
92
+ - API Keys:
93
+ - Your chosen LLM Provider API key
94
+ - LangWatch API key (get one at https://app.langwatch.ai/authorize)
95
+ - Smithery API key (optional - for MCP tool auto-discovery, get one at https://smithery.ai/account/api-keys)
96
+
97
+ ## Resources
98
+
99
+ - [LangWatch](https://langwatch.ai)
100
+ - [Scenario Documentation](https://scenario.langwatch.ai/)
101
+ - [Agent Testing Pyramid](https://scenario.langwatch.ai/best-practices/the-agent-testing-pyramid)
102
+ - [Agno](https://agno.com)
103
+ - [Mastra](https://mastra.ai)
104
+
105
+ ## License
106
+
107
+ MIT
108
+
109
+ ---
110
+
111
+ Built with ❤️ by the LangWatch team
@@ -0,0 +1,2 @@
1
+
2
+ export { }