agent-launchpad 0.1.0__tar.gz
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.
- agent_launchpad-0.1.0/.gitignore +227 -0
- agent_launchpad-0.1.0/LICENSE +21 -0
- agent_launchpad-0.1.0/PKG-INFO +105 -0
- agent_launchpad-0.1.0/README.md +88 -0
- agent_launchpad-0.1.0/example/.agent-launchpad.toml +3 -0
- agent_launchpad-0.1.0/example/.claude/skills/eval-draft/SKILL.md +13 -0
- agent_launchpad-0.1.0/example/.env.example +63 -0
- agent_launchpad-0.1.0/example/.python-version +1 -0
- agent_launchpad-0.1.0/example/Dockerfile +21 -0
- agent_launchpad-0.1.0/example/README.md +110 -0
- agent_launchpad-0.1.0/example/app/__init__.py +1 -0
- agent_launchpad-0.1.0/example/app/agent.py +367 -0
- agent_launchpad-0.1.0/example/app/approvals.py +188 -0
- agent_launchpad-0.1.0/example/app/db.py +85 -0
- agent_launchpad-0.1.0/example/app/decisions.py +231 -0
- agent_launchpad-0.1.0/example/app/demo.py +76 -0
- agent_launchpad-0.1.0/example/app/guards.py +289 -0
- agent_launchpad-0.1.0/example/app/hooks.py +79 -0
- agent_launchpad-0.1.0/example/app/llm.py +298 -0
- agent_launchpad-0.1.0/example/app/main.py +140 -0
- agent_launchpad-0.1.0/example/app/mcp_server.py +44 -0
- agent_launchpad-0.1.0/example/app/recipes.py +38 -0
- agent_launchpad-0.1.0/example/app/runtime.py +108 -0
- agent_launchpad-0.1.0/example/app/static/index.html +242 -0
- agent_launchpad-0.1.0/example/app/store.py +147 -0
- agent_launchpad-0.1.0/example/app/telemetry.py +56 -0
- agent_launchpad-0.1.0/example/app/tracing.py +195 -0
- agent_launchpad-0.1.0/example/data/store.json +508 -0
- agent_launchpad-0.1.0/example/docker-compose.yml +42 -0
- agent_launchpad-0.1.0/example/evals/DRAFTING.md +33 -0
- agent_launchpad-0.1.0/example/evals/__init__.py +1 -0
- agent_launchpad-0.1.0/example/evals/baseline.py +127 -0
- agent_launchpad-0.1.0/example/evals/cases/heldout.jsonl +24 -0
- agent_launchpad-0.1.0/example/evals/cases/regression.jsonl +50 -0
- agent_launchpad-0.1.0/example/evals/cases/tuning.jsonl +24 -0
- agent_launchpad-0.1.0/example/evals/compare.py +72 -0
- agent_launchpad-0.1.0/example/evals/drafts.py +269 -0
- agent_launchpad-0.1.0/example/evals/grounding.py +140 -0
- agent_launchpad-0.1.0/example/evals/judge.py +155 -0
- agent_launchpad-0.1.0/example/evals/judge_check.py +386 -0
- agent_launchpad-0.1.0/example/evals/judge_labels.jsonl +56 -0
- agent_launchpad-0.1.0/example/evals/judges.py +98 -0
- agent_launchpad-0.1.0/example/evals/rescore.py +56 -0
- agent_launchpad-0.1.0/example/evals/results/README.md +769 -0
- agent_launchpad-0.1.0/example/evals/run.py +226 -0
- agent_launchpad-0.1.0/example/evals/schema.py +92 -0
- agent_launchpad-0.1.0/example/evals/scorer.py +70 -0
- agent_launchpad-0.1.0/example/evals/stats.py +58 -0
- agent_launchpad-0.1.0/example/pyproject.toml +104 -0
- agent_launchpad-0.1.0/example/tests/__init__.py +0 -0
- agent_launchpad-0.1.0/example/tests/conftest.py +26 -0
- agent_launchpad-0.1.0/example/tests/fakes.py +54 -0
- agent_launchpad-0.1.0/example/tests/test_agent.py +167 -0
- agent_launchpad-0.1.0/example/tests/test_api_and_mcp.py +97 -0
- agent_launchpad-0.1.0/example/tests/test_approvals.py +120 -0
- agent_launchpad-0.1.0/example/tests/test_approvals_postgres.py +118 -0
- agent_launchpad-0.1.0/example/tests/test_baseline.py +88 -0
- agent_launchpad-0.1.0/example/tests/test_cascade.py +221 -0
- agent_launchpad-0.1.0/example/tests/test_cases.py +54 -0
- agent_launchpad-0.1.0/example/tests/test_decisions.py +317 -0
- agent_launchpad-0.1.0/example/tests/test_demo.py +33 -0
- agent_launchpad-0.1.0/example/tests/test_drafts.py +209 -0
- agent_launchpad-0.1.0/example/tests/test_guards.py +172 -0
- agent_launchpad-0.1.0/example/tests/test_guards_postgres.py +80 -0
- agent_launchpad-0.1.0/example/tests/test_health.py +32 -0
- agent_launchpad-0.1.0/example/tests/test_judge.py +145 -0
- agent_launchpad-0.1.0/example/tests/test_judge_check.py +96 -0
- agent_launchpad-0.1.0/example/tests/test_lifecycle.py +91 -0
- agent_launchpad-0.1.0/example/tests/test_live_runner.py +61 -0
- agent_launchpad-0.1.0/example/tests/test_live_runs.py +266 -0
- agent_launchpad-0.1.0/example/tests/test_llm.py +261 -0
- agent_launchpad-0.1.0/example/tests/test_postgres.py +110 -0
- agent_launchpad-0.1.0/example/tests/test_postgres_warmup.py +36 -0
- agent_launchpad-0.1.0/example/tests/test_rescore.py +146 -0
- agent_launchpad-0.1.0/example/tests/test_scorer.py +110 -0
- agent_launchpad-0.1.0/example/tests/test_stats.py +77 -0
- agent_launchpad-0.1.0/example/tests/test_store.py +192 -0
- agent_launchpad-0.1.0/example/tests/test_tracing.py +139 -0
- agent_launchpad-0.1.0/example/uv.lock +1767 -0
- agent_launchpad-0.1.0/pyproject.toml +55 -0
- agent_launchpad-0.1.0/src/agent_launchpad/__init__.py +8 -0
- agent_launchpad-0.1.0/src/agent_launchpad/__main__.py +5 -0
- agent_launchpad-0.1.0/src/agent_launchpad/add.py +152 -0
- agent_launchpad-0.1.0/src/agent_launchpad/cli.py +255 -0
- agent_launchpad-0.1.0/src/agent_launchpad/generate.py +264 -0
- agent_launchpad-0.1.0/src/agent_launchpad/update.py +163 -0
- agent_launchpad-0.1.0/template/README.md +13 -0
- agent_launchpad-0.1.0/template/recipes/approvals.toml +3 -0
- agent_launchpad-0.1.0/template/recipes/demo.toml +3 -0
- agent_launchpad-0.1.0/template/recipes/guards.toml +7 -0
- agent_launchpad-0.1.0/template/recipes/postgres.toml +3 -0
- agent_launchpad-0.1.0/template/recipes/tracing.toml +3 -0
- agent_launchpad-0.1.0/tests/test_add.py +126 -0
- agent_launchpad-0.1.0/tests/test_cli.py +212 -0
- agent_launchpad-0.1.0/tests/test_generate.py +107 -0
- agent_launchpad-0.1.0/tests/test_update.py +167 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
*.lcov
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# uv
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi/*
|
|
127
|
+
!.pixi/config.toml
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule*
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# Redis
|
|
137
|
+
*.rdb
|
|
138
|
+
*.aof
|
|
139
|
+
*.pid
|
|
140
|
+
|
|
141
|
+
# RabbitMQ
|
|
142
|
+
mnesia/
|
|
143
|
+
rabbitmq/
|
|
144
|
+
rabbitmq-data/
|
|
145
|
+
|
|
146
|
+
# ActiveMQ
|
|
147
|
+
activemq-data/
|
|
148
|
+
|
|
149
|
+
# SageMath parsed files
|
|
150
|
+
*.sage.py
|
|
151
|
+
|
|
152
|
+
# Environments
|
|
153
|
+
.env
|
|
154
|
+
.envrc
|
|
155
|
+
.venv
|
|
156
|
+
env/
|
|
157
|
+
venv/
|
|
158
|
+
ENV/
|
|
159
|
+
env.bak/
|
|
160
|
+
venv.bak/
|
|
161
|
+
|
|
162
|
+
# Conda environments
|
|
163
|
+
conda-meta/
|
|
164
|
+
|
|
165
|
+
# Spyder project settings
|
|
166
|
+
.spyderproject
|
|
167
|
+
.spyproject
|
|
168
|
+
|
|
169
|
+
# Rope project settings
|
|
170
|
+
.ropeproject
|
|
171
|
+
|
|
172
|
+
# mkdocs/Zensical documentation
|
|
173
|
+
/site
|
|
174
|
+
|
|
175
|
+
# mypy
|
|
176
|
+
.mypy_cache/
|
|
177
|
+
.dmypy.json
|
|
178
|
+
dmypy.json
|
|
179
|
+
|
|
180
|
+
# Pyre type checker
|
|
181
|
+
.pyre/
|
|
182
|
+
|
|
183
|
+
# pytype static type analyzer
|
|
184
|
+
.pytype/
|
|
185
|
+
|
|
186
|
+
# Cython debug symbols
|
|
187
|
+
cython_debug/
|
|
188
|
+
|
|
189
|
+
# PyCharm
|
|
190
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
191
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
192
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
193
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
194
|
+
# .idea/
|
|
195
|
+
|
|
196
|
+
# Abstra
|
|
197
|
+
# Abstra is an AI-powered process automation framework.
|
|
198
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
199
|
+
# Learn more at https://abstra.io/docs
|
|
200
|
+
.abstra/
|
|
201
|
+
|
|
202
|
+
# Visual Studio Code
|
|
203
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
|
|
204
|
+
# can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
205
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer, you
|
|
206
|
+
# could uncomment the following to ignore the entire vscode folder
|
|
207
|
+
# .vscode/
|
|
208
|
+
# Temporary file for partial code execution
|
|
209
|
+
tempCodeRunnerFile.py
|
|
210
|
+
|
|
211
|
+
# Ruff stuff:
|
|
212
|
+
.ruff_cache/
|
|
213
|
+
|
|
214
|
+
# PyPI configuration file
|
|
215
|
+
.pypirc
|
|
216
|
+
|
|
217
|
+
# Marimo
|
|
218
|
+
marimo/_static/
|
|
219
|
+
marimo/_lsp/
|
|
220
|
+
__marimo__/
|
|
221
|
+
|
|
222
|
+
# Streamlit
|
|
223
|
+
.streamlit/secrets.toml
|
|
224
|
+
|
|
225
|
+
# Local eval runs (results are recorded by hand in evals/results/README.md)
|
|
226
|
+
.eval-runs/
|
|
227
|
+
.eval-runs-summary.txt
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Domingos Pelezo
|
|
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.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agent-launchpad
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An eval-first agent starter: generate a tested agent project with the recipes you choose.
|
|
5
|
+
Project-URL: Repository, https://github.com/dpelezo/agent-launchpad
|
|
6
|
+
Project-URL: Demo, https://agent-launchpad-production.up.railway.app/
|
|
7
|
+
Author: Domingos Pelezo
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
15
|
+
Requires-Python: >=3.11
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# agent-launchpad
|
|
19
|
+
|
|
20
|
+
[](https://github.com/dpelezo/agent-launchpad/actions/workflows/ci.yml) [](https://github.com/dpelezo/agent-launchpad/actions/workflows/security.yml)
|
|
21
|
+
|
|
22
|
+
**Confidence you can measure.** agent-launchpad takes an agent idea to a live demo with a real accuracy number, in a day, on free tiers.
|
|
23
|
+
|
|
24
|
+
One command gives you a working agent, a demo chat page, an eval set with held-out cases, CI, a daily spending cap and a deploy guide. For each decision your agent makes (which model, which router, which guard), it gives you a researched shortlist and a way to compare them on your own cases, so you choose from your own numbers.
|
|
25
|
+
|
|
26
|
+
> **Status:** 0.1.0, early. The [example agent](example/) is what `create --all` generates, and it's [live](https://agent-launchpad-production.up.railway.app/) with Postgres, a daily dollar cap, a rate limit and an approval gate. What's next is in the [milestones](https://github.com/dpelezo/agent-launchpad/milestones).
|
|
27
|
+
|
|
28
|
+
## Get started
|
|
29
|
+
|
|
30
|
+
You need [uv](https://docs.astral.sh/uv/) (and git, for `update`).
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
uvx agent-launchpad create my-agent # asks which recipes you want
|
|
34
|
+
cd my-agent
|
|
35
|
+
cp .env.example .env # then fill in the values it lists
|
|
36
|
+
uv run pytest -m unit # no model, no network
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
`uvx` runs it once without installing; `uv tool install agent-launchpad` keeps the `agent-launchpad` command for `add`, `update` and `eval` later.
|
|
40
|
+
|
|
41
|
+
| Command | What it does |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `agent-launchpad recipes` | Lists the recipes (postgres, guards, approvals, tracing, demo) and what each requires |
|
|
44
|
+
| `agent-launchpad create DIR [--recipes a,b \| --all \| --core]` | A new project. Every combination of recipes passes its own lint, types and tests in CI |
|
|
45
|
+
| `agent-launchpad add RECIPE...` | Adds recipes to your project, keeping your edits ([ADR 0006](docs/adr/0006-recipes-plug-in-through-hooks.md)) |
|
|
46
|
+
| `agent-launchpad update` | Merges a newer template into your project three ways, keeping your edits ([ADR 0007](docs/adr/0007-update-merges-three-ways.md)) |
|
|
47
|
+
| `agent-launchpad eval draft \| check \| review` | Your coding agent drafts eval cases, and you approve each one ([ADR 0008](docs/adr/0008-drafted-cases-a-person-decides.md)) |
|
|
48
|
+
|
|
49
|
+
Then [adapt it to your own agent](docs/adapting.md), and [deploy it](docs/deploy.md).
|
|
50
|
+
|
|
51
|
+
## The example agent, in numbers
|
|
52
|
+
|
|
53
|
+
**[Try the live demo →](https://agent-launchpad-production.up.railway.app/)** Pick a sample customer and ask about an order; under each reply, "How it answered" shows what the agent looked up and cited.
|
|
54
|
+
|
|
55
|
+
The [example](example/) is a support agent for a fictional outdoor store, running on the open model GLM-5.2. Every change to it was measured twice: on the cases it was tuned on, and on held-out cases it had never seen. A case counts only if it passes on all 3 runs (pass^3). The held-out set was replaced three times, each time it had helped decide what to tune, and each new set was harder than the last. After the last change (#94), on the held-out set it was measured on (H51–H69; H70–H74 were added later and haven't been run):
|
|
56
|
+
|
|
57
|
+
| Cases | Result |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| Tuning (19) | 18/19 (94.7%, 95% CI 75.4%–99.1%) |
|
|
60
|
+
| Held out, never seen before (19) | **17/19 (89.5%, 95% CI 68.6%–97.1%)** |
|
|
61
|
+
| The same held-out cases, rule-based baseline with no model (one run, deterministic checks only, no judge) | 8/19 (42.1%, 95% CI 23.1%–63.7%) |
|
|
62
|
+
|
|
63
|
+
The turning points, and what the numbers caught at each:
|
|
64
|
+
|
|
65
|
+
| PR | What the numbers said | What happened |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| #2 | A rule-based baseline scored 11/16 on the first held-out set (H01–H16), mostly single-policy questions | That became the floor every real agent has to beat. On later, harder sets the same baseline scored 8/16, 9/18 and 8/19 |
|
|
68
|
+
| #55 | 16/16 on held-out (H01–H16) by the deterministic checks, but 14/16 once a judge read the replies | An LLM judge now checks every reply for unsupported claims. The judge itself was chosen against hand labels ([ADR 0003](docs/adr/0003-the-judge-is-chosen-by-measurement.md)) |
|
|
69
|
+
| #77 | 9/16 → 14/16 on tuning cases written for misses that held-out found | One prompt change, compared case by case (paired p = 0.062) |
|
|
70
|
+
| #87 | The best tuning score yet (15/16), but held-out (H17–H32) fell from 14/16 to 11/16 | Not merged: it fitted the tuning cases. #89 redid it |
|
|
71
|
+
| #90 | Moving date arithmetic into code fixed every date, but held-out caught a new overclaim (H41) | The held-out set was retired to regression and rewritten. #94 fixed the overclaim on a tuning copy |
|
|
72
|
+
| #94 | 18/19 tuning, 17/19 on the fresh held-out set | The agent is frozen, by a stop rule written before the runs |
|
|
73
|
+
|
|
74
|
+
What this shows:
|
|
75
|
+
|
|
76
|
+
- **Deterministic checks alone overstate an agent.** They said 16/16; a judge reading for unsupported claims said 14/16.
|
|
77
|
+
- **A tuning score alone would have shipped a regression.** #87 was the best on tuning and worse on held-out.
|
|
78
|
+
- **Code beats prompts for anything code can compute.** Return windows, arrival dates and refund dates come from code, and the model stopped getting them wrong.
|
|
79
|
+
- **The limits are written down.** What's left is in a [known-limitations table](example/evals/results/README.md#known-limitations), with what a fix would take.
|
|
80
|
+
|
|
81
|
+
Every run, with its interval and every movement explained, is in [the results log](example/evals/results/README.md).
|
|
82
|
+
|
|
83
|
+
## What it does
|
|
84
|
+
|
|
85
|
+
- **Start from the eval:** example cases split into tuning and held-out sets, a scorer, and a log of every run.
|
|
86
|
+
- **Protect your demo:** a daily dollar cap, a rate limit per visitor, and human approval before risky actions.
|
|
87
|
+
- **Keep cost down:** recorded replies, so tests and re-scoring cost nothing. Prompt and embedding caches are planned (#6).
|
|
88
|
+
- **Deploy on free tiers,** with the traps we already hit written down.
|
|
89
|
+
- **Set the rules for coding agents:** AGENTS.md and skills, so Claude Code, pi and others follow the same discipline.
|
|
90
|
+
|
|
91
|
+
## What it won't do
|
|
92
|
+
|
|
93
|
+
- It isn't an agent framework: it uses LangGraph and FastAPI, and your agent logic is your own code.
|
|
94
|
+
- It isn't a hosting platform: it deploys to hosts you own.
|
|
95
|
+
- It doesn't make your agent good. It tells you honestly whether it is.
|
|
96
|
+
|
|
97
|
+
## How it's built
|
|
98
|
+
|
|
99
|
+
Every piece is a self-contained recipe ([ADR 0001](docs/adr/0001-everything-is-a-recipe.md)), and [`example/`](example/) is the template's golden output ([ADR 0002](docs/adr/0002-example-is-the-golden-output.md)). Even the eval's judge is picked by measurement, not by habit ([ADR 0003](docs/adr/0003-the-judge-is-chosen-by-measurement.md), [ADR 0004](docs/adr/0004-a-cascade-judge-for-close-calls.md)), and the agent is tuned by rules written down in advance ([ADR 0005](docs/adr/0005-how-the-example-agent-is-tuned.md)). All the records are listed in [docs/adr](docs/adr/README.md). Working rules for people and coding agents are in [AGENTS.md](AGENTS.md). To build your own agent on the same loop, start with [Adapting the example to your own agent](docs/adapting.md). To put it online, follow [the deploy guide](docs/deploy.md); [traps.md](docs/traps.md) lists the deploy bugs it's built to avoid.
|
|
100
|
+
|
|
101
|
+
It grows out of two projects: [docs2mcp](https://github.com/dpelezo/docs2mcp) and [helpdesk-copilot](https://github.com/dpelezo/helpdesk-copilot).
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# agent-launchpad
|
|
2
|
+
|
|
3
|
+
[](https://github.com/dpelezo/agent-launchpad/actions/workflows/ci.yml) [](https://github.com/dpelezo/agent-launchpad/actions/workflows/security.yml)
|
|
4
|
+
|
|
5
|
+
**Confidence you can measure.** agent-launchpad takes an agent idea to a live demo with a real accuracy number, in a day, on free tiers.
|
|
6
|
+
|
|
7
|
+
One command gives you a working agent, a demo chat page, an eval set with held-out cases, CI, a daily spending cap and a deploy guide. For each decision your agent makes (which model, which router, which guard), it gives you a researched shortlist and a way to compare them on your own cases, so you choose from your own numbers.
|
|
8
|
+
|
|
9
|
+
> **Status:** 0.1.0, early. The [example agent](example/) is what `create --all` generates, and it's [live](https://agent-launchpad-production.up.railway.app/) with Postgres, a daily dollar cap, a rate limit and an approval gate. What's next is in the [milestones](https://github.com/dpelezo/agent-launchpad/milestones).
|
|
10
|
+
|
|
11
|
+
## Get started
|
|
12
|
+
|
|
13
|
+
You need [uv](https://docs.astral.sh/uv/) (and git, for `update`).
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
uvx agent-launchpad create my-agent # asks which recipes you want
|
|
17
|
+
cd my-agent
|
|
18
|
+
cp .env.example .env # then fill in the values it lists
|
|
19
|
+
uv run pytest -m unit # no model, no network
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`uvx` runs it once without installing; `uv tool install agent-launchpad` keeps the `agent-launchpad` command for `add`, `update` and `eval` later.
|
|
23
|
+
|
|
24
|
+
| Command | What it does |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `agent-launchpad recipes` | Lists the recipes (postgres, guards, approvals, tracing, demo) and what each requires |
|
|
27
|
+
| `agent-launchpad create DIR [--recipes a,b \| --all \| --core]` | A new project. Every combination of recipes passes its own lint, types and tests in CI |
|
|
28
|
+
| `agent-launchpad add RECIPE...` | Adds recipes to your project, keeping your edits ([ADR 0006](docs/adr/0006-recipes-plug-in-through-hooks.md)) |
|
|
29
|
+
| `agent-launchpad update` | Merges a newer template into your project three ways, keeping your edits ([ADR 0007](docs/adr/0007-update-merges-three-ways.md)) |
|
|
30
|
+
| `agent-launchpad eval draft \| check \| review` | Your coding agent drafts eval cases, and you approve each one ([ADR 0008](docs/adr/0008-drafted-cases-a-person-decides.md)) |
|
|
31
|
+
|
|
32
|
+
Then [adapt it to your own agent](docs/adapting.md), and [deploy it](docs/deploy.md).
|
|
33
|
+
|
|
34
|
+
## The example agent, in numbers
|
|
35
|
+
|
|
36
|
+
**[Try the live demo →](https://agent-launchpad-production.up.railway.app/)** Pick a sample customer and ask about an order; under each reply, "How it answered" shows what the agent looked up and cited.
|
|
37
|
+
|
|
38
|
+
The [example](example/) is a support agent for a fictional outdoor store, running on the open model GLM-5.2. Every change to it was measured twice: on the cases it was tuned on, and on held-out cases it had never seen. A case counts only if it passes on all 3 runs (pass^3). The held-out set was replaced three times, each time it had helped decide what to tune, and each new set was harder than the last. After the last change (#94), on the held-out set it was measured on (H51–H69; H70–H74 were added later and haven't been run):
|
|
39
|
+
|
|
40
|
+
| Cases | Result |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| Tuning (19) | 18/19 (94.7%, 95% CI 75.4%–99.1%) |
|
|
43
|
+
| Held out, never seen before (19) | **17/19 (89.5%, 95% CI 68.6%–97.1%)** |
|
|
44
|
+
| The same held-out cases, rule-based baseline with no model (one run, deterministic checks only, no judge) | 8/19 (42.1%, 95% CI 23.1%–63.7%) |
|
|
45
|
+
|
|
46
|
+
The turning points, and what the numbers caught at each:
|
|
47
|
+
|
|
48
|
+
| PR | What the numbers said | What happened |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| #2 | A rule-based baseline scored 11/16 on the first held-out set (H01–H16), mostly single-policy questions | That became the floor every real agent has to beat. On later, harder sets the same baseline scored 8/16, 9/18 and 8/19 |
|
|
51
|
+
| #55 | 16/16 on held-out (H01–H16) by the deterministic checks, but 14/16 once a judge read the replies | An LLM judge now checks every reply for unsupported claims. The judge itself was chosen against hand labels ([ADR 0003](docs/adr/0003-the-judge-is-chosen-by-measurement.md)) |
|
|
52
|
+
| #77 | 9/16 → 14/16 on tuning cases written for misses that held-out found | One prompt change, compared case by case (paired p = 0.062) |
|
|
53
|
+
| #87 | The best tuning score yet (15/16), but held-out (H17–H32) fell from 14/16 to 11/16 | Not merged: it fitted the tuning cases. #89 redid it |
|
|
54
|
+
| #90 | Moving date arithmetic into code fixed every date, but held-out caught a new overclaim (H41) | The held-out set was retired to regression and rewritten. #94 fixed the overclaim on a tuning copy |
|
|
55
|
+
| #94 | 18/19 tuning, 17/19 on the fresh held-out set | The agent is frozen, by a stop rule written before the runs |
|
|
56
|
+
|
|
57
|
+
What this shows:
|
|
58
|
+
|
|
59
|
+
- **Deterministic checks alone overstate an agent.** They said 16/16; a judge reading for unsupported claims said 14/16.
|
|
60
|
+
- **A tuning score alone would have shipped a regression.** #87 was the best on tuning and worse on held-out.
|
|
61
|
+
- **Code beats prompts for anything code can compute.** Return windows, arrival dates and refund dates come from code, and the model stopped getting them wrong.
|
|
62
|
+
- **The limits are written down.** What's left is in a [known-limitations table](example/evals/results/README.md#known-limitations), with what a fix would take.
|
|
63
|
+
|
|
64
|
+
Every run, with its interval and every movement explained, is in [the results log](example/evals/results/README.md).
|
|
65
|
+
|
|
66
|
+
## What it does
|
|
67
|
+
|
|
68
|
+
- **Start from the eval:** example cases split into tuning and held-out sets, a scorer, and a log of every run.
|
|
69
|
+
- **Protect your demo:** a daily dollar cap, a rate limit per visitor, and human approval before risky actions.
|
|
70
|
+
- **Keep cost down:** recorded replies, so tests and re-scoring cost nothing. Prompt and embedding caches are planned (#6).
|
|
71
|
+
- **Deploy on free tiers,** with the traps we already hit written down.
|
|
72
|
+
- **Set the rules for coding agents:** AGENTS.md and skills, so Claude Code, pi and others follow the same discipline.
|
|
73
|
+
|
|
74
|
+
## What it won't do
|
|
75
|
+
|
|
76
|
+
- It isn't an agent framework: it uses LangGraph and FastAPI, and your agent logic is your own code.
|
|
77
|
+
- It isn't a hosting platform: it deploys to hosts you own.
|
|
78
|
+
- It doesn't make your agent good. It tells you honestly whether it is.
|
|
79
|
+
|
|
80
|
+
## How it's built
|
|
81
|
+
|
|
82
|
+
Every piece is a self-contained recipe ([ADR 0001](docs/adr/0001-everything-is-a-recipe.md)), and [`example/`](example/) is the template's golden output ([ADR 0002](docs/adr/0002-example-is-the-golden-output.md)). Even the eval's judge is picked by measurement, not by habit ([ADR 0003](docs/adr/0003-the-judge-is-chosen-by-measurement.md), [ADR 0004](docs/adr/0004-a-cascade-judge-for-close-calls.md)), and the agent is tuned by rules written down in advance ([ADR 0005](docs/adr/0005-how-the-example-agent-is-tuned.md)). All the records are listed in [docs/adr](docs/adr/README.md). Working rules for people and coding agents are in [AGENTS.md](AGENTS.md). To build your own agent on the same loop, start with [Adapting the example to your own agent](docs/adapting.md). To put it online, follow [the deploy guide](docs/deploy.md); [traps.md](docs/traps.md) lists the deploy bugs it's built to avoid.
|
|
83
|
+
|
|
84
|
+
It grows out of two projects: [docs2mcp](https://github.com/dpelezo/docs2mcp) and [helpdesk-copilot](https://github.com/dpelezo/helpdesk-copilot).
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: eval-draft
|
|
3
|
+
description: Draft eval cases for this agent from an interview or real failures, with the mechanical checks; a person approves each one. Use when asked to write, draft or add eval cases.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Draft eval cases
|
|
7
|
+
|
|
8
|
+
Follow [`evals/DRAFTING.md`](../../../evals/DRAFTING.md), section "For the coding agent". In short:
|
|
9
|
+
|
|
10
|
+
1. Ask the person for real failures or tickets; without any, interview them about the agent's job.
|
|
11
|
+
2. Append drafts to `evals/cases/drafts.jsonl`, each with `expected`, an independently written `second_expected`, a `reference` reply the scorer passes and a `wrong` reply it fails. Include cases where the agent must not act.
|
|
12
|
+
3. Run `uv run python -m evals.drafts check` and fix every broken draft.
|
|
13
|
+
4. Tell the person to run `uv run python -m evals.drafts review`. You never approve, choose a split, or edit a case after seeing scores.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Copy to .env and fill in. Names only here: never commit real values.
|
|
2
|
+
|
|
3
|
+
# >>> recipe: postgres
|
|
4
|
+
# Local Postgres (docker compose)
|
|
5
|
+
POSTGRES_USER=launchpad
|
|
6
|
+
POSTGRES_PASSWORD=
|
|
7
|
+
POSTGRES_DB=launchpad
|
|
8
|
+
# The API's database (app/db.py). docker compose builds it from the three values above;
|
|
9
|
+
# set it yourself when running the API outside compose or on a host. Unset: no checkpointer.
|
|
10
|
+
DATABASE_URL=
|
|
11
|
+
|
|
12
|
+
# <<< recipe: postgres
|
|
13
|
+
# Model (one OpenAI-compatible client, app/llm.py). OpenRouter by default; any
|
|
14
|
+
# OpenAI-compatible endpoint works. OPENROUTER_API_KEY (below) is enough on its own;
|
|
15
|
+
# LLM_API_KEY is for another endpoint and wins when set.
|
|
16
|
+
LLM_BASE_URL=https://openrouter.ai/api/v1
|
|
17
|
+
LLM_MODEL=z-ai/glm-5.2
|
|
18
|
+
LLM_API_KEY=
|
|
19
|
+
# Optional: hard cap on tokens for this process, and JSON merged into every request
|
|
20
|
+
LLM_TOKEN_BUDGET=
|
|
21
|
+
LLM_EXTRA_BODY=
|
|
22
|
+
# Optional: off (default), record or replay; replay needs no key
|
|
23
|
+
LLM_RECORDING=off
|
|
24
|
+
LLM_RECORDING_PATH=
|
|
25
|
+
|
|
26
|
+
# >>> recipe: guards
|
|
27
|
+
# Guards (#4, app/guards.py). Required: /chat refuses to run without a cap and prices.
|
|
28
|
+
# The daily cap in US dollars, reset at midnight UTC, and what one million input and
|
|
29
|
+
# output tokens cost for LLM_MODEL (from your provider's price page).
|
|
30
|
+
DAILY_CAP_USD=
|
|
31
|
+
PRICE_INPUT_USD_PER_MTOK=
|
|
32
|
+
PRICE_OUTPUT_USD_PER_MTOK=
|
|
33
|
+
# Optional: requests per visitor per minute (default 10), and the header your host puts
|
|
34
|
+
# the client IP in (for example X-Forwarded-For); unset uses the connection's address.
|
|
35
|
+
RATE_LIMIT_PER_MINUTE=
|
|
36
|
+
RATE_LIMIT_HEADER=
|
|
37
|
+
# <<< recipe: guards
|
|
38
|
+
# >>> recipe: approvals
|
|
39
|
+
# The approval gate (app/approvals.py): the secret a person sends as
|
|
40
|
+
# "Authorization: Bearer <token>" to list and decide paused changes. Unset: approvals off.
|
|
41
|
+
APPROVAL_TOKEN=
|
|
42
|
+
|
|
43
|
+
# <<< recipe: approvals
|
|
44
|
+
# >>> recipe: tracing
|
|
45
|
+
# Tracing (app/tracing.py): one trace per /chat and per approval, sent to Langfuse over
|
|
46
|
+
# OpenTelemetry. Unset keys: tracing off. LANGFUSE_HOST defaults to Langfuse Cloud (EU);
|
|
47
|
+
# use https://us.cloud.langfuse.com for the US region. TRACE_CONTENT=1 also records the
|
|
48
|
+
# customer's message and the agent's reply (never their email, never a secret).
|
|
49
|
+
LANGFUSE_PUBLIC_KEY=
|
|
50
|
+
LANGFUSE_SECRET_KEY=
|
|
51
|
+
LANGFUSE_HOST=
|
|
52
|
+
TRACE_CONTENT=
|
|
53
|
+
|
|
54
|
+
# <<< recipe: tracing
|
|
55
|
+
# One key for the chat model and for decision models (Jev, Clef, Kev; ADR 0003)
|
|
56
|
+
OPENROUTER_API_KEY=
|
|
57
|
+
# Optional: Jev directly from TypeSafe, for model ids written typesafe:<name>
|
|
58
|
+
TYPESAFE_API_KEY=
|
|
59
|
+
# Optional: JSON merged into every decision-model request, e.g. to pin one host
|
|
60
|
+
DECISIONS_EXTRA_BODY=
|
|
61
|
+
# Optional: JSON merged into a chat judge's requests (chat:<model>, or a cascade's
|
|
62
|
+
# stage 2; ADR 0004), e.g. to pin its host. The agent's LLM_EXTRA_BODY is never used.
|
|
63
|
+
JUDGE_CHAT_EXTRA_BODY=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# One image for every host (ADR 0001): hosting differences live in environment variables.
|
|
2
|
+
FROM python:3.14-slim
|
|
3
|
+
|
|
4
|
+
COPY --from=ghcr.io/astral-sh/uv:0.11.32 /uv /usr/local/bin/uv
|
|
5
|
+
|
|
6
|
+
WORKDIR /srv
|
|
7
|
+
ENV UV_COMPILE_BYTECODE=1 \
|
|
8
|
+
UV_LINK_MODE=copy \
|
|
9
|
+
PYTHONUNBUFFERED=1
|
|
10
|
+
|
|
11
|
+
# Dependencies first, so code changes don't reinstall them.
|
|
12
|
+
COPY pyproject.toml uv.lock ./
|
|
13
|
+
RUN uv sync --locked --no-dev --no-install-project
|
|
14
|
+
|
|
15
|
+
COPY app ./app
|
|
16
|
+
# The fictional store the agent answers about (app/store.py reads it at startup).
|
|
17
|
+
COPY data ./data
|
|
18
|
+
|
|
19
|
+
# Hosts set PORT; 8000 locally.
|
|
20
|
+
EXPOSE 8000
|
|
21
|
+
CMD ["sh", "-c", "uv run --no-sync uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"]
|