Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(readme): a contributor wall that puts the next person's face on the front page
Haraldf964309884e3
diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.ymlnew file mode 100644index 0000000000..a7f5387039--- /dev/null+++ b/.github/workflows/contributors.yml@@ -0,0 +1,67 @@+# Keep the README's contributor avatar wall current.+#+# A "Thanks to everyone who has shipped something here" list that never updates+# is worse than none: the first person to land a pull request looks for their+# face, does not find it, and reads that as the project not caring. This job+# regenerates the block between the contributors markers once a week and+# commits it only when it actually changed.+#+# It does NOT run as a required check on pull requests. Making a stale wall+# fail CI would turn every new contributor's own arrival into a red X.+#+# Action SHAs are pinned to the same 40-char commits ci.yml already vetted+# (CVE-2025-30066 hardening).++name: Contributors++on:+ schedule:+ # Mondays, 04:17 UTC. Off the hour so it does not queue behind the crowd.+ - cron: "17 4 * * 1"+ workflow_dispatch:++permissions:+ contents: write++concurrency:+ group: contributors-${{ github.ref }}+ cancel-in-progress: false++jobs:+ refresh:+ name: refresh the avatar wall+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v5.0.0+ with:+ # The job pushes, so it needs a real branch rather than a detached HEAD.+ ref: main++ - name: Set up Python 3.11+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0+ with:+ python-version: "3.11"++ - name: Regenerate the block+ env:+ # Lifts the contributors API rate limit; no extra scope needed.+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: python scripts/ci/update_contributors.py++ - name: Commit when it changed+ run: |+ set -euo pipefail+ if git diff --quiet -- README.md; then+ echo "contributors: nothing changed, no commit."+ exit 0+ fi+ git config user.name "github-actions[bot]"+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"+ git add -- README.md+ git commit -m "docs(readme): refresh the contributor avatar wall"+ # Someone may have pushed while this ran. Rebase once, then push; a+ # second failure is reported rather than swallowed, so a genuinely+ # broken job is visible instead of quietly skipping every week.+ git pull --rebase --ff-only origin main+ git push origin maindiff --git a/README.md b/README.mdindex bf1e769480..115c978d21 100644--- a/README.md+++ b/README.md@@ -589,6 +589,27 @@ wide open. These are the places a person contributes something no agent can:- **Telling us it broke.** A precise bug report on a setup we cannot reproduce is worth morethan a patch.+## Contributors++Thanks to everyone who has shipped something here:++<!-- contributors:start -->++<a href="https://github.com/rubenluetke10-beep"><img src="https://avatars.githubusercontent.com/u/226271791?v=4&s=48" width="48" height="48" alt="rubenluetke10-beep"></a>++<!-- contributors:end -->++The wall is generated from the commit history by+[`scripts/ci/update_contributors.py`](https://github.com/PersonalJarvis/PersonalJarvis/blob/main/scripts/ci/update_contributors.py)+and refreshes itself weekly. Land a pull request and your face is on it — no+form to fill in, no permission to ask for. **AI-assisted pull requests are+welcome**; what gets reviewed is the diff, not how you wrote it.++New to the repo? The [issue chooser](https://github.com/PersonalJarvis/PersonalJarvis/issues/new/choose)+is the front door, [good first issues](https://github.com/PersonalJarvis/PersonalJarvis/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)+are scoped down to a file and a test command, and setup questions get answered+the same day on [Discord](https://discord.gg/x7USduHxbc).+## LicenseMIT. Free to use, modify, and distribute, including commercially; seediff --git a/scripts/ci/update_contributors.py b/scripts/ci/update_contributors.pynew file mode 100644index 0000000000..38a56dcb5a--- /dev/null+++ b/scripts/ci/update_contributors.py@@ -0,0 +1,154 @@+#!/usr/bin/env python3+"""Regenerate the README's contributor avatar wall from the GitHub API.++The wall lives between two HTML comment markers in ``README.md`` so the rest of+the file is never touched:++ <!-- contributors:start -->+ ...generated avatars...+ <!-- contributors:end -->++Run it with no arguments to rewrite the block in place, or with ``--check`` to+fail when the block is stale (that is the CI mode).++Two kinds of entries are deliberately excluded, both of which would otherwise+credit somebody who never worked on this project:++* GitHub Apps and bots (``type == "Bot"``, or a ``[bot]`` suffix) - Dependabot+ opening dependency bumps is not a contributor.+* The accounts in ``EXCLUDED_LOGINS``. ``Co-Authored-By: Claude+ <[email protected]>`` trailers are attributed by GitHub to whichever+ account happens to own that address, which is a stranger to this repository.+ Crediting them on the README would be wrong twice over: it names the wrong+ person, and it presents an AI trailer as a human contributor.++Requires no dependencies. A token is optional but lifts the rate limit: the+script reads ``GITHUB_TOKEN`` (set for free inside GitHub Actions) and falls+back to an unauthenticated request.+"""++from __future__ import annotations++import argparse+import json+import os+import sys+import urllib.error+import urllib.request+from pathlib import Path++REPO = "PersonalJarvis/PersonalJarvis"+README = Path(__file__).resolve().parents[2] / "README.md"++START = "<!-- contributors:start -->"+END = "<!-- contributors:end -->"++#: Accounts that the contributors API reports but that never contributed here.+#: See the module docstring for why the AI co-author trailer lands on a+#: third-party account.+EXCLUDED_LOGINS = frozenset({"claude"})++#: Avatars per row, matching the layout OpenClaw uses. Purely cosmetic.+PER_ROW = 10+AVATAR_PX = 48+++def fetch_contributors() -> list[dict]:+ """Every human contributor, most commits first."""+ people: list[dict] = []+ page = 1+ while True:+ url = f"https://api.github.com/repos/{REPO}/contributors?per_page=100&page={page}"+ req = urllib.request.Request(+ url,+ headers={+ "Accept": "application/vnd.github+json",+ "User-Agent": "personal-jarvis-contributors",+ },+ )+ token = os.environ.get("GITHUB_TOKEN")+ if token:+ req.add_header("Authorization", f"Bearer {token}")+ try:+ # noqa justification: the URL is a literal https constant built from+ # REPO above, never user input, so no custom scheme can reach here.+ with urllib.request.urlopen(req, timeout=30) as resp: # noqa: S310+ batch = json.load(resp)+ except urllib.error.HTTPError as exc: # pragma: no cover - network path+ raise SystemExit(f"GitHub API returned {exc.code}: {exc.reason}") from exc+ if not batch:+ break+ people.extend(batch)+ if len(batch) < 100:+ break+ page += 1++ return [+ p+ for p in people+ if p.get("type") != "Bot"+ and not p.get("login", "").endswith("[bot]")+ and p.get("login") not in EXCLUDED_LOGINS+ ]+++def render(people: list[dict]) -> str:+ """The avatar wall, one row per ``PER_ROW`` people."""+ if not people:+ return "_Nobody yet. That first square is yours._"++ cells = [+ f'<a href="https://github.com/{p["login"]}">'+ f'<img src="{p["avatar_url"]}&s={AVATAR_PX}" '+ f'width="{AVATAR_PX}" height="{AVATAR_PX}" alt="{p["login"]}"></a>'+ for p in people+ ]+ rows = [" ".join(cells[i : i + PER_ROW]) for i in range(0, len(cells), PER_ROW)]+ return "\n".join(rows)+++def splice(text: str, block: str) -> str:+ """Replace whatever sits between the markers with ``block``."""+ try:+ i = text.index(START) + len(START)+ j = text.index(END)+ except ValueError:+ raise SystemExit(+ f"README.md is missing the {START} / {END} markers - add the "+ f"Contributors section before running this.",+ ) from None+ return text[:i] + "\n\n" + block + "\n\n" + text[j:]+++def main() -> int:+ ap = argparse.ArgumentParser(description=__doc__)+ ap.add_argument(+ "--check",+ action="store_true",+ help="exit non-zero when the block is stale instead of rewriting it",+ )+ args = ap.parse_args()++ current = README.read_text(encoding="utf-8")+ people = fetch_contributors()+ updated = splice(current, render(people))++ if updated == current:+ print(f"contributors: up to date ({len(people)} people)")+ return 0++ if args.check:+ print(+ f"contributors: README is STALE ({len(people)} people on GitHub). "+ f"Run `python scripts/ci/update_contributors.py` and commit the result.",+ file=sys.stderr,+ )+ return 1++ README.write_text(updated, encoding="utf-8", newline="\n")+ print(f"contributors: README updated ({len(people)} people)")+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())