Development Guide¶
This guide covers how to set up your development environment and contribute to AgentWeave.
Repository Structure¶
AgentWeave/
├── src/agentweave/ CLI package
├── hub/ Hub server (FastAPI + React)
├── docs/ Documentation
├── tests/ CLI tests
└── Makefile Convenience commands
CLI Development¶
Install¶
Run Tests¶
Lint and Format¶
Or use the Makefile:
Hub Development¶
Install¶
Run Tests¶
UI Hot-Reload¶
The dashboard will be at http://localhost:5173 and proxies /api to the Hub at localhost:8000.
Code Style¶
- Line length: 100 characters
- Formatter: black
- Linter: ruff
- Type hints: required (enforced by mypy)
Naming Conventions¶
- Modules:
snake_case.py - Classes:
PascalCase - Functions/Variables:
snake_case - Constants:
UPPER_CASE
Adding a New Feature¶
See Adding New Agents for a concrete example of extending AgentWeave.
Pull Request Checklist¶
- [ ] Tests pass (
make test-all) - [ ] Lint passes (
make lint) - [ ] Type check passes (
mypy src/) - [ ] Documentation updated if needed