better-agents
Standards for building agents, better
Source#
- Repository: langwatch/better-agents
- Last source update: 2026-04-04
- Last verified: 2026-04-05
Tags#
Integration notes#
Repository is focused on tool/server interoperability; wrap in bounded worker contracts for production use.
worker.md example#
Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.
---
id: better-agents-repo-derived-worker
name: better-agents Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/better-agents/
source_repository: https://github.com/langwatch/better-agents
repository_default_branch: main
repository_language: TypeScript
repository_license: MIT
repository_updated_at: 2026-04-04
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-04-05
tags:
- agent-framework
- agent-testing
- ai-agents
- cli
- dev-tool
- lllm
---
# better-agents Repo-Derived Worker
## Repo-derived summary
- Registry summary: Standards for building agents, better
- Repository description: Standards for building agents, better
- Stars (snapshot): 1,506
- Primary language: TypeScript
- Worker mode classification: agent-orchestration-worker
## Extracted from
- https://github.com/langwatch/better-agents
- https://github.com/langwatch/better-agents/blob/main/README.md
- https://docs.langwatch.ai/llm-evaluation/offline/code/evaluation-api
- https://docs.langwatch.ai/prompt-management/cli
- https://docs.anthropic.com/en/docs/agents-and-tools/claude-code-agent
## Evidence notes (from repository text)
- README summary paragraph: Better Agents is a CLI tool and a set of standards for agent building.
- 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:
- ├── app/ (or src/) # The actual agent code, according to the chosen framework
## Installation hints found in README
- `npm install -g @langwatch/better-agents`
## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.
### Input schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"task",
"context"
],
"properties": {
"run_id": {
"type": "string"
},
"task": {
"type": "string"
},
"context": {
"type": "object"
}
}
}
```
### Output schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"status",
"result"
],
"properties": {
"run_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ok",
"retryable_error",
"invalid_request",
"invalid_output"
]
},
"result": {
"type": "object"
}
}
}
```
### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use
## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.
How to use#
- Save this as a worker spec file (for example:
better-agents-my-task.worker.md). - Replace the input/output schemas and purpose with your real bounded task.
- Enforce schema validation + timeout + retry policy in your runtime before production use.
Citation#
Reference URL: https://worker.md/registry/better-agents/
Source URL: https://github.com/langwatch/better-agents