Initial scaffold for a Web4-inspired autonomous agent runtime.
docs/: vision, architecture, and Web4-inspired design notesengine/: runtime loop, scheduling, reasoning, planning, execution, memoryagents/: reusable agent base classes and concrete agentstools/: bounded tools agents can invokeschemas/: structured inputs and outputs for decisions and tool resultsstorage/: persistence contracts and storage models
The first implementation target is an opportunity-scanning agent that runs on a reusable engine:
- observe signals
- reason over them
- validate an action
- execute a bounded tool
- store the result
- repeat
- The engine owns control flow and safety boundaries.
- The reasoning layer only returns structured decisions.
- Trading or capital movement remains behind downstream policy and execution gates.
You can run the current local prototype end-to-end without any API keys:
python3 examples/run_local_demo.pyWhat it does:
- registers the
OpportunityAgent - schedules one run immediately
- observes a local watchlist
- reasons over it deterministically
- plans and executes
get_market_snapshot - prints the run log and next scheduled run time
You can run Postgres locally with Docker Compose:
docker-compose up -d postgresDefault database settings:
- host:
127.0.0.1 - port:
54329 - database:
agent_engine - user:
agent_engine - password:
agent_engine
The engine reads these optional environment variables if you want to override them:
AGENT_ENGINE_DB_HOSTAGENT_ENGINE_DB_PORTAGENT_ENGINE_DB_NAMEAGENT_ENGINE_DB_USERAGENT_ENGINE_DB_PASSWORD
After Postgres is up, run the persistence-backed demo:
python3 examples/run_postgres_demo.py