Contributing
Full guide at CONTRIBUTING.md. The shape:
Read first
Section titled “Read first”- Architecture: the design rationale.
- Roadmap: current priorities, research topics, and non-goals.
- The constraints in Architecture → “What this rules out”.
PRs that fit get reviewed. PRs that broaden scope get politely declined.
Local dev
Section titled “Local dev”git clone https://github.com/luminik-io/alfred.gitcd alfreduv run --extra dev pytest tests/ -q # full suite, several minutesuv run --with 'ruff==0.15.22' ruff check .uv run --with 'ruff==0.15.22' ruff format --check .uv run --with 'mypy==2.3.0' mypy lib/bash bin/scrub-check.shThe ruff and mypy pins match CI (.github/workflows/ci.yml), which runs pytest
on Python 3.11, 3.12, and 3.13.
Pre-commit (recommended):
brew install pre-commitpre-commit installWhat we accept
Section titled “What we accept”- Bug fixes: always welcome. File the bug first if you didn’t.
- Test coverage: always welcome, especially for
lib/agent_runner/. - Doc fixes / clarifications: always welcome.
- New examples under
examples/bin/: welcome if they show a useful pattern not already covered. - In-flight roadmap items: welcome if you’ve sketched the design in the related issue first.
- New
agent_runnerprimitives: welcome if there’s a clear pattern in real fleets that justifies framework-level support.
What we don’t accept
Section titled “What we don’t accept”- Multi-tenant patterns. No.
- Hosted web UI or dashboard. No. Alfred ships a local desktop client (
clients/desktop) and the localhostalfred serveAPI; both stay local to your machine. - Long-running orchestration loops. No.
- Hosted-service hooks. No.
- Renaming / moving things for aesthetic reasons without a migration story.
- Adding Python deps to
pyproject.tomlwithout justifying why the stdlib doesn’t do it.
Commit + PR conventions
Section titled “Commit + PR conventions”- Conventional Commits:
feat:,fix:,docs:,chore:,refactor:,test:. - One topic per PR. Stack PRs for related changes.
- Update
CHANGELOG.mdunderUnreleasedfor any user-visible change. - Update
docs/andsite/for any user-visible change. - The PR template in
.github/PULL_REQUEST_TEMPLATE.mdhas the verification checklist.
Codename proposals
Section titled “Codename proposals”For a production codename that is specific to your own fleet, keep it in your fleet repo. Alfred is the framework; codenames are fleet-specific unless they demonstrate a reusable pattern.
For a new example codename in examples/bin/, open a feature request issue with the codename + role + 100-line sketch. We’ll respond with the design call before you write the PR.
Review flow
Section titled “Review flow”PRs go through:
- CI on every push: pytest, ruff check, ruff format check, mypy, shellcheck, and scrub-check, plus separate CodeQL and gitleaks workflows.
- Codex for code-level review.
- Maintainer review for scope alignment and design.
License
Section titled “License”By submitting a PR you agree your contribution is licensed under the project’s MIT license. No CLA, no DCO sign-off required (we may add one if the project ever grows beyond solo-maintainer).