Migration from 0.2.x
Version 1.0.0 replaces the flat uAgents scaffold with a Postgres-backed runtime from standard-uagents-setup.
What changed
| 0.2.x | 1.0.0 |
|---|---|
Flat main.py + agent.py | src/agent/handler.py + src/runtime/ |
.env only | agent.yml + .env |
| Poetry / Makefile | uv + Makefile |
AGENT_SEED_PHRASE | AGENT_SEED |
| Hosting ports in config | Mailbox model (no hosting ports) |
| No Postgres | Postgres coordination required |
src/agent/test.py | src/agent/handler.py |
Migrating an existing project
There is no automatic migrator. Recommended approach:
-
Scaffold a fresh project with 1.0.0:
uvx create-agentverse-agent -d -
Copy your handler logic into
src/agent/handler.py(adapt toAgentDefinition+HandlerRequest/HandlerResponsetypes). -
Move non-secret settings into
agent.yml. -
Move secrets into
.env(renameAGENT_SEED_PHRASE→AGENT_SEED). -
Add
AGENTVERSE.mdfor your Agentverse profile. -
Run
uv syncandmake test.
Handler API changes
Old: Direct uAgents agent setup in agent.py / main.py.
New: Export an AgentDefinition from handler.py:
definition = AgentDefinition(
on_message=on_message,
on_startup=[on_startup],
on_shutdown=[on_shutdown],
)
See Handler Guide for request/response types.
Configuration split
agent.yml (commit to git):
- Agent name, handle, description, avatar, banner
- Protocol rate limits and access control
- Payment method toggles
- Runtime network, log level, coordinator TTLs
.env (never commit):
AGENT_SEED,AGENTVERSE_API_KEY- Postgres credentials
- Stripe / Skyfire keys
See Configuration.
Dev workflow changes
| Task | 0.2.x | 1.0.0 |
|---|---|---|
| Install deps | poetry install | uv sync |
| Run agent | make run / poetry run | make test or uv run agent |
| Postgres | None | make db or docker compose up -d |
Re-scaffolding into same directory
To refresh template files while keeping extra files you added:
create-agentverse-agent --overwrite
Template and bundle files are replaced; other files in the project directory are preserved.
Further reading
- CHANGELOG — full 1.0.0 breaking changes
- Architecture — new runtime design