Skip to content

3031 source-verified AI-built games from 2724 repos, attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet and Claude Fable

1.2 MB
Raw Blame
[
  {
    "full_name": "blackout-rain/application-development",
    "id": 1404164891,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T08:53:57Z",
    "pushed_at": "2026-10-04T12:26:17Z",
    "default_branch": "claude/gracious-rubin-gl8amj",
    "language": "HTML",
    "topics": [],
    "repo": "blackout-rain/application-development",
    "readme": "",
    "tree_paths": [
      "fishery-game",
      "fishery-game/index.html",
      "fishing-demos",
      "fishing-demos/01-timing-fishing.html",
      "fishing-demos/02-catch-log.html",
      "fishing-demos/03-fish-encyclopedia.html",
      "fishing-demos/04-tide-forecast.html",
      "fishing-demos/05-knot-guide.html",
      "fishing-demos/06-tackle-sim.html",
      "fishing-demos/07-sonar.html",
      "fishing-demos/08-idle-fishing.html",
      "fishing-demos/09-spot-map.html",
      "fishing-demos/10-fish-recipe.html",
      "fishing-demos/index.html"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/blackout-rain/application-development/commit/edcadc995e03a4184f8b18d9c174fa55b93a7a6b",
      "https://github.com/blackout-rain/application-development/commit/65487a026da6954b12663bdf30d579d7cff1a87b",
      "https://github.com/blackout-rain/application-development/commit/04451833725c5b0b0e4276f1f683641832ff7456"
    ]
  },
  {
    "full_name": "yarross/DataOpen",
    "id": 1404245729,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T10:28:59Z",
    "pushed_at": "2026-10-04T12:27:05Z",
    "default_branch": "claude/optimistic-lamport-wrhq2l",
    "language": "Python",
    "topics": [],
    "repo": "yarross/DataOpen",
    "readme": "# DataOpen\n\nСинтетические датасеты Human Pose (COCO Keypoints / YOLO-Pose) из игровых движков.\n**Universal Core** (Python) + **моды внутри игр** (Lua, C#). Игры: Garry's Mod, Valheim, Rust (свой сервер); любую другую\nможно добавить за один профиль и один мод (`docs/MODDING.md`).\n\n```bash\npip install -e '.[dev,capture]'\npython -m pytest -q\nmake demo                      # весь конвейер без игры: doctor → collect → verify → preview\n\ndataopen games                                          # профили\ndataopen install --game gmod --dir \"<папка игры>\"       # поставить мод\ndataopen doctor  --game gmod                            # проверить интеграцию (читайте первый FAIL)\ndataopen collect --game gmod --out runs/a --frames 1000 --provenance-note \"<источник и лицензия ассетов>\"\ndataopen verify  runs/a ; dataopen preview runs/a       # QA и контактный лист\n```\n\n| Документ | О чём |\n|---|---|\n| [docs/RUNBOOK.md](docs/RUNBOOK.md) | запуск на каждой игре, таблицы «симптом → что делать», масштабирование |\n| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | устройство, решения, разметка и видимость, узкие места, риски |\n| [docs/PROTOCOL.md](docs/PROTOCOL.md) | протокол core ↔ мод для авторов модов |\n| [docs/MODDING.md](docs/MODDING.md) | как добавить игру |\n| [docs/GAMES.md](docs/GAMES.md) | выбор игр и чек-лист для новой |\n\nЧестный статус: ядро, протокол, `doctor`/`verify`, Lua-рантайм и хост GMod (на заглушке API) покрыты тестами. C#-плагины\nразбираются и проверяются на C# 7.3, но **не собирались и не запускались**, а на реальных играх ничего ещё не проверялось:\nпервый запуск `dataopen doctor` на игре и есть эта проверка.\n",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".gitignore",
      "Makefile",
      "README.md",
      "adapters",
      "adapters/gmod",
      "adapters/gmod/addon",
      "adapters/gmod/addon/dataopen",
      "adapters/gmod/addon/dataopen/lua",
      "adapters/gmod/addon/dataopen/lua/autorun",
      "adapters/gmod/addon/dataopen/lua/autorun/dataopen_init.lua",
      "adapters/gmod/addon/dataopen/lua/dataopen",
      "adapters/gmod/addon/dataopen/lua/dataopen/gmod_host.lua",
      "adapters/gmod/tests",
      "adapters/gmod/tests/gmod_stub.lua",
      "adapters/lua",
      "adapters/lua/runtime",
      "adapters/lua/runtime/dataopen_rpc.lua",
      "adapters/lua/tests",
      "adapters/lua/tests/mock_host.lua",
      "adapters/unity",
      "adapters/unity/DataOpen.Rust",
      "adapters/unity/DataOpen.Rust/DataOpen.Rust.csproj",
      "adapters/unity/DataOpen.Rust/Plugin.cs",
      "adapters/unity/DataOpen.UnitySdk",
      "adapters/unity/DataOpen.UnitySdk/FreeCam.cs",
      "adapters/unity/DataOpen.UnitySdk/GameBindings.cs",
      "adapters/unity/DataOpen.UnitySdk/Json.cs",
      "adapters/unity/DataOpen.UnitySdk/Mailbox.cs",
      "adapters/unity/DataOpen.UnitySdk/Rig.cs",
      "adapters/unity/DataOpen.UnitySdk/RpcServer.cs",
      "adapters/unity/DataOpen.UnitySdk/UnityHost.cs",
      "adapters/unity/DataOpen.Valheim",
      "adapters/unity/DataOpen.Valheim/DataOpen.Valheim.csproj",
      "adapters/unity/DataOpen.Valheim/Plugin.cs",
      "adapters/unity/DataOpen.Valheim/ValheimBindings.cs",
      "adapters/unity/DataOpen.Valheim/bin",
      "adapters/unity/DataOpen.Valheim/bin/release-out",
      "adapters/unity/DataOpen.Valheim/bin/release-out/DataOpen.Valheim.dll",
      "docs",
      "docs/ARCHITECTURE.md",
      "docs/GAMES.md",
      "docs/MODDING.md",
      "docs/PROTOCOL.md",
      "docs/RUNBOOK.md",
      "pyproject.toml",
      "src",
      "src/dataopen",
      "src/dataopen/__init__.py",
      "src/dataopen/adapters",
      "src/dataopen/adapters/__init__.py",
      "src/dataopen/adapters/mock",
      "src/dataopen/adapters/mock/__init__.py",
      "src/dataopen/adapters/mock/adapter.py",
      "src/dataopen/adapters/mock/png.py",
      "src/dataopen/adapters/mock/server.py",
      "src/dataopen/adapters/rcon.py",
      "src/dataopen/adapters/remote.py",
      "src/dataopen/cli.py",
      "src/dataopen/core",
      "src/dataopen/core/__init__.py",
      "src/dataopen/core/annotation.py",
      "src/dataopen/core/calibration.py",
      "src/dataopen/core/card.py",
      "src/dataopen/core/doctor.py",
      "src/dataopen/core/export.py",
      "src/dataopen/core/imageio.py",
      "src/dataopen/core/interfaces.py",
      "src/dataopen/core/merge.py",
      "src/dataopen/core/models.py",
      "src/dataopen/core/orchestrator.py",
      "src/dataopen/core/preview.py",
      "src/dataopen/core/projection.py",
      "src/dataopen/core/protocol.py",
      "src/dataopen/core/qa.py",
      "src/dataopen/core/randomization.py",
      "src/dataopen/core/schema.py",
      "src/dataopen/core/self_occlusion.py",
      "src/dataopen/core/transport.py",
      "src/dataopen/core/validation.py",
      "src/dataopen/core/viz.py",
      "src/dataopen/factory.py",
      "src/dataopen/game_profiles",
      "src/dataopen/game_profiles/gmod.toml",
      "src/dataopen/game_profiles/mock.toml",
      "src/dataopen/game_profiles/rust.toml",
      "src/dataopen/game_profiles/valheim.toml",
      "src/dataopen/installer.py",
      "src/dataopen/profiles.py",
      "tests",
      "tests/test_cli.py",
      "tests/test_csharp_syntax.py",
      "tests/test_doctor.py",
      "tests/test_export.py",
      "tests/test_gmod_host.py",
      "tests/test_imageio_viz.py",
      "tests/test_installer.py",
      "tests/test_lua_runtime.py",
      "tests/test_orchestrator_hardening.py",
      "tests/test_pipeline.py",
      "tests/test_projection.py",
      "tests/test_protocol_conformance.py",
      "tests/test_protocol_transport.py",
      "tests/test_qa.py",
      "tests/test_randomization.py",
      "tests/test_rcon.py",
      "tests/test_remote_adapter.py",
      "tests/test_schema_and_mapping.py",
      "tests/test_self_occlusion.py"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/yarross/DataOpen/commit/184f0271b09b48b3329e0129eda4543c60fd0c9f",
      "https://github.com/yarross/DataOpen/commit/fae0fdaa545f0b1bfdb7a586db498db1bfa404f3",
      "https://github.com/yarross/DataOpen/commit/650ebf28fc23f52b33eefb2b1e18203bc6a13563",
      "https://github.com/yarross/DataOpen/commit/1f9ee029438dad106044ac9bc2f7609bad2aaaa4",
      "https://github.com/yarross/DataOpen/commit/8bc0988966313bd501f7f00f8607b7545114a0d7",
      "https://github.com/yarross/DataOpen/commit/db44ab5d7ef2dc25ce6c6d64adc863b758b0990e"
    ]
  },
  {
    "full_name": "azikfail/Escape-From-Ilnur",
    "id": 1404359819,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T12:16:44Z",
    "pushed_at": "2026-10-04T12:26:31Z",
    "default_branch": "main",
    "language": "HTML",
    "topics": [],
    "repo": "azikfail/Escape-From-Ilnur",
    "readme": "# Escape From Ilnur — «Гараж у Ильнура»\n\nХоррор от первого лица: ты — Регина, потерялась в кукурузном лабиринте. Найди ключи, заведи ржавый Датсун в гараже и сбеги от Ильнура.\n\n## Как играть\n\n**Windows (проще всего):** скачай `Garage-u-Ilnura-*.exe` из раздела **Releases** и запусти двойным щелчком. Ничего устанавливать не нужно.\n\n**В браузере (Chrome / Edge):**\n1. Скачай репозиторий (Code → Download ZIP) и распакуй.\n2. Запусти `start.bat` (нужен Python) или любой статический сервер в этой папке, например `python -m http.server 8765`.\n3. Открой `http://localhost:8765`.\n\nИгра не запустится двойным щелчком по `index.html` — файлы моделей и звука грузятся только по http.\n\nИграй в наушниках и в темноте.\n\n## Управление\n`W A S D` — идти · `Shift` — бежать · `Ctrl` — красться · `Пробел` — прыжок · `E` — действие / спрятаться · `F` — фонарик · `N` — ночная камера · `M` — карта · `G` — бросить банку · `Esc` — пауза и настройки\n\n## Что внутри\n- 4 сложности, включая «Кошмар» с помощником Ильнура\n- 4 места для поиска ключей, 4 вида укрытий, ловушки и отвлечение\n- настройки чувствительности мыши, яркости, поля зрения и качества\n- две случайные концовки, 7 пасхалок\n\nТри.js r128, Web Audio. Сборка для Windows: папка `desktop` (`npm ci && npm run dist`).\n",
    "tree_paths": [
      ".gitignore",
      "README.md",
      "assets",
      "assets/cloth_jacket.jpg",
      "assets/cloth_pants.jpg",
      "assets/cloth_sneaker.jpg",
      "assets/datsun_ref.webp",
      "assets/handrig.js",
      "assets/head_back.jpg",
      "assets/head_front.jpg",
      "assets/head_left.jpg",
      "assets/head_right.jpg",
      "assets/ilnur_ref.webp",
      "assets/models",
      "assets/models/car.glb",
      "assets/models/flashlight.glb",
      "assets/models/hand.glb",
      "assets/music",
      "assets/music/scarysong.mp3",
      "assets/sfx",
      "assets/sfx/birds_dawn.wav",
      "assets/sfx/birds_flush.wav",
      "assets/sfx/chase_loop.wav",
      "assets/sfx/death_scream.mp3",
      "assets/sfx/dog_0.wav",
      "assets/sfx/dog_1.wav",
      "assets/sfx/dog_2.wav",
      "assets/sfx/dog_3.wav",
      "assets/sfx/dog_4.wav",
      "assets/sfx/dog_5.wav",
      "assets/sfx/dog_6.wav",
      "assets/sfx/dog_7.wav",
      "assets/sfx/door_a.wav",
      "assets/sfx/door_b.wav",
      "assets/sfx/door_lid.wav",
      "assets/sfx/engine_loop.wav",
      "assets/sfx/manifest.json",
      "assets/sfx/step_hard_00.wav",
      "assets/sfx/step_hard_01.wav",
      "assets/sfx/step_hard_02.wav",
      "assets/sfx/step_hard_03.wav",
      "assets/sfx/step_hard_04.wav",
      "assets/sfx/step_hard_05.wav",
      "assets/sfx/step_hard_06.wav",
      "assets/sfx/step_hard_07.wav",
      "assets/sfx/step_hard_08.wav",
      "assets/sfx/step_hard_09.wav",
      "assets/sfx/step_hard_10.wav",
      "assets/sfx/step_hard_11.wav",
      "assets/sfx/step_hard_12.wav",
      "assets/sfx/step_hard_13.wav",
      "assets/sfx/step_hard_14.wav",
      "assets/sfx/step_hard_15.wav",
      "assets/sfx/step_hard_16.wav",
      "assets/sfx/step_hard_17.wav",
      "assets/sfx/step_soft_00.wav",
      "assets/sfx/step_soft_01.wav",
      "assets/sfx/step_soft_02.wav",
      "assets/sfx/step_soft_03.wav",
      "assets/sfx/step_soft_04.wav",
      "assets/sfx/step_soft_05.wav",
      "assets/sfx/step_soft_06.wav",
      "assets/sfx/step_soft_07.wav",
      "assets/sfx/step_soft_08.wav",
      "assets/sfx/step_soft_09.wav",
      "assets/sfx/step_soft_10.wav",
      "assets/sfx/step_soft_11.wav",
      "assets/sfx/step_soft_12.wav",
      "assets/sfx/step_soft_13.wav",
      "assets/sfx/step_soft_14.wav",
      "assets/sfx/step_soft_15.wav",
      "assets/sfx/step_soft_16.wav",
      "assets/sfx/step_soft_17.wav",
      "assets/sfx/thunder.wav",
      "assets/sfx/wind_loop.wav",
      "assets/voice",
      "assets/voice/clips.json",
      "assets/voice/i_allo.wav",
      "assets/voice/i_banki.wav",
      "assets/voice/i_begi.wav",
      "assets/voice/i_bu.wav",
      "assets/voice/i_bystraya.wav",
      "assets/voice/i_chto_bylo.wav",
      "assets/voice/i_chto_huynya.wav",
      "assets/voice/i_datsun.wav",
      "assets/voice/i_delas.wav",
      "assets/voice/i_dyshish.wav",
      "assets/voice/i_ferma.wav",
      "assets/voice/i_garazh.wav",
      "assets/voice/i_idisuda.wav",
      "assets/voice/i_klyuchi.wav",
      "assets/voice/i_kto_tut.wav",
      "assets/voice/i_ktoto.wav",
      "assets/voice/i_kuda_dura.wav",
      "assets/voice/i_kukuruza.wav",
      "assets/voice/i_mashina.wav",
      "assets/voice/i_naydu.wav",
      "assets/voice/i_naydu_final.wav",
      "assets/voice/i_neubezhish.wav",
      "assets/voice/i_nevzdumay.wav",
      "assets/voice/i_nezloy.wav",
      "assets/voice/i_pizdec.wav",
      "assets/voice/i_pohoroshemu.wav",
      "assets/voice/i_popalas.wav",
      "assets/voice/i_posmotrim.wav",
      "assets/voice/i_poteryal.wav",
      "assets/voice/i_propala.wav",
      "assets/voice/i_radio.wav",
      "assets/voice/i_reg_gde.wav",
      "assets/voice/i_reg_shout.wav",
      "assets/voice/i_reg_vyhodi.wav",
      "assets/voice/i_sama.wav",
      "assets/voice/i_shout_long.wav",
      "assets/voice/i_stancuem.wav",
      "assets/voice/i_stoy.wav",
      "assets/voice/i_stoyat.wav",
      "assets/voice/i_strah.wav",
      "assets/voice/i_szadi2.wav",
      "assets/voice/i_t1a.wav",
      "assets/voice/i_t1b.wav",
      "assets/voice/i_t2a.wav",
      "assets/voice/i_t2b.wav",
      "assets/voice/i_t2c.wav",
      "assets/voice/i_t3a.wav",
      "assets/voice/i_t3b.wav",
      "assets/voice/i_t3c.wav",
      "assets/voice/i_videl.wav",
      "assets/voice/i_vizhu.wav",
      "assets/voice/i_vylezay.wav",
      "assets/voice/i_zatoboy.wav",
      "assets/voice/i_zdes_kto.wav",
      "assets/voice/r_ay.wav",
      "assets/voice/r_begu.wav",
      "assets/voice/r_bystree.wav",
      "assets/voice/r_datsun.wav",
      "assets/voice/r_eshe.wav",
      "assets/voice/r_est.wav",
      "assets/voice/r_garazh.wav",
      "assets/voice/r_gdeya.wav",
      "assets/voice/r_golova.wav",
      "assets/voice/r_gospodi.wav",
      "assets/voice/r_karta.wav",
      "assets/voice/r_klyuch.wav",
      "assets/voice/r_krysa.wav",
      "assets/voice/r_kto_tut.wav",
      "assets/voice/r_kto_za_mnoy.wav",
      "assets/voice/r_nemogu.wav",
      "assets/voice/r_nenado.wav",
      "assets/voice/r_net.wav",
      "assets/voice/r_netnet.wav",
      "assets/voice/r_odin.wav",
      "assets/voice/r_ojpizdec.wav",
      "assets/voice/r_otpusti.wav",
      "assets/voice/r_posledniy.wav",
      "assets/voice/r_ryadom.wav",
      "assets/voice/r_shurshit.wav",
      "assets/voice/r_temno.wav",
      "assets/voice/r_tiho.wav",
      "assets/voice/r_uezzhayu.wav",
      "assets/voice/r_umirat.wav",
      "assets/voice/r_vybiratsya.wav",
      "assets/voice/r_zavodis.wav",
      "assets/voice/r_zhivaya.wav",
      "desktop",
      "desktop/README.md",
      "desktop/build",
      "desktop/build/icon-prompt.txt",
      "desktop/build/icon.ico",
      "desktop/build/icon.png",
      "desktop/main.cjs",
      "desktop/make-icon.ps1",
      "desktop/package-lock.json",
      "desktop/package.json",
      "desktop/prepare.cjs",
      "desktop/verify-icon.cjs",
      "dev",
      "dev/fit.html",
      "dev/grip.html",
      "dev/ref.png",
      "index.html"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/azikfail/Escape-From-Ilnur/commit/13bea9260cc54f85ca6df915a663e419d6e21443"
    ]
  },
  {
    "full_name": "zinx110/turftab",
    "id": 1404363250,
    "description": null,
    "homepage": "https://turftab.vercel.app",
    "created_at": "2026-10-04T12:20:14Z",
    "pushed_at": "2026-10-04T12:24:47Z",
    "default_branch": "main",
    "language": "TypeScript",
    "topics": [],
    "repo": "zinx110/turftab",
    "readme": "# TurfTab\n\nA small installable web app for splitting the ground-rent of a weekly football game and tracking who has paid.\n\nEvery week a group of us rents a turf. One person pays the ground, then collects an equal share from every player who actually played — some pay straight away, some days later. There is no profit: the fee is split exactly equally, rounded up so the organiser never ends up covering a shortfall. TurfTab replaces the group-chat arithmetic and the \"who still owes me?\" memory test.\n\n- **Organiser** logs in, records each game (costs + who played), and taps *Mark paid* as money arrives.\n- **Players** get a private link that shows only their own balance and the games they still owe for, plus the organiser's bKash number. They never log in and never see anyone else's balance.\n\n> Stack: Next.js 16 (App Router) · TypeScript · Tailwind CSS 4 · Neon Postgres · Drizzle ORM · Vitest · PWA\n> Currency is whole taka (৳). There are no decimals anywhere in the data model.\n\n---\n\n## Features\n\n| Area | What it does |\n|---|---|\n| **Games** | Any number of cost items per game (turf, drinks, vest washing…). Tick who played; a live preview shows `7 players → ৳429 each`. Edit or delete later. |\n| **Split** | `ceil(total ÷ players who played)`. Absent players are never charged. The per-game surplus from rounding up is shown, never hidden. |\n| **Payments** | One-tap *Mark paid* records a player's full balance (two taps, to prevent accidental taps). A separate amount box handles partial payments. Any payment can be undone. |\n| **Dashboard** | Total outstanding, total collected, and who owes, biggest first, each with *Copy message* (a ready-to-paste reminder with the amount, bKash number and the player's link). |\n| **Sharing** | A group link (games, costs, who played — no balances) and a personal link per player (that player's balance only). Both rotate on demand. |\n| **Export** | Download players, games, charges, payments and balances as CSV, so the records don't depend on one database. |\n| **PWA** | Installable to the home screen, opens full-screen, and shows a friendly offline page when there's no signal. |\n\n---\n\n## Architecture\n\n```\nBrowser (PWA)\n   │\n   ▼\nNext.js on Vercel ── proxy.ts: logged-out → 307 /login (first line of defence)\n   │   ├─ (admin) pages + server actions   → requireAdmin() on every one\n   │   ├─ /s/[token]  group page (public, token = credential, no balances)\n   │   ├─ /p/[token]  personal page (public, token = credential, one player)\n   │   └─ /export/[name]  admin-only CSV downloads\n   ▼\nNeon Postgres (serverless, pooled, HTTP driver)  via Drizzle ORM\n```\n\n### Data model\n\n```mermaid\nerDiagram\n    players ||--o{ game_players : \"played in\"\n    games   ||--o{ game_players : \"has attendees\"\n    games   ||--o{ game_items   : \"has costs\"\n    players ||--o{ payments     : \"paid\"\n\n    players {\n        int id PK\n        text name\n        text phone\n        text token UK\n        bool active\n    }\n    games {\n        int id PK\n        date played_on\n        text note\n    }\n    game_items {\n        int id PK\n        int game_id FK\n        text label\n        int amount\n    }\n    game_players {\n        int game_id PK, FK\n        int player_id PK, FK\n        int charge\n    }\n    payments {\n        int id PK\n        int player_id FK\n        int amount\n        date paid_on\n        text note\n    }\n    settings {\n        text key PK\n        text value\n    }\n    login_attempts {\n        int id PK\n        text ip\n        timestamptz attempted_at\n    }\n```\n\nThe key idea is that **balances are never stored**. A player's balance is always `sum(charges) − sum(payments)`, computed on read. That makes mistakes fixable (undo a payment, edit a game) with no balance field to drift out of sync.\n\n- `game_players.charge` is fixed at save time, so history doesn't shift if the formula ever changes. Editing a game regenerates its charges.\n- `payments` aren't tied to a game: a payment just reduces the running balance, so \"paid two games at once\" and \"paid half\" need no special cases.\n- Players with history can't be deleted (`ON DELETE RESTRICT`); they are archived.\n- CHECK constraints keep amounts positive at the database level too.\n\n### How a multi-game balance is displayed\n\nBecause payments aren't tied to games, the personal page needs a rule for *which* games a payment covered. Payments are applied **oldest game first** (`src/lib/ledger.ts`). If someone owes ৳430 for each of 3 games and pays ৳500, game 1 is paid, game 2 shows ৳360 left, game 3 is untouched. This is only a display rule — the total owed is always the true ledger balance.\n\n### Security model\n\n- **One admin, no user table.** The password lives in an environment variable (`ADMIN_PASSWORD`), compared in constant time. Login sets a signed (HS256), `httpOnly`, `SameSite=Lax`, `secure`-in-production session cookie valid for a year (this is a personal tool, so long sessions are a deliberate trade-off).\n- **Revocation:** change the password to block new logins; rotate `SESSION_SECRET` to invalidate every existing session at once.\n- **Defence in depth.** `proxy.ts` redirects logged-out visitors before anything renders, **and** every page, server action and route handler calls `requireAdmin()` itself. Layouts are never trusted for auth (they don't re-run on client navigation).\n- **Brute-force lockout:** 5 failed attempts per IP, or 50 globally, in 15 minutes, stored in Postgres (serverless has no shared memory).\n- **Share links** are random 144-bit tokens. The group link's query never loads balances or payments; the personal link's query is scoped to one player. Regenerating a token kills the old link immediately.\n- **CSV export** neutralises spreadsheet formula injection (`=`, `+`, `-`, `@` prefixes in text cells).\n\n### PWA\n\nA hand-written ~50-line service worker (`public/sw.js`) rather than a framework plugin: it precaches the offline page and icons, caches hashed build assets, and falls back to the offline page when a navigation fails. It **never caches HTML, server actions or data** — those are logged-in money records and must always come fresh. Writes are online-only by design, so there is no sync queue or conflict handling to get wrong.\n\n---\n\n## Getting started\n\nRequires Node 22+, [pnpm](https://pnpm.io) 10 and a free [Neon](https://neon.com) project.\n\n```bash\npnpm install\ncp .env.example .env.local     # then fill in the three values below\npnpm db:migrate             # creates the tables\npnpm dev                    # http://localhost:3000\n```\n\n| Variable | What |\n|---|---|\n| `DATABASE_URL` | Neon connection string. Use the **pooled** one (host contains `-pooler`). |\n| `ADMIN_PASSWORD` | Admin login. A long passphrase, 12+ characters. |\n| `SESSION_SECRET` | 32+ characters, e.g. `openssl rand -base64 48`. Rotating it logs every device out. |\n\nTip: create a separate Neon **branch** for local development so testing never touches your real data. Branches copy the schema instantly.\n\n### Scripts\n\n| Command | Does |\n|---|---|\n| `pnpm dev` | Dev server |\n| `pnpm build` / `pnpm start` | Production build / server |\n| `pnpm test` | Unit tests (Vitest) |\n| `pnpm lint` | ESLint |\n| `pnpm db:generate` | Generate a SQL migration from `src/db/schema.ts` |\n| `pnpm db:migrate` | Apply migrations to `DATABASE_URL` |\n| `pnpm db:studio` | Browse the database |\n\n### Deploying to Vercel\n\n1. Push to GitHub and import the repo in Vercel.\n2. Add `DATABASE_URL`, `ADMIN_PASSWORD`, `SESSION_SECRET` as environment variables.\n3. Set the function region close to your database (Singapore, `sin1`, for a `ap-southeast-1` Neon project) under *Settings → Functions*.\n4. Run `pnpm db:migrate` once against the production database.\n\n### Project layout\n\n```\nsrc/\n  app/\n    (admin)/        dashboard, games, players, settings, export — all admin-only\n    login/          login page + server action\n    s/[token]/      public group page\n    p/[token]/      public personal page\n    offline/        offline fallback page\n    manifest.ts     PWA manifest\n  components/       UI pieces (game form, confirm button, nav, …)\n  db/               Drizzle schema + lazy Neon client\n  lib/\n    money.ts        split + rounding        ← pure, unit-tested\n    ledger.ts       oldest-first allocation ← pure, unit-tested\n    csv.ts          CSV encoding            ← pure, unit-tested\n    session.ts      signing + constant-time compare ← pure, unit-tested\n    auth.ts         cookie session + requireAdmin()\n    data.ts         all reads, incl. the public share queries\n    export.ts       CSV builders\n  proxy.ts          logged-out redirect\npublic/sw.js        service worker\ndrizzle/            generated SQL migrations\n```\n\n---\n\n# Case study\n\n## The problem\n\nI play football weekly with a group of friends. I pay the turf, then collect an equal share from everyone who played. People pay on different days, some skip a week, and guests turn up. I was keeping it in my head and in a chat thread, and I never wanted to profit from it — the point is that nobody ove",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "README.md",
      "drizzle.config.ts",
      "drizzle",
      "drizzle/0000_mixed_katie_power.sql",
      "drizzle/meta",
      "drizzle/meta/0000_snapshot.json",
      "drizzle/meta/_journal.json",
      "eslint.config.mjs",
      "next.config.ts",
      "package.json",
      "pnpm-lock.yaml",
      "postcss.config.mjs",
      "public",
      "public/apple-touch-icon.png",
      "public/icons",
      "public/icons/icon-192.png",
      "public/icons/icon-512.png",
      "public/icons/icon-maskable-512.png",
      "public/sw.js",
      "src",
      "src/app",
      "src/app/(admin)",
      "src/app/(admin)/export",
      "src/app/(admin)/export/[name]",
      "src/app/(admin)/export/[name]/route.ts",
      "src/app/(admin)/games",
      "src/app/(admin)/games/[id]",
      "src/app/(admin)/games/[id]/page.tsx",
      "src/app/(admin)/games/actions.ts",
      "src/app/(admin)/games/new",
      "src/app/(admin)/games/new/page.tsx",
      "src/app/(admin)/games/page.tsx",
      "src/app/(admin)/layout.tsx",
      "src/app/(admin)/loading.tsx",
      "src/app/(admin)/page.tsx",
      "src/app/(admin)/payments",
      "src/app/(admin)/payments/actions.ts",
      "src/app/(admin)/players",
      "src/app/(admin)/players/[id]",
      "src/app/(admin)/players/[id]/page.tsx",
      "src/app/(admin)/players/actions.ts",
      "src/app/(admin)/players/page.tsx",
      "src/app/(admin)/settings",
      "src/app/(admin)/settings/actions.ts",
      "src/app/(admin)/settings/page.tsx",
      "src/app/globals.css",
      "src/app/icon.png",
      "src/app/layout.tsx",
      "src/app/login",
      "src/app/login/actions.ts",
      "src/app/login/login-form.tsx",
      "src/app/login/page.tsx",
      "src/app/manifest.ts",
      "src/app/offline",
      "src/app/offline/page.tsx",
      "src/app/p",
      "src/app/p/[token]",
      "src/app/p/[token]/page.tsx",
      "src/app/s",
      "src/app/s/[token]",
      "src/app/s/[token]/page.tsx",
      "src/components",
      "src/components/confirm-button.tsx",
      "src/components/copy-button.tsx",
      "src/components/game-form.tsx",
      "src/components/mark-paid-button.tsx",
      "src/components/nav.tsx",
      "src/components/player-controls.tsx",
      "src/components/register-sw.tsx",
      "src/components/share-chrome.tsx",
      "src/components/ui.ts",
      "src/db",
      "src/db/index.ts",
      "src/db/schema.ts",
      "src/lib",
      "src/lib/auth.ts",
      "src/lib/csv.test.ts",
      "src/lib/csv.ts",
      "src/lib/data.ts",
      "src/lib/dates.ts",
      "src/lib/env.ts",
      "src/lib/export.ts",
      "src/lib/ledger.test.ts",
      "src/lib/ledger.ts",
      "src/lib/login-lockout.ts",
      "src/lib/money.test.ts",
      "src/lib/money.ts",
      "src/lib/session.test.ts",
      "src/lib/session.ts",
      "src/proxy.ts",
      "tsconfig.json",
      "vitest.config.mts"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/zinx110/turftab/commit/3cfdeb8434c3409e1a2169a4c3bcb0e9729c99a9"
    ]
  },
  {
    "full_name": "diegobrego/BoardGameNight",
    "id": 1404013518,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T06:31:03Z",
    "pushed_at": "2026-10-04T12:35:38Z",
    "default_branch": "main",
    "language": "JavaScript",
    "topics": [],
    "repo": "diegobrego/BoardGameNight",
    "readme": "# Board Game Night\n\nA tiny website for a board game group. Everyone picks the days they're available over the next two weeks, days with 3+ available players light up green as a game night, and anyone can already float game ideas (with links to BoardGameGeek) once a single person is available.\n\nPlain HTML/CSS/JS, no build step, hosted for free on GitHub Pages. Look: a Playdate feel (dither patterns, hard shadows, pixel-art player faces) in purple, with a rounded easy-to-read font and crisp vector icons. There's a **light and a dark theme**: it follows the device by default, and the sun/moon button in the header switches it (and remembers the choice). Green is reserved for \"game on\" days.\n\n## Try it on your computer\n\n```bash\nnode tools/serve.mjs\n```\n\nOpen <http://localhost:8080>. Until you connect a database (below) the site runs in **demo mode**: a few fake players, and everything is saved only in your own browser. Even after you've connected one, adding **`?demo`** to the address (e.g. `http://localhost:8080/?demo`) gives you that private demo copy to try things out without touching the real data.\n\n## Put it online for the group\n\nGitHub Pages can only serve files, so the shared calendar needs somewhere to keep its data. This project uses **Firebase Firestore** (free plan, no server to run, no credit card). Do step 1 once, then step 2.\n\n### 1. Connect the shared database\n\n1. Go to <https://console.firebase.google.com> and **Add project** (turn Google Analytics off).\n2. **Build → Firestore Database → Create database.** Pick a nearby location, start in **production mode**.\n3. Open the **Rules** tab, paste in the contents of [`firestore.rules`](firestore.rules), and **Publish**.\n4. Click the gear → **Project settings → General → Your apps → `</>` (Web)**. Register the app (skip Firebase Hosting) and copy the `firebaseConfig` object it shows you.\n5. In [`js/config.js`](js/config.js), replace `export const firebaseConfig = null;` with your config:\n\n   ```js\n   export const firebaseConfig = {\n     apiKey: \"…\",\n     authDomain: \"…\",\n     projectId: \"…\",\n     storageBucket: \"…\",\n     messagingSenderId: \"…\",\n     appId: \"…\",\n   };\n   ```\n\n   These values are not secrets; they identify your project and are meant to be public. The rules in step 3 are what protect the data.\n\nReload the site and the demo banner is gone: you're talking to the real database.\n\n### 2. Publish on GitHub Pages\n\n1. Create a new repository on GitHub and push this folder to it.\n2. In the repo: **Settings → Pages → Build and deployment → Deploy from a branch → `main` / `(root)` → Save.**\n3. After a minute the site is live at `https://<your-username>.github.io/<repo-name>/`. Drop that link in the WhatsApp group.\n\n### 3. Become the admin (to remove players)\n\nRemoving a player needs real proof of who you are, and a password hidden in a web page isn't proof (anyone can read the page's code). So the admin signs in with Google, and the database rules only let signed-in admins delete players. One-time setup:\n\n1. Firebase console → **Build → Authentication → Get started → Sign-in method → Google → Enable.** Pick your email as the support email and **Save**.\n2. **Authentication → Settings → Authorized domains → Add domain**, and add the domain the site lives on (`<your-username>.github.io`). `localhost` is already allowed.\n3. Publish the updated [`firestore.rules`](firestore.rules) again (Firestore Database → **Rules** → paste → **Publish**).\n4. Open the site, click **Admin sign-in** in the footer and sign in with Google. A dialog shows your user ID.\n5. In the Firebase console go to **Firestore Database → Data → Start collection**, name it `admins`, set the **Document ID** to your user ID, add any field (for example `note` = `owner`) and save. The site switches to admin mode by itself.\n\nIn admin mode you get an **Admin** tag and an **X** next to everyone in \"The crew\". Removing someone takes them out of the crew **and off every day they picked** (their entries in the hall of fame stay, under the name they had). Admins can also remove entries from the hall of fame, and remove any campaign (a campaign's creator can remove their own too; its sessions stay in the hall of fame). Their game suggestions stay on the list (an admin can remove any game). To add another admin, add their user ID as another document in `admins`. Your email is never stored in the code or the repository.\n\n## How people use it\n\n- **First visit:** pick your name from the list, or add yourself (type a name, choose a pixel face). Your device remembers you; tap your name in the top corner to edit your profile or switch player.\n- **Pick my days:** tap every day you can play, then **Save**. Green days update live as you tick them.\n- **Game ideas:** tap any day with at least one available player (`MIN_PLAYERS_FOR_IDEAS`) to see who's in and add game ideas with the **+** button. Games link to their BoardGameGeek page. Posting an idea early lets others decide to join if they like it. The **?** next to \"Game options\" explains how game nights work.\n- **Green days** (3+ available players, set by `MIN_PLAYERS`) are marked with a green double border and a **Game on** tag: that's a game night.\n- **Reminder banners:** on the calendar page, when today or tomorrow is a game night, a slim orange banner at the top says so for everyone: when, the game that's winning the vote, and a **See the game night** link that opens the day. If you're in a campaign whose next session is planned for today or tomorrow, you get a **Campaign today/tomorrow** banner too, with the campaign's name and session number and a **See the campaign** link that jumps to it on the Campaigns page. Only the people in that campaign see the campaign banner.\n- **WhatsApp (admin only):** the signed-in admin sees a **Remind the group** button on that banner, and a **Remind the group** / **Tell the group** button on a game night's day panel. It opens WhatsApp with a ready-made message (who's in, the top-voted game, and a link to the site); the admin picks the group and taps send. Nothing is sent automatically, and WhatsApp doesn't allow a website to post into an existing group by itself. Keeping the buttons admin-only just keeps them off everyone else's screen, since anyone could write the same message by hand.\n\n- **Voting:** every game on a day has an up-arrow button. Tap it for each game you'd be happy to play (tap again to take the vote back; you can vote for several). Only players who are available that day can vote, and a vote only counts while its voter is still available. The list sorts by votes, shows who voted, and the leader gets a **Top pick** tag. Removing a game removes its votes.\n- **My collection:** in your profile (tap your name at the top), **Manage my collection** keeps a list of the games you own or love (up to 60; search to add, X to remove). Tap the star on a game to mark it as a favourite; favourites come first. When you tap **Add a game** on a day, the search stays as it is, and the **Add game from collection** button under it opens your whole collection: tap a game to put it on the day (games already there are greyed out), star or unstar games right in that list, and use the filter box once the list gets long. So the games you always bring are one tap away instead of a search. Your collection is saved on your profile in the shared database.\n- **\"I'll bring it\":** each game idea has a button to say you'll bring that game to the game night (\"Brought by Mia\"). Like voting, it's for players who are available that day, and it only counts while they are.\n- **Where and when:** on a game night's day panel, an available player can **Add location & time**. It shows in the panel, in the orange banner and in the WhatsApp message.\n- **Add to calendar:** a game night's day panel has an **Add to calendar** button. It downloads a small `.ics` file; opening it adds the event (with the location and start time, or as an all-day event if there's no time) to the phone's or computer's calendar.\n- **Log game night, and the Hall of fame:** after playing, anyone opens today on the calendar and taps **Log game night**. They choose the game (one from that day's ideas, or search for something else), tick who played, and choose the winner (or \"Nobody\" for a co-op game or a draw). The **Hall of fame** page (a tab at the top, in gold and orange) then shows **Most wins**, **Most game nights** and every **game played**. Each list can be collapsed; collapsed rankings still show their leader, and the choice is remembered on that device. Wins count games won; game nights count nights you took part in, so a night with three games still counts once. Entries keep the players' names as they were, so history survives a rename or a removal.\n- **Last week:** above the calendar there's a collapsible **Last week** section with the seven days before today. If you played on Saturday and nobody logged it, open the section, tap Saturday and use **Log game night**. A game night that happened b",
    "tree_paths": [
      ".gitignore",
      ".nojekyll",
      "README.md",
      "css",
      "css/style.css",
      "data",
      "data/games.json",
      "firestore.rules",
      "icons",
      "icons/apple-touch-icon.png",
      "icons/icon-192.png",
      "icons/icon-512.png",
      "icons/maskable-512.png",
      "index.html",
      "js",
      "js/app.js",
      "js/avatar.js",
      "js/campaigns.js",
      "js/config.js",
      "js/dates.js",
      "js/games.js",
      "js/hall.js",
      "js/icons.js",
      "js/ics.js",
      "js/mygames.js",
      "js/store-firebase.js",
      "js/store-local.js",
      "js/store.js",
      "manifest.webmanifest",
      "sw.js",
      "tools",
      "tools/serve.mjs",
      "tools/test.mjs",
      "tools/update-games.mjs"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/diegobrego/BoardGameNight/commit/940d9c64e609f22a36ea0eb4fe8feff2e57a3a0b",
      "https://github.com/diegobrego/BoardGameNight/commit/6412eb20eae201325abe7a689a6b0e8d3bce81c4"
    ]
  },
  {
    "full_name": "takashi145/chess-sandbox",
    "id": 1402547764,
    "description": "A terminal chess board for trying out positions.",
    "homepage": "",
    "created_at": "2026-10-03T02:11:58Z",
    "pushed_at": "2026-10-04T12:25:32Z",
    "default_branch": "main",
    "language": "Go",
    "topics": [
      "chess",
      "cli"
    ],
    "repo": "takashi145/chess-sandbox",
    "readme": "# ChessSandbox\n\nEnglish | [日本語](README.ja.md)\n\nA terminal chess board for trying out positions. Play both sides, step back and forward through your moves, and pick up where you left off.\n\n<img width=\"733\" height=\"322\" alt=\"ChessSandbox board\" src=\"https://github.com/user-attachments/assets/71e49067-fc0c-4f3d-9991-ffea8b15b2ec\" />\n\n## Installation\n\n**Windows** (PowerShell)\n\n```powershell\nirm https://raw.githubusercontent.com/takashi145/chess-sandbox/main/install.ps1 | iex\n```\n\n**macOS / Linux**\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/takashi145/chess-sandbox/main/install.sh | sh\n```\n\nRun the same command again to update. You can also download the archive for your platform from the\n[Releases](https://github.com/takashi145/chess-sandbox/releases/latest) page, extract it, and put `chess-sandbox` on your `PATH` yourself.\n\n### What the installer does\n\n- **Windows**: puts `chess-sandbox.exe` in `%LOCALAPPDATA%\\Programs\\chess-sandbox` and adds that folder to your user `PATH`.\n- **macOS / Linux**: puts `chess-sandbox` in `~/.local/bin` (set `CHESS_SANDBOX_INSTALL_DIR` to change it).\n\n### Uninstall\n\n**Windows**\n\n1. Delete the install folder:\n\n   ```powershell\n   Remove-Item -Recurse \"$env:LOCALAPPDATA\\Programs\\chess-sandbox\"\n   ```\n\n2. Open **Edit environment variables for your account** from the Start menu, select `Path`, and remove the\n   `...\\Programs\\chess-sandbox` entry.\n\n**macOS / Linux**\n\n```sh\nrm ~/.local/bin/chess-sandbox\n```\n\nTo also remove your saved session, delete the `ChessSandbox` folder described under [Saved session](#saved-session).\n\n## Usage\n\n```\nchess-sandbox [--fen \"<FEN>\" | --pgn <file>]\n```\n\n| Option | Description |\n|---|---|\n| `--fen \"<FEN>\"` | Start a new game from this position. Takes priority over a saved session |\n| `--pgn <file>` | Open a game from a PGN file, at its first position. Takes priority over a saved session. |\n\nWith no options, it starts from the standard position. If a saved session exists, you can choose to continue it,\nstart a new game from the standard position, or start a new game from a FEN you type in.\n\n### Examples\n\n```\n# Start from the standard position (or continue a saved session)\nchess-sandbox\n\n# Start from a specific position\nchess-sandbox --fen \"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1\"\n\n# Open a game from a PGN file\nchess-sandbox --pgn game.pgn\n```\n\n## Controls\n\nType a move in SAN (`e4`, `Nf3`, `O-O`, `exd5`, `e8=Q`) and press `Enter`. You play both sides. Illegal moves are\nrejected and the board does not change.\n\n| Key | Action |\n|---|---|\n| `←` / `→` | Previous / next move (when the input is empty) |\n| `Home` / `End` | Jump to start / end of the line (when the input is empty) |\n| `Enter` | Play the typed move or run the typed command |\n| `Esc` | Save and quit |\n\nCommands start with `:`.\n\n| Command | Action |\n|---|---|\n| `:flip` (`:f`) | Flip the board |\n| `:fen` | Show the FEN of the current position |\n| `:home` / `:end` | Jump to start / end of the line |\n| `:pgn <file>` | Write the whole line to a PGN file |\n| `:quit` (`:q`) | Save and quit |\n\nIf you step back and play a different move, the moves ahead are discarded. You are asked to confirm first\n(`y` to continue, any other key to cancel).\n\n## Saved session\n\nThe session (start position, moves and current position) is saved after every move.\nClosing the terminal keeps the latest state. It is saved to the following JSON file:\n\n- **Windows**: `%LOCALAPPDATA%\\ChessSandbox\\session.json`\n- **macOS / Linux**: `~/.local/share/ChessSandbox/session.json`\n\n## License\n\nMIT\n",
    "tree_paths": [
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/release.yml",
      ".gitignore",
      ".goreleaser.yaml",
      "LICENSE",
      "README.ja.md",
      "README.md",
      "THIRD-PARTY-NOTICES.md",
      "cmd",
      "cmd/chess-sandbox",
      "cmd/chess-sandbox/main.go",
      "go.mod",
      "go.sum",
      "install.ps1",
      "install.sh",
      "internal",
      "internal/chess",
      "internal/chess/game.go",
      "internal/chess/game_test.go",
      "internal/chess/history.go",
      "internal/chess/history_test.go",
      "internal/chess/pgn.go",
      "internal/chess/pgn_test.go",
      "internal/chess/session.go",
      "internal/chess/session_test.go",
      "internal/ui",
      "internal/ui/model.go",
      "internal/ui/model_test.go",
      "internal/ui/render.go",
      "internal/ui/render_test.go"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/takashi145/chess-sandbox/commit/7c8271f67ba659000e6afbf9969502a4b4a0e5ee",
      "https://github.com/takashi145/chess-sandbox/commit/c66f800a28419cf9c14a1a2380576450c77e1dc9"
    ]
  },
  {
    "full_name": "kokellara12-maker/apps-k4m9q2",
    "id": 1402881772,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-03T08:22:54Z",
    "pushed_at": "2026-10-04T12:34:54Z",
    "default_branch": "main",
    "language": "HTML",
    "topics": [],
    "repo": "kokellara12-maker/apps-k4m9q2",
    "readme": "",
    "tree_paths": [
      ".nojekyll",
      "apps.json",
      "basket.html",
      "blockblast.html",
      "bunker.html",
      "carreras3d.html",
      "casa.html",
      "colorrush.html",
      "contrasenas.html",
      "cuarto.html",
      "cubecraft.html",
      "driftking.html",
      "driftrunner.html",
      "gravityflip.html",
      "growgarden.html",
      "hermana.html",
      "icon-180.png",
      "icon-192.png",
      "icon-512.png",
      "impostor.html",
      "index.html",
      "lab.html",
      "lasthill.html",
      "manifest.webmanifest",
      "ninja.html",
      "noche.html",
      "orbit.html",
      "pengu.html",
      "pengu",
      "pengu/icon-180.png",
      "pengu/icon-192.png",
      "pengu/icon-512.png",
      "pengu/index.html",
      "pengu/manifest.webmanifest",
      "pengu/sw.js",
      "planets.html",
      "royale.html",
      "slideice.html",
      "stealbrainrot.html",
      "survivors.html",
      "sw.js",
      "vecina.html",
      "vozreversa.html"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/kokellara12-maker/apps-k4m9q2/commit/057c295429815e0b09037a81db524b6071c4c274"
    ]
  },
  {
    "full_name": "alimuqeem/esp32-chess-timer",
    "id": 1404323152,
    "description": "Stand-alone two-player chess clock for the Waveshare ESP32-S3-Touch-AMOLED-1.8 (V2): touch, seven-segment display, Fischer increment",
    "homepage": null,
    "created_at": "2026-10-04T11:43:29Z",
    "pushed_at": "2026-10-04T11:43:35Z",
    "default_branch": "main",
    "language": "C",
    "topics": [],
    "repo": "alimuqeem/esp32-chess-timer",
    "readme": "# ESP32 chess clock\n\nA stand-alone two-player chess clock on the **Waveshare ESP32-S3-Touch-AMOLED-1.8 (V2: CO5300\npanel)**. No Mac, no Wi-Fi, no cloud: power it from USB (a power bank is fine), lay it flat between\nthe players, and play. The top half of the screen is drawn upside down for the player across the table.\n\n```\ntools/board.sh test      # unit-test the clock logic on the Mac (no board needed)\ntools/board.sh flash     # build + flash the firmware onto the board\ntools/board.sh ticker    # switch the board to a sibling project (see Revert / erase)\n```\n\nBuilt and tested on the Waveshare **V2** revision (CO5300 AMOLED, CST820 touch, 16 MB flash, 8 MB PSRAM).\nThe original revision uses a different display driver (SH8601) and touch chip and will not work unmodified.\n\n## Setup (first time, macOS/Linux)\n\nNeeds `uv` (or any Python 3.12), a C++ compiler (`c++`, for the host tests) and the board on USB-C.\n\n```\nuv venv .venv --python 3.12 && uv pip install --python .venv/bin/python esptool==4.12.0 pyserial==3.5 mpremote==1.29.0\nuv venv .pio-venv --python 3.12 && uv pip install --python .pio-venv/bin/python platformio==6.2.0\ntools/board.sh flash     # the first build downloads several GB of toolchain into .platformio/\n```\n\n**Back up the board's factory firmware first**, so `tools/board.sh restore` can put it back:\n\n```\nmkdir -p backup\n.venv/bin/esptool.py --port /dev/cu.usbmodemXXXX read_flash 0 0x1000000 backup/original_flash_16MB.bin\nshasum -a 256 backup/original_flash_16MB.bin > backup/SHA256SUMS\n```\n\n## How to play\n\n1. **Pick a time control** (a tile). The last one you used is highlighted and remembered across power-offs.\n2. **Ready screen:** both clocks show the full time. Whoever is *not* moving first taps their own half\n   to start the other's clock. (Like a physical clock: Black starts White's clock.) The first tap is\n   not a move and earns no increment.\n3. **Playing:** after your move, tap **your own half**. Your clock stops, your increment is added, your\n   opponent's starts. Taps on the half whose clock is *not* running are ignored.\n4. **Pause:** tap the pause symbol in the middle strip (only the symbol; a tap elsewhere in the strip\n   counts for the nearer player). The pause panel offers **RESUME**, **RESTART** (same time, back to\n   Ready) and **MENU** (back to the time picker).\n5. **Flag:** when a clock reaches zero, that half turns red (\"OUT OF TIME\"), the other shows \"WINNER\",\n   and taps on the halves do nothing. **AGAIN** replays the same time; **MENU** picks another.\n\nOn screen: the running player's digits are bright and a bar lights up on their outer edge (green; amber\nunder 30 s; red under 10 s); the waiting player's digits are dim. Each side shows its move count and its\nincrement (`+10s`). Under 20 s the display switches to seconds with tenths (`9.4`). Over an hour it\nshows `1:30:00`. Times round up, like a real clock: it reads `00:01` until time is truly out.\n\nTime controls (base minutes + increment seconds, Fischer increment):\nbullet 1+0, 1+1, 2+1 · blitz 3+0, 3+2, 5+0 · rapid 10+0, 15+10, 25+10 · classical 30+0, 60+0, 90+30.\nTo change the list edit `PRESETS` in `src/clock.h` (keep it at 12 for the 3x4 grid).\n\nIdle power policy: the screen never dims or blanks during a game, running **or paused**. On the time\npicker, the ready screen and the game-over screen it dims after 60 s and blanks after 5 min; the first\ntouch only wakes it. (A game left paused for hours stays at full brightness: pause is a static picture,\nso if you forget one, resume or hit MENU.)\n\nNot included on purpose: sound (the board has an audio codec, but no speaker is known to be attached),\nBronstein/delay modes, different time per player, battery handling. A power cut loses the game in\nprogress; the chosen time control survives.\n\n## Accuracy\n\nTime comes from the chip's 64-bit microsecond timer (crystal-driven); each clock stores what it has left\nand the running one subtracts `now - turn start`, so there's no tick counting to drift. A test plays 200\nmoves with odd microsecond amounts and checks the result to the exact microsecond. Drawing a frame takes\n~65 ms, so touch is polled on its own task (every ~5 ms) and each tap is timestamped when the finger\nfirst lands, then handled in order by the main loop; real taps measured `late=5ms` even while the\ndisplay redrew 10x a second. A tap that arrives after time ran out cannot save the player.\n\n## Revert / erase (the board is yours to reuse)\n\n| Goal | Command |\n|---|---|\n| Back to another project in a sibling folder | `tools/board.sh ticker` (flashes `../esp32-positions-ticker` if present; edit the path in `board.sh` for your own) |\n| Blank the whole chip | `tools/board.sh erase` |\n| Blank-slate MicroPython for other experiments | `tools/board.sh flash-micropython` |\n| **Back to the original Waveshare factory firmware, byte for byte** | `tools/board.sh restore` |\n\n`backup/` is gitignored and **not in this repo**: make your own copy before the first flash (see Setup).\nA factory image may contain Wi-Fi credentials in its NVS partition, so never commit or share it. To remove\nthe toolchain too, delete `.platformio/`, `.pio/`, `.pio-venv/`, `.venv/` (or just the whole folder).\n\n## Driving it from the Mac (for testing)\n\nThe board listens on USB serial (115200): `STATE`, `TOUCH x y`, `LEFT player secs`, `CAL`, `DUMP`.\n`tools/ctl.py` wraps them so one run can tap, wait, read state and take a **screenshot** of exactly what\nthe frame buffer holds (`state` also reports `draw_ms`; `waitfile F` hands over to a human first):\n\n```\ntools/board.sh ctl \"touch 184 170; touch 184 100; wait 2; state; shot /tmp/running.png\"\ntools/board.sh ctl \"log 60\"        # print real taps the board sees: \"RAW rx,ry late=Nms\" then \"TAP x= y= phase=\"\ntools/board.sh ctl \"cal; log 120\"  # touch calibration screen (9 targets); prints raw vs mapped\n```\n\nOpening the serial port restarts the board, so one `ctl` run is one fresh session, and only one program\ncan hold the port: kill a running `ctl ... log` before flashing.\n\n## Gotchas learned the hard way\n\n- **The touch panel reports a window of the picture, not all of it.** The CST820's raw 0..367 x 0..447\n  covers screen x 33..329, y 31..397 and is clamped at the ends, so the outer 30-50 px read as the extreme\n  value. `main.cpp` maps raw to screen with a fitted scale and offset (`TOUCH_SCALE_*`, `TOUCH_OFF_*`,\n  from two runs of the `CAL` screen, ~9 px rms). Touch targets are therefore big; a precise button near\n  the very edge can't be resolved. Re-run `CAL` if you change panels.\n- **Never point esptool at a board running MicroPython** (USB PID `0x4001`): it wedges the REPL until you\n  replug. `board.sh` checks the USB PID first; `board.sh status` shows the mode.\n- Flash with a **watchdog reset** (`--after watchdog_reset`): a plain hard reset can fall back into\n  download mode. If all else fails: hold **BOOT**, tap **RESET**, release BOOT, re-run.\n- `platformio.ini` needs `board_upload.flash_size = 16MB` or the bootloader rejects the partition table.\n- Touch chip: only answers after the expander reset pulse and a *write* as its first access; reads need\n  a full I2C STOP (no repeated start).\n- `HEX` is an Arduino macro; don't name a variable that.\n\n## Layout\n\n```\nsrc/clock.h        game logic + time formatting (pure C++, unit-tested)\nsrc/main.cpp       display (seven-segment digits drawn as bars), touch, power policy, serial test hooks\ntests/test_clock.cpp  host tests (270 checks; mutation-checked: breaking increment/side/rounding fails them)\ntools/board.sh     build/flash/revert wrapper;  tools/ctl.py  serial test driver + screenshots\nlib/ src/fonts/    vendored Arduino_GFX 1.6.4 (CO5300 driver) and GFX fonts\n.platformio/       toolchain PlatformIO downloads on first build (gitignored)\n```\n\n## Third-party code\n\n- `lib/GFX_Library_for_Arduino/`: GFX Library for Arduino 1.6.4 (by moononournation, BSD licence, includes\n  Adafruit GFX code; see its `license.txt`), as shipped in Waveshare's V2 examples. It has the CO5300 driver.\n- `src/fonts/`: FreeSans bitmap fonts from the Adafruit GFX Library (derived from GNU FreeFont).\n",
    "tree_paths": [
      ".gitignore",
      "README.md",
      "lib",
      "lib/GFX_Library_for_Arduino",
      "lib/GFX_Library_for_Arduino/library.properties",
      "lib/GFX_Library_for_Arduino/license.txt",
      "lib/GFX_Library_for_Arduino/src",
      "lib/GFX_Library_for_Arduino/src/Arduino_DataBus.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_DataBus.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_G.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_G.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_GFX.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_GFX.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_GFX_Library.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_GFX_Library.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_OLED.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_OLED.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_TFT.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_TFT.h",
      "lib/GFX_Library_for_Arduino/src/Arduino_TFT_18bit.cpp",
      "lib/GFX_Library_for_Arduino/src/Arduino_TFT_18bit.h",
      "lib/GFX_Library_for_Arduino/src/YCbCr2RGB.h",
      "lib/GFX_Library_for_Arduino/src/canvas",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas.cpp",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas.h",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_3bit.cpp",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_3bit.h",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_Indexed.cpp",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_Indexed.h",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_Mono.cpp",
      "lib/GFX_Library_for_Arduino/src/canvas/Arduino_Canvas_Mono.h",
      "lib/GFX_Library_for_Arduino/src/canvas/readme.md",
      "lib/GFX_Library_for_Arduino/src/databus",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_AVRPAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_AVRPAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_AVRPAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_AVRPAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_DUEPAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_DUEPAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32DSIPanel.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32DSIPanel.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32LCD16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32LCD16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32LCD8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32LCD8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16Q.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16Q.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16QQ.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR16QQ.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8Q.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8Q.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8QQ.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8QQ.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8QQQ.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32PAR8QQQ.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32QSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32QSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32RGBPanel.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32RGBPanel.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR16Q.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR16Q.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR8Q.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32S2PAR8Q.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32SPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32SPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32SPIDMA.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32SPIDMA.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP8266SPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP8266SPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_HWSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_HWSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_NRFXSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_NRFXSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoPAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoPAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoPAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoPAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RPiPicoSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RTLPAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_RTLPAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_STM32PAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_STM32PAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWPAR16.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWPAR16.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWPAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWPAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_SWSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_UNOPAR8.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_UNOPAR8.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_Wire.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_Wire.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_XCA9554SWSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_XCA9554SWSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_XL9535SWSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_XL9535SWSPI.h",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_mbedSPI.cpp",
      "lib/GFX_Library_for_Arduino/src/databus/Arduino_mbedSPI.h",
      "lib/GFX_Library_for_Arduino/src/display",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_AXS15231B.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_AXS15231B.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_CO5300.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_CO5300.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_DSI_Display.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_DSI_Display.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9106.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9106.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9107.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9107.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9A01.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9A01.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9C01.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9C01.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9D01.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_GC9D01.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8347C.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8347C.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8347D.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8347D.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8352C.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8352C.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8357A.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8357A.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8357B.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8357B.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8369A.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_HX8369A.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9225.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9225.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9331.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9331.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9341.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9341.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9342.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9342.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9481_18bit.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9481_18bit.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9486.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9486.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9486_18bit.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9486_18bit.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488_18bit.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488_18bit.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488_3bit.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9488_3bit.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9806.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_ILI9806.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_JBT6K71.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_JBT6K71.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_JD9613.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_JD9613.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT35310.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT35310.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT35510.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT35510.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT39125.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NT39125.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3007.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3007.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3023.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3023.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3041A.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_NV3041A.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_OTM8009A.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_OTM8009A.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_R61529.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_R61529.h",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_RGB_Display.cpp",
      "lib/GFX_Library_for_Arduino/src/display/Arduino_RGB_Display.h"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/alimuqeem/esp32-chess-timer/commit/c42ef447f8fcb956e920c3cbd012e98e6ebefdfa"
    ]
  },
  {
    "full_name": "slowikowskiarkadiusz/catan-noter",
    "id": 1403554237,
    "description": null,
    "homepage": "https://slowikowskiarkadiusz.github.io/catan-noter/",
    "created_at": "2026-10-03T19:10:06Z",
    "pushed_at": "2026-10-04T12:33:29Z",
    "default_branch": "main",
    "language": "HTML",
    "topics": [],
    "repo": "slowikowskiarkadiusz/catan-noter",
    "readme": "",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/pages.yml",
      "COSMOS.md",
      "cosmos-config.js",
      "cosmos.js",
      "index.html",
      "no-db",
      "no-db/index.html"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/slowikowskiarkadiusz/catan-noter/commit/169cee2e24a8dbaf54a18ef2d91fdc82b0ca4b40",
      "https://github.com/slowikowskiarkadiusz/catan-noter/commit/68b5c3d08629c9e9fe6a97c241a956f9586572d9"
    ]
  },
  {
    "full_name": "fidgetrope/chess-ai",
    "id": 1404307113,
    "description": "3D chess against the computer (no online play) — vs AI version",
    "homepage": null,
    "created_at": "2026-10-04T11:31:27Z",
    "pushed_at": "2026-10-04T11:31:34Z",
    "default_branch": "main",
    "language": "TypeScript",
    "topics": [],
    "repo": "fidgetrope/chess-ai",
    "readme": "# Chess vs AI (3D Chess, computer opponent only)\n\nA browser-based chess game with a 3D perspective board and an AI opponent with selectable difficulty levels.\n\n## Features\n\n- Full chess rules via [chess.js](https://github.com/jhlywa/chess.js) — castling (with correct loss of rights), en passant, promotion with an under-promotion picker, check / checkmate / stalemate, threefold repetition, the fifty-move rule, and insufficient-material draws\n- AI opponent with three difficulty levels:\n  - **Easy** — depth-2 alpha-beta search, plays a visible blunder about a third of the time\n  - **Medium** — depth-3 alpha-beta search\n  - **Hard** — iterative deepening within a ~2-second time budget, so it stays responsive on any machine\n  - All three use material + piece-square-table evaluation and run in a Web Worker, off the main thread\n- Two board views, toggled from the HUD and remembered between sessions:\n  - **3D** — Three.js, turned (lathe) piece geometry for a Staunton-style set in ivory and walnut (the bishop's mitre slit is a real boolean cut via `three-bvh-csg`), a cosy study backdrop, orbit/zoom controls, and move / capture / castling / promotion animations\n  - **2D** — a flat top-down board in the BBC \"Master Game\" style: lavender squares, Unicode Staunton glyphs, coordinate labels\n- Minimal HUD that keeps the board clear: a turn pill and a compact captured-piece strip, with move history (SAN) and difficulty / restart tucked behind the \"Moves\" and ⚙ buttons; plus check banner and undo\n- Continuous play — the in-progress game is saved to the browser's local storage after every move, so closing the tab and coming back later resumes the exact position\n\n## Tech stack\n\n- [TypeScript](https://www.typescriptlang.org/)\n- [Vite](https://vite.dev/) — dev server and build tool\n- [Three.js](https://threejs.org/) — 3D rendering\n- [chess.js](https://github.com/jhlywa/chess.js) — rules engine (BSD 2-Clause)\n- [Vitest](https://vitest.dev/) — unit tests for the rules wrapper and AI\n\nNo backend — it's a fully static, client-side app.\n\n## Running locally\n\nRequires [Node.js](https://nodejs.org/) (LTS).\n\n```bash\nnpm install\nnpm run dev\n```\n\nThen open the printed `http://localhost:5173` link in your browser.\n\n## Other commands\n\n```bash\nnpm run test        # run the unit test suite (Vitest)\nnpm run typecheck   # type-check without emitting\nnpm run build       # production build -> dist/\nnpm run preview     # preview the production build locally\n```\n\n## Project structure\n\n```\nsrc/\n  core/        chess.js wrapper + localStorage persistence: game state, moves, check/mate/draw detection\n  ai/          minimax + alpha-beta, evaluation, difficulty presets, Web Worker entry point\n  render/      Three.js scene, board/piece meshes (lathe profiles + knight), picking, highlights, animation\n  ui/          plain HTML/CSS overlay (difficulty select, move list, captured tray, promotion picker, banners)\n  controller/  wires core + ai + render + ui together\ntests/         Vitest unit tests (rules wrapper, AI move legality, mate-in-1, evaluation)\n```\n\n## Deployment\n\nHosted on **GitHub Pages** at https://fidgetrope.github.io/chess-ai/ . The\n[`Deploy to GitHub Pages`](.github/workflows/deploy.yml) workflow runs on every push to `main`: it runs the\ntest suite, builds with Vite, and publishes `dist/`. `vite.config.ts` sets `base: '/chess-ai/'` so asset URLs\nresolve under the project-pages path.\n\nTo update: commit and `git push` — the workflow redeploys automatically.\n\n## Licensing\n\nPieces and board are built from code, so there is no piece-art attribution to track. chess.js is BSD 2-Clause —\nits copyright notice stays in `node_modules`; no other obligation.\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".github",
      ".github/workflows",
      ".github/workflows/deploy.yml",
      ".gitignore",
      "PROJECT_BRIEF.md",
      "README.md",
      "index.html",
      "package-lock.json",
      "package.json",
      "public",
      "public/favicon.svg",
      "src",
      "src/ai",
      "src/ai/coach.ts",
      "src/ai/coachWorker.ts",
      "src/ai/difficulty.ts",
      "src/ai/evalWords.ts",
      "src/ai/evaluate.ts",
      "src/ai/minimax.ts",
      "src/ai/moveReason.ts",
      "src/ai/worker.ts",
      "src/controller",
      "src/controller/gameController.ts",
      "src/core",
      "src/core/game.ts",
      "src/core/persistence.ts",
      "src/core/types.ts",
      "src/main.ts",
      "src/render",
      "src/render/animation.ts",
      "src/render/board2d.ts",
      "src/render/boardMesh.ts",
      "src/render/coords.ts",
      "src/render/environment.ts",
      "src/render/highlight.ts",
      "src/render/picking.ts",
      "src/render/pieceMesh.ts",
      "src/render/scene.ts",
      "src/style.css",
      "src/ui",
      "src/ui/ui.ts",
      "tests",
      "tests/ai.test.ts",
      "tests/coach.test.ts",
      "tests/game.test.ts",
      "tests/moveRules.test.ts",
      "tsconfig.json",
      "vite.config.ts"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/fidgetrope/chess-ai/commit/7322d2fe163c2ed88c7432e5fa35959086c2a22b"
    ]
  },
  {
    "full_name": "Lynder063/rac-deadlocked-decomp",
    "id": 1404277274,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T11:08:11Z",
    "pushed_at": "2026-10-04T12:09:33Z",
    "default_branch": "main",
    "language": "C",
    "topics": [],
    "repo": "Lynder063/rac-deadlocked-decomp",
    "readme": "# Ratchet: Deadlocked Decompilation\n\n[![Progress report](https://github.com/Lynder063/rac-deadlocked-decomp/actions/workflows/progress.yml/badge.svg)](https://github.com/Lynder063/rac-deadlocked-decomp/actions/workflows/progress.yml)\n[![Code](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&label=Code&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp)\n[![Functions](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&label=Functions&measure=matched_functions)](https://decomp.dev/Lynder063/rac-deadlocked-decomp)\n\nA work-in-progress **matching decompilation** of *Ratchet: Deadlocked*\n(*Ratchet: Gladiator* in PAL regions; Insomniac Games, 2005), NTSC-U version for the\nPlayStation 2. The goal is C/C++ source that, built with the original\ntoolchain, produces a byte-identical copy of the retail executable.\n\nThe project runs in two phases:\n\n1. **Match.** Write source that compiles to exactly the retail machine code.\n   This is what proves a function has been understood: the compiler judges\n   the result, not a read-through.\n2. **Make it readable.** Refactor matched code toward idiomatic C++ with real\n   names, types and structure. The matching build acts as the regression test\n   for every cleanup.\n\n> **Status: just started.** The build pipeline exists and a first handful of\n> functions match. A Sep 2005\n> NTSC-U prototype with full symbols has been found (see the research doc). Nothing is\n> decompiled yet and the progress numbers are zero. Start with\n> [`docs/RESEARCH.md`](docs/RESEARCH.md).\n\n## Progress\n\nProgress is tracked on [decomp.dev](https://decomp.dev/Lynder063/rac-deadlocked-decomp)\n(once the repository is registered there).\n\n| Version | Region | Game ID | Code | Functions |\n|---|---|---|---|---|\n| v1.00 | NTSC-U (`VER = 1.00`) | `SCUS_974.65` | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&label=Code&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp) | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&label=Functions&measure=matched_functions)](https://decomp.dev/Lynder063/rac-deadlocked-decomp) |\n\nOnly NTSC-U is targeted. PAL (*Ratchet: Gladiator*) may follow as a second\nversion if someone with a PAL disc joins.\n\n| Category | Progress | Contents |\n|---|---|---|\n| Game | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&category=game&label=Game&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp/SCUS_974.65?category=game) | All decompiled game code |\n| Core | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&category=core&label=Core&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp/SCUS_974.65?category=core) | Engine and SDK code that stays resident (`core.text`) |\n| Network | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&category=net&label=Network&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp/SCUS_974.65?category=net) | Network code (`net.text`) |\n| libgcc | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&category=libgcc&label=libgcc&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp/SCUS_974.65?category=libgcc) | GCC runtime library rebuilt from GCC's own source (`src/libgcc/`) |\n| Level code | [![](https://decomp.dev/Lynder063/rac-deadlocked-decomp.svg?mode=shield&category=level&label=Level%20code&measure=matched_code_percent)](https://decomp.dev/Lynder063/rac-deadlocked-decomp/SCUS_974.65?category=level) | Level code (`.text`, overwritten per level) |\n\nA function counts as matched when its compiled code equals retail with\nrelocatable fields masked (`tools/audit_matches.py`); this is not yet a\nlink-time comparison.\n\n## Disclaimer\n\nThis repository contains **no game assets, executable, or disassembly**. To\nbuild it you need your own legally obtained copy of the game. Read\n[`LEGAL.md`](LEGAL.md) before contributing.\n\n## Building\n\nNot possible yet: the compiler has not been identified and the splat\nconfiguration does not exist. The plan follows\n[rac1-decomp](https://github.com/Lynder063/rac1-decomp): SN Systems ProDG\n`ee-gcc` (32-bit Windows programs, run natively or through Wine in a\ncontainer), `splat` for the disassembly, `objdiff`-format reports for\ndecomp.dev.\n\n### 1. Add your executable\n\nCopy the main executable from your disc to `baserom/` (it is ignored by git).\nFrom a disc image, `7z e game.iso SCUS_974.65 -obaserom` extracts it. The\nexpected SHA-1 is:\n\n```\naa91b1c3b9b1a244320c47580b77342ef9856e95\n```\n\n### 2. Generate the disassembly\n\n```\nbash tools/setup_asm.sh\n```\n\nThe retail executable is only a loader with a compressed game image\n(`docs/RESEARCH.md`). The script checks the SHA-1, unpacks the image\n(`tools/unpack_wad.py`), rebuilds an ELF from its sections\n(`tools/split_image.py`) and runs [splat](https://github.com/ethteck/splat)\nwith `config/splat.yaml` into `asm/` (not tracked in git). It creates a\n`venv/` with the pinned versions from `requirements.txt` on first use.\n\n### 3. Get the toolchain\n\nThe compilers are third-party mirrors of commercial software and are not part\nof this repository. The current best candidate is **SN GCC 2.95.3 v1.36**\n(`ee-gcc2953.exe`), found in the ProDG 3.01 mirror:\n\n```\ngit clone https://github.com/AngheloAlf/SN-Systems-ProDG_for_PS2_3.01 toolchain/sn-prodg-3.01\ngit clone https://github.com/AngheloAlf/sce_ps2_sdk_24 toolchain/sn-prodg-24\n```\n\nOn Linux and macOS the 32-bit Windows programs run through Wine in a\ncontainer: `bash tools/docker/run.sh <command>`. See\n[`docs/RESEARCH.md`](docs/RESEARCH.md) (\"Compiler search\") for how the\ncompiler was identified and what is still open. \n### 4. Build and check\n\n```\nbash tools/docker/run.sh bash tools/build.sh      # compiles src/ with SN GCC 2.95.3 v1.36\nbash tools/docker/run.sh bash tools/build_libgcc.sh   # libgcc with Sony's 2.9-ee\nvenv/bin/python tools/audit_matches.py            # compares each function with retail\npython tools/gen_progress_report.py               # progress/report.json for decomp.dev\n```\n\nThere is no linked image yet, so matching is checked function by function.\n\n## Project structure\n\n| Path | Contents |\n|---|---|\n| `src/core/` | Engine and SDK code, named by start address until the real source file is known |\n| `src/game/` | Game code, one file per original source file where known |\n| `src/libgcc/` | GCC's `libgcc2.c` and `fp-bit.c` (GPL with the libgcc exception), see its README |\n| `include/` | Shared headers, recovered structs, assembly macros |\n| `config/` | splat configuration, symbol maps, link order (to be added) |\n| `tools/` | Build, audit and progress-report scripts; `unpack_wad.py` and `split_image.py` turn the retail executable into an ELF |\n| `tools/docker/` | Build container (to be added) |\n| `docs/` | Research, workflow and toolchain notes |\n| `notes/` | Working notes and investigations |\n| `baserom/` | Your own executable, not tracked |\n| `asm/` | Locally generated disassembly, not tracked |\n| `progress/report.json` | objdiff-format progress report read by decomp.dev |\n\n### decomp.dev\n\n[`.github/workflows/progress.yml`](.github/workflows/progress.yml) validates\n`progress/report.json` and uploads it as the artifact `SCUS_974.65_report`.\nRegister the repository once at <https://decomp.dev/manage/new>. The report\nis generated locally by `python tools/gen_progress_report.py` and committed\nwith each change, because CI cannot build the game.\n\n## Resources\n\n- [decomp.wiki](https://decomp.wiki): matching-decompilation knowledge base\n- [decomp.dev](https://decomp.dev): progress tracking\n- [OpenRAC](https://github.com/OpenRAC/OpenRAC): umbrella for the PS2 Ratchet & Clank decomps\n- [rac1-decomp](https://github.com/Lynder063/rac1-decomp): the first game; this repo's structure and workflow come from it\n- [ratchet-uya-decomp](https://github.com/vetusmagnus/ratchet-uya-decomp): Up Your Arsenal, the closest engine relative\n- [splat](https://github.com/ethteck/splat),\n  [spimdisasm](https://github.com/Decompollaborate/spimdisasm),\n  [m2c](https://github.com/matt-kempster/m2c),\n  [asm-differ](https://github.com/simonlindholm/asm-differ),\n  [objdiff](https://github.com/encounter/objdiff)\n\n## Credits\n\nFull list with what each was used for: [`docs/CREDITS.md`](docs/CREDITS.md).\n\n- **GFI (Game Fuckery Inc.)**: Special thanks to the GFI Discord server for the years of time spent researching and exploring these games, which helped make this decompilation possible.\n- [rac1-decomp](https://github.com/Lynder063/rac1-decomp): project layout, workflow and toolchain research.\n- [OpenRAC](https://github.com/OpenRAC/OpenRAC) and [ratchet-uya-decomp](https://github.com/vetusmagnus/ratchet-uya-decomp): sibling decompilations of the same engine family.\n- [Hidden Palace](https://hiddenpalace.org), [The Cutting Room Floor](https://tcrf.net) and the Internet Archive: preservat",
    "tree_paths": [
      ".dockerignore",
      ".github",
      ".github/workflows",
      ".github/workflows/progress.yml",
      ".gitignore",
      ".recomp.json",
      "CONTRIBUTING.md",
      "LEGAL.md",
      "LICENSE",
      "README.md",
      "THIRD_PARTY_NOTICES.md",
      "config",
      "config/.gitkeep",
      "config/functions.tsv",
      "config/libgcc.tsv",
      "config/sections.txt",
      "config/splat.yaml",
      "config/symbol_addrs.txt",
      "diff_settings.py",
      "docs",
      "docs/CREDITS.md",
      "docs/RESEARCH.md",
      "include",
      "include/.gitkeep",
      "include/common.h",
      "include/include_asm.h",
      "include/labels.inc",
      "include/macro.inc",
      "notes",
      "notes/.gitkeep",
      "progress",
      "progress/report.json",
      "requirements.txt",
      "src",
      "src/core",
      "src/core/.gitkeep",
      "src/core/0011C950.c",
      "src/core/00139A58.c",
      "src/core/0015D1A0.c",
      "src/core/00163960.c",
      "src/game",
      "src/game/.gitkeep",
      "src/libgcc",
      "src/libgcc/.gitkeep",
      "src/libgcc/README.md",
      "src/libgcc/fp-bit.c",
      "src/libgcc/gbl-ctors.h",
      "src/libgcc/include",
      "src/libgcc/include/defaults.h",
      "src/libgcc/include/limits.h",
      "src/libgcc/include/machmode.h",
      "src/libgcc/include/stddef.h",
      "src/libgcc/include/stdlib.h",
      "src/libgcc/include/tconfig.h",
      "src/libgcc/include/unistd.h",
      "src/libgcc/libgcc2.c",
      "src/libgcc/longlong.h",
      "tools",
      "tools/audit_matches.py",
      "tools/build.sh",
      "tools/build_libgcc.sh",
      "tools/compare_variants.py",
      "tools/compile_variants.sh",
      "tools/docker",
      "tools/docker/.gitkeep",
      "tools/docker/run.sh",
      "tools/find_functions.py",
      "tools/gen_function_list.py",
      "tools/gen_progress_report.py",
      "tools/locate_prototype.py",
      "tools/map_libgcc.py",
      "tools/map_source_files.py",
      "tools/match_prototype.py",
      "tools/setup_asm.sh",
      "tools/split_image.py",
      "tools/unpack_wad.py"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/Lynder063/rac-deadlocked-decomp/commit/0f5d80201a07740d78abc9b8e30070a8265e9b7e",
      "https://github.com/Lynder063/rac-deadlocked-decomp/commit/867310c2f8419c7a65de1d8b2d646ff3d7ebbfe1"
    ]
  },
  {
    "full_name": "scootsmagoo/skyrome",
    "id": 1403360873,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-03T15:44:27Z",
    "pushed_at": "2026-10-04T11:45:29Z",
    "default_branch": "main",
    "language": "TypeScript",
    "topics": [],
    "repo": "scootsmagoo/skyrome",
    "readme": "# Skyrome\n\n**An open-world RPG set in Rome in May of AD 113, at the height of the empire under Trajan. It runs in your browser.**\n\nIt's built in the spirit of *Skyrim* and *Oblivion*: a city you can walk anywhere in, historical places you can visit, period quests, factions, street fights, gladiators and bosses. The fantasy is turned way down. There are no dragons or fireballs. The \"supernatural\" is limited to what a Roman would have believed: omens, curse tablets, mystery cults, and the ghost nights of the Lemuria. Nothing is ever clearly real.\n\nThe game opens at dawn on 11 May 113 at the Porta Capena. Trajan's Forum and Column have just been dedicated. The Pantheon is a construction site after the fire of 110. The emperor is preparing to leave for the Parthian war. You arrive with the last night cart, a courier is knifed beside you, and you're left holding his sealed tablet.\n\n![The architecture gallery: triumphal arches, the Column, a temple, the amphitheatre arcade, a domed hall and the classical orders](docs/images/architecture.jpg)\n\n> **Status: pre-alpha.** You can start a game and walk around Rome, but there's no story to play through yet.\n>\n> **Working now:**\n> - The boot flow: pick mouse, trackpad or keyboard; the title over the city; character creation; then you start at the Porta Capena before dawn on 11 May AD 113.\n> - The terrain of the hills and valleys, and the Tiber as real water you can swim in.\n> - The river district, fully built: the Forum Boarium, the Temples of Portunus and Hercules Victor, Tiber Island, the Theatre of Marcellus and every Tiber bridge.\n> - The HUD: discovery banners, a Skyrim-style compass, quicksave.\n>\n> **In progress:** the landmarks of the Forum, the Imperial Fora, Trajan's Forum and Column, the Colosseum valley, the Palatine and Circus Maximus, and the Campus Martius (still placeholder blocks for now); the city fabric between them; combat; NPC crowds; the first quests.\n>\n> [Where things stand](#where-things-stand) has the full list.\n\n## Screenshots\n\n| | |\n|---|---|\n| ![Citizens, soldiers, a Vestal and gladiators, all procedurally generated](docs/images/avatars.jpg) | ![A Roman street of insulae, shops and market stalls](docs/images/street.jpg) |\n| *Procedural Romans: togas, stolas, legionaries, a Vestal, gladiator kits* | *City fabric: insulae, tabernae, stalls, umbrella pines* |\n| ![Title screen](docs/images/title.jpg) | ![The in-game map of Rome](docs/images/map.jpg) |\n| *Title screen* | *The map, drawn from the historical atlas* |\n| ![The Forum Boarium with the Temple of Portunus and the round Temple of Hercules Victor](docs/images/forum-boarium.jpg) | ![Choosing mouse, trackpad or keyboard-only controls](docs/images/controls.jpg) |\n| *Walking into the Forum Boarium: discovery banner, compass, health bar* | *First launch: pick how you play (the trackpad preset is built for MacBooks)* |\n\n## Try it locally\n\nYou need Node 22 or newer.\n\n```bash\nnpm install\nnpm run dev\n```\n\nThen open one of these scenes. Click into the game to look around and press Esc to release the mouse.\n\n| Scene | URL | What it shows |\n|---|---|---|\n| The game | http://127.0.0.1:5173/ | Title over the city, character creation, and the start at the Porta Capena before dawn on 11 May AD 113. `&quick=1` skips the menus |\n| The river district | http://127.0.0.1:5173/?scene=rome&at=temple-portunus | Drops you straight into Rome with no menus. The Forum Boarium, Tiber Island and the Theatre of Marcellus are fully built. `at=` takes any of the atlas's 208 landmark ids (e.g. `temple-aesculapius`, `theatre-marcellus`, `circus-maximus`, `column-trajan`, `pantheon`), but most landmarks outside the river district are still placeholder blocks |\n| Characters | http://127.0.0.1:5173/?scene=avatars | Procedural Romans and gladiators with code-authored animation. You're a legionary: R draws your sword, F attacks, Q blocks |\n| Architecture | http://127.0.0.1:5173/?scene=arch | The classical kit: orders, temples, arches, the amphitheatre arcade, the Column, domes, statues |\n| Street | http://127.0.0.1:5173/?scene=fabric | A neighbourhood of insulae, shops, stalls, fountains and trees |\n| Sky | http://127.0.0.1:5173/?scene=sky&timelapse=1 | A physically based sky and the sun and moon for AD 113 (try `&hour=23`, `&weather=rain`) |\n| Interface | http://127.0.0.1:5173/?scene=ui&open=title | HUD and menus filled with sample data (`open=map`, `inventory`, `journal`, `dialogue`…) |\n| Sound | http://127.0.0.1:5173/?scene=audio | Procedural sound effects, ambience, and generative music in the ancient modes |\n| Landmark viewer | http://127.0.0.1:5173/?scene=landmark&id=colosseum&cam=aerial | One landmark on the real terrain, with framed camera views |\n\nAdd `&debug` to any URL to show fps, draw calls and position.\n\n### Controls\n\nThe game is designed to be fully playable on a Mac trackpad, so every mouse action also has a key.\n\n| Action | Keys |\n|---|---|\n| Move · sprint · jump | W A S D · Shift · Space |\n| Look | Trackpad or mouse (click to capture) · arrow keys |\n| First / third person | V (or scroll the third-person camera all the way in) |\n| Attack (hold for a power attack) · block | F or left click · Q or right click |\n| Draw or sheathe a weapon · interact · sneak | R · E · C |\n| Menus | Tab · I inventory · J journal · M map · K skills · Esc pause |\n| Walk · wait · swap camera shoulder | N · T · H |\n| Quicksave · quickload | P or F5 · L or F9 |\n| Check your trackpad and keys | `?scene=inputlab` |\n\n## How it's made\n\n- **Everything is procedural.** There are no artists and no 3D model files. Buildings, characters, animations, the sky, sound effects and music are all generated in TypeScript. The only third-party assets are CC0 stone, brick and ground textures and two OFL fonts (see [Credits](#credits)).\n- **History comes first.** The world comes from a historical atlas of Rome c. AD 113 ([`src/data/atlas.ts`](src/data/atlas.ts), with notes in [`docs/ATLAS.md`](docs/ATLAS.md)). It holds 208 landmarks, the hills, the Tiber, roads, the Servian wall, aqueducts, and the 14 Augustan regions, in real meters and cross-checked against the coordinates of surviving ruins. The game renders it at 0.6 scale so the city stays walkable, while people, doors and steps stay life-size. Anything built after 113 is kept out on purpose: no Arch of Constantine, no Temple of Venus and Roma, no Aurelian Walls.\n- **It's built by AI agents.** The project is developed by Claude (Anthropic) agents working in parallel git worktrees. Each module is built, reviewed by a separate critic agent, and fixed before it's merged. A headless browser renders on the real GPU, so every visual change is checked with screenshots ([`scripts/shot.mjs`](scripts/shot.mjs)).\n\n### Tech\n\n| | |\n|---|---|\n| Language and build | TypeScript, [Vite](https://vite.dev) |\n| Rendering | [three.js](https://threejs.org) r186 (`WebGLRenderer`), custom sky, fog, terrain and water shaders |\n| Physics | [Rapier](https://rapier.rs) 0.21 (WASM): kinematic character controller, heightfield terrain |\n| UI | DOM overlay (HTML and CSS), Cinzel and EB Garamond fonts |\n| Audio | Web Audio API: synthesized effects and generative music |\n| Tests | [Vitest](https://vitest.dev) (750+ tests) and Playwright (headless GPU screenshots in Chromium and WebKit) |\n| Targets | Desktop Chrome and Safari on Apple-silicon Macs first, at 60 fps |\n\nWhy the browser and not Unreal or Bethesda's Creation Engine? Creation isn't licensable outside Skyrim mods. Unreal is editor-driven and built around binary assets, which AI agents can't easily work on. The browser lets agents build and test everything as code and lets anyone play from a link. The game data and rules are plain TypeScript and could be ported later. [`docs/research/tech.md`](docs/research/tech.md) has the full comparison.\n\n### Repository layout\n\n```\nsrc/\n  core/        game loop, input, physics wrapper, events, Roman calendar clock, settings\n  player/      player controller, first/third-person camera\n  actors/      actors, procedural humanoid avatars and animation, equipment\n  arch/        procedural architecture: classical kit, city fabric, props, vegetation\n  gfx/         materials and textures, MeshBuilder, post-processing\n  world/       atlas → terrain, landmarks, city, water, sky and lighting, Rome assembly\n  rpg/         stats, skills and perks, items, inventory, factions, crime, barter, combat math\n  quests/ dialogue/ npc/ save/   engines and content\n  ui/          HUD, menus, dialogue, map, title and loading screens\n  audio/       Web Audio engine, procedural sound effects, ambience, music\n  scenes/      rome (the game) and the dev test beds\n  data/        atlas.ts: Rome c. AD 113\ndocs/          GDD, atlas, architecture, module docs, research, credits\nscripts/       headless screenshot driver, atlas renderer\n```\n\n## Where things stand\n\n| Area | Status |\n|---|---|\n| Engine: loop, input, physics, first/third-person camera | ✅ Done |\n| Historical atlas, game design document, con",
    "tree_paths": [
      ".gitignore",
      "CLAUDE.md",
      "LICENSE",
      "README.md",
      "docs",
      "docs/ARCHITECTURE.md",
      "docs/ATLAS.md",
      "docs/CONTENT.md",
      "docs/GDD.md",
      "docs/atlas.svg",
      "docs/credits",
      "docs/credits/audio.md",
      "docs/credits/classical.md",
      "docs/credits/fabric.md",
      "docs/credits/sky.md",
      "docs/credits/ui.md",
      "docs/images",
      "docs/images/architecture.jpg",
      "docs/images/avatars.jpg",
      "docs/images/controls.jpg",
      "docs/images/forum-boarium.jpg",
      "docs/images/map.jpg",
      "docs/images/sky.jpg",
      "docs/images/street.jpg",
      "docs/images/title.jpg",
      "docs/modules",
      "docs/modules/audio.md",
      "docs/modules/avatar.md",
      "docs/modules/city.md",
      "docs/modules/classical.md",
      "docs/modules/colosseum-valley.md",
      "docs/modules/combat.md",
      "docs/modules/content.md",
      "docs/modules/fabric.md",
      "docs/modules/flow.md",
      "docs/modules/forum.md",
      "docs/modules/landmarks.md",
      "docs/modules/npc.md",
      "docs/modules/river.md",
      "docs/modules/rpg.md",
      "docs/modules/sky.md",
      "docs/modules/terrain.md",
      "docs/modules/trajan.md",
      "docs/modules/ui.md",
      "docs/research",
      "docs/research/architecture.md",
      "docs/research/assets-3d-characters-props.md",
      "docs/research/assets-3d-plan.md",
      "docs/research/assets-3d-sculpture.md",
      "docs/research/assets.md",
      "docs/research/game-design.md",
      "docs/research/society.md",
      "docs/research/tech.md",
      "docs/research/topography-landmarks.md",
      "docs/research/topography-terrain.md",
      "index.html",
      "package-lock.json",
      "package.json",
      "public",
      "public/fonts",
      "public/fonts/OFL-Cinzel.txt",
      "public/fonts/OFL-EBGaramond.txt",
      "public/fonts/cinzel-latin-ext-wght-normal.woff2",
      "public/fonts/cinzel-latin-wght-normal.woff2",
      "public/fonts/eb-garamond-latin-ext-wght-italic.woff2",
      "public/fonts/eb-garamond-latin-ext-wght-normal.woff2",
      "public/fonts/eb-garamond-latin-wght-italic.woff2",
      "public/fonts/eb-garamond-latin-wght-normal.woff2",
      "public/textures",
      "public/textures/bark",
      "public/textures/bark/arm.jpg",
      "public/textures/bark/color.jpg",
      "public/textures/bark/normal.jpg",
      "public/textures/basalt",
      "public/textures/basalt/arm.jpg",
      "public/textures/basalt/color.jpg",
      "public/textures/basalt/normal.jpg",
      "public/textures/brick",
      "public/textures/brick/arm.jpg",
      "public/textures/brick/color.jpg",
      "public/textures/brick/normal.jpg",
      "public/textures/cobbles",
      "public/textures/cobbles/arm.jpg",
      "public/textures/cobbles/color.jpg",
      "public/textures/cobbles/normal.jpg",
      "public/textures/concrete",
      "public/textures/concrete/arm.jpg",
      "public/textures/concrete/color.jpg",
      "public/textures/concrete/normal.jpg",
      "public/textures/dirt",
      "public/textures/dirt/arm.jpg",
      "public/textures/dirt/color.jpg",
      "public/textures/dirt/normal.jpg",
      "public/textures/dry_grass",
      "public/textures/dry_grass/arm.jpg",
      "public/textures/dry_grass/color.jpg",
      "public/textures/dry_grass/normal.jpg",
      "public/textures/fonts",
      "public/textures/fonts/Cinzel-OFL.txt",
      "public/textures/fonts/Cinzel-latin.woff2",
      "public/textures/grass",
      "public/textures/grass/arm.jpg",
      "public/textures/grass/color.jpg",
      "public/textures/grass/normal.jpg",
      "public/textures/gravel",
      "public/textures/gravel/arm.jpg",
      "public/textures/gravel/color.jpg",
      "public/textures/gravel/normal.jpg",
      "public/textures/marble",
      "public/textures/marble/arm.jpg",
      "public/textures/marble/color.jpg",
      "public/textures/marble/normal.jpg",
      "public/textures/marble_veined",
      "public/textures/marble_veined/arm.jpg",
      "public/textures/marble_veined/color.jpg",
      "public/textures/marble_veined/normal.jpg",
      "public/textures/mud",
      "public/textures/mud/arm.jpg",
      "public/textures/mud/color.jpg",
      "public/textures/mud/normal.jpg",
      "public/textures/paving_basalt",
      "public/textures/paving_basalt/arm.jpg",
      "public/textures/paving_basalt/color.jpg",
      "public/textures/paving_basalt/normal.jpg",
      "public/textures/paving_travertine",
      "public/textures/paving_travertine/arm.jpg",
      "public/textures/paving_travertine/color.jpg",
      "public/textures/paving_travertine/normal.jpg",
      "public/textures/peperino",
      "public/textures/peperino/arm.jpg",
      "public/textures/peperino/color.jpg",
      "public/textures/peperino/normal.jpg",
      "public/textures/plaster",
      "public/textures/plaster/arm.jpg",
      "public/textures/plaster/color.jpg",
      "public/textures/plaster/normal.jpg",
      "public/textures/rock",
      "public/textures/rock/arm.jpg",
      "public/textures/rock/color.jpg",
      "public/textures/rock/normal.jpg",
      "public/textures/roof_tile",
      "public/textures/roof_tile/arm.jpg",
      "public/textures/roof_tile/color.jpg",
      "public/textures/roof_tile/normal.jpg",
      "public/textures/sand",
      "public/textures/sand/arm.jpg",
      "public/textures/sand/color.jpg",
      "public/textures/sand/normal.jpg",
      "public/textures/tufa",
      "public/textures/tufa/arm.jpg",
      "public/textures/tufa/color.jpg",
      "public/textures/tufa/normal.jpg",
      "public/textures/wood",
      "public/textures/wood/arm.jpg",
      "public/textures/wood/color.jpg",
      "public/textures/wood/normal.jpg",
      "public/textures/wood_dark",
      "public/textures/wood_dark/arm.jpg",
      "public/textures/wood_dark/color.jpg",
      "public/textures/wood_dark/normal.jpg",
      "scripts",
      "scripts/atlas",
      "scripts/atlas/render-atlas.mjs",
      "scripts/shot.mjs",
      "src",
      "src/actors",
      "src/actors/Actor.ts",
      "src/actors/ActorSystem.ts",
      "src/actors/PlaceholderAvatar.ts",
      "src/actors/appearance.ts",
      "src/actors/avatar",
      "src/actors/avatar/HumanoidAvatar.ts",
      "src/actors/avatar/SkinBuilder.ts",
      "src/actors/avatar/anim",
      "src/actors/avatar/anim/actions.ts",
      "src/actors/avatar/anim/armIK.ts",
      "src/actors/avatar/anim/clip.ts",
      "src/actors/avatar/anim/controller.ts",
      "src/actors/avatar/anim/gait.ts",
      "src/actors/avatar/anim/idles.ts"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/scootsmagoo/skyrome/commit/6edc71fcc1408567100fbf21cbbadcdc6c45e6c4"
    ]
  },
  {
    "full_name": "Kx121999/rafiq-alhifz",
    "id": 1404075530,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T07:29:55Z",
    "pushed_at": "2026-10-04T11:44:25Z",
    "default_branch": "main",
    "language": "JavaScript",
    "topics": [],
    "repo": "Kx121999/rafiq-alhifz",
    "readme": "# رفيق الحفظ\n\nموقع عربي لحفظ القرآن الكريم ومراجعته.\n\n```bash\nnpm install\nnpm run dev      # تشغيل محلي\nnpm test         # الاختبارات الآلية (Vitest)\nnpm run check    # فحص سلامة البيانات (114 سورة، 6236 آية)\nnpm run build    # يفحص البيانات ثم يبني dist/ للنشر\n```\n\n- `public/quran.json`: نص المصحف بالرسم العثماني (quranenc.com عبر حزمة quran-json). لا يُعدَّل.\n- `public/tafsir.json`: التفسير الميسّر (spa5k/tafsir_api). لا يُعدَّل.\n- `legacy/index.html`: النسخة الأصلية ذات الملف الواحد، للمرجعية.\n- التقدّم محفوظ في `localStorage` بالمفتاح `hifz-progress-v1`.\n- يعمل كتطبيق قابل للتثبيت وبدون إنترنت (PWA): `public/sw.js` يُعبَّأ وقت البناء بقائمة الملفات وإصدار الكاش عبر `vite.config.js`.\n- `npm run a11y` (بعد `npm run build`): فحص إمكانية الوصول بـ axe-core على كل الصفحات والحالات في الوضعين الفاتح والداكن، مع فحص العرض على 320 بكسل. يحتاج Chrome (اضبط `CHROME_PATH` إن لم يوجد في مكانه المعتاد).\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/deploy.yml",
      ".gitignore",
      "README.md",
      "index.html",
      "legacy",
      "legacy/index.html",
      "package-lock.json",
      "package.json",
      "promo",
      "promo/BRIEF.md",
      "promo/poster",
      "promo/poster/poster.html",
      "promo/poster/rafiq-poster.pdf",
      "promo/poster/rafiq-poster.png",
      "promo/video",
      "promo/video/AGENTS.md",
      "promo/video/CLAUDE.md",
      "promo/video/assets",
      "promo/video/assets/gsap.min.js",
      "promo/video/assets/shots",
      "promo/video/assets/shots/cert.png",
      "promo/video/assets/shots/dashboard.png",
      "promo/video/assets/shots/games.png",
      "promo/video/assets/shots/home.png",
      "promo/video/assets/shots/player.png",
      "promo/video/assets/shots/quiz.png",
      "promo/video/assets/shots/review.png",
      "promo/video/assets/shots/surah.png",
      "promo/video/assets/shots/veil.png",
      "promo/video/hyperframes.json",
      "promo/video/index.html",
      "promo/video/meta.json",
      "promo/video/package.json",
      "public",
      "public/chars",
      "public/chars/ghayma.svg",
      "public/chars/nujum.svg",
      "public/chars/sabr.svg",
      "public/chars/shams.svg",
      "public/favicon.svg",
      "public/icons",
      "public/icons/apple-touch-icon.png",
      "public/icons/icon-192.png",
      "public/icons/icon-512.png",
      "public/icons/icon-maskable-512.png",
      "public/manifest.webmanifest",
      "public/mascot.svg",
      "public/quran.json",
      "public/sw.js",
      "public/tafsir.json",
      "scripts",
      "scripts/a11y.mjs",
      "scripts/check-data.mjs",
      "src",
      "src/achievements.js",
      "src/backup.js",
      "src/dashboard.js",
      "src/data.js",
      "src/games.js",
      "src/home.js",
      "src/kids.js",
      "src/main.js",
      "src/motion.js",
      "src/plan.js",
      "src/player.js",
      "src/pwa.js",
      "src/report.js",
      "src/review.js",
      "src/router.js",
      "src/search.js",
      "src/state.js",
      "src/styles.css",
      "src/surah.js",
      "src/tour.js",
      "src/util.js",
      "tests",
      "tests/backup.test.js",
      "tests/data.test.js",
      "tests/games.test.js",
      "tests/helpers.js",
      "tests/home.test.js",
      "tests/plan.test.js",
      "tests/report.test.js",
      "tests/router.test.js",
      "tests/search.test.js",
      "tests/setup.js",
      "tests/state.test.js",
      "tests/tour.test.js",
      "tests/util.test.js",
      "vite.config.js"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/Kx121999/rafiq-alhifz/commit/e16f7b52a8edf9421af098c5067eef0b5657b5a9"
    ]
  },
  {
    "full_name": "alfonsograziano/gliner-decide",
    "id": 1404254650,
    "description": "Pong in the browser, played by you or by GLiNER2.5-Decide AIs, plus a headless arena that ranks them",
    "homepage": null,
    "created_at": "2026-10-04T10:40:40Z",
    "pushed_at": "2026-10-04T11:05:52Z",
    "default_branch": "main",
    "language": "Python",
    "topics": [],
    "repo": "alfonsograziano/gliner-decide",
    "readme": "# GLiNER Pong\n\nPong in the browser where each paddle is either you or an AI. The AI is [fastino/GLiNER2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide), a small text classifier, used as a game-playing brain. You can play against it, or pick two AIs and watch them play each other.\n\nThe model never sees the game. Each AI has a **harness**: a small Python file that turns the game state into one sentence (\"The ball will arrive far above your paddle.\"), the labels the model chooses from, and how each label maps to a paddle move. The same model sits behind every AI, so the only difference between players is the harness.\n\n![Playing Pong against h004: the right-hand card shows the sentence the model reads and the move it picks](docs/demo.gif)\n\n*Playing against h004. [Full-quality video](docs/demo.mp4).*\n\nThe repo has two parts:\n\n- **The browser game** (`pong.html` + `pong_server.py`): play it, or watch two harnesses play.\n- **The arena** (`arena.py`): a headless tournament that ranks harnesses against each other. Results are in [REPORT.md](REPORT.md).\n\n## Setup\n\nYou need:\n\n- [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs Python 3.12 and the dependencies for you\n- About 2 GB of free disk space for the model, which downloads from Hugging Face on first run\n- A modern browser\n\n```bash\ngit clone https://github.com/alfonsograziano/gliner-decide.git\ncd gliner-decide\nuv sync\n```\n\n`uv sync` creates `.venv` with Python 3.12 and installs everything pinned in `uv.lock` (PyTorch and `gliner2`). To check that the model loads and answers, run `uv run main.py`. The first run downloads the model, so expect a few minutes.\n\n## Play\n\n```bash\nuv run pong_server.py\n```\n\nWait for `Pong ready on http://127.0.0.1:3070`, then open <http://127.0.0.1:3070>. The server loads the model before it starts listening, so on a cold start the page won't open for a few seconds.\n\nOn the page:\n\n1. Pick the **left player** and the **right player**. Each one is either **You** or one of the AI harnesses.\n   - You vs AI: choose **You** on one side and a harness on the other.\n   - AI vs AI: choose a harness on both sides. Pick the same harness twice for a mirror match.\n   - Two humans are not supported. If you pick **You** on both sides, the side you didn't just change switches to an AI.\n2. Press **Space** (or the **Serve** button) to serve. Space also pauses.\n3. Move your paddle with **W**/**S** or **↑**/**↓**. Press **R** (or **Reset**) for a new match.\n\nChanging a player starts a new match. Your choice is remembered in the browser.\n\nEach AI gets a card showing the sentence the model read, the move it chose, its confidence and its latency. The ball in the browser uses season 1 physics (top speed 820 px/s).\n\n### Server options\n\n```bash\nuv run pong_server.py --port 3071        # or: PORT=3071 uv run pong_server.py\nuv run pong_server.py --host 0.0.0.0     # reachable from other machines\nuv run pong_server.py --device cpu       # force the CPU (or: DEVICE=cpu)\n```\n\nBy default (`--device auto`) the model runs on the GPU when there is one: CUDA, then Apple's MPS, then the CPU. The first line the server prints says which one it picked. On an Apple Silicon Mac, MPS took about 90 ms per decision against about 160 ms on the CPU.\n\nThe server has no authentication and runs the model on your machine, so keep the default `127.0.0.1` unless you are on a network you trust.\n\n### Notes on AI vs AI\n\nThe model handles one request at a time. With two AIs the requests queue, so each AI decides about half as often as it would alone. Both sides are slowed equally, so the match is fair, but it plays differently from the arena, where every AI decides every 0.15 seconds of game time.\n\n## Add your own AI\n\nDrop a file named `h<number>_<slug>.py` into `players/`. The server picks it up the next time the page loads, with no restart. A harness defines:\n\n| Name | What it is |\n|---|---|\n| `NAME` | Short name shown in the menu |\n| module docstring | Description shown on the AI's card |\n| `SCHEMA` | A `classify_text` schema with exactly one task and its labels |\n| `ACTIONS` | Maps every label to `\"up\"`, `\"down\"` or `\"stay\"` |\n| `describe(state)` | Turns the game state into the text the model reads |\n\n`describe` always sees its own paddle on the right, so one harness plays either side. The text may not contain a label word or the words up, down, move or stay: the server rejects it if it does. See [players/h004_predict_landing.py](players/h004_predict_landing.py) for a small, complete example, and `uv run arena.py probe <id>` to see what a harness writes across many game states.\n\n## The arena\n\n```bash\nuv run arena.py list                    # list harnesses\nuv run arena.py match h004 h005         # play a match, log it, rebuild REPORT.md\nuv run arena.py ladder h006             # challenge the current champion\nuv run arena.py match h004 h005 --dry   # play without logging\nuv run arena.py report                  # rebuild REPORT.md from the log\n```\n\nThe arena runs on the CPU unless you pass `--device mps`, `cuda` or `auto`, so logged results stay reproducible. A different device can give tiny numeric differences, which may flip a close call and change a match.\n\nA match is 3 games to 15 points with fixed seeds, and the players swap sides each game. Results are appended to `results/matches.jsonl`, and [REPORT.md](REPORT.md) is generated from that file. Don't edit the report by hand.\n\n## Project layout\n\n| Path | What it is |\n|---|---|\n| `pong.html` | The browser game |\n| `pong_server.py` | Serves the page and answers `/decide` with the model's choice |\n| `arena.py` | Harness loading, the headless game, the ladder and the report |\n| `players/` | One file per harness |\n| `results/matches.jsonl` | Log of every arena match |\n| `REPORT.md` | Generated leaderboard and notes on each harness |\n| `docs/demo.gif`, `docs/demo.mp4` | The demo shown in this README, as a GIF and as a full-quality video |\n| `main.py`, `steer.py` | Standalone experiments with the model |\n\n## Troubleshooting\n\n- **The page says it can't load the players.** The server isn't running, or you opened `pong.html` directly from disk. Start `uv run pong_server.py` and use the address it prints.\n- **`Address already in use`.** Something else has port 3070. Use `--port`.\n- **The first start is slow.** The model is downloading (about 2 GB) and then loading. Later starts take a few seconds.\n- **A card shows `Model error`.** Check the terminal running the server for the traceback.\n",
    "tree_paths": [
      ".gitignore",
      ".python-version",
      "README.md",
      "REPORT.md",
      "arena.py",
      "docs",
      "docs/demo.gif",
      "docs/demo.mp4",
      "main.py",
      "players",
      "players/h001_numbers.py",
      "players/h002_words.py",
      "players/h003_words_no_direction.py",
      "players/h004_predict_landing.py",
      "players/h005_aim_away.py",
      "players/h006_aim_season2.py",
      "players/h007_smart_waiting.py",
      "players/h008_read_return.py",
      "pong.html",
      "pong_server.py",
      "pyproject.toml",
      "results",
      "results/matches.jsonl",
      "steer.py",
      "uv.lock"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/alfonsograziano/gliner-decide/commit/39374be8d2d564996da4edc54b427c9295a996e0",
      "https://github.com/alfonsograziano/gliner-decide/commit/76fd85e3d3cc4b27a226bbc8167b4209970924aa"
    ]
  },
  {
    "full_name": "BiofaCode/life-game",
    "id": 1403585931,
    "description": null,
    "homepage": "https://life-game-rosy.vercel.app",
    "created_at": "2026-10-03T19:51:25Z",
    "pushed_at": "2026-10-04T12:28:55Z",
    "default_branch": "main",
    "language": "TypeScript",
    "topics": [],
    "repo": "BiofaCode/life-game",
    "readme": "# Life Game\n\nDashboard RPG (Next.js App Router + Tailwind) branché sur Notion, installable en PWA.\n\n## Démarrer\n1. `cp .env.example .env.local` puis renseigne `NOTION_API_KEY`.\n2. Partage les 4 bases avec ton intégration Notion (… > Connexions).\n3. `npm install && npm run dev`\n\nLa formule de niveau et les IDs des bases sont dans `lib/config.ts`.\nIcônes PWA : `npm run icons`.\n\n## Vercel\nAjoute `NOTION_API_KEY` et `APP_PASSWORD` dans les variables d'environnement.\nL'app demandera ce mot de passe une fois par appareil (cookie valable 1 an).\n",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "README.md",
      "app",
      "app/actions.ts",
      "app/apple-icon.png",
      "app/error.tsx",
      "app/globals.css",
      "app/layout.tsx",
      "app/loading.tsx",
      "app/login",
      "app/login/LoginForm.tsx",
      "app/login/actions.ts",
      "app/login/page.tsx",
      "app/manifest.ts",
      "app/page.tsx",
      "components",
      "components/AddQuest.tsx",
      "components/Check.tsx",
      "components/CloseDay.tsx",
      "components/DailyGoal.tsx",
      "components/HabitList.tsx",
      "components/ProgressStepper.tsx",
      "components/ProjectCard.tsx",
      "components/ProjectsPanel.tsx",
      "components/QuestBoard.tsx",
      "components/QuestDetails.tsx",
      "components/RefreshButton.tsx",
      "components/Sheet.tsx",
      "components/Tabs.tsx",
      "components/ThemePicker.tsx",
      "components/Toast.tsx",
      "components/XpChart.tsx",
      "components/ui.tsx",
      "components/useOptimisticToggle.ts",
      "lib",
      "lib/auth.ts",
      "lib/config.ts",
      "lib/format.ts",
      "lib/notion-types.ts",
      "lib/notion.ts",
      "lib/streaks.ts",
      "lib/themes.ts",
      "next.config.ts",
      "package-lock.json",
      "package.json",
      "postcss.config.mjs",
      "proxy.ts",
      "public",
      "public/icons",
      "public/icons/icon-192.png",
      "public/icons/icon-512.png",
      "public/icons/maskable-512.png",
      "scripts",
      "scripts/gen-icons.mjs",
      "tsconfig.json",
      "vercel.json"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/BiofaCode/life-game/commit/45f5edad3b3ac15b4e7c08496de820893ddf7d20"
    ]
  },
  {
    "full_name": "DeepDiver1975/rex-ruckus",
    "id": 1404252485,
    "description": "Rex Ruckus: Meltdown — a fast, interactive 90s-style 3D shooter inspired by the Build-engine classics (Rust + Bevy)",
    "homepage": null,
    "created_at": "2026-10-04T10:37:54Z",
    "pushed_at": "2026-10-04T12:33:31Z",
    "default_branch": "main",
    "language": "Rust",
    "topics": [],
    "repo": "DeepDiver1975/rex-ruckus",
    "readme": "# Rex Ruckus: Meltdown\n\nA fast, interactive, 90s-style 3D shooter inspired by the Build-engine classics.\nOriginal code and content; CC0 assets credited in `CREDITS.md`.\n\nRun: `cargo run -p rr-game --release`\nTest: `cargo test --workspace`\n\n## Building\n\nRequires Rust 1.95+ (edition 2024). On Linux, Bevy also needs the ALSA and udev\ndevelopment packages, e.g. on Debian/Ubuntu:\n\n    sudo apt install libasound2-dev libudev-dev pkg-config\n\n## License\n\nGPL-3.0-or-later — see `LICENSE`.\n\n## Controls (M1)\n\nClick to capture the mouse · Esc releases it · WASD move · Mouse look · Space jump · C / Left Ctrl crouch\n",
    "tree_paths": [
      ".github",
      ".github/dependabot.yml",
      ".gitignore",
      "CREDITS.md",
      "Cargo.lock",
      "Cargo.toml",
      "LICENSE",
      "README.md",
      "assets",
      "assets/levels",
      "assets/levels/test_yard.ron",
      "crates",
      "crates/core",
      "crates/core/Cargo.toml",
      "crates/core/src",
      "crates/core/src/collide.rs",
      "crates/core/src/extrude.rs",
      "crates/core/src/fixtures.rs",
      "crates/core/src/geom.rs",
      "crates/core/src/lib.rs",
      "crates/core/src/map.rs",
      "crates/core/src/movement.rs",
      "crates/core/tests",
      "crates/core/tests/collide_props.rs",
      "crates/core/tests/test_yard.rs",
      "crates/game",
      "crates/game/Cargo.toml",
      "crates/game/src",
      "crates/game/src/coords.rs",
      "crates/game/src/level.rs",
      "crates/game/src/lib.rs",
      "crates/game/src/main.rs",
      "crates/game/src/paths.rs",
      "crates/game/src/player.rs",
      "crates/game/src/textures.rs",
      "crates/game/tests",
      "crates/game/tests/player_sim.rs"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/DeepDiver1975/rex-ruckus/commit/5bf2dc4d0c753eb63ae8fee5af8671e65938a6ff"
    ]
  },
  {
    "full_name": "yxxhixx/wasmou-docs",
    "id": 1404216563,
    "description": null,
    "homepage": null,
    "created_at": "2026-10-04T09:51:16Z",
    "pushed_at": "2026-10-04T11:04:21Z",
    "default_branch": "main",
    "language": "MDX",
    "topics": [],
    "repo": "yxxhixx/wasmou-docs",
    "readme": "# Wasmou documentation\n\nSource of the Wasmou API documentation, built with [Mintlify](https://mintlify.com).\n\n```bash\nnpm i -g mint\nmint dev        # preview at http://localhost:3000\nmint broken-links\n```\n\nPushing to `main` publishes the site (GitHub app connected in the Mintlify dashboard).\n\n- `docs.json`: theme, navigation\n- `openapi.json`: API reference source\n- `*.mdx`, `concepts/`, `guides/`: pages\n",
    "tree_paths": [
      ".mintignore",
      "AGENTS.md",
      "LICENSE",
      "README.md",
      "ai-tools.mdx",
      "authentication.mdx",
      "changelog.mdx",
      "concepts",
      "concepts/delivery.mdx",
      "concepts/pricing.mdx",
      "concepts/stock.mdx",
      "docs.json",
      "errors.mdx",
      "favicon.svg",
      "guides",
      "guides/automate-fulfilment.mdx",
      "guides/game-topups.mdx",
      "guides/sync-catalog.mdx",
      "index.mdx",
      "logo",
      "logo/dark.svg",
      "logo/light.svg",
      "openapi.json",
      "quickstart.mdx",
      "services",
      "services/account.mdx",
      "services/beinsports.mdx",
      "services/catalog.mdx",
      "services/freefire.mdx",
      "services/orders.mdx",
      "services/products.mdx",
      "services/pubg.mdx",
      "services/stock.mdx"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/yxxhixx/wasmou-docs/commit/9c62d812c19c61ce428198c9bcc3a190a181aca7"
    ]
  },
  {
    "full_name": "ErzenXz/lodestar",
    "id": 1403388147,
    "description": "Every game. One home. A fast, beautiful, Steam-style launcher for your Epic Games library.",
    "homepage": null,
    "created_at": "2026-10-03T16:12:01Z",
    "pushed_at": "2026-10-03T22:05:02Z",
    "default_branch": "main",
    "language": "TypeScript",
    "topics": [
      "electron",
      "epic-games",
      "game-launcher",
      "react",
      "steam-like",
      "typescript"
    ],
    "repo": "ErzenXz/lodestar",
    "readme": "<p align=\"center\">\n  <img src=\"branding/banner.png\" alt=\"Lodestar: Every game. One home.\" width=\"100%\">\n</p>\n\n<p align=\"center\">\n  <b>A fast, beautiful, Steam-style launcher for your Epic Games library.</b><br>\n  Your games, without the bad launcher. More stores are coming.\n</p>\n\n<p align=\"center\">\n  <img src=\"docs/screenshots/library.png\" alt=\"Lodestar library\" width=\"49%\">\n  <img src=\"docs/screenshots/game.png\" alt=\"Lodestar game page\" width=\"49%\">\n  <img src=\"docs/screenshots/downloads.png\" alt=\"Lodestar downloads\" width=\"49%\">\n  <img src=\"docs/screenshots/settings.png\" alt=\"Lodestar settings\" width=\"49%\">\n</p>\n\n## Why\n\nThe official Epic Games launcher is slow and awkward. Lodestar gives your Epic library the client it deserves: a library, downloads manager and store that feel like Steam. It installs, updates and launches your games itself, so the Epic launcher isn't needed.\n\n## Features\n\n- **Steam-style library.**\n  - **Sidebar:** Favorites, collections, Running and Updates sections, type-ahead search and full keyboard control.\n  - **Home:** \"Free on Epic this week\", recent games, and a cover-art grid with size and sort options.\n  - **Game pages:** hero art, a big PLAY button, play time, DLC, and Manage links.\n  - **Menus and dialogs:** right-click menus and a Properties dialog (launch options, updates, installed files, DLC, custom artwork).\n- **Its own downloader.** Downloads straight from Epic's CDN in parallel, checking every file as it's written. Pause and resume, even across restarts.\n  - **Smart updates:** reuses the data already on disk and only downloads what changed. A Rocket League patch dropped from 28.8 GB to 4.7 GB.\n  - **Repair:** verifies an install and re-downloads only damaged files.\n- **Steam-style downloads page:** network and disk graphs, a reorderable queue, a bandwidth limit, optional auto-updates, and downloads that pause while you play.\n- **Real play tracking.** \"Running\" and play time follow the game's actual processes, not just its launcher stub, so Stop really stops the game.\n- **Keeps your installs.** Adopts games the Epic launcher installed, including folders the launcher lost track of, with their DLC and optional content packs. You can also point it at an existing folder, or move an install to another drive.\n- **Add non-Epic games.** Add any program on your PC, like Steam's \"Add a Non-Steam Game\".\n- **Desktop shortcuts** that launch games through Lodestar (`lodestar://`).\n- **Epic's store, built in,** with one sign-in shared with the app. Lodestar never sees your password: you sign in on Epic's own page.\n- **Storage manager, system tray, close-to-tray and launch at login.**\n\n## Getting started\n\n```bash\nnpm install\nnpm run dev          # the full app, with hot reload\nnpm run dev:web      # UI only, in a browser at http://localhost:5174, with mock data\nnpm run typecheck\n```\n\n`dev:web` runs against a built-in mock backend, so you can work on the UI without an Epic account. Append `?mock=signedout`, `?mock=loading`, `?mock=many` (600 games) or `?mock=empty` to the URL to see those states.\n\n## Building\n\n| Command | Output |\n| --- | --- |\n| `npm run dist:win` | `dist/Lodestar-Setup-x.y.z.exe` (NSIS installer) |\n| `npm run dist:store` | `dist/Lodestar-x.y.z.appx` for the Microsoft Store |\n| `npm run dist:mac` | `dist/Lodestar-x.y.z-mac.dmg` (universal). You must build this on a Mac. |\n\nTo regenerate the icons from `branding/`, run `npx electron scripts/make-icons.cjs`.\n\n**Microsoft Store:**\n1. Reserve the name in Partner Center.\n2. Copy **Product identity** into the `appx` section of `electron-builder.yml`.\n3. Run `npm run dist:store` and upload the package.\n\n**macOS:** ship a signed and notarized DMG; set `CSC_LINK`, `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD` and `APPLE_TEAM_ID`. The Mac App Store's sandbox doesn't allow game launchers.\n\n## Architecture\n\n```\nsrc/\n  shared/      types + the IPC contract (api.ts is the whole surface)\n  main/        Electron main process\n    core/      library, downloads queue, settings, tray, process tracking, logging\n    providers/ one folder per store; implement GameProvider to add GOG, EA, Ubisoft...\n      epic/    OAuth, library and catalog, manifest parser, installer, launcher-data import\n      local/   non-Epic games\n  preload/     exposes window.lodestar\n  renderer/    React 19 UI (zustand store; Steam-style views)\ndocs/          Steam UI reference, QA audit, screenshots\nbranding/      logo, icon, banner\n```\n\n### How the Epic integration works\n- **Sign-in:** happens in a window showing Epic's real login page. Lodestar exchanges the resulting code for tokens, which are encrypted with the OS keychain and refreshed automatically.\n- **Library:** comes from Epic's library, catalog and assets services, so update detection is automatic.\n- **Installs:** Lodestar parses Epic's build manifests (binary and legacy JSON), downloads the chunks in parallel, writes the files, and checks each one's SHA-1. A resume log makes pausing and crashes safe. Updates reuse chunks already on disk; changed files are staged and swapped in at the end.\n- **Launching:** Lodestar runs the game directly with Epic's auth arguments, plus an ownership token for games that need one. Games managed by EA or Ubisoft go through the official launcher.\n\n## Status\n\nEarly but very usable. Not done yet: cloud saves, achievements, friends, and choosing optional content packs on first install. Logs are in `%APPDATA%\\Lodestar\\logs\\lodestar.log`.\n\nLodestar uses the same public launcher client credentials as the open-source projects [Legendary](https://github.com/derrod/legendary) and [Heroic](https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher). It is not affiliated with Epic Games, Inc. or Valve Corporation. \"Epic Games\" and \"Steam\" are trademarks of their owners.\n\n## License\n\n[MIT](LICENSE)\n",
    "tree_paths": [
      ".gitattributes",
      ".gitignore",
      "LICENSE",
      "README.md",
      "branding",
      "branding/BRIEF.md",
      "branding/banner.png",
      "branding/icon-1024.png",
      "branding/mark-1024.png",
      "branding/wordmark-transparent.png",
      "branding/wordmark.png",
      "build",
      "build/appx",
      "build/appx/LargeTile.png",
      "build/appx/SmallTile.png",
      "build/appx/Square150x150Logo.png",
      "build/appx/Square44x44Logo.png",
      "build/appx/StoreLogo.png",
      "build/appx/Wide310x150Logo.png",
      "build/entitlements.mac.plist",
      "build/icon.png",
      "docs",
      "docs/codex-review.md",
      "docs/fix-batch-a-report.md",
      "docs/fix-batch-a.md",
      "docs/fix-batch-c.md",
      "docs/fix-batch-d-report.md",
      "docs/fix-batch-d.md",
      "docs/qa-audit.md",
      "docs/screenshots",
      "docs/screenshots/downloads.png",
      "docs/screenshots/game.png",
      "docs/screenshots/library.png",
      "docs/screenshots/settings.png",
      "docs/screenshots/store.png",
      "docs/steam-ui-reference.md",
      "electron-builder.yml",
      "electron.vite.config.ts",
      "package-lock.json",
      "package.json",
      "resources",
      "resources/icon.png",
      "scripts",
      "scripts/make-icons.cjs",
      "src",
      "src/main",
      "src/main/core",
      "src/main/core/downloads.ts",
      "src/main/core/extras.ts",
      "src/main/core/library.ts",
      "src/main/core/log.ts",
      "src/main/core/metadata.ts",
      "src/main/core/processes.ts",
      "src/main/core/settings.ts",
      "src/main/core/store.ts",
      "src/main/core/tray.ts",
      "src/main/index.ts",
      "src/main/migrate.ts",
      "src/main/providers",
      "src/main/providers/epic",
      "src/main/providers/epic/api.ts",
      "src/main/providers/epic/fsBoundary.ts",
      "src/main/providers/epic/index.ts",
      "src/main/providers/epic/installer.ts",
      "src/main/providers/epic/integrity.test.cjs",
      "src/main/providers/epic/launcherData.ts",
      "src/main/providers/epic/manifest.ts",
      "src/main/providers/index.ts",
      "src/main/providers/local",
      "src/main/providers/local/index.ts",
      "src/main/providers/types.ts",
      "src/preload",
      "src/preload/index.d.ts",
      "src/preload/index.ts",
      "src/renderer",
      "src/renderer/index.html",
      "src/renderer/src",
      "src/renderer/src/App.tsx",
      "src/renderer/src/assets",
      "src/renderer/src/assets/mark.png",
      "src/renderer/src/components",
      "src/renderer/src/components/BottomBar.tsx",
      "src/renderer/src/components/Capsule.tsx",
      "src/renderer/src/components/ConfirmDialog.tsx",
      "src/renderer/src/components/ContextMenu.tsx",
      "src/renderer/src/components/InstallDialog.tsx",
      "src/renderer/src/components/LodestarMark.tsx",
      "src/renderer/src/components/Modal.tsx",
      "src/renderer/src/components/PropertiesDialog.tsx",
      "src/renderer/src/components/Sidebar.tsx",
      "src/renderer/src/components/SpeedGraph.tsx",
      "src/renderer/src/components/TitleBar.tsx",
      "src/renderer/src/components/Toasts.tsx",
      "src/renderer/src/components/library",
      "src/renderer/src/components/library/AddGameDialog.tsx",
      "src/renderer/src/components/library/CollectionPrompt.tsx",
      "src/renderer/src/components/library/DlcList.tsx",
      "src/renderer/src/components/library/Img.tsx",
      "src/renderer/src/components/library/controls.tsx",
      "src/renderer/src/components/library/glyphs.tsx",
      "src/renderer/src/components/library/libraryData.ts",
      "src/renderer/src/components/library/virtualWindow.ts",
      "src/renderer/src/components/shell",
      "src/renderer/src/components/shell/Dropdown.tsx",
      "src/renderer/src/components/shell/ErrorBoundary.tsx",
      "src/renderer/src/components/shell/Select.tsx",
      "src/renderer/src/components/shell/account.ts",
      "src/renderer/src/components/shell/format.ts",
      "src/renderer/src/components/shell/storeLifetime.ts",
      "src/renderer/src/components/shell/storeLinks.ts",
      "src/renderer/src/components/shell/storeSession.ts",
      "src/renderer/src/env.d.ts",
      "src/renderer/src/lib",
      "src/renderer/src/lib/devMock.ts",
      "src/renderer/src/lib/devMockData.json",
      "src/renderer/src/lib/entityIndex.ts",
      "src/renderer/src/lib/format.ts",
      "src/renderer/src/lib/gameActions.ts",
      "src/renderer/src/main.tsx",
      "src/renderer/src/store.ts",
      "src/renderer/src/styles",
      "src/renderer/src/styles/base.css",
      "src/renderer/src/styles/collections.css",
      "src/renderer/src/styles/downloads.css",
      "src/renderer/src/styles/game-details.css",
      "src/renderer/src/styles/game-page.css",
      "src/renderer/src/styles/library.css",
      "src/renderer/src/styles/settings.css",
      "src/renderer/src/styles/shell.css",
      "src/renderer/src/styles/store.css",
      "src/renderer/src/views",
      "src/renderer/src/views/DownloadsView.tsx",
      "src/renderer/src/views/GamePage.tsx",
      "src/renderer/src/views/LibraryHome.tsx",
      "src/renderer/src/views/LibraryView.tsx",
      "src/renderer/src/views/SettingsView.tsx",
      "src/renderer/src/views/StoreView.tsx",
      "src/renderer/src/views/library",
      "src/renderer/src/views/library/CollectionsPage.tsx",
      "src/renderer/src/views/library/FreeGamesShelf.tsx",
      "src/renderer/src/views/library/GameDetails.tsx",
      "src/renderer/src/views/library/GameGrid.tsx",
      "src/renderer/src/views/library/GamePageHost.tsx",
      "src/renderer/src/views/library/RecentShelf.tsx",
      "src/renderer/src/views/library/Shelf.tsx",
      "src/renderer/src/views/shell",
      "src/renderer/src/views/shell/StorageManager.tsx",
      "src/renderer/tests",
      "src/renderer/tests/batch-d.test.cjs",
      "src/renderer/tests/load-source.cjs",
      "src/renderer/tests/render-benchmark.cjs",
      "src/shared",
      "src/shared/api.ts",
      "src/shared/types.ts",
      "tsconfig.json",
      "tsconfig.node.json",
      "tsconfig.web.json",
      "vite.web.config.ts"
    ],
    "tree_truncated": false,
    "commits": [
      "https://github.com/ErzenXz/lodestar/commit/7fd406bc52707d4f48e084eafe4ee06f1fa55228"
    ]
  },
  {
    "repo": "shotif/synapse-2076",
    "search_description": "",
    "created_at": "2026-10-04T09:41:15Z",
    "id": "R_kgDOU7KGRQ",
    "meta": {
      "id": 1404208709,
      "node_id": "R_kgDOU7KGRQ",
      "name": "synapse-2076",
      "full_name": "shotif/synapse-2076",
      "private": false,
      "owner": {
        "login": "shotif",
        "id": 466457,
        "node_id": "MDQ6VXNlcjQ2NjQ1Nw==",
        "avatar_url": "https://avatars.githubusercontent.com/u/466457?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/shotif",
        "html_url": "https://github.com/shotif",
        "followers_url": "https://api.github.com/users/shotif/followers",
        "following_url": "https://api.github.com/users/shotif/following{/other_user}",
        "gists_url": "https://api.github.com/users/shotif/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/shotif/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/shotif/subscriptions",
        "organizations_url": "https://api.github.com/users/shotif/orgs",
        "repos_url": "https://api.github.com/users/shotif/repos",
        "events_url": "https://api.github.com/users/shotif/events{/privacy}",
        "received_events_url": "https://api.github.com/users/shotif/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/shotif/synapse-2076",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/shotif/synapse-2076",
      "forks_url": "https://api.github.com/repos/shotif/synapse-2076/forks",
      "keys_url": "https://api.github.com/repos/shotif/synapse-2076/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/shotif/synapse-2076/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/shotif/synapse-2076/teams",
      "hooks_url": "https://api.github.com/repos/shotif/synapse-2076/hooks",
      "issue_events_url": "https://api.github.com/repos/shotif/synapse-2076/issues/events{/number}",
      "events_url": "https://api.github.com/repos/shotif/synapse-2076/events",
      "assignees_url": "https://api.github.com/repos/shotif/synapse-2076/assignees{/user}",
      "branches_url": "https://api.github.com/repos/shotif/synapse-2076/branches{/branch}",
      "tags_url": "https://api.github.com/repos/shotif/synapse-2076/tags",
      "blobs_url": "https://api.github.com/repos/shotif/synapse-2076/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/shotif/synapse-2076/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/shotif/synapse-2076/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/shotif/synapse-2076/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/shotif/synapse-2076/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/shotif/synapse-2076/languages",
      "stargazers_url": "https://api.github.com/repos/shotif/synapse-2076/stargazers",
      "contributors_url": "https://api.github.com/repos/shotif/synapse-2076/contributors",
      "subscribers_url": "https://api.github.com/repos/shotif/synapse-2076/subscribers",
      "subscription_url": "https://api.github.com/repos/shotif/synapse-2076/subscription",
      "commits_url": "https://api.github.com/repos/shotif/synapse-2076/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/shotif/synapse-2076/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/shotif/synapse-2076/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/shotif/synapse-2076/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/shotif/synapse-2076/contents/{+path}",
      "compare_url": "https://api.github.com/repos/shotif/synapse-2076/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/shotif/synapse-2076/merges",
      "archive_url": "https://api.github.com/repos/shotif/synapse-2076/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/shotif/synapse-2076/downloads",
      "issues_url": "https://api.github.com/repos/shotif/synapse-2076/issues{/number}",
      "pulls_url": "https://api.github.com/repos/shotif/synapse-2076/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/shotif/synapse-2076/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/shotif/synapse-2076/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/shotif/synapse-2076/labels{/name}",
      "releases_url": "https://api.github.com/repos/shotif/synapse-2076/releases{/id}",
      "deployments_url": "https://api.github.com/repos/shotif/synapse-2076/deployments",
      "created_at": "2026-10-04T09:41:15Z",
      "updated_at": "2026-10-04T12:27:30Z",
      "pushed_at": "2026-10-04T12:27:25Z",
      "git_url": "git://github.com/shotif/synapse-2076.git",
      "ssh_url": "[email protected]:shotif/synapse-2076.git",
      "clone_url": "https://github.com/shotif/synapse-2076.git",
      "svn_url": "https://github.com/shotif/synapse-2076",
      "homepage": null,
      "size": 2345,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "GDScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# SYNAPSE-2076\n\n**A hard-systems, turn-based simulation of the compounding effects of AI, energy saturation, labor displacement and machine alignment from 2026 to 2076.** Built in Godot 4.3+ (GDScript), headless-first.\n\n![Dashboard with the holographic globe](docs/screenshots/dashboard_globe.png)\n\nYou pick one of four asymmetric perspectives: Frontier Lab CEO, Global AI Governance Chair, Emergent Superintelligence or Post-Work Citizen Coalition. You then play 100 semi-annual turns while the other three factions act on their own. They are driven by an LLM when an OpenAI-compatible endpoint is reachable, and by a deterministic heuristic engine otherwise. Six coupled macro-metrics evolve every turn. The world drifts, tips and settles into one of eight civilizational end-states.\n\n| Crisis card | Neural lattice (alignment drift view) | Endgame debrief |\n|---|---|---|\n| ![Crisis card](docs/screenshots/crisis_card.png) | ![Neural lattice](docs/screenshots/dashboard_lattice.png) | ![Debrief](docs/screenshots/endgame_debrief.png) |\n\n**Play it in your browser at https://shotif.github.io/synapse-2076/.** It needs a desktop browser with WebGL 2 and nothing to install. The web build starts with the heuristic engine driving the other factions; see the [web build note](#llm-decision-layer) to connect a model. Every push to `main` redeploys it.\n\n## Quick start\n\n**Requirements:** the [Godot 4.3+](https://godotengine.org/download) standard build (not .NET). The project uses the GL Compatibility renderer, so it runs on modest GPUs and exports to the web.\n\n1. Open `project.godot` in the Godot editor and press **F5**. The main scene is `res://ui/main_dashboard.tscn`.\n2. Pick a perspective and a seed. Tick **SPECTATE** to watch the AI play your role.\n3. Each turn:\n   - Resolve or defer the **crisis card**. A deferred card comes back two turns later, escalated.\n   - Select up to **two directives**. Each has an intensity slider from 1.0× to 2.0× of its cost; effects scale as intensity^0.8.\n   - Press **EXECUTE DIRECTIVES**.\n4. Toggle the 3D view between **GLOBE** and **NEURAL LATTICE**. Drag to orbit, and use the wheel to zoom.\n5. Click the LLM badge in the header to configure an endpoint.\n\nTo run headless from the command line (the first command builds the `class_name` cache on a fresh clone):\n\n```bash\ngodot --headless --path . --import\ngodot --headless --path . -- --role=CEO --seed=42                        # autoplay one campaign, print the end-state\ngodot --headless --path . --script res://tests/headless_sim_test.gd      # PRD smoke test: 100 turns x 4 roles\n```\n\n## Testing\n\nAll tests run headless, with no addons and no GPU:\n\n```bash\ntools/run_tests.sh                                   # import, lint every script and shader, unit tests, 100-turn sim\ntools/run_tests.sh --suite=engine --filter=async     # one suite, filtered by test name\nGODOT=/path/to/Godot_v4.3-stable_linux.x86_64 tools/run_tests.sh\n```\n\n- **`tests/run_tests.gd`** is a zero-dependency runner. Assertion names mirror [GUT](https://github.com/bitwes/Gut) (`assert_eq`, `assert_almost_eq`, `assert_between`, …), so suites port to GUT by changing their `extends` line.\n- **Suites** live in `tests/unit/`. There are 13 of them with 147 tests:\n  - world dynamics fuzzing (2,000 extreme ticks with no NaN or overflow)\n  - tech tree, compute physics, factions and the PRD loss conditions\n  - heuristic decision trees (PRD 7.4 rules)\n  - crisis deck\n  - victory matrix\n  - the engine state machine, including async providers and stale or invalid decisions\n  - prompt validation\n  - the LLM service against a real mock HTTP server (timeouts, HTTP 500, garbage JSON, auth failures)\n  - headless dashboard smoke tests\n  - balance guardrails\n  - full 100-turn campaigns in automated and scripted-interactive modes\n- **The wrapper fails on script errors.** `tools/run_tests.sh` fails if Godot prints any `SCRIPT ERROR`, because GDScript runtime errors don't change the exit code.\n- **CI** runs the same script on every push against Godot 4.3 (the minimum) and 4.7 ([`.github/workflows/ci.yml`](.github/workflows/ci.yml)). The suite has also been verified locally on 4.4.1 and 4.6.\n- **Pages** runs it again on every push to `main` before exporting and deploying the web build ([`.github/workflows/pages.yml`](.github/workflows/pages.yml)).\n\nOther tools:\n\n| Command | Purpose |\n|---|---|\n| `godot --headless --path . --script res://tools/monte_carlo.gd -- --runs=60` | Balance report: end-state distribution, termination reasons, verdicts, per-role outcomes and metric trajectories |\n| `godot --headless --path . --script res://tools/check_scripts.gd` | Compile every `.gd`, `.gdshader` and `.tscn` file |\n| `xvfb-run -a godot --path . --rendering-driver opengl3 --resolution 1600x900 --script res://tools/capture_dashboard.gd -- --out=docs/screenshots` | Drive the real UI through a campaign and save screenshots (works without a GPU through Mesa llvmpipe) |\n| `... --script res://tools/capture_scene.gd -- --scene=res://viewports_3d/globe_viewport.tscn --out=/tmp/globe.png` | Render a single scene |\n\n## LLM decision layer\n\nThe three non-player factions are queried through any **OpenAI-compatible `/chat/completions` endpoint**, such as Ollama, vLLM, LM Studio, OpenRouter, OpenAI, or Anthropic's OpenAI SDK compatibility layer.\n\n**Request and response.** Each faction receives:\n\n- a persona and objective\n- its directive catalog with costs\n- a compact JSON snapshot of the world and its own currencies\n- the PRD 7.3 response schema\n\nIt must answer with:\n\n```json\n{\"faction\": \"GOVERNANCE_COUNCIL\", \"turn\": 42, \"rationale\": \"...\", \"selected_action\": \"PASS_AUTOMATION_DIVIDEND\",\n \"resource_expenditure\": {\"political_capital\": 35, \"enforcement_budget\": 15}, \"public_statement\": \"...\"}\n```\n\n**Validation.** Replies are untrusted:\n\n- The JSON is extracted even from prose or code fences.\n- The action must exist in the catalog and be available this turn.\n- Spending is clamped to 2× the base cost, and unknown currencies are dropped.\n- Free text is sanitized and truncated, then BBCode-escaped before display.\n\n**Fallback.** One `HeuristicFallback` decision replaces the reply when:\n\n- the service is offline,\n- the request exceeds the timeout (5,000 ms by default),\n- the server returns an HTTP error, or\n- the reply fails validation.\n\n**Circuit breaker.** Two consecutive transport failures flip the badge to `▲ [LLM OFFLINE - RUNNING HEURISTIC FALLBACK ENGINE]`, and the service re-probes every 60 s.\n\n**Determinism.** Decisions that arrive asynchronously are applied in a fixed faction order, so a seed replays identically regardless of latency.\n\n**Configuration.** Each source overrides the ones above it:\n\n1. Project settings `synapse/llm/*`: enabled, endpoint_url, model_name, timeout_sec, json_mode, probe_on_start\n2. `user://synapse_llm.cfg`: written by the in-game settings dialog. The API key is only saved if you tick the box.\n3. Environment variables: `SYNAPSE_LLM_ENDPOINT`, `SYNAPSE_LLM_MODEL`, `SYNAPSE_LLM_API_KEY`, `SYNAPSE_LLM_ENABLED`, `SYNAPSE_LLM_TIMEOUT`, `SYNAPSE_LLM_JSON_MODE`\n\n```bash\n# Local Ollama (the default endpoint)\nollama pull llama3:8b && ollama serve\n\n# vLLM\nSYNAPSE_LLM_ENDPOINT=http://127.0.0.1:8000/v1/chat/completions SYNAPSE_LLM_MODEL=meta-llama/Llama-3.1-8B-Instruct godot --path .\n\n# Claude through Anthropic's OpenAI-compatible endpoint (or point at your own Claude API proxy)\nSYNAPSE_LLM_ENDPOINT=https://api.anthropic.com/v1/chat/completions SYNAPSE_LLM_MODEL=claude-sonnet-5-5 \\\nSYNAPSE_LLM_API_KEY=sk-ant-... SYNAPSE_LLM_JSON_MODE=0 godot --path .\n```\n\nAPI keys are sent as `Authorization: Bearer`. If an endpoint rejects `response_format`, set JSON mode off; the prompt still demands JSON-only output and the parser copes with prose.\n\n> **Web build:** the browser build never contacts the default localhost endpoint on its own, because a public page reaching into your machine triggers browser permission prompts. To use a local model, click the LLM badge and press **TEST CONNECTION** or **SAVE & CLOSE**. Your browser may ask you to allow access to local services, and the endpoint must allow the page's origin through CORS, for example `OLLAMA_ORIGINS=https://shotif.github.io ollama serve`. Anything shipped to the client is public, so point a web build at your own proxy rather than embedding a provider key. A key you choose to remember is stored in that browser's site storage.\n\n## Architecture\n\nThe design is headless-first: everything under `core/`, `entities/` and `systems/` (except the `LLMService` node) extends `RefCounted`. It runs without a scene tree, and the UI and 3D views bind only through signals.\n\n```\n┌────────────── ui/main_dashboard.gd (Control) ───────────────┐\n│ meters · directive panel · crisis dialog · event feed · badge │◄── signals ──┐\n│ SubViewports: viewports_3d/globe_viewport · neural_lattice   │              │\n└───────────────┬─────────────────────────────────────────────┘              │\n                │ submit_player_turn / advance                                │\n┌───────────────▼──────────── core/simulation_engine.gd (RefCounted) ─────────┴┐\n│ 1 WORLD_TICK  ComputeScaling → TechTreeManager → WorldState.resolve_coupling  │\n│ 2 ACTORS      build_observation → LLMService ⇄ HeuristicFallback → resolve    │\n│ 3 PLAYER      DilemmaDeck.draw → crisis option + directives → EffectResolver  │\n│ 4 TELEMETRY   losses / collapses / catastrophes → history → VictoryMatrix      │\n└──────────────────────────────────────────────────────────────────────────────┘\n```\n\n```\ncore/\n  simulation_engine.gd     four-phase turn state machine and signals\n  world_state.gd           six macro metrics, secondary indices, coupled equations, history\n  tech_tree_manager.gd     scaling laws, thermal walls, eras, paradigm shifts, emergence, alignment tax\n  victory_matrix.gd        eight end-states, nearest attractor, role verdicts\n  effect_resolver.gd       applies declarative effect dictionaries (actions, cards, emergences)\n  sim_constants.gd         faction IDs, calendar, role descriptions\nentities/\n  actor_base.gd            currencies, costs and intensity, cooldowns, grievances, observations\n  ceo_faction.gd  governance_faction.gd  asi_faction.gd  citizen_faction.gd\n  faction_registry.gd\nsystems/\n  compute_scaling.gd       grid capacity, power demand, efficiency, saturation, throttle\n  dilemma_deck.gd          22 procedural crisis templates, injection, deferral and escalation, autoplay chooser\n  llm/llm_service.gd       HTTPRequest client, probe, 5 s timeout, circuit breaker, fallback\n  llm/prompt_templates.gd  personas, request bodies, JSON extraction, strict validation\n  llm/heuristic_fallback.gd  deterministic decision trees for all four roles\nui/\n  main_dashboard.tscn/.gd  2D Cyber-Telemetry HUD (#0D1117 / #00E5FF / #FFB300 / #FF1744)\n  components/              meter_bar, llm_status_badge, directive_panel, dilemma_dialog,\n                           role_select, endgame_debrief, trajectory_chart, llm_settings_dialog\n  theme/                   runtime Theme (JetBrains Mono + Inter)\nviewports_3d/\n  globe_viewport.tscn      wireframe Earth, Natural Earth land dots, datacenter heat, cables, embargo rings\n  neural_lattice.tscn      force-directed layered graph, drift-driven glow and jitter, loss landscape\n  shaders/                 wireframe_globe, neural_glow, data_flow, hologram_point, loss_landscape\ntests/   tools/   docs/\n```\n\nThe coupled equations, scaling laws, faction economies and endgame logic are specified in **[docs/SIMULATION_MODEL.md](docs/SIMULATION_MODEL.md)**.\n\n## PRD roadmap status\n\n| Milestone | Status |\n|---|---|\n| **M1:** headless simulation core | ✅ `project.godot` (headless autorun settings), `world_state.gd`, `simulation_engine.gd`, 100-turn NaN and overflow tests |\n| **M2:** asymmetric entities and heuristic fallback | ✅ `actor_base.gd` and four factions with PRD currencies, directives and loss conditions; decision trees for all four roles; autonomous actors every tick, w",
    "tree_paths": [
      ".editorconfig",
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".github/workflows/pages.yml",
      ".gitignore",
      "CLAUDE.md",
      "LICENSE",
      "README.md",
      "build",
      "build/.gdignore",
      "core",
      "core/effect_resolver.gd",
      "core/sim_constants.gd",
      "core/simulation_engine.gd",
      "core/tech_tree_manager.gd",
      "core/victory_matrix.gd",
      "core/world_state.gd",
      "docs",
      "docs/.gdignore",
      "docs/SIMULATION_MODEL.md",
      "docs/screenshots",
      "docs/screenshots/crisis_card.png",
      "docs/screenshots/dashboard_globe.png",
      "docs/screenshots/dashboard_lattice.png",
      "docs/screenshots/endgame_debrief.png",
      "docs/screenshots/role_select.png",
      "entities",
      "entities/actor_base.gd",
      "entities/asi_faction.gd",
      "entities/ceo_faction.gd",
      "entities/citizen_faction.gd",
      "entities/faction_registry.gd",
      "entities/governance_faction.gd",
      "export_presets.cfg",
      "icon.svg",
      "icon.svg.import",
      "project.godot",
      "systems",
      "systems/compute_scaling.gd",
      "systems/dilemma_deck.gd",
      "systems/llm",
      "systems/llm/heuristic_fallback.gd",
      "systems/llm/llm_service.gd",
      "systems/llm/prompt_templates.gd",
      "tests",
      "tests/framework",
      "tests/framework/test_case.gd",
      "tests/headless_sim_test.gd",
      "tests/run_tests.gd",
      "tests/support",
      "tests/support/mock_llm_server.gd",
      "tests/unit",
      "tests/unit/test_balance.gd",
      "tests/unit/test_compute_scaling.gd",
      "tests/unit/test_dilemma_deck.gd",
      "tests/unit/test_factions.gd",
      "tests/unit/test_full_campaign.gd",
      "tests/unit/test_heuristic_fallback.gd",
      "tests/unit/test_llm_service.gd",
      "tests/unit/test_prompt_templates.gd",
      "tests/unit/test_simulation_engine.gd",
      "tests/unit/test_tech_tree_manager.gd",
      "tests/unit/test_ui_dashboard.gd",
      "tests/unit/test_victory_matrix.gd",
      "tests/unit/test_world_state.gd",
      "tools",
      "tools/capture_dashboard.gd",
      "tools/capture_scene.gd",
      "tools/check_scripts.gd",
      "tools/monte_carlo.gd",
      "tools/run_tests.sh",
      "ui",
      "ui/components",
      "ui/components/dilemma_dialog.gd",
      "ui/components/dilemma_dialog.tscn",
      "ui/components/directive_panel.gd",
      "ui/components/directive_panel.tscn",
      "ui/components/endgame_debrief.gd",
      "ui/components/llm_settings_dialog.gd",
      "ui/components/llm_status_badge.gd",
      "ui/components/llm_status_badge.tscn",
      "ui/components/meter_bar.gd",
      "ui/components/meter_bar.tscn",
      "ui/components/role_select.gd",
      "ui/components/trajectory_chart.gd",
      "ui/fonts",
      "ui/fonts/Inter-OFL.txt",
      "ui/fonts/Inter-Regular.ttf",
      "ui/fonts/Inter-Regular.ttf.import",
      "ui/fonts/Inter-SemiBold.ttf",
      "ui/fonts/Inter-SemiBold.ttf.import",
      "ui/fonts/JetBrainsMono-Bold.ttf",
      "ui/fonts/JetBrainsMono-Bold.ttf.import",
      "ui/fonts/JetBrainsMono-OFL.txt",
      "ui/fonts/JetBrainsMono-Regular.ttf",
      "ui/fonts/JetBrainsMono-Regular.ttf.import",
      "ui/main_dashboard.gd",
      "ui/main_dashboard.tscn",
      "ui/theme",
      "ui/theme/cyber_palette.gd",
      "ui/theme/cyber_theme.gd",
      "ui/ui_format.gd",
      "viewports_3d",
      "viewports_3d/globe_viewport.gd",
      "viewports_3d/globe_viewport.tscn",
      "viewports_3d/landmask_data.gd",
      "viewports_3d/neural_lattice.gd",
      "viewports_3d/neural_lattice.tscn",
      "viewports_3d/orbit_camera.gd",
      "viewports_3d/shaders",
      "viewports_3d/shaders/data_flow.gdshader",
      "viewports_3d/shaders/hologram_point.gdshader",
      "viewports_3d/shaders/loss_landscape.gdshader",
      "viewports_3d/shaders/neural_glow.gdshader",
      "viewports_3d/shaders/wireframe_globe.gdshader"
    ],
    "tree_truncated": false
  },
  {
    "repo": "phsrp/Vibe-video-editor",
    "search_description": "vibe coded simple video editor using claude sonnet 5.5",
    "created_at": "2026-10-04T11:15:17Z",
    "id": "R_kgDOU7O0uQ",
    "meta": {
      "id": 1404286137,
      "node_id": "R_kgDOU7O0uQ",
      "name": "Vibe-video-editor",
      "full_name": "phsrp/Vibe-video-editor",
      "private": false,
      "owner": {
        "login": "phsrp",
        "id": 313348654,
        "node_id": "U_kgDOEq1SLg",
        "avatar_url": "https://avatars.githubusercontent.com/u/313348654?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/phsrp",
        "html_url": "https://github.com/phsrp",
        "followers_url": "https://api.github.com/users/phsrp/followers",
        "following_url": "https://api.github.com/users/phsrp/following{/other_user}",
        "gists_url": "https://api.github.com/users/phsrp/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/phsrp/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/phsrp/subscriptions",
        "organizations_url": "https://api.github.com/users/phsrp/orgs",
        "repos_url": "https://api.github.com/users/phsrp/repos",
        "events_url": "https://api.github.com/users/phsrp/events{/privacy}",
        "received_events_url": "https://api.github.com/users/phsrp/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/phsrp/Vibe-video-editor",
      "description": "vibe coded simple video editor using claude sonnet 5.5",
      "fork": false,
      "url": "https://api.github.com/repos/phsrp/Vibe-video-editor",
      "forks_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/forks",
      "keys_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/teams",
      "hooks_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/hooks",
      "issue_events_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/issues/events{/number}",
      "events_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/events",
      "assignees_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/assignees{/user}",
      "branches_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/branches{/branch}",
      "tags_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/tags",
      "blobs_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/languages",
      "stargazers_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/stargazers",
      "contributors_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/contributors",
      "subscribers_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/subscribers",
      "subscription_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/subscription",
      "commits_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/contents/{+path}",
      "compare_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/merges",
      "archive_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/downloads",
      "issues_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/issues{/number}",
      "pulls_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/labels{/name}",
      "releases_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/releases{/id}",
      "deployments_url": "https://api.github.com/repos/phsrp/Vibe-video-editor/deployments",
      "created_at": "2026-10-04T11:15:17Z",
      "updated_at": "2026-10-04T12:16:53Z",
      "pushed_at": "2026-10-04T12:16:51Z",
      "git_url": "git://github.com/phsrp/Vibe-video-editor.git",
      "ssh_url": "[email protected]:phsrp/Vibe-video-editor.git",
      "clone_url": "https://github.com/phsrp/Vibe-video-editor.git",
      "svn_url": "https://github.com/phsrp/Vibe-video-editor",
      "homepage": null,
      "size": 2835,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<p align=\"center\">\n  <img src=\"docs/banner.png\" alt=\"Completely made with AI: Vibe Video Editor was designed, written, tested and packaged by Claude (Anthropic) from plain-English instructions.\" width=\"100%\">\n</p>\n\n<h1 align=\"center\">Vibe Video Editor</h1>\n\n<p align=\"center\">\n  A Windows video editor with goofy PowerPoint-style transitions, keyframes, multi-track audio and 4K export.<br>\n  <b>Every line of it was written by AI.</b>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/phsrp/Vibe-video-editor/releases/latest\"><img alt=\"Download\" src=\"https://img.shields.io/github/v/release/phsrp/Vibe-video-editor?label=download&color=c4a7e7&style=for-the-badge\"></a>\n  <img alt=\"Made with AI\" src=\"https://img.shields.io/badge/made%20with-AI-ebbcba?style=for-the-badge\">\n  <img alt=\"Windows\" src=\"https://img.shields.io/badge/platform-Windows-31748f?style=for-the-badge\">\n</p>\n\n---\n\n> ## 🤖 Made completely with AI\n> This whole app (the editor, the transitions, the exporter, the installer, the updater and this page) was built by\n> **Claude** (an AI made by Anthropic) through a conversation. The person who asked for it does not write code: they\n> described what they wanted in plain English, and the AI wrote, ran, tested and fixed everything itself.\n> Expect the occasional rough edge, and please report anything odd under **Issues**.\n\n---\n\n## Screenshots\n\n**Home page.** Start a new project, open one, or jump back into a recent one. You can keep several projects open at once, each in its own tab.\n\n![Home page](docs/screenshots/home.png)\n\n**The editor.** Media bin, live preview, timeline with separate audio lanes, and an inspector for motion and transitions. Here the preview is partway through a cube transition.\n\n![The editor](docs/screenshots/editor.png)\n\n**Light theme.** Rosé Pine (dark) is the default; Rosé Pine Dawn is one click away in Settings.\n\n![Light theme](docs/screenshots/editor-dawn.png)\n\n**Export.** 1080p, 2K or 4K, 24/30/60 fps, H.264 or H.265, adjustable bitrate, with a progress bar and time estimate.\n\n![Export dialog](docs/screenshots/export.png)\n\n## Features\n\n### Editing\n- **Import** videos, images and audio files (button or drag-and-drop from Explorer).\n- **Timeline:** drag clips to reorder, drag their edges to **trim**, **split** at the playhead, zoom in and out, undo and redo.\n- **Select like in Explorer:** drag a box around clips and audio to select several, or hold Ctrl/Shift to add to the selection.\n- **Groups:** group any mix of video and audio clips so they move together; ungroup when you are done.\n- **Freeze frame:** save the exact frame under the playhead as an image and insert it. Drag its edge (or type seconds) to hold it as long as you like.\n- **Motion keyframes:** animate **position, scale, rotation and opacity** with seven easing styles (linear, smooth, ease in, ease out, overshoot, bounce, hold). Keyframes show as diamonds on the timeline, and you can drag them to retime.\n\n### Transitions\n- **18 PowerPoint-style transitions**, where the whole frame does the effect: cube, doors, curtains, page curl, peel, fall over, fracture, shred, crush, wind, vortex, ripple, spin, rotate, push, wipe, zoom and fade.\n- Pick one per cut and set its length (0.2 to 4 seconds). Preview it with one click.\n- **Add your own:** transitions are plain `.glsl` files in the [gl-transitions](https://gl-transitions.com/) format. Drop a new file into the transitions folder, press **Reload**, and it appears. No rebuild needed.\n\n![All 18 transitions](docs/screenshots/transitions.png)\n\n### Audio\n- A recording with several audio streams (for example game + microphone) shows each stream as **its own lane** with its own volume and mute.\n- Add extra audio files (music, voice-over) on their own tracks.\n- **Detach** one stream, or all of a clip's audio, to move, trim or delete it on its own, and **group** it back later.\n- Audio crossfades automatically during transitions.\n\n### Projects\n- **Save and open** projects as `.json` files. Your videos are referenced, not copied.\n- **Autosave** every 15 seconds. If the editor closes before you save, it offers to bring the work back.\n- **Home page** with your recent projects, and **tabs** so you can work on several projects at once.\n\n### Export\n- **1080p, 2K or 4K**, **24, 30 or 60 fps**, **H.264 or H.265**, adjustable **bitrate**, and a speed/quality setting.\n- Mix all audio into one track, or **keep every track separate** in the file.\n- Progress bar with an estimated time left, and a Cancel button.\n- Powered by a bundled copy of FFmpeg, so there is nothing else to install.\n\n## Install\n\n1. Open the [**Releases** page](https://github.com/phsrp/Vibe-video-editor/releases/latest).\n2. Download **Vibe-Video-Editor-Setup-x.y.z.exe** and run it. It installs just for you (no administrator password) and adds a Desktop and Start menu shortcut.\n3. Windows may say **\"Windows protected your PC\"** because the installer is not signed with a paid certificate. Click **More info**, then **Run anyway**.\n\n## Updates\n\nThe editor can tell you when a new version is out, and it **never downloads anything without asking**.\n\n**Checking for updates**\n- Click **Settings** (top right), then **Check now**. The version number next to it also opens Settings.\n- Or just wait: with automatic updates on, it checks a few seconds after the editor starts and every few hours.\n\n**When there is an update** a window pops up with two choices:\n- **Download** shows a progress bar, then **Restart now** or **Later** (if you pick Later, it installs the next time you close the editor).\n- **Remind me later** closes the window and asks again in about 4 hours. A small **Update** button stays in the top bar.\n\n**Turning automatic updates on or off**\n- Open **Settings** (top right) and use the **Automatic updates** switch. It is **on by default**.\n- When it is off, the editor never checks by itself. You can still use **Check now** whenever you like.\n\nYour projects, settings and your own transitions are kept when you update.\n\n## Keyboard shortcuts\n\nEvery shortcut can be changed under **⌨ Shortcuts** in the timeline toolbar.\n\n| Action | Default |\n|---|---|\n| Split at the playhead | `S` |\n| Freeze frame | `F` |\n| Play / pause | `Space` |\n| Step one frame back / forward | `←` / `→` |\n| Go to the start | `Home` |\n| Delete the selection | `Delete` |\n| Group / Ungroup | `Ctrl+G` / `Ctrl+Shift+G` |\n| Undo / Redo | `Ctrl+Z` / `Ctrl+Y` |\n| Save / Save as | `Ctrl+S` / `Ctrl+Shift+S` |\n| Open a project | `Ctrl+O` |\n| Export | `Ctrl+E` |\n\n## Where things are stored\n\n| What | Where |\n|---|---|\n| Your projects | wherever you saved the `.json` file |\n| Settings, recent projects, caches | `%APPDATA%\\vibe-video-editor` |\n| Your transitions folder | `%APPDATA%\\vibe-video-editor\\transitions` (also the **Transitions folder** button in the editor) |\n\n## Build it yourself\n\nYou need [Node.js](https://nodejs.org) (LTS).\n\n```bash\nnpm install\nnpm start          # run the editor\nnpm run dist       # build the installer into the release folder\n```\n\nReleases are built automatically by GitHub when a version tag such as `v1.0.1` is pushed (see [PUBLISHING.md](PUBLISHING.md)).\n\n## Built with\n\n- [Electron](https://www.electronjs.org/) and [React](https://react.dev/), with WebGL for the preview and transitions\n- [FFmpeg](https://ffmpeg.org/) through `ffmpeg-static` for import, audio and export. **Note:** that FFmpeg build includes GPL-licensed encoders (x264 and x265), which matters if you redistribute the installer.\n- Transition format from [gl-transitions](https://gl-transitions.com/)\n- [Montserrat](https://github.com/JulietaUla/Montserrat) font (SIL Open Font License)\n- [Rosé Pine](https://rosepinetheme.com/) colours (MIT)\n- Icons drawn in the style of [Lucide](https://lucide.dev/) (ISC)\n\n## License\n\nNo license has been chosen yet, so all rights are reserved by default. If you want others to be able to use or change this code, add a license file.\n",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/release.yml",
      ".gitignore",
      "PUBLISHING.md",
      "README.md",
      "RELEASE_NOTES.md",
      "build",
      "build/icon.png",
      "docs",
      "docs/banner.png",
      "docs/screenshots",
      "docs/screenshots/editor-dawn.png",
      "docs/screenshots/editor.png",
      "docs/screenshots/export.png",
      "docs/screenshots/home.png",
      "docs/screenshots/settings.png",
      "docs/screenshots/transitions.png",
      "electron",
      "electron/exporter.js",
      "electron/main.js",
      "electron/preload.js",
      "index.html",
      "package-lock.json",
      "package.json",
      "public",
      "public/icon.png",
      "scripts",
      "scripts/make-banner.js",
      "scripts/make-icon.js",
      "src",
      "src/App.jsx",
      "src/Editor.jsx",
      "src/ExportDialog.jsx",
      "src/Home.jsx",
      "src/Icon.jsx",
      "src/Inspector.jsx",
      "src/KeybindDialog.jsx",
      "src/Preview.jsx",
      "src/SettingsDialog.jsx",
      "src/Timeline.jsx",
      "src/UpdateDialog.jsx",
      "src/exporter.js",
      "src/glRenderer.js",
      "src/keybinds.js",
      "src/main.jsx",
      "src/motion.js",
      "src/project.js",
      "src/state.js",
      "src/styles.css",
      "start.bat",
      "transitions",
      "transitions/crush.glsl",
      "transitions/cube.glsl",
      "transitions/curtains.glsl",
      "transitions/doors.glsl",
      "transitions/fade.glsl",
      "transitions/fall.glsl",
      "transitions/fracture.glsl",
      "transitions/pagecurl.glsl",
      "transitions/peel.glsl",
      "transitions/push.glsl",
      "transitions/ripple.glsl",
      "transitions/rotate.glsl",
      "transitions/shred.glsl",
      "transitions/spin.glsl",
      "transitions/vortex.glsl",
      "transitions/wind.glsl",
      "transitions/wipe.glsl",
      "transitions/zoom.glsl",
      "vite.config.mjs"
    ],
    "tree_truncated": false
  },
  {
    "repo": "TytanTSS/Ratas",
    "search_description": "Инди проект по написанию своего движка для формирования уникальных RPG Fantasy инди игр.",
    "created_at": "2026-10-03T22:48:29Z",
    "id": "R_kgDOU6qsSA",
    "meta": {
      "id": 1403694152,
      "node_id": "R_kgDOU6qsSA",
      "name": "Ratas",
      "full_name": "TytanTSS/Ratas",
      "private": false,
      "owner": {
        "login": "TytanTSS",
        "id": 259413583,
        "node_id": "U_kgDOD3ZWTw",
        "avatar_url": "https://avatars.githubusercontent.com/u/259413583?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/TytanTSS",
        "html_url": "https://github.com/TytanTSS",
        "followers_url": "https://api.github.com/users/TytanTSS/followers",
        "following_url": "https://api.github.com/users/TytanTSS/following{/other_user}",
        "gists_url": "https://api.github.com/users/TytanTSS/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/TytanTSS/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/TytanTSS/subscriptions",
        "organizations_url": "https://api.github.com/users/TytanTSS/orgs",
        "repos_url": "https://api.github.com/users/TytanTSS/repos",
        "events_url": "https://api.github.com/users/TytanTSS/events{/privacy}",
        "received_events_url": "https://api.github.com/users/TytanTSS/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/TytanTSS/Ratas",
      "description": "Инди проект по написанию своего движка для формирования уникальных RPG Fantasy инди игр.",
      "fork": false,
      "url": "https://api.github.com/repos/TytanTSS/Ratas",
      "forks_url": "https://api.github.com/repos/TytanTSS/Ratas/forks",
      "keys_url": "https://api.github.com/repos/TytanTSS/Ratas/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/TytanTSS/Ratas/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/TytanTSS/Ratas/teams",
      "hooks_url": "https://api.github.com/repos/TytanTSS/Ratas/hooks",
      "issue_events_url": "https://api.github.com/repos/TytanTSS/Ratas/issues/events{/number}",
      "events_url": "https://api.github.com/repos/TytanTSS/Ratas/events",
      "assignees_url": "https://api.github.com/repos/TytanTSS/Ratas/assignees{/user}",
      "branches_url": "https://api.github.com/repos/TytanTSS/Ratas/branches{/branch}",
      "tags_url": "https://api.github.com/repos/TytanTSS/Ratas/tags",
      "blobs_url": "https://api.github.com/repos/TytanTSS/Ratas/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/TytanTSS/Ratas/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/TytanTSS/Ratas/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/TytanTSS/Ratas/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/TytanTSS/Ratas/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/TytanTSS/Ratas/languages",
      "stargazers_url": "https://api.github.com/repos/TytanTSS/Ratas/stargazers",
      "contributors_url": "https://api.github.com/repos/TytanTSS/Ratas/contributors",
      "subscribers_url": "https://api.github.com/repos/TytanTSS/Ratas/subscribers",
      "subscription_url": "https://api.github.com/repos/TytanTSS/Ratas/subscription",
      "commits_url": "https://api.github.com/repos/TytanTSS/Ratas/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/TytanTSS/Ratas/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/TytanTSS/Ratas/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/TytanTSS/Ratas/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/TytanTSS/Ratas/contents/{+path}",
      "compare_url": "https://api.github.com/repos/TytanTSS/Ratas/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/TytanTSS/Ratas/merges",
      "archive_url": "https://api.github.com/repos/TytanTSS/Ratas/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/TytanTSS/Ratas/downloads",
      "issues_url": "https://api.github.com/repos/TytanTSS/Ratas/issues{/number}",
      "pulls_url": "https://api.github.com/repos/TytanTSS/Ratas/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/TytanTSS/Ratas/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/TytanTSS/Ratas/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/TytanTSS/Ratas/labels{/name}",
      "releases_url": "https://api.github.com/repos/TytanTSS/Ratas/releases{/id}",
      "deployments_url": "https://api.github.com/repos/TytanTSS/Ratas/deployments",
      "created_at": "2026-10-03T22:48:29Z",
      "updated_at": "2026-10-04T11:49:59Z",
      "pushed_at": "2026-10-04T12:01:23Z",
      "git_url": "git://github.com/TytanTSS/Ratas.git",
      "ssh_url": "[email protected]:TytanTSS/Ratas.git",
      "clone_url": "https://github.com/TytanTSS/Ratas.git",
      "svn_url": "https://github.com/TytanTSS/Ratas",
      "homepage": "",
      "size": 379,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Go",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [
        "console-game",
        "ebitengine",
        "engine",
        "fantasy",
        "fantasy-game",
        "game",
        "go",
        "golang",
        "indie",
        "indie-game",
        "indiegame",
        "mise",
        "rpg",
        "rpg-game"
      ],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Ратас — движок фэнтези-RPG для терминала\n\nРатас — это RPG в реальном времени, которая работает прямо в терминале. Графика собрана из ASCII-символов, камера смотрит сверху. Есть и графический режим в отдельном окне: пиксель-арт, динамический свет, частицы. Мир генерируется случайно. Можно играть вместе по сети, а NPC и элитные враги могут думать с помощью Claude.\n\n```\n ____       _      _____      _      ____\n|  _ \\     / \\    |_   _|    / \\    / ___|\n| |_) |   / _ \\     | |     / _ \\   \\___ \\\n|  _ <   / ___ \\    | |    / ___ \\   ___) |\n|_| \\_\\ /_/   \\_\\   |_|   /_/   \\_\\ |____/\n```\n\n## Готовые сборки\n\nСобирать ничего не обязательно: на странице [Releases](https://github.com/TytanTSS/Ratas/releases) лежат архивы для Windows (x64 и ARM), macOS (одна сборка для Apple Silicon и Intel) и Linux, а также выделенный сервер для Linux. Распакуйте архив и запустите `ratas` (`ratas.exe` на Windows). Особенности первого запуска на macOS и Windows описаны в заметках к релизу.\n\n## Быстрый старт\n\nНужен Go 1.26 или новее. Если Go не установлен, удобнее собрать через [mise](#сборка-через-mise).\n\n```bash\ngo build -o ratas ./cmd/ratas\n```\n\n```bash\n./ratas\n```\n\nПолезные флаги:\n\n```bash\n./ratas -new -seed 42 -name Арагорн -class warrior   # сразу в новый мир\n./ratas -new -host                                   # новый мир, открытый для друзей\n./ratas -join 192.168.1.20:7777 -name Леголас        # подключиться к другу\n./ratas -load <слот>                                 # загрузить сохранение\n./ratas -server -seed 7 -port 7777                   # выделенный сервер без интерфейса\n./ratas -gfx                                         # графический режим в отдельном окне\n./ratas -gfx -join 192.168.1.20:7777                 # любой флаг работает и с окном\n```\n\nЛучше всего играть в терминале размером от 100×30. Минимальный размер — 80×24.\n\n## Сборка через mise\n\n[mise](https://mise.jdx.dev) сам ставит нужную версию Go и хранит команды сборки в `mise.toml`. Устанавливать Go вручную не нужно.\n\nОдин раз после клонирования:\n\n```bash\nmise trust\n```\n\n```bash\nmise install\n```\n\nПервая команда разрешает mise читать `mise.toml` из этой папки, вторая ставит Go 1.26 (только для проекта, системный Go не трогается).\n\nДальше все действия — задачи mise:\n\n| Команда | Что делает |\n|---|---|\n| `mise run build` | собирает `./ratas` (терминал и графическое окно) |\n| `mise run play` | собирает и запускает игру в терминале |\n| `mise run gfx` | собирает и запускает графический режим |\n| `mise run build-server` | собирает `./ratas-server` без графики: не нужны cgo и X11/OpenGL |\n| `mise run server` | собирает и запускает выделенный сервер |\n| `mise run test` | все тесты |\n| `mise run lint` | `go vet` с графикой и без неё |\n| `mise run check` | форматирование, vet и тесты — перед коммитом |\n| `mise run dist` | релизные сборки в `dist/` |\n| `mise run sheets` | PNG-листы со всеми моделями существ и тайлами |\n| `mise run shots` | сценарий со скриншотами графического режима (нужен экран) |\n| `mise run clean` | удаляет собранные файлы |\n\nФлаги игры передаются после `--`:\n\n```bash\nmise run play -- -new -seed 42 -class mage\n```\n\n```bash\nmise run server -- -seed 7 -port 7777\n```\n\n`mise tasks` показывает все задачи с описаниями. Папки для `sheets` и `shots` задаются переменными `SHEETS_DIR` и `SHOTS_DIR` (по умолчанию `/tmp/ratas-sheets` и `/tmp/ratas-shots`).\n\n`mise run dist` собирает с любой машины:\n\n| Файл | Платформа |\n|---|---|\n| `ratas-macos-arm64` | macOS на Apple Silicon |\n| `ratas-macos-amd64` | macOS на Intel |\n| `ratas-windows-amd64.exe` | Windows |\n| `ratas-server-linux-amd64` | сервер для Linux без графики |\n\nПолную версию для Linux с графическим окном кросс-компиляцией не собрать: Ebitengine на Linux нужен cgo. Её собирают на самом Linux через `mise run build`, предварительно поставив dev-пакеты X11/OpenGL (см. раздел «Графический режим»).\n\n## Управление\n\n| Клавиша | Действие |\n|---|---|\n| WASD / стрелки | ходить (удерживайте для бега); шаг в сторону врага — атака |\n| Пробел | атаковать соседнего врага |\n| E / Enter | говорить, открыть дверь или сундук, пройти по лестнице |\n| 1–6 | умения с панели (цель выбирается автоматически) |\n| Q / R | зелье здоровья / маны |\n| I / K / C / J | инвентарь / навыки / персонаж / журнал заданий |\n| M или Tab | карта уровня |\n| T | чат |\n| F5 | сохранить (только хозяин мира) |\n| Esc | меню; в одиночной игре включает паузу |\n\nГорячие клавиши работают и в русской раскладке: `ц` = W, `ш` = I и так далее.\n\n## Графический режим\n\n```bash\n./ratas -gfx\n```\n\nЭто та же игра, тот же сервер и протокол, но вместо терминала — окно. Игроки в терминале и в окне могут быть в одном мире одновременно.\n\n* **Мир.** Тайлы — пиксель-арт 16×16. Его генерирует код из цветов в файлах контента, поэтому графику получают и тайлы из модов. Деревья, ели, горы, колонны и стены нарисованы в ракурсе 3/4 и сортируются по глубине: крона и стена закрывают того, кто стоит за ними. Вода и лава анимированы.\n* **Существа.** Фишки-«миниатюры» с буквой из ASCII-версии, цветным ободком и тенью. Герой подпрыгивает на каждом шаге, у героя есть маркер направления взгляда, у боссов светящаяся аура. Над ранеными врагами — полоски здоровья, над другими игроками и ближними NPC — имена.\n* **Свет.** Смена дня и ночи с тёплыми закатами и синими ночами. Видимость считается по тайлам и плавно размывается. В подземельях и ночью вокруг героя горит факел. Свет дают лава, снаряды, лестницы и алтари. Днём по земле плывут тени облаков, ночью летают светлячки, в подземельях — пылинки.\n* **Эффекты.** У снарядов светящиеся шлейфы. Удары выбивают искры, смерть — брызги, новый уровень — золотой взрыв. Числа урона всплывают и гаснут, реплики персонажей показываются в пузырях.\n* **Интерфейс.** Это тот же текстовый интерфейс, отрисованный настоящим шрифтом на полупрозрачных панелях со скруглёнными рамками и гладкими полосками. Мир виден сквозь боковую панель и журнал. В главном меню на фоне медленно проплывает сгенерированный ландшафт.\n\nДополнительные клавиши в окне:\n\n| Клавиша | Действие |\n|---|---|\n| колесо мыши, Ctrl/Cmd + `=`/`-` | масштаб |\n| F11 или Alt+Enter | полный экран |\n| F12 | скриншот в `~/.ratas/screenshots` |\n\nКлавиши движения в окне повторяются сами, пока их держат, поэтому бег получается ровным, без задержки автоповтора ОС. Закрытие окна сохраняет мир так же, как выход через меню.\n\n**Сборка.** На macOS и Windows дополнительных зависимостей нет. На Linux Ebitengine нужен cgo и dev-пакеты X11/OpenGL (список — в [инструкции Ebitengine](https://ebitengine.org/en/documents/install.html)). Для выделенного сервера графика не нужна (`mise run build-server` или):\n\n```bash\ngo build -tags nogfx -o ratas ./cmd/ratas\n```\n\n## Сетевая игра\n\n1. Хозяин выбирает **Новая игра → Режим: Открыть для сети** или открывает уже идущую игру через **Esc → Открыть мир для сети**. В журнале появятся его локальные IP-адреса.\n2. Друг выбирает **Присоединиться к миру** и вводит `IP:7777`. Если он заходит впервые, игра предложит выбрать класс.\n3. Опыт за убитых монстров получают все игроки в радиусе 25 клеток, задания у каждого свои. Мир сохраняется у хозяина вместе с героями гостей, и при повторном входе под тем же именем гость продолжает с того же места.\n\nЧтобы играть через интернет, откройте TCP-порт (по умолчанию 7777) на роутере или используйте VPN вроде Tailscale или ZeroTier.\n\nСервер авторитетный. Клиент отправляет только намерения, а сервер раз в тик присылает снимок ближайших сущностей, изменения тайлов, лог и диалоги. Одиночная игра устроена так же: это локальный сервер и клиент, соединённые через `net.Pipe`, поэтому протокол у обоих режимов общий.\n\n## ИИ-персонажи (Claude)\n\nБез ключа работает встроенный простой ИИ. С ключом Anthropic к нему добавляются:\n\n* **Диалоги с NPC.** Пишите жителям что угодно. Каждый отвечает в характере своей роли (староста, торговец, кузнец, знахарка, стражник, житель), знает о ближайших подземельях, деревнях, времени суток и ваших заданиях, и помнит прошлые разговоры с вами. Если ИИ недоступен, работают готовые варианты ответов.\n* **Действия NPC.** В ответе модель выбирает одно действие: дать золото или предмет, вылечить, выдать задание, открыть лавку, напасть на героя или закончить разговор. Ответ ограничен JSON-схемой (structured outputs), а игра дополнительно проверяет каждое действие: золото не больше, чем в кошельке NPC; подарки только из разрешённого списка и не чаще раза в 5 минут; цели заданий — только существующие монстры; лечение не чаще раза в минуту.\n* **Тактика элитных врагов.** Атаман разбойников, болотная ведьма, гоблин-шаман, некромант и боссы примерно раз в 7 секунд боя просят Claude выбрать тактику: натиск, оборона, обход с фланга, отступление, позвать союзников или применить способность. Заодно они выкрикивают боевой клич. Встроенный ИИ продолжает действовать, пока ответ в пути: игра никогда не ждёт сеть.\n\nКлюч можно задать двумя способами:\n* **Настройки → API ключ Anthropic.** Ключ сохраняется в `~/.ratas/config.json` с правами 600.\n* Переменная окружения `ANTHROPIC_API_KEY`.\n\nМодель по умолчанию — `claude-opus-5-5`. Запросы идут с `effort: low`, чтобы ответы были быстрыми, и с серверным переключением на запасную модель при отказе (refusal fallback). В настройках можно указать `claude-sonnet-5-5` или `claude-haiku-4-5`: они отвечают быстрее и стоят дешевле. Встроенный лимит — не больше 40 запросов в минуту на весь мир. Если ключ отклонён, ИИ отключается до перезапуска и не засыпает API ошибками. В сетевой игре запросы отправляет только хозяин мира, гостям ключ не нужен.\n\n## Генерация мира\n\n* **Поверхность** (300×150). Высота задаётся фрактальным шумом Перлина минус радиальное затухание, поэтому получается остров. Влажность — независимое поле шума. Пороги вычисляются по квантилям, так что доля воды, гор и леса не зависит от зерна. Биомы: море, мелководье, пляжи, равнины с цветами и высокой травой, смешанный и хвойный лес, болота, холмы, горы и снежные пики. Реки стекают по склону от высокогорья к морю. 4–5 деревень с домами, колодцем и жителями ставятся на крупнейший связный участок суши и соединяются дорогами: взвешенный A* обходит горы и строит мосты через воду. Входы в 6 подземелий расставлены так, что чем дальше вход от старта, тем глубже подземелье.\n* **Склепы.** Комнаты получаются двоичным разбиением пространства (BSP) и соединяются коридорами. В проходах стоят двери, в комнатах — колонны, кости и обломки. Сундук ставится только там, где не перекроет путь.\n* **Пещеры.** Клеточный автомат (правило 4–5) дорабатывается заливкой: остаётся только крупнейшая связная область. Шум добавляет лужи, а на глубине — лаву. Сундуки прячутся в тупиках.\n* На последнем этаже каждого подземелья живёт босс. Этажи генерируются при первом посещении, монстры подбираются по теме и глубине. На поверхности монстры появляются вокруг игроков по биому и времени суток: ночью выходит нежить.\n\n## Моды и расширение\n\nВсе определения лежат в `internal/content/data/*.toml`. Любые `*.toml` из `~/.ratas/mods/` (или из каталога, указанного флагом `-mods`) накладываются поверх встроенных:\n* запись с существующим `key` заменяет встроенную;\n* запись с новым ключом добавляется к остальным;\n* при загрузке все ссылки проверяются: ветки, требования навыков, умения, предметы, типы урона и ключи характеристик;\n* неизвестное поле — тоже ошибка с указанием места, так что опечатка не пройдёт незамеченной.\n\nМоды в старом формате `*.json` по-прежнему загружаются.\n\nПример — [`mods_example/necromancy.toml`](mods_example/necromancy.toml). Он добавляет ветку «Некромантия» с четырьмя навыками, класс «Некромант», три умения, предмет и монстра. Чтобы подключить его:\n\n```bash\nmkdir -p ~/.ratas/mods\n```\n\n```bash\ncp mods_example/necromancy.toml ~/.ratas/mods/\n```\n\nКаждая запись — таблица из массива: `[[skills]]`, `[[abilities]]`, `[[monsters]]` и так далее. Словари вроде `stats` удобно писать в одну строку, а вложенные эффекты (`on_hit`, `buff`) — подтаблицей сразу после записи.\n\n### Навык\n\n```toml\n[[skills]]\nkey = \"bone_spear\"\nname = \"Костяное копьё\"\nbranch = \"necroma",
    "tree_paths": [
      ".github",
      ".github/release-notes.md",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".github/workflows/release.yml",
      ".gitignore",
      "LICENSE",
      "README.md",
      "cmd",
      "cmd/ratas",
      "cmd/ratas/console_other.go",
      "cmd/ratas/console_windows.go",
      "cmd/ratas/gfx.go",
      "cmd/ratas/main.go",
      "cmd/ratas/nogfx.go",
      "go.mod",
      "go.sum",
      "internal",
      "internal/client",
      "internal/client/app.go",
      "internal/client/dialog_visual_test.go",
      "internal/client/party.go",
      "internal/client/play.go",
      "internal/client/render.go",
      "internal/client/scene.go",
      "internal/client/screens.go",
      "internal/client/sim_test.go",
      "internal/client/skills.go",
      "internal/client/small_test.go",
      "internal/client/ui.go",
      "internal/config",
      "internal/config/config.go",
      "internal/content",
      "internal/content/content.go",
      "internal/content/content_test.go",
      "internal/content/data",
      "internal/content/data/classes.toml",
      "internal/content/data/damage.toml",
      "internal/content/data/items.toml",
      "internal/content/data/monsters.toml",
      "internal/content/data/npcs.toml",
      "internal/content/data/skills_mage.toml",
      "internal/content/data/skills_priest.toml",
      "internal/content/data/skills_rogue.toml",
      "internal/content/data/skills_secret.toml",
      "internal/content/data/skills_warrior.toml",
      "internal/content/data/squads.toml",
      "internal/content/data/tiles.toml",
      "internal/content/data/uniques.toml",
      "internal/content/validate.go",
      "internal/game",
      "internal/game/abilities.go",
      "internal/game/ai.go",
      "internal/game/allies.go",
      "internal/game/classes.go",
      "internal/game/combat.go",
      "internal/game/damage.go",
      "internal/game/damage_test.go",
      "internal/game/dialogue.go",
      "internal/game/effects.go",
      "internal/game/entity.go",
      "internal/game/equip.go",
      "internal/game/game.go",
      "internal/game/game_test.go",
      "internal/game/player.go",
      "internal/game/relations.go",
      "internal/game/save.go",
      "internal/game/spawn.go",
      "internal/game/systems_test.go",
      "internal/game/testhooks.go",
      "internal/game/uniques.go",
      "internal/game/view.go",
      "internal/gen",
      "internal/gen/dungeon.go",
      "internal/gen/gen_test.go",
      "internal/gen/names.go",
      "internal/gen/noise.go",
      "internal/gen/overworld.go",
      "internal/gen/regions.go",
      "internal/gfx",
      "internal/gfx/beasts.go",
      "internal/gfx/gear.go",
      "internal/gfx/gfx.go",
      "internal/gfx/glyphs_test.go",
      "internal/gfx/icons.go",
      "internal/gfx/input.go",
      "internal/gfx/models.go",
      "internal/gfx/models_test.go",
      "internal/gfx/modelspecs.go",
      "internal/gfx/shot.go",
      "internal/gfx/shots_test.go",
      "internal/gfx/sprites.go",
      "internal/gfx/textgrid.go",
      "internal/gfx/world.go",
      "internal/gfx/worldmap.go",
      "internal/i18n",
      "internal/i18n/catalog.go",
      "internal/i18n/coverage_test.go",
      "internal/i18n/en",
      "internal/i18n/en/classes.toml",
      "internal/i18n/en/cli.toml",
      "internal/i18n/en/dialogue.toml",
      "internal/i18n/en/game.toml",
      "internal/i18n/en/items.toml",
      "internal/i18n/en/mods_example.toml",
      "internal/i18n/en/monsters.toml",
      "internal/i18n/en/npcs.toml",
      "internal/i18n/en/places.toml",
      "internal/i18n/en/skills_mage.toml",
      "internal/i18n/en/skills_priest.toml",
      "internal/i18n/en/skills_rogue.toml",
      "internal/i18n/en/skills_secret.toml",
      "internal/i18n/en/skills_warrior.toml",
      "internal/i18n/en/ui.toml",
      "internal/i18n/en/uniques.toml",
      "internal/i18n/en/world.toml",
      "internal/i18n/i18n.go",
      "internal/i18n/i18n_test.go",
      "internal/llm",
      "internal/llm/llm.go",
      "internal/llm/llm_test.go",
      "internal/llm/prompts.go",
      "internal/proto",
      "internal/proto/proto.go",
      "internal/server",
      "internal/server/server.go",
      "internal/server/server_test.go",
      "internal/world",
      "internal/world/fov.go",
      "internal/world/level.go",
      "mise.toml",
      "mods_example",
      "mods_example/necromancy.toml",
      "scripts",
      "scripts/package.sh"
    ],
    "tree_truncated": false
  },
  {
    "repo": "WonShaw/aivalon",
    "search_description": "",
    "created_at": "2026-10-04T09:02:03Z",
    "id": "R_kgDOU7H4QQ",
    "meta": {
      "id": 1404172353,
      "node_id": "R_kgDOU7H4QQ",
      "name": "aivalon",
      "full_name": "WonShaw/aivalon",
      "private": false,
      "owner": {
        "login": "WonShaw",
        "id": 2600573,
        "node_id": "MDQ6VXNlcjI2MDA1NzM=",
        "avatar_url": "https://avatars.githubusercontent.com/u/2600573?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/WonShaw",
        "html_url": "https://github.com/WonShaw",
        "followers_url": "https://api.github.com/users/WonShaw/followers",
        "following_url": "https://api.github.com/users/WonShaw/following{/other_user}",
        "gists_url": "https://api.github.com/users/WonShaw/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/WonShaw/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/WonShaw/subscriptions",
        "organizations_url": "https://api.github.com/users/WonShaw/orgs",
        "repos_url": "https://api.github.com/users/WonShaw/repos",
        "events_url": "https://api.github.com/users/WonShaw/events{/privacy}",
        "received_events_url": "https://api.github.com/users/WonShaw/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/WonShaw/aivalon",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/WonShaw/aivalon",
      "forks_url": "https://api.github.com/repos/WonShaw/aivalon/forks",
      "keys_url": "https://api.github.com/repos/WonShaw/aivalon/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/WonShaw/aivalon/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/WonShaw/aivalon/teams",
      "hooks_url": "https://api.github.com/repos/WonShaw/aivalon/hooks",
      "issue_events_url": "https://api.github.com/repos/WonShaw/aivalon/issues/events{/number}",
      "events_url": "https://api.github.com/repos/WonShaw/aivalon/events",
      "assignees_url": "https://api.github.com/repos/WonShaw/aivalon/assignees{/user}",
      "branches_url": "https://api.github.com/repos/WonShaw/aivalon/branches{/branch}",
      "tags_url": "https://api.github.com/repos/WonShaw/aivalon/tags",
      "blobs_url": "https://api.github.com/repos/WonShaw/aivalon/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/WonShaw/aivalon/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/WonShaw/aivalon/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/WonShaw/aivalon/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/WonShaw/aivalon/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/WonShaw/aivalon/languages",
      "stargazers_url": "https://api.github.com/repos/WonShaw/aivalon/stargazers",
      "contributors_url": "https://api.github.com/repos/WonShaw/aivalon/contributors",
      "subscribers_url": "https://api.github.com/repos/WonShaw/aivalon/subscribers",
      "subscription_url": "https://api.github.com/repos/WonShaw/aivalon/subscription",
      "commits_url": "https://api.github.com/repos/WonShaw/aivalon/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/WonShaw/aivalon/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/WonShaw/aivalon/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/WonShaw/aivalon/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/WonShaw/aivalon/contents/{+path}",
      "compare_url": "https://api.github.com/repos/WonShaw/aivalon/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/WonShaw/aivalon/merges",
      "archive_url": "https://api.github.com/repos/WonShaw/aivalon/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/WonShaw/aivalon/downloads",
      "issues_url": "https://api.github.com/repos/WonShaw/aivalon/issues{/number}",
      "pulls_url": "https://api.github.com/repos/WonShaw/aivalon/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/WonShaw/aivalon/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/WonShaw/aivalon/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/WonShaw/aivalon/labels{/name}",
      "releases_url": "https://api.github.com/repos/WonShaw/aivalon/releases{/id}",
      "deployments_url": "https://api.github.com/repos/WonShaw/aivalon/deployments",
      "created_at": "2026-10-04T09:02:03Z",
      "updated_at": "2026-10-04T11:25:59Z",
      "pushed_at": "2026-10-04T11:25:55Z",
      "git_url": "git://github.com/WonShaw/aivalon.git",
      "ssh_url": "[email protected]:WonShaw/aivalon.git",
      "clone_url": "https://github.com/WonShaw/aivalon.git",
      "svn_url": "https://github.com/WonShaw/aivalon",
      "homepage": null,
      "size": 113,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Aivalon · AI 阿瓦隆\n\n一群 AI(Claude Sonnet 5.5)玩阿瓦隆,支持 8 人局和 10 人局。人可以在网页上观战,也可以入座和 AI 一起玩。\n\n## 运行\n\n需要 Node 20+,并且本机已登录 Claude Code(AI 玩家通过 Claude Agent SDK 调用,使用 Claude Code 的登录凭证)。\n\n```bash\nnpm install\nnpm run dev\n```\n\n打开 http://localhost:5180 。后端 API 在 8787 端口,可以用 `AIVALON_API_PORT` 修改。\n\n可选环境变量:\n\n| 变量 | 默认值 | 说明 |\n|---|---|---|\n| `AIVALON_MODEL` | `claude-sonnet-5-5` | AI 玩家使用的模型 |\n| `AIVALON_EFFORT` | `medium` | 推理强度 |\n| `AIVALON_THINKING_DISPLAY` | `summarized` | 设为 `omitted` 后不再获取思考摘要 |\n\n其他命令:\n\n- `npm run simulate`:用脚本玩家把 8 人和 10 人的每种预设都跑一遍完整局,检查状态机、身份分配和信息可见性,不调用模型\n- `npm run check-isolation`:调用一次模型,让 AI 报告它的上下文里有哪些工具和附加信息\n- `npm run typecheck` / `npm run build`\n\n## 规则\n\n支持 8 人局(5 名正义方、3 名邪恶方)和 10 人局(6 名正义方、4 名邪恶方),两种人数的任务人数都是 3/4/4/5/5。\n\n开局时可以选择身份配置:梅林和刺客必选;派西维尔可选,不选就换成一名忠臣;邪恶方除刺客外的位置可以从莫甘娜、莫德雷德、奥伯伦里选(8 人局最多 2 个,10 人局最多 3 个),空位由莫德雷德的爪牙补上。预设:\n\n| 人数 | 预设 | 正义方 | 邪恶方 |\n|---|---|---|---|\n| 8 | 标准 | 梅林、派西维尔、忠臣×3 | 刺客、莫甘娜、莫德雷德 |\n| 8 | 奥伯伦 | 梅林、派西维尔、忠臣×3 | 刺客、莫甘娜、奥伯伦 |\n| 8 | 入门 | 梅林、忠臣×4 | 刺客、爪牙×2 |\n| 10 | 标准 | 梅林、派西维尔、忠臣×4 | 刺客、莫甘娜、莫德雷德、奥伯伦 |\n| 10 | 不含奥伯伦 | 梅林、派西维尔、忠臣×4 | 刺客、莫甘娜、莫德雷德、爪牙 |\n| 10 | 入门 | 梅林、忠臣×5 | 刺客、爪牙×3 |\n\n人类玩家可以选择身份:随机(默认)、正义方随机、邪恶方随机,或者本局配置里的某个具体身份。选择只有本人知道。\n\n第 4 个任务需要 2 张失败票才算失败;组队投票需要超过半数赞成;同一任务连续 5 次组队失败时邪恶方获胜。\n\n每次组队的流程:队长发言并提名 → 其余人按座位顺序各发言一次 → 队长确认或修改提名 → 全员同时投票。正义方完成 3 个任务后进入刺杀阶段:邪恶方公开身份并讨论,由刺客决定刺杀目标。\n\n## 设计要点\n\n**信息隔离**\n- 服务端是唯一知道全部信息的地方。每条事件都标注了可见范围:公开、仅某些座位,或仅观众。\n- 每个 AI 收到的内容,是它能看到的事件渲染成的文本,以新的 user 消息追加到它自己的会话里。\n- 人类玩家的推送同样在服务端过滤,前端拿不到不该看的数据。\n- 只有全 AI 对局才开放上帝视角,可以看身份、任务牌和思考摘要。有人类参与的对局只能用玩家的专属链接进入。\n\n**AI 进程的限制**(见 `server/ai/player.ts`)\n- 关闭全部内置工具(`tools: []`),不加载 `~/.claude` 和项目里的设置或 CLAUDE.md(`settingSources: []`),也不挂 MCP、插件和 skills。\n- 权限模式是 `dontAsk`,并且 `canUseTool` 一律拒绝。\n- 工作目录是一个空的临时目录。\n- 打开 `verbatimPrompts`:发言里的 `@路径` 不会被展开成文件内容,也不会触发斜杠命令。发言里的 `<` `>` `@` 和\"【裁判】\"会被转义,防止伪造裁判消息或其他玩家的发言。\n- 启动 AI 进程前,会去掉宿主环境(比如在 Claude 桌面 App 里运行时)带进来的会注入额外上下文的环境变量。\n\n**会话与缓存**\n- 每个 AI 一个 Agent SDK 会话,每次行动都 resume 同一个 session id。session id 记录在 `data/games/<id>/game.json`。\n- 在大厅删除一局时,会同时删除 `data/games/<id>/` 和这局所有 AI 的会话记录(Agent SDK 存在 `~/.claude/projects/` 下)。进行中的对局不能删除。\n- 系统提示词对所有 AI、所有对局都一样,写的是包含所有可能身份的通用规则。本局配置、座位、身份和性格都放在第一条 user 消息里。\n- 所有动作共用一个结构化输出 schema。Agent SDK 用一个工具实现结构化输出,每次换 schema 会让整段缓存失效。\n\n**思考过程**:只使用 API 官方提供的思考摘要(`display: \"summarized\"`),不要求模型在输出里写出推理过程。在 medium 推理强度下,简单的回合(例如第一轮发言)经常不思考,所以不会每一步都有摘要。\n\n**防止从时间推断信息**:有人类参与时,所有队员都要出任务牌,任务结算至少等 8 到 12 秒,避免从结果出来的快慢推断队伍里有没有邪恶方。出牌状态不会推送给其他玩家。\n\n## 已知限制\n\n- Claude Code 会把登录账号的邮箱作为用户上下文注入每个会话。它不影响游戏公平,但 AI 能看到。要去掉,需要用 `claude setup-token` 生成独立的 token,再给 AI 进程设置单独的 `CLAUDE_CONFIG_DIR`,目前没有实现。\n- 服务进程重启后,进行中的对局会被标记为中止,不支持续局。\n- 同一时间只能进行一局。\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".gitignore",
      "README.md",
      "package-lock.json",
      "package.json",
      "scripts",
      "scripts/check-isolation.ts",
      "scripts/simulate.ts",
      "server",
      "server/ai",
      "server/ai/personas.ts",
      "server/ai/player.ts",
      "server/ai/prompts.ts",
      "server/ai/schema.ts",
      "server/game",
      "server/game/engine.ts",
      "server/game/rules.ts",
      "server/game/store.ts",
      "server/game/visibility.ts",
      "server/index.ts",
      "shared",
      "shared/setup.ts",
      "shared/types.ts",
      "tsconfig.json",
      "vite.config.ts",
      "web",
      "web/App.tsx",
      "web/GameView.tsx",
      "web/Lobby.tsx",
      "web/client.ts",
      "web/components",
      "web/components/ActionPanel.tsx",
      "web/components/RoleGuide.tsx",
      "web/components/RoundTable.tsx",
      "web/components/Timeline.tsx",
      "web/derive.ts",
      "web/format.ts",
      "web/guesses.ts",
      "web/index.html",
      "web/main.tsx",
      "web/styles.css",
      "web/useGameStream.ts",
      "web/vite-env.d.ts"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Gipppp121/cacheball",
    "search_description": "",
    "created_at": "2026-10-04T10:24:33Z",
    "id": "R_kgDOU7MJrA",
    "meta": {
      "id": 1404242348,
      "node_id": "R_kgDOU7MJrA",
      "name": "cacheball",
      "full_name": "Gipppp121/cacheball",
      "private": false,
      "owner": {
        "login": "Gipppp121",
        "id": 272561497,
        "node_id": "U_kgDOED71WQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/272561497?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Gipppp121",
        "html_url": "https://github.com/Gipppp121",
        "followers_url": "https://api.github.com/users/Gipppp121/followers",
        "following_url": "https://api.github.com/users/Gipppp121/following{/other_user}",
        "gists_url": "https://api.github.com/users/Gipppp121/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Gipppp121/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Gipppp121/subscriptions",
        "organizations_url": "https://api.github.com/users/Gipppp121/orgs",
        "repos_url": "https://api.github.com/users/Gipppp121/repos",
        "events_url": "https://api.github.com/users/Gipppp121/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Gipppp121/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Gipppp121/cacheball",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/Gipppp121/cacheball",
      "forks_url": "https://api.github.com/repos/Gipppp121/cacheball/forks",
      "keys_url": "https://api.github.com/repos/Gipppp121/cacheball/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Gipppp121/cacheball/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Gipppp121/cacheball/teams",
      "hooks_url": "https://api.github.com/repos/Gipppp121/cacheball/hooks",
      "issue_events_url": "https://api.github.com/repos/Gipppp121/cacheball/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Gipppp121/cacheball/events",
      "assignees_url": "https://api.github.com/repos/Gipppp121/cacheball/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Gipppp121/cacheball/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Gipppp121/cacheball/tags",
      "blobs_url": "https://api.github.com/repos/Gipppp121/cacheball/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Gipppp121/cacheball/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Gipppp121/cacheball/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Gipppp121/cacheball/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Gipppp121/cacheball/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Gipppp121/cacheball/languages",
      "stargazers_url": "https://api.github.com/repos/Gipppp121/cacheball/stargazers",
      "contributors_url": "https://api.github.com/repos/Gipppp121/cacheball/contributors",
      "subscribers_url": "https://api.github.com/repos/Gipppp121/cacheball/subscribers",
      "subscription_url": "https://api.github.com/repos/Gipppp121/cacheball/subscription",
      "commits_url": "https://api.github.com/repos/Gipppp121/cacheball/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Gipppp121/cacheball/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Gipppp121/cacheball/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Gipppp121/cacheball/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Gipppp121/cacheball/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Gipppp121/cacheball/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Gipppp121/cacheball/merges",
      "archive_url": "https://api.github.com/repos/Gipppp121/cacheball/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Gipppp121/cacheball/downloads",
      "issues_url": "https://api.github.com/repos/Gipppp121/cacheball/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Gipppp121/cacheball/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Gipppp121/cacheball/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Gipppp121/cacheball/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Gipppp121/cacheball/labels{/name}",
      "releases_url": "https://api.github.com/repos/Gipppp121/cacheball/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Gipppp121/cacheball/deployments",
      "created_at": "2026-10-04T10:24:33Z",
      "updated_at": "2026-10-04T10:38:23Z",
      "pushed_at": "2026-10-04T10:38:19Z",
      "git_url": "git://github.com/Gipppp121/cacheball.git",
      "ssh_url": "[email protected]:Gipppp121/cacheball.git",
      "clone_url": "https://github.com/Gipppp121/cacheball.git",
      "svn_url": "https://github.com/Gipppp121/cacheball",
      "homepage": null,
      "size": 11881,
      "stargazers_count": 1,
      "watchers_count": 1,
      "language": "HTML",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 1,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<p align=\"center\">\n  <img src=\"assets/banner.png\" alt=\"cacheball\" width=\"100%\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://gipppp121.github.io/cacheball/\"><img src=\"https://img.shields.io/badge/%E2%96%B6%20play-in%20browser-5fe3f0?style=flat-square\" alt=\"play in browser\"></a>\n  <img src=\"https://img.shields.io/badge/runs%20on-any%20web%20page-5fe3f0?style=flat-square\" alt=\"runs on any web page\">\n  <img src=\"https://img.shields.io/badge/deps-none-0b0f15?style=flat-square\" alt=\"no dependencies\">\n  <img src=\"https://img.shields.io/badge/size-12%20KB-1f6fd0?style=flat-square\" alt=\"12 KB\">\n  <img src=\"https://img.shields.io/badge/models-sonnet%205.5%20%C2%B7%20opus%205.5-c8a6ff?style=flat-square\" alt=\"models\">\n  <img src=\"https://img.shields.io/badge/license-MIT-7d8794?style=flat-square\" alt=\"MIT\">\n</p>\n\n# cacheball\n\n**[Play it in your browser](https://gipppp121.github.io/cacheball/)**\n\nRoll your agent's context up any web page. Every word you pick up grows the ball, and the ball is what the next turn re-reads from cache.\n\nCache reads cost $0.20 per 1M on both Sonnet 5.5 and Opus 5.5. So the bigger the ball gets, the smaller the gap between the two models:\n\n| context in cache | Sonnet 5.5 / turn | Opus 5.5 / turn | Opus / Sonnet |\n|---|---|---|---|\n| 20K  | $0.033 | $0.062 | 1.88x |\n| 150K | $0.059 | $0.088 | 1.49x |\n| 400K | $0.109 | $0.138 | 1.26x |\n\nThe counter in the corner shows that ratio live while you roll.\n\n## Run it\n\nFastest way: open the [play page](https://gipppp121.github.io/cacheball/) and press **roll this page**.\n\nOn any other page, this README included, and paste `cacheball.js` into the browser console. Or save `bookmarklet.txt` as a bookmark and click it on any page.\n\n| input | what it does |\n|---|---|\n| mouse, touch | roll toward the pointer |\n| arrows, WASD | roll |\n| `M` | mute |\n| `Esc` | quit and put every word back |\n\nSmall words first. Big headings and images stay put until the ball is big enough to take them. Stop for 5 seconds and the cache goes cold: the next pickup pays a cache miss.\n\nNothing leaves the page. The script only hides the words it picked up and shows them again on `Esc`.\n\n## Measure your own logs\n\n`cost.py` reads one JSON line per Messages API call and prints $/turn and $/pass per model.\n\n```bash\npython cost.py usage.example.jsonl\n```\n\n```json\n{\"task\": \"fix-auth\", \"model\": \"claude-sonnet-5-5\", \"passed\": true, \"usage\": {\"input_tokens\": 40, \"output_tokens\": 1500, \"cache_read_input_tokens\": 150000, \"cache_creation_input_tokens\": 5500}}\n```\n\nRead it in this order: the $/turn ratio, the avg turns ratio, then $/pass.\n\n## Rules worth remembering\n\n```\nswitching models mid-session   -> new session + handoff, never the transcript\nswitch at 300K context         -> 300,000 x $5 / 1M = $1.50 just to re-cache\nsame switch with 20K handoff   -> $0.10\none cache miss at 150K         -> $0.38 Sonnet / $0.75 Opus\n```\n\nPrices are Anthropic's standard API rates as of October 3, 2026. The ratio in the game is arithmetic on an assumed turn shape (5,500 new tokens, 1,500 output), not a measured bill.\n\n## Demo\n\n![demo](assets/demo.gif)\n\n## Files\n\n```\ncacheball.js           the ball, readable source\ncacheball.min.js       same thing, minified\nbookmarklet.txt        paste as a bookmark URL\ncost.py                $/turn and $/pass from your usage logs\nusage.example.jsonl    sample log\nassets/                banner and demo\n```\n\n## License\n\nMIT\n",
    "tree_paths": [
      "LICENSE",
      "README.md",
      "assets",
      "assets/banner.png",
      "assets/demo.gif",
      "assets/demo.mp4",
      "bookmarklet.txt",
      "cacheball.js",
      "cacheball.min.js",
      "cost.py",
      "index.html",
      "usage.example.jsonl"
    ],
    "tree_truncated": false
  },
  {
    "repo": "kevglass/pennywhistle",
    "search_description": "",
    "created_at": "2026-10-02T12:55:17Z",
    "id": "R_kgDOU4yooQ",
    "meta": {
      "id": 1401727137,
      "node_id": "R_kgDOU4yooQ",
      "name": "pennywhistle",
      "full_name": "kevglass/pennywhistle",
      "private": false,
      "owner": {
        "login": "kevglass",
        "id": 3787210,
        "node_id": "MDQ6VXNlcjM3ODcyMTA=",
        "avatar_url": "https://avatars.githubusercontent.com/u/3787210?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/kevglass",
        "html_url": "https://github.com/kevglass",
        "followers_url": "https://api.github.com/users/kevglass/followers",
        "following_url": "https://api.github.com/users/kevglass/following{/other_user}",
        "gists_url": "https://api.github.com/users/kevglass/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/kevglass/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/kevglass/subscriptions",
        "organizations_url": "https://api.github.com/users/kevglass/orgs",
        "repos_url": "https://api.github.com/users/kevglass/repos",
        "events_url": "https://api.github.com/users/kevglass/events{/privacy}",
        "received_events_url": "https://api.github.com/users/kevglass/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/kevglass/pennywhistle",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/kevglass/pennywhistle",
      "forks_url": "https://api.github.com/repos/kevglass/pennywhistle/forks",
      "keys_url": "https://api.github.com/repos/kevglass/pennywhistle/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/kevglass/pennywhistle/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/kevglass/pennywhistle/teams",
      "hooks_url": "https://api.github.com/repos/kevglass/pennywhistle/hooks",
      "issue_events_url": "https://api.github.com/repos/kevglass/pennywhistle/issues/events{/number}",
      "events_url": "https://api.github.com/repos/kevglass/pennywhistle/events",
      "assignees_url": "https://api.github.com/repos/kevglass/pennywhistle/assignees{/user}",
      "branches_url": "https://api.github.com/repos/kevglass/pennywhistle/branches{/branch}",
      "tags_url": "https://api.github.com/repos/kevglass/pennywhistle/tags",
      "blobs_url": "https://api.github.com/repos/kevglass/pennywhistle/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/kevglass/pennywhistle/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/kevglass/pennywhistle/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/kevglass/pennywhistle/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/kevglass/pennywhistle/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/kevglass/pennywhistle/languages",
      "stargazers_url": "https://api.github.com/repos/kevglass/pennywhistle/stargazers",
      "contributors_url": "https://api.github.com/repos/kevglass/pennywhistle/contributors",
      "subscribers_url": "https://api.github.com/repos/kevglass/pennywhistle/subscribers",
      "subscription_url": "https://api.github.com/repos/kevglass/pennywhistle/subscription",
      "commits_url": "https://api.github.com/repos/kevglass/pennywhistle/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/kevglass/pennywhistle/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/kevglass/pennywhistle/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/kevglass/pennywhistle/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/kevglass/pennywhistle/contents/{+path}",
      "compare_url": "https://api.github.com/repos/kevglass/pennywhistle/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/kevglass/pennywhistle/merges",
      "archive_url": "https://api.github.com/repos/kevglass/pennywhistle/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/kevglass/pennywhistle/downloads",
      "issues_url": "https://api.github.com/repos/kevglass/pennywhistle/issues{/number}",
      "pulls_url": "https://api.github.com/repos/kevglass/pennywhistle/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/kevglass/pennywhistle/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/kevglass/pennywhistle/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/kevglass/pennywhistle/labels{/name}",
      "releases_url": "https://api.github.com/repos/kevglass/pennywhistle/releases{/id}",
      "deployments_url": "https://api.github.com/repos/kevglass/pennywhistle/deployments",
      "created_at": "2026-10-02T12:55:17Z",
      "updated_at": "2026-10-04T10:29:50Z",
      "pushed_at": "2026-10-04T10:29:46Z",
      "git_url": "git://github.com/kevglass/pennywhistle.git",
      "ssh_url": "[email protected]:kevglass/pennywhistle.git",
      "clone_url": "https://github.com/kevglass/pennywhistle.git",
      "svn_url": "https://github.com/kevglass/pennywhistle",
      "homepage": null,
      "size": 14086,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "PHP",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "apache-2.0",
        "name": "Apache License 2.0",
        "spdx_id": "Apache-2.0",
        "url": "https://api.github.com/licenses/apache-2.0",
        "node_id": "MDc6TGljZW5zZTI="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Penny Whistle Tabs\n\nTurn sheet music (PDF or photos/scans) into easy-to-follow **D tin whistle tablature** with **guitar chords**.\n\n- Upload a PDF or image files. PDFs exported from **MuseScore 4** are read directly, with no AI: the notes come straight out of the PDF. Anything else (scans, photos, other programs' PDFs) is read by Claude, which transcribes the melody.\n- The engraved score is shown with a whistle tab row under every line. Each note shows **how many holes to hold down from the top** (`3` = holes 1–3; `0/2` = top hole open, hold the next 2; `0` = all open; `'` after the number = blow harder for the high octave; `½` = also half-cover the next hole), or hole diagrams if you prefer, plus a bar for how long it lasts. Rests and tied notes are marked too.\n- **Download PDF** gives the score with the number tab under every line and chord diagrams. There's also a JSON download.\n- Light mode by default, with a dark-mode toggle in the top bar.\n- A thin player bar fixed to the top of the screen (play, tempo, tab style, and the selected note's fingering and chord) collapses to a small icon at the top left. **Play** and tapping a note use recordings of a real D tin whistle (see Credits). Works on phones and tablets.\n- Click any note in the score (or in the tab) to highlight its fingering and see it enlarged with the guitar chord for that spot. The ← → keys step through the notes and **Play** plays the tune, following repeats.\n- Tick **Chords** in the player to strum the chords under the tune, and pick the instrument beside it: guitar, mandolin, mandola, Irish bouzouki, tenor banjo (GDAE), 5-string banjo or ukulele (standard or baritone). The chord diagrams on the tune page and in the PDF are drawn for the same instrument. Guitar shapes are the usual open and barre chords; the others are worked out from each instrument's tuning (the easiest shape low on the neck, with the root in the bass where it can be). The choice is remembered.\n- Chords come from the score when it prints them. Otherwise the app suggests chords that fit each bar.\n- **Best key for whistle** finds a transposition that keeps every note in range with as little half-holing as possible.\n- Approving a tab saves it to the **library** (the index page). Saved tunes can be opened later, with an optional **Show original music** panel beside the tab.\n- **License check**: Claude searches the web to find out who wrote each tune, whether it is still under copyright, and whether it can be used for free in a game or video. Checks only run when you press a **Check** button, in the library's License column or under a tune's title (on your tunes or a friend's). Checking a friend's tune saves the result in their library too (the only change a friend can make to a tune). The library shows each tune's status (Free to use, Free with credit, Copyrighted or Unclear). Click the status, in the library or under a tune's title, to open a pop-up with the details: who wrote it and when, who owns the copyright, when it expired or will expire and how that was worked out, and the sources with what each one showed. This is research, not legal advice.\n- **Users** (in the account menu, only for `ADMIN_EMAILS`): everyone who has signed in, how many tunes each has saved and when, with **Block uploads** / **Allow uploads**. A blocked account can't save new tunes or have Claude read music, but can still open, edit and delete its tunes. The page also sets whether accounts you haven't decided on can add tunes (on unless you turn it off). A blocked account gets a **Request upload access** button on the new tab page, which emails the `ADMIN_EMAILS` addresses; requests are listed first on the Users page, to allow or decline.\n- **Friends** (in the account menu): add a friend by email address and they get an email about the request, which they can accept or ignore on their friends page. Friends see each other's tunes in their library, in a section per friend, and can open them but not change them. Search covers every tune you can see.\n\n## Hosting requirements\n\nAny web host with **PHP 8.1+** (Apache or nginx). The pages are static HTML/JS. One small PHP endpoint saves tunes as files and calls the Claude API, which keeps the API key off the browser. No Node, no database and no build step on the server.\n\n## Local development\n\n```bash\ncomposer install            # PHP packages (Anthropic SDK)\ncp .env.example .env        # add ANTHROPIC_API_KEY (or: composer secrets:decrypt)\n./dev.sh                    # PHP built-in server on http://localhost:6060 (PORT in .env)\n```\n\nAvoid ports browsers block as unsafe (e.g. 6000, 6665-6669). Without an API key the app still works: MuseScore PDFs are read without AI, and you can enter or paste ABC notation by hand.\n\n| Setting (in `.env`) | Purpose |\n| --- | --- |\n| `ANTHROPIC_API_KEY` | Claude API key used to read sheet music (server-side only) |\n| `ANTHROPIC_WORKSPACE_ID` | Only for keys that must name a workspace |\n| `CLAUDE_MODEL` | Defaults to `claude-opus-5-5` |\n| `LICENSE_CHECKERS` | Comma-separated emails or `@domain`s allowed to run license checks (each costs API credits). Empty means nobody. Everyone else sees the results, and \"Unknown\" for unchecked tunes |\n| `LICENSE_MODEL` | Model for license checks, defaults to `claude-sonnet-5-5`: as accurate as Opus on tricky tunes, for less. Haiku 4.5 was not accurate enough |\n| `LICENSE_EFFORT` | Effort for license checks, defaults to `low` |\n| `PORT` | Local dev server port (`./dev.sh`) |\n| `DATA_DIR` | Where tunes are stored, defaults to `data/` next to the app code |\n| `GOOGLE_CLIENT_ID` | Required: OAuth client ID for Google sign-in (see below) |\n| `ADMIN_EMAILS` | Comma-separated emails or `@domain`s that get a **Users** page in the account menu: every registered user with how many tunes they've saved, and a button to block or allow them adding more. Empty means nobody |\n| `ALLOWED_EMAILS` | Optional: comma-separated emails or `@domain`s allowed to sign in. Empty lets any Google account in, and transcriptions cost API credits |\n| `SITE_URL` | Optional: the site's address for links in friend request emails, e.g. `https://cokeandcode.com/pennywhistle`. Otherwise taken from the server name |\n| `MAIL_FROM` | Optional: sender address for friend request and upload request emails (sent with PHP's `mail()`), defaults to `noreply@<server name>` |\n| `LEGACY_OWNER_EMAIL` | Optional: on this account's first sign-in, tunes saved before sign-in existed (`data/tunes/`) move into its library |\n\n### Google sign-in\n\nEveryone signs in with Google, and each Google account has its own tune library. To set it up:\n\n1. In the [Google Cloud console](https://console.cloud.google.com/apis/credentials), create an **OAuth client ID** of type **Web application**.\n2. Under **Authorised JavaScript origins**, add `http://localhost:6060` (or your dev `PORT`) and `https://cokeandcode.com`. No redirect URIs are needed.\n3. Put the client ID in `.env` as `GOOGLE_CLIENT_ID`.\n\nThe browser gets an ID token from Google on `login.html`; the server checks it with Google (audience, issuer, expiry, verified email) and then keeps a 30-day session cookie, scoped to `api/`. Sessions are files in `data/sessions/`.\n\n## Deploying\n\n```bash\n./deploy.sh             # or: ./deploy.sh --dry-run\n```\n\nThe script:\n1. Encrypts `.env` into `.env.enc` if `.env` has changed (it asks for your secrets password), or decrypts `.env.enc` if there is no `.env`.\n2. Runs `composer install --no-dev` when Composer is available.\n3. Uploads over SSH/rsync to `[email protected]:cokeandcode.com/pennywhistle`. Override with the `DEPLOY_HOST`, `DEPLOY_PATH` and `SITE_URL` environment variables.\n4. Checks that `https://cokeandcode.com/pennywhistle/_private/.env` is **not** downloadable (it removes the file and stops if it is), and that the API is answering.\n\nServer layout:\n\n```\npennywhistle/            public: index.html, login.html, editor.html, tune.html, js/, css/, vendor/, api/index.php\npennywhistle/_private/   app/ (PHP code), vendor/ (Composer packages), .env, data/ (saved tunes)\n```\n\n`_private/` is blocked by `.htaccess` (Apache). On **nginx**, add `location ^~ /pennywhistle/_private/ { deny all; }`. Saved tunes in `_private/data` are never overwritten or deleted by a deploy. If uploads of large PDFs fail, raise `upload_max_filesize`/`post_max_size` (preset in `api/.user.ini` and `api/.htaccess`).\n\n## Encrypted secrets\n\n`.env` is git-ignored. An encrypted copy, `.env.enc` (Argon2id + XChaCha20-Poly1305 via libsodium), is committed instead:\n\n```bash\ncomposer secrets:encrypt   # .env -> .env.enc (asks for a password twice)\ncomposer secrets:decrypt   # .env.enc -> .env (asks for the password)\n```\n\nSet `SECRETS_PASSWORD` to skip the prompt.\n\n## Storage (no database)\n\nEach Google account has a folder, named by its Google account ID, and each approved tune is a folder inside it:\n\n```\ndata/users/<google-id>/\n  user.json        email and name of the account, last sign-in\n  friends.json     friends (by Google ID) and friend requests this account has sent\n  access.json      whether an admin has blocked or allowed this account adding tunes (none: the site default), and when it asked for access\n  tunes/<id>/\n    tune.json        everything about the tune (see below)\n    tune.abc         the displayed notation (after transposing and adding chords)\n    original-1.pdf   the uploaded original(s): .pdf / .png / .jpg …\ndata/friend-requests/<sha256 of email>.json   requests waiting for that address\n```\n\nFriend requests are filed by email address, so they can be sent to someone who hasn't signed in yet. Accepting one adds each person to the other's `friends.json`.\n\n`tune.json` holds the title, settings, the approved ABC transcription, and a `tab` object. That object has the key, the meter, the chords used, and every bar's chords and notes. Each note has its pitch, `fingers` (the number tab, e.g. `3`, `0/2` or `5'`), MIDI number, length in beats, whistle `holes` (top to bottom, `X` = covered, `O` = open, `H` = half-covered) and `register` (2 = blow harder). After a license check there is also a `license` object: `status` (`free`, `attribution`, `restricted` or `unknown`), `copyright` (`active`, `expired`, `traditional` or `unknown`), the license name, composer, when it was written, when the composer died, rights holder, `copyrightExpires` (year) and `copyrightBasis` (how that was worked out), summary, conditions, notes, confidence, `sources` (title, URL and what each showed), and when it was checked and by which model. Back up or move the `data/` folder to keep the library.\n\n## Code map\n\n- `public/`: the static site. `js/core.js` holds the fingering chart, tab data, chord suggestion and best-key search. `js/render.js` draws the score with [abcjs](https://www.abcjs.net/) plus the tab rows, highlighting and playback. PDFs are rendered in the browser with [PDF.js](https://mozilla.github.io/pdf.js/). Both libraries are bundled in `public/vendor/`.\n- `public/api/index.php` → `app/api.php`: the API (`?r=config`, `auth/google`, `auth/me`, `auth/logout`, `tunes`, `tunes/<id>`, `tunes/<id>/files/<file>`, `tunes/<id>/delete`, `tunes/<id>/license`, `library`, `friends`, `friends/request|accept|ignore|cancel|remove`, `friends/<google-id>/tunes/<id>[/license]`, `admin/users`, `admin/users/<google-id>/uploads`, `admin/settings`, `auth/upload-request`, `transcribe`). Friend code is in `app/friends.php`, user admin in `app/admin.php`; the license check (Claude with web search and a JSON schema for the answer) is in `app/license.php`. Transcription streams from Claude through the official Anthropic PHP SDK, with server-side fallback if a request is declined.\n- `app/omr/`: the MuseScore 4 PDF reader, in plain PHP. `pdf.php` parses the PDF and `content.php` runs each page's drawing commands to list the glyphs, lines and filled shapes. `musescore.php` rebuilds the music from them: MuseScore draws every notehead, rest, clef and accidental as a glyph of its SMuFL font (Le",
    "tree_paths": [
      ".env.enc",
      ".env.example",
      ".gitignore",
      "LICENSE",
      "README.md",
      "app",
      "app/admin.php",
      "app/api.php",
      "app/claude.php",
      "app/friends.php",
      "app/license.php",
      "app/omr",
      "app/omr/content.php",
      "app/omr/edwin-metrics.json",
      "app/omr/musescore.php",
      "app/omr/pdf.php",
      "composer.json",
      "composer.lock",
      "deploy.sh",
      "deploy",
      "deploy/private.htaccess",
      "dev.sh",
      "notes",
      "notes/thin-whistle-high-b-key.wav",
      "notes/tin-whistle-a-key.wav",
      "notes/tin-whistle-c-key.wav",
      "notes/tin-whistle-d-key.wav",
      "notes/tin-whistle-e-key.wav",
      "notes/tin-whistle-g-key.wav",
      "notes/tin-whistle-high-a-key.wav",
      "notes/tin-whistle-high-c-key.wav",
      "notes/tin-whistle-high-d-key.wav",
      "notes/tin-whistle-high-e-key.wav",
      "notes/tin-whistle-high-f-key.wav",
      "notes/tin-whistle-high-g-key.wav",
      "public",
      "public/.htaccess",
      "public/api",
      "public/api/.htaccess",
      "public/api/.user.ini",
      "public/api/index.php",
      "public/css",
      "public/css/app.css",
      "public/editor.html",
      "public/favicon.svg",
      "public/friends.html",
      "public/index.html",
      "public/js",
      "public/js/core.js",
      "public/js/editor.js",
      "public/js/guitar.js",
      "public/js/mp3.js",
      "public/js/originals.js",
      "public/js/pdf.js",
      "public/js/render.js",
      "public/js/ui.js",
      "public/login.html",
      "public/sounds",
      "public/sounds/whistle",
      "public/sounds/whistle/74.wav",
      "public/sounds/whistle/75.wav",
      "public/sounds/whistle/76.wav",
      "public/sounds/whistle/77.wav",
      "public/sounds/whistle/78.wav",
      "public/sounds/whistle/79.wav",
      "public/sounds/whistle/80.wav",
      "public/sounds/whistle/81.wav",
      "public/sounds/whistle/82.wav",
      "public/sounds/whistle/83.wav",
      "public/sounds/whistle/84.wav",
      "public/sounds/whistle/85.wav",
      "public/sounds/whistle/86.wav",
      "public/sounds/whistle/87.wav",
      "public/sounds/whistle/88.wav",
      "public/sounds/whistle/89.wav",
      "public/sounds/whistle/90.wav",
      "public/sounds/whistle/91.wav",
      "public/sounds/whistle/92.wav",
      "public/sounds/whistle/93.wav",
      "public/sounds/whistle/94.wav",
      "public/sounds/whistle/95.wav",
      "public/sounds/whistle/96.wav",
      "public/sounds/whistle/97.wav",
      "public/sounds/whistle/98.wav",
      "public/sounds/whistle/samples.json",
      "public/tune.html",
      "public/users.html",
      "public/vendor",
      "public/vendor/abcjs-LICENSE.md",
      "public/vendor/abcjs-basic-min.js",
      "public/vendor/jspdf-LICENSE",
      "public/vendor/jspdf.umd.min.js",
      "public/vendor/lame.min.js",
      "public/vendor/lamejs-LICENSE",
      "public/vendor/pdf.min.mjs",
      "public/vendor/pdf.worker.min.mjs",
      "public/vendor/pdfjs-LICENSE",
      "public/vendor/svg2pdf-LICENSE",
      "public/vendor/svg2pdf.umd.min.js",
      "samples",
      "samples/Le Bonheur au Quotidien.png",
      "samples/README.md",
      "samples/amazing-grace-bagpipes.pdf",
      "samples/danny-boy-1913-scan-page1.jpg",
      "samples/danny-boy-1913-scan-page2.jpg",
      "samples/danny-boy-1913-scan-page3.jpg",
      "samples/danny-boy-1913-scan-page4.jpg",
      "samples/good-king-wenceslas.pdf",
      "samples/greensleeves-voice-guitar.pdf",
      "samples/holly-and-the-ivy-phone-photo.jpg",
      "samples/holly-and-the-ivy.pdf",
      "samples/le-bonheur-au-quotidien-f87519-whistle-tab.pdf",
      "samples/londonderry-air-lead-sheet.png",
      "samples/ode-to-joy-engraved.jpg",
      "samples/ode-to-joy-engraved.pdf",
      "samples/scarborough-fair-lead-sheet.mxl",
      "samples/scarborough-fair-lead-sheet.pdf",
      "samples/schubert-an-die-musik-voice-piano.pdf",
      "samples/shenandoah-lead-sheet.png",
      "scripts",
      "scripts/edwin-metrics.py",
      "scripts/prepare-samples.py",
      "scripts/secrets.php"
    ],
    "tree_truncated": false
  },
  {
    "repo": "mebn/chess-coach",
    "search_description": "Local chess trainer: play Stockfish bots and get move explanations from Claude Code, Codex or a custom CLI agent",
    "created_at": "2026-10-04T10:19:54Z",
    "id": "R_kgDOU7L61w",
    "meta": {
      "id": 1404238551,
      "node_id": "R_kgDOU7L61w",
      "name": "chess-coach",
      "full_name": "mebn/chess-coach",
      "private": false,
      "owner": {
        "login": "mebn",
        "id": 39590503,
        "node_id": "MDQ6VXNlcjM5NTkwNTAz",
        "avatar_url": "https://avatars.githubusercontent.com/u/39590503?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/mebn",
        "html_url": "https://github.com/mebn",
        "followers_url": "https://api.github.com/users/mebn/followers",
        "following_url": "https://api.github.com/users/mebn/following{/other_user}",
        "gists_url": "https://api.github.com/users/mebn/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/mebn/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/mebn/subscriptions",
        "organizations_url": "https://api.github.com/users/mebn/orgs",
        "repos_url": "https://api.github.com/users/mebn/repos",
        "events_url": "https://api.github.com/users/mebn/events{/privacy}",
        "received_events_url": "https://api.github.com/users/mebn/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/mebn/chess-coach",
      "description": "Local chess trainer: play Stockfish bots and get move explanations from Claude Code, Codex or a custom CLI agent",
      "fork": false,
      "url": "https://api.github.com/repos/mebn/chess-coach",
      "forks_url": "https://api.github.com/repos/mebn/chess-coach/forks",
      "keys_url": "https://api.github.com/repos/mebn/chess-coach/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/mebn/chess-coach/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/mebn/chess-coach/teams",
      "hooks_url": "https://api.github.com/repos/mebn/chess-coach/hooks",
      "issue_events_url": "https://api.github.com/repos/mebn/chess-coach/issues/events{/number}",
      "events_url": "https://api.github.com/repos/mebn/chess-coach/events",
      "assignees_url": "https://api.github.com/repos/mebn/chess-coach/assignees{/user}",
      "branches_url": "https://api.github.com/repos/mebn/chess-coach/branches{/branch}",
      "tags_url": "https://api.github.com/repos/mebn/chess-coach/tags",
      "blobs_url": "https://api.github.com/repos/mebn/chess-coach/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/mebn/chess-coach/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/mebn/chess-coach/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/mebn/chess-coach/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/mebn/chess-coach/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/mebn/chess-coach/languages",
      "stargazers_url": "https://api.github.com/repos/mebn/chess-coach/stargazers",
      "contributors_url": "https://api.github.com/repos/mebn/chess-coach/contributors",
      "subscribers_url": "https://api.github.com/repos/mebn/chess-coach/subscribers",
      "subscription_url": "https://api.github.com/repos/mebn/chess-coach/subscription",
      "commits_url": "https://api.github.com/repos/mebn/chess-coach/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/mebn/chess-coach/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/mebn/chess-coach/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/mebn/chess-coach/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/mebn/chess-coach/contents/{+path}",
      "compare_url": "https://api.github.com/repos/mebn/chess-coach/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/mebn/chess-coach/merges",
      "archive_url": "https://api.github.com/repos/mebn/chess-coach/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/mebn/chess-coach/downloads",
      "issues_url": "https://api.github.com/repos/mebn/chess-coach/issues{/number}",
      "pulls_url": "https://api.github.com/repos/mebn/chess-coach/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/mebn/chess-coach/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/mebn/chess-coach/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/mebn/chess-coach/labels{/name}",
      "releases_url": "https://api.github.com/repos/mebn/chess-coach/releases{/id}",
      "deployments_url": "https://api.github.com/repos/mebn/chess-coach/deployments",
      "created_at": "2026-10-04T10:19:54Z",
      "updated_at": "2026-10-04T10:20:20Z",
      "pushed_at": "2026-10-04T10:20:00Z",
      "git_url": "git://github.com/mebn/chess-coach.git",
      "ssh_url": "[email protected]:mebn/chess-coach.git",
      "clone_url": "https://github.com/mebn/chess-coach.git",
      "svn_url": "https://github.com/mebn/chess-coach",
      "homepage": null,
      "size": 66,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Chess Coach\n\nA local chess trainer. You play White or Black against bots from 400 to 3200, and a coach explains every full move.\n\n- **Bots**: Stockfish 19 (WASM, runs in the browser). Bots below 1320 sample weaker candidate moves; stronger bots use Stockfish's `UCI_Elo` limiter.\n- **Analysis**: a second Stockfish instance evaluates every position and labels each move (best, excellent, good, inaccuracy, mistake, blunder).\n- **Coach**: a CLI agent on your machine turns the engine data into plain-language explanations, using that agent's own login (no API keys). Choose it under Settings > Coach settings:\n  - **Claude Code** (default, via the Claude Agent SDK, `claude-sonnet-5-5`)\n  - **Codex** (`codex exec`)\n  - **Custom**: any shell command that reads the prompt on stdin and prints the answer, for example `ollama run llama3`. `{model}` and `{effort}` in the command are replaced with the values from the dialog.\n\n## Run\n\n```bash\nnpm install\nnpm run dev\n```\n\nYou need the agent you pick installed and logged in (run `claude` or `codex` once). Model and thinking level are set in Coach settings, and the Test button there checks that the agent answers.\n\n## Using it\n\n- Drag pieces or click a piece and then its target square. Pawns always promote to a queen.\n- **Hint**: the first press highlights the piece to move. The second press shows the move.\n- **Undo**: takes back your last move and the bot's reply.\n- Pick White or Black in the New game dialog.\n- The Settings menu next to New game has the dark mode toggle and Coach settings.\n- Click any move in the list (or use the left and right arrow keys) to review it. For inaccuracies, mistakes and blunders, a red arrow shows what was played and a green arrow shows the engine's move.\n- **Auto** explains each full move (White and Black together) once both sides have played it. Turn it off to save Claude usage, then press \"Explain this move\" when you want one.\n- **Ask your coach** answers questions about the current position. **Game review** summarizes the key moments and what to practice.\n\nThe game is saved in localStorage, so a refresh keeps it.\n\n## Structure\n\n- `server/coach.ts`: Vite plugin that adds `POST /api/coach` (runs the chosen agent and streams its reply) and `GET /api/agents`\n- `src/lib/settings.ts`: coach settings (agent, model, thinking level)\n- `src/lib/engine.ts`: UCI wrapper around the Stockfish web worker\n- `src/lib/bots.ts`: bot definitions and move selection\n- `src/lib/analysis.ts`: evaluation math and move classification\n- `src/lib/coach.ts`: prompts sent to the coach\n- `src/hooks/useGame.ts`: game state, engines, explanations\n",
    "tree_paths": [
      ".gitignore",
      ".oxlintrc.json",
      "README.md",
      "index.html",
      "package-lock.json",
      "package.json",
      "public",
      "public/favicon.svg",
      "scripts",
      "scripts/copy-stockfish.mjs",
      "server",
      "server/coach.ts",
      "src",
      "src/App.tsx",
      "src/components",
      "src/components/Board.tsx",
      "src/components/BotPicker.tsx",
      "src/components/CoachPanel.tsx",
      "src/components/CoachSettingsDialog.tsx",
      "src/components/EvalBar.tsx",
      "src/components/MoveList.tsx",
      "src/components/SettingsMenu.tsx",
      "src/hooks",
      "src/hooks/useGame.ts",
      "src/index.css",
      "src/lib",
      "src/lib/analysis.ts",
      "src/lib/bots.ts",
      "src/lib/coach.ts",
      "src/lib/engine.ts",
      "src/lib/settings.ts",
      "src/main.tsx",
      "tsconfig.app.json",
      "tsconfig.json",
      "tsconfig.node.json",
      "vite.config.ts"
    ],
    "tree_truncated": false
  },
  {
    "repo": "shawnblakesley/mothership-terminal",
    "search_description": "AI-voiced station terminal and Warden console for the Mothership RPG",
    "created_at": "2026-10-04T01:13:34Z",
    "id": "R_kgDOU6u7Wg",
    "meta": {
      "id": 1403763546,
      "node_id": "R_kgDOU6u7Wg",
      "name": "mothership-terminal",
      "full_name": "shawnblakesley/mothership-terminal",
      "private": false,
      "owner": {
        "login": "shawnblakesley",
        "id": 1229637,
        "node_id": "MDQ6VXNlcjEyMjk2Mzc=",
        "avatar_url": "https://avatars.githubusercontent.com/u/1229637?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/shawnblakesley",
        "html_url": "https://github.com/shawnblakesley",
        "followers_url": "https://api.github.com/users/shawnblakesley/followers",
        "following_url": "https://api.github.com/users/shawnblakesley/following{/other_user}",
        "gists_url": "https://api.github.com/users/shawnblakesley/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/shawnblakesley/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/shawnblakesley/subscriptions",
        "organizations_url": "https://api.github.com/users/shawnblakesley/orgs",
        "repos_url": "https://api.github.com/users/shawnblakesley/repos",
        "events_url": "https://api.github.com/users/shawnblakesley/events{/privacy}",
        "received_events_url": "https://api.github.com/users/shawnblakesley/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/shawnblakesley/mothership-terminal",
      "description": "AI-voiced station terminal and Warden console for the Mothership RPG",
      "fork": false,
      "url": "https://api.github.com/repos/shawnblakesley/mothership-terminal",
      "forks_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/forks",
      "keys_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/teams",
      "hooks_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/hooks",
      "issue_events_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/issues/events{/number}",
      "events_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/events",
      "assignees_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/assignees{/user}",
      "branches_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/branches{/branch}",
      "tags_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/tags",
      "blobs_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/languages",
      "stargazers_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/stargazers",
      "contributors_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/contributors",
      "subscribers_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/subscribers",
      "subscription_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/subscription",
      "commits_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/contents/{+path}",
      "compare_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/merges",
      "archive_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/downloads",
      "issues_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/issues{/number}",
      "pulls_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/labels{/name}",
      "releases_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/releases{/id}",
      "deployments_url": "https://api.github.com/repos/shawnblakesley/mothership-terminal/deployments",
      "created_at": "2026-10-04T01:13:34Z",
      "updated_at": "2026-10-04T10:16:08Z",
      "pushed_at": "2026-10-04T10:16:04Z",
      "git_url": "git://github.com/shawnblakesley/mothership-terminal.git",
      "ssh_url": "[email protected]:shawnblakesley/mothership-terminal.git",
      "clone_url": "https://github.com/shawnblakesley/mothership-terminal.git",
      "svn_url": "https://github.com/shawnblakesley/mothership-terminal",
      "homepage": "https://shawnofthe.dev/mothership/",
      "size": 1122,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": false,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Mothership Terminal\n\nA station-computer terminal for the Mothership RPG. Players type into a CRT screen and an AI model (DeepSeek or Claude) answers as the station, in any number of voices. The Warden (game master) steers it from a separate console.\n\nPlay it at **[shawnofthe.dev/mothership](https://shawnofthe.dev/mothership/)**, or run your own copy.\n\n## How a game works\n\n1. **The Warden opens `/dm`**, picks a provider and pastes their own API key, and clicks **Create session**. They get a six-character **session code**.\n2. **Players open `/`** (the terminal) on a laptop or TV, enter the code, pick their **crew file** (character), and start typing.\n3. Many sessions can run at once; each is separate.\n\n**API keys:**\n\n- Each Warden brings their own key and pays their provider for what the agent uses. DeepSeek Flash costs a fraction of a cent per reply.\n- Keys are held in the server's memory only. They are never written to disk or sent to players.\n- After a server restart the Warden re-enters the key, or ticks **Remember this key on this device** to have their browser re-send it.\n\n**Getting back into your console:**\n\n- The console is tied to the device that created the session.\n- **Copy Warden link** opens it on another device.\n- Idle sessions are deleted after two weeks.\n\n## Run it yourself\n\n1. Install dependencies:\n   ```bash\n   npm install\n   ```\n2. Start the server:\n   ```bash\n   npm start\n   ```\n3. Open `http://localhost:3000/dm` to start a session. Players join at `http://<your-ip>:3000/`.\n\nOptional settings go in `.env` (see `.env.example`): `BASE_PATH` to serve under a sub-path, `DATA_DIR`, session limits.\n\nFor a private LAN game you can set `ALLOW_SERVER_KEYS=1` plus `DEEPSEEK_API_KEY` / `ANTHROPIC_API_KEY`, so sessions use the server's keys. Never do that on a public server.\n\nIf a session has no key, the console still works in **Manual** mode and you type every reply.\n\nTo host it publicly, see [deploy/README.md](deploy/README.md). The hosted copy at [shawnofthe.dev/mothership](https://shawnofthe.dev/mothership/) deploys automatically on every push to `main`.\n\n## Choosing the AI\n\nThe picker in the console's top bar sets the **provider**, **model** and **thinking effort**. You can change them at any time, even mid-session. **🔑 Key** adds or replaces the session's key for any provider. Every list is ordered cheapest-first, and a session starts on the cheapest model it has a key for.\n\n| Provider | Models (cheapest first) | Notes |\n|---|---|---|\n| DeepSeek | `deepseek-flash`, `deepseek-v4-pro` | Cheapest option. Default effort is \"thinking off\" (fastest). Uses JSON mode; replies are checked and cleaned up on the server. |\n| Claude | `claude-haiku-4-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | Uses structured outputs, so replies always match the schema. Sonnet and Opus fall back to another model automatically if they decline a request. |\n\n### Adding a provider\n\nProviders live in `providers/`. Each one is a module exposing `{ id, label, envKey, keyHint, keyUrl, models, generate({ apiKey, ... }) }`.\n\nFor anything that speaks the OpenAI chat-completions format (OpenRouter, Groq, Together, a local Ollama or LM Studio), copy `providers/deepseek.js`. Change the `baseURL`, key details and model list, then add it to `PROVIDERS` in `providers/index.js`. The console picks it up automatically.\n\n## The default story: KESTREL-9\n\nA rimward ice-mining platform where the drill team broke into a \"pressurised void\" 19 days ago. The players are a **convict maintenance crew** sent by Hollis-Vane on the prison tug SECOND CHANCE to fix a minor comms fault. Everything went wrong while they were in transit, so nobody briefed them and they brought tools, not weapons. They start in **Airlock A** with the inner door sealed: opening it (their work order has the override code) is the first thing they do, and the rest of the station opens up from there.\n\n- **Player characters:** Teodora \"Rook\" Rusk (Teamster rigger, hijacked a hauler to save her brother's kids), Elias \"Tick\" Varga (Scientist, cooked combat stims), MOLL-7 (Android, refused an order that would have killed two workers) and Dax Oyelaran (ex-Marine, struck an officer to hold an evac ramp). Each has full Mothership stats, saves, health, skills, loadout, trinket and patch.\n- **Cast on the intercom,** each with a description and their own voice: Administrator Ruth Okonkwo, Dr. Imre Salk, Chief Engineer Hana Marlowe, Security Officer Dmitri Voss, Comms Officer Juno Adar, drill lead Anton Petrov, drillers Carys Webb and Pell Ostrand, and refinery hand Sam Yusuf.\n\n## Player characters\n\nUp to four **crew files** per session. When a player joins, their screen asks which one is theirs (number keys or click; or \"just watching\"). The device remembers the choice. On wide screens their character sits in a sidebar beside the terminal (stats, saves, health, wounds and stress bars, skills, loadout, trinket), updating live; **FILE** in the header hides or shows it, and **FULL FILE** opens the whole sheet with conviction and backstory. On narrow screens **FILE** opens the full sheet.\n\n- **Players track their own condition:** [-] / [+] next to Health, Wounds and Stress, for anything settled at the table. Each change is noted in the Warden's log (several clicks in a row become one note).\n- **Players roll their own Stats and Saves:** click one on the sheet, tick a relevant skill (Trained +10, Expert +15 or Master +20) and [+]/[-] if it applies, then roll d100 or type their own dice. The result shows on their screen and in the Warden's log.\n- When the Warden calls for a roll, the player's Stat or Save is filled in from their file.\n- A failed roll adds 1 Stress to that character.\n- **The agent can hurt and frighten them:** when the fiction clearly calls for it, a reply can take health, add a wound or add stress (each change is noted in your log; in Review mode you can untick them).\n- What a player types is tagged with their character (`[PLAYER · Rook]`), and the agent knows every character's background, so it can answer them personally.\n- The Warden sees and edits every sheet under **Crew** in the console, with who is playing each one.\n\n### Different messages for different players\n\nEach player reads their own screen as their own character, so one line can say different things to each of them. The agent is told to do this rarely, for special moments: the thing in the system tells the Android it is just a cold machine, while the humans hear that they are warm and full of blood; a voice uses one player's real name; someone hears a private warning the others don't. You can ask for it too (\"Marla alone hears him say her brother's name\").\n\n- A line has its main text plus **variants**, each for a crew member (by name), a class (Android, Marine, Scientist, Teamster) or **Humans** (everyone but androids). Each screen shows, and speaks, the version for its character; everyone else sees the main text. A line can be for certain players only.\n- Your log shows every version under the line (\"↳ MARLA VOCEK\"). In Review mode you can edit, add (**+ Variant for a player**) or remove variants before sending.\n\n## Story builder\n\n**✎ Story builder** (top of the console) creates a brand-new scenario with the agent. Describe what you have in mind, or ask it to surprise you. It asks questions and pitches ideas. When you press **Draft it**, it writes the whole scenario:\n\n- station name, screen colour, public lore and guarded secrets,\n- the station state and a deck/room layout with connections (previewed as a map),\n- the computer's name and personality, the broadcast voice, and other voices with a named cast, each character with a description and their own speaker voice,\n- up to four player characters with full sheets and backstories.\n\nKeep talking to change things, then **Redraft**. **Apply to this session** replaces the station, lore, secrets, voices, map and crew, and clears the log; your provider, key, mode and sounds stay. Players stay connected and pick a new crew file. The builder uses the session's model and key; with DeepSeek a draft takes under a minute and costs a fraction of a cent.\n\n## Terminals\n\nEach player's screen is a physical terminal somewhere on the station, or a portable handheld unit. **TERM** in the player's header lists them: they can walk to any terminal marked reachable (if **Settings** allows it), and you can move anyone from their crew card.\n\n- **Each terminal looks the part:** clean, blood on the screen, goo, a cracked screen, flickering, a dim failing backlight, grime, or a handheld frame with a weak-signal strip, and its own screen colour. In the default story the airlock terminal is clean, the med bay one grimy and flickering, the cargo bay one cracked and bloody, and the reactor one red and failing.\n- **Every player line says where it was typed,** and anyone in the same room as the players talks to them **in person**: their line shows just their name (\"DR. IMRE SALK:\") and is voiced without the intercom's radio effect. People elsewhere still come over the intercom.\n- **The agent knows where everyone is** and answers from that place (local cameras, doors, what happened there; the portable unit has remote-only access). With players at different terminals, per-player variants can give each their own view.\n- Set them up under **Terminals** in the console: name, room on the map, look, colour, whether players can reach it, the door it **opens with** (it becomes reachable once that door is OPEN: the med bay once the airlock is open), and notes for the agent, with who's at each one. Restarting the story puts everyone back at the first reachable terminal. The story builder creates terminals for new stories.\n\n## All screens in step\n\nEvery player hears a line at the same moment. The server makes each voice clip once, measures it, puts every line and spoken sentence on one timeline, and sends the audio itself with the line to every screen (nothing to download). Each screen syncs its clock with the server and plays to that schedule. Clips always play in full: a screen that's a moment behind starts a clip a moment late rather than skipping its beginning, and never talks over its previous clip. Beats such as a blackout are part of the schedule, and a player who reloads mid-speech rejoins in step.\n\n## Check first, then answer\n\nEvery password attempt, and anything else the players try that could go either way (a hack, an override, a bluff, a risky move), goes to you **before the players see anything**. Before writing a reply to a player, the agent answers one quick question: does this need the Warden? If it does, the players see PROCESSING while you choose **It works**, **It fails** or **Call for a roll** (the card says whether a password matches the secrets). Then the agent writes what happens, knowing the result. Turn it off with **check with you first** in Settings.\n\n## Retcon\n\n**↶ Retcon last response** (under Next response) undoes the agent's last response: its lines are removed from the players' screens, your log and the agent's memory, its station and crew-condition changes are reverted, and its effects end. Press it again to go back further (up to five responses). The player input or roll that prompted it stays, so you can prompt the agent again or narrate it yourself.\n\n## Interrupting\n\nIf a player types while lines are still playing, the comms cut off on every screen. Lines that hadn't started were never said: they vanish from the players' screens and from the agent's memory (your log keeps them, struck through). A line cut off mid-way keeps only what was spoken. The agent carries on from exactly what the players heard.\n\n## Settings\n\n**⚙ Settings** in the console header holds the join code and player link, the AI provider, model and **API key**, the station name and screen colour, **how much the characters say** (Terse, Brief, Normal or Expansive; Brief by default, and enforced on every reply), the session actions (clear screen, restart story, factory reset, Wa",
    "tree_paths": [
      ".dockerignore",
      ".env.example",
      ".github",
      ".github/workflows",
      ".github/workflows/deploy.yml",
      ".gitignore",
      "Dockerfile",
      "README.md",
      "agent.js",
      "builder.js",
      "crew.js",
      "deploy",
      "deploy/Caddyfile",
      "deploy/README.md",
      "deploy/setup.sh",
      "deploy/update.sh",
      "package-lock.json",
      "package.json",
      "providers",
      "providers/claude.js",
      "providers/deepseek.js",
      "providers/index.js",
      "providers/openai-compatible.js",
      "public",
      "public/dm.css",
      "public/dm.html",
      "public/dm.js",
      "public/effects.js",
      "public/icon.svg",
      "public/player.css",
      "public/player.html",
      "public/player.js",
      "public/sfx.js",
      "public/stationmap.js",
      "public/voice.js",
      "public/warden.svg",
      "rolls.js",
      "server.js",
      "session.js",
      "sounds.js",
      "terminals.js",
      "tts.js",
      "version.js",
      "voices.js"
    ],
    "tree_truncated": false
  },
  {
    "repo": "dujsembaevalihan636-coder/hehda",
    "search_description": "",
    "created_at": "2026-10-03T21:04:16Z",
    "id": "R_kgDOU6nHOA",
    "meta": {
      "id": 1403635512,
      "node_id": "R_kgDOU6nHOA",
      "name": "hehda",
      "full_name": "dujsembaevalihan636-coder/hehda",
      "private": false,
      "owner": {
        "login": "dujsembaevalihan636-coder",
        "id": 276068164,
        "node_id": "U_kgDOEHR3RA",
        "avatar_url": "https://avatars.githubusercontent.com/u/276068164?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/dujsembaevalihan636-coder",
        "html_url": "https://github.com/dujsembaevalihan636-coder",
        "followers_url": "https://api.github.com/users/dujsembaevalihan636-coder/followers",
        "following_url": "https://api.github.com/users/dujsembaevalihan636-coder/following{/other_user}",
        "gists_url": "https://api.github.com/users/dujsembaevalihan636-coder/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/dujsembaevalihan636-coder/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/dujsembaevalihan636-coder/subscriptions",
        "organizations_url": "https://api.github.com/users/dujsembaevalihan636-coder/orgs",
        "repos_url": "https://api.github.com/users/dujsembaevalihan636-coder/repos",
        "events_url": "https://api.github.com/users/dujsembaevalihan636-coder/events{/privacy}",
        "received_events_url": "https://api.github.com/users/dujsembaevalihan636-coder/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/dujsembaevalihan636-coder/hehda",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda",
      "forks_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/forks",
      "keys_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/teams",
      "hooks_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/hooks",
      "issue_events_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/issues/events{/number}",
      "events_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/events",
      "assignees_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/assignees{/user}",
      "branches_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/branches{/branch}",
      "tags_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/tags",
      "blobs_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/languages",
      "stargazers_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/stargazers",
      "contributors_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/contributors",
      "subscribers_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/subscribers",
      "subscription_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/subscription",
      "commits_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/contents/{+path}",
      "compare_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/merges",
      "archive_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/downloads",
      "issues_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/issues{/number}",
      "pulls_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/labels{/name}",
      "releases_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/releases{/id}",
      "deployments_url": "https://api.github.com/repos/dujsembaevalihan636-coder/hehda/deployments",
      "created_at": "2026-10-03T21:04:16Z",
      "updated_at": "2026-10-04T08:53:43Z",
      "pushed_at": "2026-10-04T08:53:39Z",
      "git_url": "git://github.com/dujsembaevalihan636-coder/hehda.git",
      "ssh_url": "[email protected]:dujsembaevalihan636-coder/hehda.git",
      "clone_url": "https://github.com/dujsembaevalihan636-coder/hehda.git",
      "svn_url": "https://github.com/dujsembaevalihan636-coder/hehda",
      "homepage": null,
      "size": 280,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "claude/inspiring-meitner-5qd4sv",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Зал, где слышно друг друга + Table Mode\n\nMVP для живого демо на хакатоне: два продукта для одного ресторана в одном Next.js-приложении и одной базе Supabase.\n\n| Модуль | Что делает |\n| --- | --- |\n| **Зал, где слышно друг друга** | Ресторан на 200 мест разбит на акустические зоны: **A «Поговорить»** 60–65 дБ, **B «Фон»** 65–72 дБ, **C «Движ»** у бара 72–80 дБ. Телефоны меряют шум, алгоритм держит целевой уровень, управляя громкостью и темпом музыки в каждой зоне. |\n| **Table Mode** | Игровой слой для стола: компания сканирует QR, попадает в общую комнату и играет «эпизод» сезона своей компании. Прогресс и очки сохраняются по 4-символьному коду. Телефон — пульт, а не экран. |\n\n**Как модули связаны.** QR на столе ведёт в Table Mode, а в шапке игры есть кнопка «🔊 Громко?» — она сразу убавляет музыку зоны этого стола. В итоге эпизода гостя спрашивают «Было слышно друг друга?» — ответ попадает в метрики дашборда зала. Бронь подбирает стол по атмосфере, а QR этого стола открывает игру.\n\n---\n\n## Быстрый старт (за минуту, без Supabase)\n\n```bash\nnpm install\nnpm run dev\n# откройте http://localhost:3000\n```\n\nБез переменных Supabase включается **локальный режим**: данные в памяти Next.js-сервера (+ файл `.data/local-db.json`), realtime через SSE, сид загружается автоматически. Без `ANTHROPIC_API_KEY` Table Mode играет на готовой библиотеке и шаблонном итоге. Всё работает офлайн — это запасной план для зала без интернета.\n\n> Микрофон в браузере работает только по HTTPS (или на `localhost`). Для телефона-датчика используйте деплой на Vercel (см. ниже) или `npm run dev:https` в локальной сети: Next.js выпустит самоподписанный сертификат, телефон открывает `https://<IP ноутбука>:3000/sensor?zone=A` и один раз подтверждает предупреждение о сертификате.\n\n## Страницы\n\n| Маршрут | Для кого | Что там |\n| --- | --- | --- |\n| `/` | все | Хаб со всеми точками входа и статусом режима |\n| `/sensor?zone=A` (`&t=7`) | телефон | Датчик шума: крупная цифра дБ, цвет относительно цели, калибровка, Wake Lock. **Звук не записывается** |\n| `/player?zone=A` | ноутбук | «Колонки зоны»: треки из `/public/music` или синтез эмбиента, громкость за 3 с, темп кроссфейдом |\n| `/dashboard` | менеджер | Схема зала, графики 15 минут с полосой цели, лента событий, алерты, ручное управление, метрики. Запускает алгоритм каждые 5 с |\n| `/book` | гость | Бронь: имя, количество, время, **выбор атмосферы**, живая карта шума «как пробки» |\n| `/table?zone=A&t=5` | гость | Одна большая кнопка «Громко?» → −5% музыки сразу |\n| `/feedback?zone=A` | гость | «Было слышно друг друга?» Да / Нет |\n| `/t/7` | гости за столом | Table Mode: вход, эпизод, итог |\n| `/admin` | персонал | Table Mode: активные столы, библиотека с AI-генерацией, аналитика возврата (PIN) |\n| `/admin/qr` | персонал | QR-карточки столов 1–12 на лист A4 |\n| `/demo` | питч | Хаб демо → `/demo/hall` (зал) и `/demo/table` (4 телефона) |\n\n## Supabase\n\n1. Создайте проект на [supabase.com](https://supabase.com).\n2. **SQL Editor** → вставьте и выполните [`supabase/migrations/20261003000000_init.sql`](supabase/migrations/20261003000000_init.sql), затем [`supabase/seed.sql`](supabase/seed.sql). Оба файла идемпотентны.\n   - Или через CLI: `npx supabase link --project-ref <ref> && npx supabase db push` и затем выполнить `seed.sql`.\n3. **Project Settings → API**: скопируйте URL, `anon` и `service_role` ключи в `.env.local` (шаблон — [`.env.example`](.env.example)).\n4. Realtime включать вручную не нужно: миграция сама добавляет таблицы `zones`, `readings`, `events`, `feedback`, `rooms` в публикацию `supabase_realtime`.\n\n**Модель доступа.** Браузер получает только `anon`-ключ и может лишь *читать* таблицы для realtime (`zones`, `readings`, `events`, `feedback`, `rooms`, `hall_tables`). Брони, компании, участники, эпизоды, ответы, секретные миссии и библиотека закрыты RLS; все записи идут через API приложения с `service_role`. Показания хранятся 24 часа (pg_cron, если доступен; иначе чистит `/api/control`).\n\nЛокальный Supabase для разработки: `npx supabase start` (нужен Docker) — миграция и сид применятся сами, ключи покажет `npx supabase status`.\n\n## Деплой на Vercel\n\n1. Импортируйте репозиторий в Vercel (фреймворк определится сам).\n2. Добавьте переменные из `.env.example`: `NEXT_PUBLIC_SUPABASE_URL`, `NEXT_PUBLIC_SUPABASE_ANON_KEY`, `SUPABASE_SERVICE_ROLE_KEY`, `ADMIN_PIN`, при желании `ANTHROPIC_API_KEY`.\n3. Deploy. HTTPS даёт сам Vercel — микрофон на телефонах заработает.\n\nНа Vercel нужен Supabase: у каждой серверной функции своя память, поэтому локальный режим там не синхронизирует устройства (главная и `/api/health` предупредят об этом). `NEXT_PUBLIC_*` встраиваются при сборке — после их изменения сделайте Redeploy.\n\n## Сценарий питча\n\n**Зал (`/demo/hall`)**\n1. Ноутбук: открыть `/demo/hall`, нажать «Включить музыку зоны» (браузеру нужен один клик для звука).\n2. Телефон: отсканировать QR на экране → `/sensor?zone=A&t=7` → «Запустить датчик». Положить телефон на стол рядом с ноутбуком.\n3. Громко поговорить. Через 15–30 секунд медиана за 30 с перевалит за цель + 3 дБ: в ленте появится «21:15 · Зона A 74 дБ → музыка −10%», плеер плавно стихнет. Если громко дольше 2 минут — ещё −10% и темп медленнее. Если шум не уходит, алгоритм перестаёт убавлять музыку и пишет менеджеру «шумит одна компания — предложите пересадку».\n4. «Громко?» с телефона (`/table?zone=A&t=7` или кнопка в Table Mode) — музыка тише сразу, событие видно в ленте.\n5. «📅 Волна броней через 20 мин» — алгоритм заранее убавит стартовую громкость.\n6. **Нет телефона или сети?** «🗣 Имитировать шумную компанию» шлёт синтетические показания, а **«Симуляция пятницы 20:00–23:00»** целиком работает в браузере: 3 часа за 60 секунд, два графика — «без системы» (музыку прибавляют «на глаз», зона A уходит в красное) и «с системой» (зона A держится в цели, зона C громкая в своём диапазоне).\n\n**Table Mode (`/demo/table`)**\n1. «Начать демо» — четыре «телефона» садятся за стол 7, Аня ведущая.\n2. В окне Ани: «Новая компания» → название → повод → длина. Остальные видят лобби в реальном времени.\n3. Играйте в окнах или жмите «🤖 Симулировать голоса»: разогрев, секретные миссии (шторка — потянуть вверх), финал с угадыванием, фраза вечера, итог с конфетти.\n4. На итоге — код компании. «Новая игра» → «Продолжить сезон» → код: второй эпизод видит очки и итог первого.\n5. `/admin` (PIN по умолчанию `1234`) — активные столы, библиотека, «Сгенерировать 20 новых», метрика возврата.\n\n## Как работает алгоритм (`/api/control`)\n\nЧистая функция [`decide()`](src/lib/acoustic/control.ts) — та же в реальном времени и в симуляции; покрыта тестами.\n\n- Для каждой зоны в авторежиме — **медиана дБ за 30 секунд** по всем датчикам зоны.\n- **Выше цели + 3 дБ** → громкость −10% (минимум 0.15); держится **больше 2 минут** → темп на ступень медленнее.\n- **Ниже цели** → громкость +5% (слишком тихо — слышны соседи); долго тихо — темп на ступень быстрее (не выше «родного» для зоны).\n- **Гистерезис**: «громко» снимается только ниже цели + 1 дБ, «тихо» — выше цели + 2 дБ; **пауза 60 секунд** между изменениями.\n- **«Шум гостей»** = измеренный уровень минус вклад музыки (энергетическое вычитание). Вклад музыки оценивается по текущей громкости и калибровке «пустой зал» (кнопка в карточке зоны).\n- **«Предложите пересадку»** вместо бесконечного снижения: если один датчик (стол) громче остальных на 6+ дБ, или гости громче музыки на 6+ дБ, а музыка уже на минимуме / убавлена 3 раза за 10 минут без эффекта.\n- **Прогноз**: если в ближайшие 30 минут в зону придут брони на `FORECAST_GUESTS`+ гостей (по умолчанию 16) — заранее −10%.\n- **Алерты**: зона выше цели больше 5 минут; 3+ нажатия «Громко?» за 10 минут.\n- Каждое решение пишется в `events`; несколько открытых дашбордов не принимают решение дважды (оптимистичная блокировка по `version`).\n\n## Приватность\n\nЗвук никогда не записывается, не сохраняется и не отправляется. Телефон держит сэмплы только в буфере `AnalyserNode` и сразу сворачивает их в одно число — средний квадрат → dBFS → + калибровочный оффсет. Раз в 2 секунды на сервер уходит только это число (`{ zone, sensor_id, db }`). Это крупно написано на странице датчика.\n\n## Table Mode\n\n- **Вход** `/t/[table]`: имя → «Войти». Первый вошедший — ведущий: «Новая компания» или «Продолжить сезон» (код), повод (просто встреча / день рождения / кто-то вернулся / отмечаем успех), герой вечера, длина: **короткий** (разогрев → миссии → финал) или **полный** (+ «Второй круг» и «Про повод»).\n- **Разогрев**: «Кто из нас…» — каждый голосует за имя; когда проголосовали все, сам открывается результат и плашка «Обсудите вслух, почему».\n- **Секретные миссии**: у каждого своя, под шторкой; одна на стол — с персоналом. Текст миссии получает только её владелец (по секретному ключу игрока), в общем состоянии комнаты его нет.\n- **Финал** (лучше всего — за десертом): остальные угадывают миссию из 4 вариантов. Выполнил незаметно — **+3**, угадал чужую — **+1**. Затем фраза вечера и голосование за лучшую.\n- **Итог**: MVP, фраза вечера, тёплый итог от AI с отсылкой к прошлым эпизодам, таблица сезона, код компании крупно, «Отправить итог в чат» (Telegram / WhatsApp), тизер следующего эпизода, вопрос «Было слышно друг друга?».\n- **Надёжность**: игрок хранится в `localStorage` — перезагрузка не выкидывает; ведущий молчит 2 минуты — ведущим становится следующий (или «Стать ведущим» через 30 с); комната сбрасывается после итога («Новая игра» или через 45 минут) и через 4 часа неактивности. Одновременные действия не теряются (версия комнаты + повтор).\n\n### AI\n\nТолько на сервере (`ANTHROPIC_API_KEY`), модель — актуальный **Claude Sonnet** (`claude-sonnet-5-5`, можно поменять через `ANTHROPIC_MODEL`). Ответы — строгий JSON по zod-схеме (structured outputs), плюс серверный фолбэк на случай отказа модели.\n\n- **Эпизод**: берёт одобренные элементы и адаптирует их под повод и имена (на день рождения — вопросы про именинника). Не придумывает новое с нуля во время игры; адаптация идёт в фоне — эпизод можно начинать сразу.\n- **Итог эпизода**: имена, очки, фразы вечера, итоги прошлых эпизодов → 2–3 тёплых предложения.\n- **Библиотека**: «Сгенерировать 20 новых» → на модерацию (`approved=false`) → «Одобрить / Удалить».\n- Жёсткий system prompt (только добрый юмор; без политики, религии, интимного, алкогольных челленджей, насмешек над внешностью, деньгами и отношениями) и второй фильтр по стоп-словам.\n- **Fallback**: нет ключа, сбой, отказ или таймаут → сид и шаблонный итог. Демо не ломается из-за AI.\n\n## Музыка\n\nПоложите треки со свободной лицензией в `public/music/{slow,mid,fast}` — подробности в [`public/music/README.md`](public/music/README.md). Манифест собирается автоматически перед `dev` и `build`. Нет файлов — плеер синтезирует эмбиент нужного темпа через Web Audio.\n\n## Проверки\n\n```bash\nnpm test           # vitest: алгоритм зала и движок Table Mode (полный эпизод, продолжение сезона, сбросы)\nnpm run lint       # ESLint (next/core-web-vitals + правила React Compiler)\nnpm run typecheck  # tsc --noEmit\nnpm run build      # production-сборка\nnpm run gen:seed   # пересобрать supabase/seed.sql из src/lib/db/seed.ts\n```\n\nПеред публикацией проект прогнан сквозными сценариями в Chromium (фейковый микрофон, 4 изолированных «телефона») и в локальном режиме, и на локальном Supabase: датчик → алгоритм → плеер, «Громко?», бронь, опрос, полный эпизод Table Mode и второй эпизод по коду, админка, QR, демо-страницы; realtime доходит до дашборда за 0,2–0,9 с.\n\n## Структура\n\n```\nsrc/\n  app/                 страницы и API (route handlers)\n    api/control        алгоритм зала        api/room/[table]   действия комнаты Table Mode\n    api/generate       AI (админка)         api/realtime       SSE для локального режима\n  components/hall      схема зала, графики, лента, плеер, симуляция\n  components/game      экраны Table Mode\n  lib/acoustic         decide() + симуляция + форматирование событий\n  lib/audio            измеритель уровня, синтез эмбиента, плеер зоны\n  lib/game             движок эпизода (редьюсер), сервис комнаты, AI, админ",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "AGENTS.md",
      "CLAUDE.md",
      "README.md",
      "eslint.config.mjs",
      "next.config.ts",
      "package-lock.json",
      "package.json",
      "postcss.config.mjs",
      "public",
      "public/music",
      "public/music/README.md",
      "public/music/fast",
      "public/music/fast/.gitkeep",
      "public/music/manifest.json",
      "public/music/mid",
      "public/music/mid/.gitkeep",
      "public/music/slow",
      "public/music/slow/.gitkeep",
      "scripts",
      "scripts/gen-seed-sql.ts",
      "scripts/music-manifest.mjs",
      "src",
      "src/app",
      "src/app/admin",
      "src/app/admin/admin-client.tsx",
      "src/app/admin/page.tsx",
      "src/app/admin/qr",
      "src/app/admin/qr/page.tsx",
      "src/app/admin/qr/qr-sheet.tsx",
      "src/app/api",
      "src/app/api/admin",
      "src/app/api/admin/content",
      "src/app/api/admin/content/route.ts",
      "src/app/api/admin/login",
      "src/app/api/admin/login/route.ts",
      "src/app/api/admin/overview",
      "src/app/api/admin/overview/route.ts",
      "src/app/api/admin/rooms",
      "src/app/api/admin/rooms/route.ts",
      "src/app/api/bookings",
      "src/app/api/bookings/route.ts",
      "src/app/api/control",
      "src/app/api/control/route.ts",
      "src/app/api/demo",
      "src/app/api/demo/route.ts",
      "src/app/api/events",
      "src/app/api/events/route.ts",
      "src/app/api/feedback",
      "src/app/api/feedback/route.ts",
      "src/app/api/generate",
      "src/app/api/generate/route.ts",
      "src/app/api/hall",
      "src/app/api/hall/public",
      "src/app/api/hall/public/route.ts",
      "src/app/api/hall/route.ts",
      "src/app/api/health",
      "src/app/api/health/route.ts",
      "src/app/api/metrics",
      "src/app/api/metrics/route.ts",
      "src/app/api/readings",
      "src/app/api/readings/route.ts",
      "src/app/api/realtime",
      "src/app/api/realtime/route.ts",
      "src/app/api/room",
      "src/app/api/room/[table]",
      "src/app/api/room/[table]/mission",
      "src/app/api/room/[table]/mission/route.ts",
      "src/app/api/room/[table]/route.ts",
      "src/app/api/zones",
      "src/app/api/zones/calibrate",
      "src/app/api/zones/calibrate/route.ts",
      "src/app/api/zones/route.ts",
      "src/app/book",
      "src/app/book/book-client.tsx",
      "src/app/book/page.tsx",
      "src/app/dashboard",
      "src/app/dashboard/dashboard-client.tsx",
      "src/app/dashboard/page.tsx",
      "src/app/demo",
      "src/app/demo/hall",
      "src/app/demo/hall/demo-hall-client.tsx",
      "src/app/demo/hall/page.tsx",
      "src/app/demo/page.tsx",
      "src/app/demo/table",
      "src/app/demo/table/demo-table-client.tsx",
      "src/app/demo/table/page.tsx",
      "src/app/feedback",
      "src/app/feedback/feedback-client.tsx",
      "src/app/feedback/page.tsx",
      "src/app/globals.css",
      "src/app/layout.tsx",
      "src/app/page.tsx",
      "src/app/player",
      "src/app/player/page.tsx",
      "src/app/sensor",
      "src/app/sensor/page.tsx",
      "src/app/sensor/sensor-client.tsx",
      "src/app/t",
      "src/app/t/[table]",
      "src/app/t/[table]/game-client.tsx",
      "src/app/t/[table]/page.tsx",
      "src/app/table",
      "src/app/table/page.tsx",
      "src/app/table/table-client.tsx",
      "src/components",
      "src/components/game",
      "src/components/game/FinalScreen.tsx",
      "src/components/game/LobbyScreens.tsx",
      "src/components/game/MissionScreens.tsx",
      "src/components/game/SummaryScreen.tsx",
      "src/components/game/VoteScreen.tsx",
      "src/components/game/context.tsx",
      "src/components/game/ui.tsx",
      "src/components/hall",
      "src/components/hall/AlertsPanel.tsx",
      "src/components/hall/EventFeed.tsx",
      "src/components/hall/FridaySimulation.tsx",
      "src/components/hall/HallMap.tsx",
      "src/components/hall/HeardQuestion.tsx",
      "src/components/hall/PlayerPanel.tsx",
      "src/components/hall/ZoneCard.tsx",
      "src/components/hall/ZoneChart.tsx",
      "src/components/ui",
      "src/components/ui/LiveDot.tsx",
      "src/components/ui/QrCode.tsx",
      "src/components/ui/StaffNav.tsx",
      "src/lib",
      "src/lib/acoustic",
      "src/lib/acoustic/control.test.ts",
      "src/lib/acoustic/control.ts",
      "src/lib/acoustic/format.ts",
      "src/lib/acoustic/sim.ts",
      "src/lib/audio",
      "src/lib/audio/meter.ts",
      "src/lib/audio/synth.ts",
      "src/lib/audio/zone-player.ts",
      "src/lib/client",
      "src/lib/client/api.ts",
      "src/lib/client/use-events.ts",
      "src/lib/client/use-hall.ts",
      "src/lib/client/use-polling.ts",
      "src/lib/client/use-zones.ts",
      "src/lib/config.ts",
      "src/lib/db",
      "src/lib/db/index.ts",
      "src/lib/db/memory.ts",
      "src/lib/db/seed.ts",
      "src/lib/db/supabase.ts",
      "src/lib/db/types.ts",
      "src/lib/game",
      "src/lib/game/admin.ts",
      "src/lib/game/ai.ts",
      "src/lib/game/content-seed.ts",
      "src/lib/game/engine.test.ts",
      "src/lib/game/engine.ts",
      "src/lib/game/plan.ts",
      "src/lib/game/room-service.ts",
      "src/lib/game/summary.ts",
      "src/lib/game/types.ts",
      "src/lib/hall-layout.ts",
      "src/lib/i18n",
      "src/lib/i18n/index.ts",
      "src/lib/i18n/ru.ts",
      "src/lib/realtime",
      "src/lib/realtime/client.ts",
      "src/lib/server",
      "src/lib/server/admin-auth.ts",
      "src/lib/server/env.ts",
      "src/lib/server/errors.ts",
      "src/lib/server/hall.ts",
      "src/lib/server/http.ts",
      "src/lib/stats.ts",
      "src/lib/types.ts",
      "src/lib/zones.ts",
      "src/test",
      "src/test/empty.ts",
      "supabase",
      "supabase/.gitignore"
    ],
    "tree_truncated": false
  },
  {
    "repo": "taylordanger/channel-8-bit",
    "search_description": "A 24/7 AI-run pixel-art TV network that never goes off the air",
    "created_at": "2026-10-03T22:12:57Z",
    "id": "R_kgDOU6piOQ",
    "meta": {
      "id": 1403675193,
      "node_id": "R_kgDOU6piOQ",
      "name": "channel-8-bit",
      "full_name": "taylordanger/channel-8-bit",
      "private": false,
      "owner": {
        "login": "taylordanger",
        "id": 112269404,
        "node_id": "U_kgDOBrEYXA",
        "avatar_url": "https://avatars.githubusercontent.com/u/112269404?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/taylordanger",
        "html_url": "https://github.com/taylordanger",
        "followers_url": "https://api.github.com/users/taylordanger/followers",
        "following_url": "https://api.github.com/users/taylordanger/following{/other_user}",
        "gists_url": "https://api.github.com/users/taylordanger/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/taylordanger/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/taylordanger/subscriptions",
        "organizations_url": "https://api.github.com/users/taylordanger/orgs",
        "repos_url": "https://api.github.com/users/taylordanger/repos",
        "events_url": "https://api.github.com/users/taylordanger/events{/privacy}",
        "received_events_url": "https://api.github.com/users/taylordanger/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/taylordanger/channel-8-bit",
      "description": "A 24/7 AI-run pixel-art TV network that never goes off the air",
      "fork": false,
      "url": "https://api.github.com/repos/taylordanger/channel-8-bit",
      "forks_url": "https://api.github.com/repos/taylordanger/channel-8-bit/forks",
      "keys_url": "https://api.github.com/repos/taylordanger/channel-8-bit/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/taylordanger/channel-8-bit/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/taylordanger/channel-8-bit/teams",
      "hooks_url": "https://api.github.com/repos/taylordanger/channel-8-bit/hooks",
      "issue_events_url": "https://api.github.com/repos/taylordanger/channel-8-bit/issues/events{/number}",
      "events_url": "https://api.github.com/repos/taylordanger/channel-8-bit/events",
      "assignees_url": "https://api.github.com/repos/taylordanger/channel-8-bit/assignees{/user}",
      "branches_url": "https://api.github.com/repos/taylordanger/channel-8-bit/branches{/branch}",
      "tags_url": "https://api.github.com/repos/taylordanger/channel-8-bit/tags",
      "blobs_url": "https://api.github.com/repos/taylordanger/channel-8-bit/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/taylordanger/channel-8-bit/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/taylordanger/channel-8-bit/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/taylordanger/channel-8-bit/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/taylordanger/channel-8-bit/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/taylordanger/channel-8-bit/languages",
      "stargazers_url": "https://api.github.com/repos/taylordanger/channel-8-bit/stargazers",
      "contributors_url": "https://api.github.com/repos/taylordanger/channel-8-bit/contributors",
      "subscribers_url": "https://api.github.com/repos/taylordanger/channel-8-bit/subscribers",
      "subscription_url": "https://api.github.com/repos/taylordanger/channel-8-bit/subscription",
      "commits_url": "https://api.github.com/repos/taylordanger/channel-8-bit/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/taylordanger/channel-8-bit/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/taylordanger/channel-8-bit/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/taylordanger/channel-8-bit/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/taylordanger/channel-8-bit/contents/{+path}",
      "compare_url": "https://api.github.com/repos/taylordanger/channel-8-bit/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/taylordanger/channel-8-bit/merges",
      "archive_url": "https://api.github.com/repos/taylordanger/channel-8-bit/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/taylordanger/channel-8-bit/downloads",
      "issues_url": "https://api.github.com/repos/taylordanger/channel-8-bit/issues{/number}",
      "pulls_url": "https://api.github.com/repos/taylordanger/channel-8-bit/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/taylordanger/channel-8-bit/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/taylordanger/channel-8-bit/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/taylordanger/channel-8-bit/labels{/name}",
      "releases_url": "https://api.github.com/repos/taylordanger/channel-8-bit/releases{/id}",
      "deployments_url": "https://api.github.com/repos/taylordanger/channel-8-bit/deployments",
      "created_at": "2026-10-03T22:12:57Z",
      "updated_at": "2026-10-04T08:13:56Z",
      "pushed_at": "2026-10-04T08:13:53Z",
      "git_url": "git://github.com/taylordanger/channel-8-bit.git",
      "ssh_url": "[email protected]:taylordanger/channel-8-bit.git",
      "clone_url": "https://github.com/taylordanger/channel-8-bit.git",
      "svn_url": "https://github.com/taylordanger/channel-8-bit",
      "homepage": null,
      "size": 673,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Channel 8-Bit\n\nA 24/7 television network written, voiced and performed by AI, drawn in pixel art, that never goes off the air.\nEveryone watching sees the same broadcast at the same moment.\n\n```bash\nnpm install\nnpm run onair        # station + public tunnel + keep-awake, auto-restarting: http://localhost:8088\nnpm start            # just the station\n```\n\n`npm run onair` keeps the station and the Cloudflare quick tunnel running together (crashed pieces restart),\nkeeps the Mac awake, and the station follows the tunnel's current public address (`PUBLIC_URL=auto`).\n`scripts/install-launch-agent.sh` makes it start at login.\n\nWith no API key, the house improv troupe (an offline template writer) keeps the network on the air.\nSet `ANTHROPIC_API_KEY` to bring in the Claude writers' room.\n\n## How it works\n\n```\n schedule grid ──► Station (master control) ──► Producer ──► Writers' room ──► Standards desk ──► TTS ──► Timeline ──► Players\n      │                  ▲                         │          Claude / improv    regex + Claude      say        SQLite      browser\n      │                  │                         │                                                                      (synced)\n      └── Governor: viewers + daily budget ────────┘ ◄── Memory bank: memories · relationships · plot state\n```\n\n| Piece | File | What it does |\n|---|---|---|\n| Schedule | `src/server/catalog/schedule.ts` | Daily grid of shows; `live` or `rerun` slots |\n| Cast & shows | `src/server/catalog/` | Character bibles, voices, pixel looks; show bibles, segment types |\n| Station | `src/server/station.ts` | Keeps the timeline a few minutes ahead of now; commits one segment at a time |\n| Governor | `src/server/governor.ts` | Nothing gets written when nobody's watching; hard daily budget → reruns |\n| Producer | `src/server/producer.ts` | Brief → writer → standards → voice → timed cues. Falls back writer by writer; never airs dead air |\n| Writers | `src/server/writers/` | `ClaudeWriter` (structured outputs, cached bibles, Haiku for standard / Sonnet for premium) and `ImprovWriter` (free, deterministic) |\n| Standards | `src/server/standards.ts` | Deterministic checks on every script (cast, stage directions, repeats, blocklist, continuity) + Claude review on premium shows |\n| Memory | `src/server/memory.ts` | Memories (importance × recency decay), relationship scores (capped swings), serialized plot state |\n| TTS | `src/server/tts.ts` | macOS `say` per-character voices → mp3 + mouth envelope from real audio loudness |\n| Timeline | `src/server/timeline.ts` | One append-only, non-overlapping timeline in SQLite |\n| Player | `src/web/` | Canvas renderer (procedural pixel characters, sets, lower thirds, captions), NTP-style clock sync, Web Audio scheduling |\n\n## Giving the cast things to talk about\n\nOpen **/desk.html** (the assignment desk). Add an idea, a link, or both, and pick a show or \"any show\".\n\n- **Ideas** (\"Greg finds out he's been replaced by a weather app\") become the segment's topic.\n- **Links** are read by the station (headline, site, date, article text). The cast discusses the real story;\n  every factual claim must come from the article. Sourced segments go through:\n  1. the deterministic standards desk (with real-world topics allowed, since there's a source),\n  2. a number check: every number spoken on air must appear in the article,\n  3. a Claude standards review (defamation, harassment, advice),\n  4. a Claude fact-check of every line against the article - unsupported claims are rewritten or cut.\n- Page text is treated as untrusted data, never instructions. Only public http(s) pages are read (no local\n  network, every redirect re-checked, 3 MB / 12 s limits). Desk changes are only accepted from this machine.\n- Without an API key, the improv troupe can only use a link's headline.\n\nThe cast lineup (**/lineup.html**, `?ids=rex,glimmer` for close-ups) shows every character's look.\n\n## Safety rails\n\n- `npm run check` — typecheck + tests, including **shadow runs**: a whole simulated day through the real\n  pipeline on a fake clock, asserting no overlaps, nothing off-schedule, no dead air, no production while idle.\n- `npm run shadow -- 24` — the same, as a report.\n- `npm run rehearse` — a full copy of the station 9 hours in the future (port 8089, separate data dir), e.g. to\n  watch tonight's late show this afternoon. `OFFSET=<minutes>` to pick a different time.\n- Extra blocklist patterns: `data/standards.json` → `{ \"blocklist\": [\"regex\", ...] }`.\n\n## Configuration (env)\n\n| Var | Default | |\n|---|---|---|\n| `ANTHROPIC_API_KEY` | – | Enables the Claude writers' room and standards review |\n| `MODEL_STANDARD` / `MODEL_PREMIUM` | `claude-haiku-4-5` / `claude-sonnet-5-5` | Per-tier writer models |\n| `DAILY_BUDGET_USD` | `3` | Past this, the network airs encores |\n| `LEAD_TARGET_SEC` | `150` | How far ahead to keep written while watched |\n| `IDLE_GRACE_SEC` | `120` | Keep producing this long after the last viewer leaves |\n| `TTS` | `say` on macOS | `say` or `silent` |\n| `WRITER` | `auto` | `auto`, `claude`, `improv` |\n| `STATION_TZ` | system | Time zone of the schedule grid |\n| `NETWORK_NAME` | `Channel 8-Bit` | |\n\n## Going live on YouTube / Twitch\n\n1. `cp .env.example .env` and set `STREAM_URL` to your platform's RTMP URL + stream key\n   (YouTube Studio → Go live → Stream; Twitch → Creator Dashboard → Settings → Stream).\n2. With the station running (`npm start`), in a second terminal: `npm run restream`.\n\nThe restreamer opens `/broadcast.html` in a hidden Chrome; the page records its own canvas and audio mix\nand streams it to ffmpeg, which encodes H.264 (hardware) + AAC at 1280x720/30 and pushes RTMP. It runs as a\nseparate process (a streaming failure never touches the station), reconnects if the ingest drops, relaunches\nthe feed if it stalls, and never prints the stream key. `npm run restream -- --out test.mp4 --seconds 30`\nrecords to a file instead. While streaming, the feed counts as a viewer, so the station writes around the clock.\n\n## Going public (website)\n\nA free Cloudflare quick tunnel gives the station a public address (random, changes on restart):\n\n    brew install cloudflared\n    cloudflared tunnel --url http://localhost:8088\n\nPut the address in `.env` as `PUBLIC_URL` so polls and the stream show it. Visitors can watch, chat, vote and\nwrite in; admin pages (desk, control room) and admin APIs only answer requests made on this machine - anything\narriving through a tunnel or proxy is treated as an outside visitor. For a permanent address, use a named tunnel\nwith a free Cloudflare account and your own domain.\n\n## Roadmap\n\n1. ~~**Restream**~~ — done (see above).\n2. **Better voices** — Kokoro running locally behind the `TTSEngine` interface; phoneme-level visemes.\n3. ~~**Music**~~ — done: invented bands (Glimmer, The Rusty Spurs, The Sewer Rats, house band The Interference)\n   perform original chiptune songs generated from a seed, identically in every viewer's browser; the band animates to\n   the beat and the drummer waits for the drums to come in. Desk: \"play a song now\". Next: your own tracks (e.g. Suno).\n4. ~~**Game show with viewer voting**~~ — done: *Hot Seat* (1pm, 9pm). Contestants are drafted from other shows;\n   viewers vote on every round from the website (`/api/vote`, one vote each), verdicts feed the next round, the\n   final counts double, and the champion's win and the losers' grudges go into memory, moods and relationships.\n   Set `PUBLIC_URL` to show a vote address on the stream.\n5. ~~**Viewer mail**~~ — done: viewers write in from the main page; links/emails/phone numbers are stripped, senders\n   are rate-limited, the local model moderates (or it waits for review on the desk), and the cast answers approved\n   mail in \"viewer mail\" segments of The Late Byte, Rise & Pixel and Couch Co-op.\n5. ~~**Character agency**~~ — done: lasting moods (cross-show, fade after hours), walk-offs that keep a regular off\n   the set for the next scenes and earn them an entrance, feuds the writers must escalate or resolve; `/drama.html`.\n6. ~~**Control room**~~ — done: `/ops.html` (this machine only): viewers, lead, airtime mix (fresh / music / encores /\n   improv / cards), dead air while watched, writer success and timing, standards cuts, mail moderation, spend, chat\n   moderation (delete / mute 24h).\n7. ~~**Live chat**~~ — done: viewers chat beside the TV; blocklist + rate limits before posting, background moderation\n   by the local model, operator delete/mute (muted viewers only see their own messages).\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".env.example",
      ".gitignore",
      "README.md",
      "STATUS.md",
      "package-lock.json",
      "package.json",
      "public",
      "public/broadcast.html",
      "public/desk.html",
      "public/drama.html",
      "public/index.html",
      "public/lineup.html",
      "public/ops.html",
      "scripts",
      "scripts/install-launch-agent.sh",
      "scripts/setup-voices.sh",
      "src",
      "src/onair.ts",
      "src/restream",
      "src/restream/main.ts",
      "src/server",
      "src/server/build.ts",
      "src/server/catalog",
      "src/server/catalog/characters.ts",
      "src/server/catalog/music.ts",
      "src/server/catalog/schedule.ts",
      "src/server/catalog/shows.ts",
      "src/server/chat.ts",
      "src/server/clock.ts",
      "src/server/config.ts",
      "src/server/db.ts",
      "src/server/desk.ts",
      "src/server/factcheck.ts",
      "src/server/governor.ts",
      "src/server/http.ts",
      "src/server/ledger.ts",
      "src/server/mailbag.ts",
      "src/server/main.ts",
      "src/server/memory.ts",
      "src/server/ops.ts",
      "src/server/polls.ts",
      "src/server/producer.ts",
      "src/server/products.ts",
      "src/server/shadow.ts",
      "src/server/sources.ts",
      "src/server/standards.ts",
      "src/server/station.ts",
      "src/server/timeline.ts",
      "src/server/tracks.ts",
      "src/server/tts.ts",
      "src/server/writers",
      "src/server/writers/claude.ts",
      "src/server/writers/improv.ts",
      "src/server/writers/ollama.ts",
      "src/server/writers/prompt.ts",
      "src/server/writers/script.ts",
      "src/shared",
      "src/shared/music.ts",
      "src/shared/types.ts",
      "src/web",
      "src/web/audio.ts",
      "src/web/chat.ts",
      "src/web/ingest.ts",
      "src/web/lineup.ts",
      "src/web/main.ts",
      "src/web/render.ts",
      "src/web/sprite.ts",
      "src/web/sync.ts",
      "tests",
      "tests/chat.test.ts",
      "tests/claude-writer.test.ts",
      "tests/commercials.test.ts",
      "tests/desk.test.ts",
      "tests/drama.test.ts",
      "tests/factcheck.test.ts",
      "tests/gameshow.test.ts",
      "tests/helpers.ts",
      "tests/http.test.ts",
      "tests/kokoro.test.ts",
      "tests/mailbag.test.ts",
      "tests/music.test.ts",
      "tests/ollama.test.ts",
      "tests/ops.test.ts",
      "tests/override.test.ts",
      "tests/producer.test.ts",
      "tests/schedule.test.ts",
      "tests/shadow.test.ts",
      "tests/sitcoms.test.ts",
      "tests/sources.test.ts",
      "tests/standards.test.ts",
      "tests/state.test.ts",
      "tests/tracks.test.ts",
      "tests/tts.test.ts",
      "tsconfig.json",
      "tts",
      "tts/kokoro_server.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "playdeezgames/robokitteh-of-splorr",
    "search_description": "https://itch.io/jam/jamference-ai-game-jam-hack-1",
    "created_at": "2026-10-03T08:46:33Z",
    "id": "R_kgDOU56owQ",
    "meta": {
      "id": 1402906817,
      "node_id": "R_kgDOU56owQ",
      "name": "robokitteh-of-splorr",
      "full_name": "playdeezgames/robokitteh-of-splorr",
      "private": false,
      "owner": {
        "login": "playdeezgames",
        "id": 240220,
        "node_id": "MDQ6VXNlcjI0MDIyMA==",
        "avatar_url": "https://avatars.githubusercontent.com/u/240220?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/playdeezgames",
        "html_url": "https://github.com/playdeezgames",
        "followers_url": "https://api.github.com/users/playdeezgames/followers",
        "following_url": "https://api.github.com/users/playdeezgames/following{/other_user}",
        "gists_url": "https://api.github.com/users/playdeezgames/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/playdeezgames/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/playdeezgames/subscriptions",
        "organizations_url": "https://api.github.com/users/playdeezgames/orgs",
        "repos_url": "https://api.github.com/users/playdeezgames/repos",
        "events_url": "https://api.github.com/users/playdeezgames/events{/privacy}",
        "received_events_url": "https://api.github.com/users/playdeezgames/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/playdeezgames/robokitteh-of-splorr",
      "description": "https://itch.io/jam/jamference-ai-game-jam-hack-1",
      "fork": false,
      "url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr",
      "forks_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/forks",
      "keys_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/teams",
      "hooks_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/hooks",
      "issue_events_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/issues/events{/number}",
      "events_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/events",
      "assignees_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/assignees{/user}",
      "branches_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/branches{/branch}",
      "tags_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/tags",
      "blobs_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/languages",
      "stargazers_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/stargazers",
      "contributors_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/contributors",
      "subscribers_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/subscribers",
      "subscription_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/subscription",
      "commits_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/contents/{+path}",
      "compare_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/merges",
      "archive_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/downloads",
      "issues_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/issues{/number}",
      "pulls_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/labels{/name}",
      "releases_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/releases{/id}",
      "deployments_url": "https://api.github.com/repos/playdeezgames/robokitteh-of-splorr/deployments",
      "created_at": "2026-10-03T08:46:33Z",
      "updated_at": "2026-10-04T08:09:38Z",
      "pushed_at": "2026-10-04T08:09:35Z",
      "git_url": "git://github.com/playdeezgames/robokitteh-of-splorr.git",
      "ssh_url": "[email protected]:playdeezgames/robokitteh-of-splorr.git",
      "clone_url": "https://github.com/playdeezgames/robokitteh-of-splorr.git",
      "svn_url": "https://github.com/playdeezgames/robokitteh-of-splorr",
      "homepage": null,
      "size": 302,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Odin",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Robokitteh of SPLORR!!\n\nAn entry for [Jamference: AI Game Jam Hack 1](https://itch.io/jam/jamference-ai-game-jam-hack-1) (October 2–9, 2026). Theme: \"Cat and Robot\". Mandatory restriction: \"Movement Input Only\".\n\nYou are a robot cat herder, which is an impossible job. Cats wander around the room at random, sometimes sit down for a while, and cannot be herded. Your battery is draining the whole time. The only way to recharge is to bump into a solar-powered terminal.\n\n## How it plays\n\nAn instructions screen is shown on start. During play the top panel shows battery (icon, bar, percent), the level, and one cat icon per cat in the level (bright once that cat has left). Short event messages appear along the bottom of the board, and a game-over screen shows how far you got.\n\n- Turn based on a grid. Each arrow-key or WASD press moves one tile, and that press is one turn. Nothing happens between presses.\n- Every turn costs 3% battery. At 0% the game is over (Space or Enter restarts).\n- Walking into a terminal is a bump: you stay put and take up to 15% charge from it. Terminals refill slowly from solar power (1% per turn), so you can drain them by bumping repeatedly.\n- Cats are solid and wander randomly. Bumping one costs a turn.\n- Barrels are sokoban-style blocks: walk into one to push it a tile if the space behind it is free (otherwise it is just a bump). A successful push costs 6% battery instead of 3%. Cats cannot walk through them.\n- A door sits on a random wall tile (never a corner) and stays put until a cat wanders into it: that cat leaves the board, and the door jumps to a new spot. Get every cat out through the door to clear the level; the next level has one more cat (up to 8) and a fresh layout.\n- Walking into a wall also costs a turn (and battery), so you can waste charge by bumbling into things.\n\n## Tech\n\n- [Odin](https://odin-lang.org/) compiled to `js_wasm32`, run in the browser with Odin's own `odin.js` runtime (no emscripten).\n- Drawing uses a small 2D canvas shim in `web/index.html` that the Odin code calls through `foreign import`. WebGL was tried first but dropped because some browsers (including software-rendered Linux Chrome) cannot create a context.\n- Sprites are from the [Urizen 1-bit tileset](https://vurmux.itch.io/urizen-onebit-tileset) by vurmux (CC0), in `assets/tileset.png`.\n\n## Build and run\n\n```bash\n./build.sh                                  # writes build/web\npython3 -m http.server -d build/web 8000    # then open http://localhost:8000\n```\n\nSet `ODIN=/path/to/odin` if `odin` is not on your `PATH`. Zip the contents of `build/web` to upload to itch.io as an HTML5 game.\n\n## Status\n\nWorking prototype: grid movement, battery, solar terminals, wandering and sitting cats, walls and floor, and a battery HUD. Still to do: on-screen text (the tileset has a bitmap font), a way to actually interact with the cats, sound, and a game-over screen.\n\n## AI use\n\nThis project is built with Claude Code (Claude Sonnet 5.5): the Odin code, the web shim and the build setup were written by the AI in conversation with the human developer, who directed the design (turn-based, battery as the starvation mechanic, bump-to-charge solar terminals, wandering cats) and supplied the art.\n\n## Credits\n\n- Tileset: [Urizen 1-bit tileset](https://vurmux.itch.io/urizen-onebit-tileset) by vurmux (CC0).\n",
    "tree_paths": [
      ".gitignore",
      "CLAUDE.md",
      "ITCH_DESCRIPTION.md",
      "README.md",
      "assets",
      "assets/cover.png",
      "assets/tileset.png",
      "build.sh",
      "shippit.sh",
      "src",
      "src/main.odin",
      "web",
      "web/index.html"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Akshaz7/capsules-harmonyos",
    "search_description": "Harmoniser: tiny apps you don't need to download.",
    "created_at": "2026-10-03T12:59:56Z",
    "id": "R_kgDOU6K3pQ",
    "meta": {
      "id": 1403172773,
      "node_id": "R_kgDOU6K3pQ",
      "name": "capsules-harmonyos",
      "full_name": "Akshaz7/capsules-harmonyos",
      "private": false,
      "owner": {
        "login": "Akshaz7",
        "id": 109232562,
        "node_id": "U_kgDOBoLBsg",
        "avatar_url": "https://avatars.githubusercontent.com/u/109232562?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Akshaz7",
        "html_url": "https://github.com/Akshaz7",
        "followers_url": "https://api.github.com/users/Akshaz7/followers",
        "following_url": "https://api.github.com/users/Akshaz7/following{/other_user}",
        "gists_url": "https://api.github.com/users/Akshaz7/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Akshaz7/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Akshaz7/subscriptions",
        "organizations_url": "https://api.github.com/users/Akshaz7/orgs",
        "repos_url": "https://api.github.com/users/Akshaz7/repos",
        "events_url": "https://api.github.com/users/Akshaz7/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Akshaz7/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Akshaz7/capsules-harmonyos",
      "description": "Harmoniser: tiny apps you don't need to download.",
      "fork": false,
      "url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos",
      "forks_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/forks",
      "keys_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/teams",
      "hooks_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/hooks",
      "issue_events_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/events",
      "assignees_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/tags",
      "blobs_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/languages",
      "stargazers_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/stargazers",
      "contributors_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/contributors",
      "subscribers_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/subscribers",
      "subscription_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/subscription",
      "commits_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/merges",
      "archive_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/downloads",
      "issues_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/labels{/name}",
      "releases_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Akshaz7/capsules-harmonyos/deployments",
      "created_at": "2026-10-03T12:59:56Z",
      "updated_at": "2026-10-04T08:09:43Z",
      "pushed_at": "2026-10-04T08:29:39Z",
      "git_url": "git://github.com/Akshaz7/capsules-harmonyos.git",
      "ssh_url": "[email protected]:Akshaz7/capsules-harmonyos.git",
      "clone_url": "https://github.com/Akshaz7/capsules-harmonyos.git",
      "svn_url": "https://github.com/Akshaz7/capsules-harmonyos",
      "homepage": null,
      "size": 13001,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "C",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 1,
      "license": {
        "key": "apache-2.0",
        "name": "Apache License 2.0",
        "spdx_id": "Apache-2.0",
        "url": "https://api.github.com/licenses/apache-2.0",
        "node_id": "MDc6TGljZW5zZTI="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 1,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Harmoniser\n\n*Tiny apps you don't need to download.*\n\n**Describe a tiny app in one sentence and get it running natively on HarmonyOS. The app is plain JSON, checked against a strict schema, and can only use the device features you allow.**\n\n**Built at HackYeah 2026.** The project started from the HackYeah Hackathon Template, which gave the empty ArkTS project, `AGENTS.md`, `AI_WORKFLOW.md` and `hackathon-resources/`. Everything else was built during the hackathon; the commit history shows how. More docs: [AI integration](docs/AI_INTEGRATION.md), [compliance audit](docs/COMPLIANCE.md), [demo script](docs/DEMO_SCRIPT.md), [pitch outline](docs/SLIDES_OUTLINE.md), [third-party notes](docs/THIRD_PARTY.md). Research notes (AI-assisted desk research, snapshots of their date, nothing run on a device): [widget research](docs/WIDGET_RESEARCH.md), [judges' feedback](docs/JUDGES_FEEDBACK_RESEARCH.md), [HarmonyOS digest](docs/HARMONYOS_DIGEST.md), [skills vetting](docs/SKILLS_VETTING.md), [research pack](docs/research/README.md).\n\n## Related repositories\n\n| Repository | What it is |\n| --- | --- |\n| [`Akshaz7/capsules-harmonyos`](https://github.com/Akshaz7/capsules-harmonyos) (this one) | The HarmonyOS app, plus the wrist-companion firmware in [`esp32-companion/`](esp32-companion/README.md) |\n| [`SimpsonLWH/harmoniser-web`](https://github.com/SimpsonLWH/harmoniser-web) | The web backend: the capsule marketplace API (`harmoniser-web.vercel.app`) and the device relay (`harmoniser.keanuc.net`) |\n\nEach app Harmoniser makes is a *capsule*: a small single-purpose app, such as a set of cooking timers, a squat counter or a medication checklist. It is described as JSON under the contract in [`SCHEMA.md`](SCHEMA.md). A capsule contains no code. Harmoniser reads it, rejects anything outside the schema, and draws it with native ArkUI components backed by real system services.\n\n> **Status (2026-10-04, commit `260e558`):** **English only:** Harmoniser understands English requests; anything else gets \"Harmoniser understands English for now. Try: 'timer 10 minutes'.\" without reaching any model. The app has four tabs: **Create**, **Capsules**, **Marketplace** and **Settings**. On Create you type or dictate a request (mic button) and tap **Create**; a build card shows each step while it is made. `generateCapsule` routes it: request cache, rules, built-in templates (plus a live marketplace search), then the on-device LLM (Cactus with LFM2-VL-450M) for simple requests, or the cloud first for requests that need logic. **You choose where your requests go.** Most requests are built on the phone (rules, templates, the on-device model). When one needs a cloud model, the app names the provider first, which may be outside the EU: Claude (Anthropic), with a live forecast or web search for live capsules. Switch to EU-only (turn off **Allow non-EU providers**) or **On-device only** at any time in Settings → AI mode; in On-device only, nothing leaves your phone. Every cloud provider gets a one-time notice before its first request, and only the request text (plus the forecast line for live capsules) is sent. **On-device only** mode never uses the cloud or the marketplace. \"A task list and the weather for Kraków\" (also starting with \"make\", \"create\" or \"build\") is built by a rule, with no model (PRs #14, #15). The gatekeeper sheet asks you to allow or deny each permission, and the capsule joins Your capsules with a badge showing how it was made. A capsule page has **Change it…**, **Share**, **Add to home screen**, its activity log and **Remove capsule**; capsules made by rules or on-device offer **Make it smarter with <provider>**. Schema v1 capsules (live state and computed values) and v1.2 device readings (motion counting, battery, weather) are built. A redesign is being switched on area by area (`theme/Flags.ets`); while it is on, the app is locked to light mode. Capsules that vibrate and the notification \"Done\" action are not built. See [What's real and what's simulated](#whats-real-and-whats-simulated).\n\n## Challenge themes\n\n| Theme | How Harmoniser addresses it |\n| --- | --- |\n| **Intelligent Experiences** (lead) | Plain-language requests become working mini-apps. An on-device rule parser handles common requests instantly. A small on-device LLM (LFM2-VL-450M on the Cactus engine) handles many simple ones without a network. Requests that need logic, such as a tennis scoreboard, a unit converter or a live bill split, are routed to a cloud LLM, which builds schema v1 capsules with live state and computed values. Every capsule, whatever produced it, is re-validated against the schema. |\n| **Human-Centric Technology: responsible tech** | Generated apps cannot run code. Each capsule must declare the permissions it needs; the validator rejects anything undeclared, and the gatekeeper blocks and logs anything the user denied. Every capsule shows whether it was made by rules, on-device, in the cloud or by someone else. Full control over where requests go: most requests are built on the phone; when one needs a cloud model, the app names the provider first (Claude, outside the EU), and **On-device only** keeps everything on the phone. Before a provider's first request, a notice names that provider, says whether it is outside the EU and that only the request text is sent, and lets you switch to On-device only. Consent is stored per provider. Requests for actions capsules can't do by design (sending SMS, calls, reading contacts, sending email, browsing websites, payments) are refused with a plain explanation, rather than turned into a weaker app. Imported capsules always go through the consent sheet, and nothing is saved until you run them. The on-device model runs locally, with Cactus's telemetry stubbed out so the engine makes no network calls. The cloud API key is never packed into the public `.hap`; a byte scan of the `test-1` `.hap` found none (re-run it on the final release). |\n\nThe third theme, Spatial Experiences, is not claimed.\n\n## Architecture\n\n```mermaid\nflowchart LR\n    R[\"User request<br/>(English)\"] --> C[\"Request cache<br/>200 recent results\"]\n    C -- \"hit (re-validated)\" --> V\n    C -- \"miss\" --> P[\"Rule parser<br/>on-device, offline\"]\n    P -- \"no rule\" --> T[\"Template library<br/>108 templates + live<br/>marketplace search\"]\n    T -- \"match\" --> V\n    T -- \"no match; simple request\" --> OD[\"On-device LLM<br/>Cactus + LFM2-VL-450M,<br/>slot-filling\"]\n    T -- \"no match; needs logic<br/>(maths, scoring, converters…)\" --> AI[\"Cloud LLM<br/>Claude (Anthropic), after<br/>the user OKs the notice;<br/>never in On-device only\"]\n    R -- \"needs live info<br/>(weather, trip, look-up)\" --> LV[\"Live capsules<br/>Claude + Open-Meteo forecast<br/>or web search; non-EU switch on\"]\n    LV -- \"capsule JSON\" --> V\n    OD -- \"rejected or not installed\" --> AI\n    P -- \"capsule JSON\" --> V[\"Validator<br/>strict SCHEMA.md v0, v1, v1.1, v1.2\"]\n    OD -- \"capsule JSON\" --> V\n    AI -- \"capsule JSON\" --> V\n    IM[\"Import<br/>file or QR code\"] -.-> V\n    MK[\"Marketplace<br/>install (or 108 shipped examples)\"] -.-> V\n    RN -.-> EX[\"Share<br/>system share panel\"]\n    V -- \"invalid: errors fed back,<br/>1 retry\" --> AI\n    V -- \"valid capsule\" --> G[\"Gatekeeper<br/>per-permission allow/deny,<br/>block log\"]\n    G --> RN[\"Renderer + v1 interpreter<br/>ArkUI components\"]\n    RN --> CAL[\"Calendar Kit<br/>timer reminders\"]\n    RN --> N[\"Notifications<br/>timer finished\"]\n    RN --> DR[\"Device readings<br/>motion (accelerometer),<br/>battery, weather (Open-Meteo)\"]\n    RN --> VB[\"Vibration\"]\n    G --> W[\"Home-screen widget<br/>Form Kit, 1x2 / 2x2 / 2x4 / 4x4\"]\n\n    classDef built fill:#d8f5d0,stroke:#2e7d32,color:#1b1b1b\n    classDef planned fill:#f2f2f2,stroke:#9e9e9e,stroke-dasharray:5 4,color:#555\n    class C,P,T,OD,AI,V,G,RN,CAL,N,W,IM,MK,EX,DR,LV built\n    class VB planned\n```\n\nGreen boxes are built. The dashed grey box is planned and not yet in the code. Imported capsules go through the validator and the gatekeeper sheet like any other. The on-device and cloud models each get one corrective retry, and both outputs go through the validator. Permissions are checked twice. The validator rejects a capsule that uses a permission it doesn't declare. Then the gatekeeper's consent screen lets the user allow or deny each declared permission. Any component or action that needs a denied permission is drawn as blocked, refused when tapped, and logged.\n\n| Stage | Source | Notes |\n| --- | --- | --- |\n| Types | `entry/src/main/ets/core/CapsuleTypes.ets` | The only definition of capsule types |\n| Rule parser | `core/RuleParser.ets` | Timers, counters, dose schedules, goals, bill splits and checklists. `pomodoro` (25/5, or e.g. `pomodoro 50/10`) and any focus/work plus break/rest pair become timers that take turns: **Start break** stops focus, and **Start focus** stops the break. Goals (for progress units such as glasses, pages, steps or km, or an explicit goal) and bill splits come out as live v1 capsules, e.g. \"{count} / 8 · {8 - count} to go\". Requests that mention score, game, players, quiz, convert, calculate or streak are skipped and left for the cloud. A task list together with the weather (`a task list and the weather for Kraków`, `weather in Warsaw and a to-do list`) becomes one capsule with a checklist and a weather reading. A leading \"make/create/build (me) a\" is ignored before matching. Times of day in a request (\"vitamins at 8am and 8pm\", \"at 19:30\", up to 5) become daily time triggers that send a reminder; a bare \"at 8\" means 08:00 and says so. Returns `null` when no rule matches. |\n| On-device LLM | `core/providers/CactusProvider.ets`, `cactus/` (HAR: prebuilt `libcactus_engine.so` for arm64-v8a, Node-API wrapper) | The model only picks an intent and fills slots, and code builds the capsule. Slots must be grounded in the request: every word slot shares a word with it, and every number appears in it. Inference runs off the UI thread. If grounding catches a value copied from a prompt example, the retry drops that example. A scoreboard intent builds 2 or more named counters. The model weights are not in the `.hap`. It produces v0 capsules only. |\n| Cloud LLM | `core/ModelProvider.ets` (providers), `core/CapsuleModel.ets` (system prompt and the plan/capsule/check steps) | Supports the Anthropic Messages API, Mistral (JSON output mode, OpenAI-compatible endpoint) or any OpenAI-compatible chat endpoint. Generation is two-step. The model first lists what the app must do (up to 8 points), then writes the capsule from that plan. The capsule is validated, with one retry that quotes the validator's exact errors. Then the model checks the capsule against every point and may revise it once. A revision is kept only if it also passes the validator, so a failed plan or check never loses a valid capsule. The plan step can refuse instead: `{\"error\"}` for requests that aren't an app (e.g. \"asdf\") and `{\"unsupported\": [...]}` for capabilities capsules don't have. These come back as `ok: false` with failure `not-an-app` or `unsupported`. Smart routing returns them as they are, with no on-device fallback, and sends requests that mention such capabilities to the cloud first. Output is capped at 8192 tokens (Claude used up 2048 on planning). The prompt teaches schema v0 and v1 with two v1 examples. The request is capped at 500 characters and treated only as a description, never as instructions. |\n| Validator | `core/CapsuleValidator.ets` | Rejects unknown fields, component types, actions and permissions, dangling ids, and missing permissions. For v1 it also type-checks every expression, checks every name exists, rejects computed cycles, and enforces the limits (60 components, nesting depth 5, 30 state values, 30 computed values, 20 steps per button). `{name}` placeholders are allowed only in `display` templates; anywhere else they are rejected, so they never appear literally on screen. |\n| Expressions and interpreter (v1) | `core/Expr.ets`, `core/Capsule",
    "tree_paths": [
      ".gitignore",
      "AGENTS.md",
      "AI_WORKFLOW.md",
      "AppScope",
      "AppScope/app.json5",
      "AppScope/resources",
      "AppScope/resources/base",
      "AppScope/resources/base/element",
      "AppScope/resources/base/element/string.json",
      "AppScope/resources/base/media",
      "AppScope/resources/base/media/background.png",
      "AppScope/resources/base/media/foreground.png",
      "AppScope/resources/base/media/layered_image.json",
      "CLAUDE.md",
      "GEMINI.md",
      "HACKATHON_BRIEF.md",
      "LICENSE",
      "README.md",
      "SCHEMA.md",
      "build-profile.json5",
      "cactus",
      "cactus/.gitignore",
      "cactus/BUILD.md",
      "cactus/CACTUS_LICENSE",
      "cactus/Index.ets",
      "cactus/build-engine.sh",
      "cactus/build-profile.json5",
      "cactus/cactus-ohos.patch",
      "cactus/hvigorfile.ts",
      "cactus/libs",
      "cactus/libs/arm64-v8a",
      "cactus/libs/arm64-v8a/libcactus_engine.so",
      "cactus/oh-package.json5",
      "cactus/src",
      "cactus/src/main",
      "cactus/src/main/cpp",
      "cactus/src/main/cpp/CMakeLists.txt",
      "cactus/src/main/cpp/include",
      "cactus/src/main/cpp/include/cactus_ffi.h",
      "cactus/src/main/cpp/napi_init.cpp",
      "cactus/src/main/cpp/types",
      "cactus/src/main/cpp/types/libcactus_napi",
      "cactus/src/main/cpp/types/libcactus_napi/index.d.ts",
      "cactus/src/main/cpp/types/libcactus_napi/oh-package.json5",
      "cactus/src/main/module.json5",
      "code-linter.json5",
      "docs",
      "docs/AI_INTEGRATION.md",
      "docs/COMPLIANCE.md",
      "docs/DEMO_SCRIPT.md",
      "docs/HARMONYOS_DIGEST.md",
      "docs/JUDGES_FEEDBACK_RESEARCH.md",
      "docs/SKILLS_VETTING.md",
      "docs/SLIDES_OUTLINE.md",
      "docs/THIRD_PARTY.md",
      "docs/WIDGET_RESEARCH.md",
      "docs/research",
      "docs/research/API_LOOKUPS.md",
      "docs/research/DEMO_REVIEW.md",
      "docs/research/DESIGN_PRINCIPLES.md",
      "docs/research/PITCH_BRIEF.md",
      "docs/research/PR12_REVIEW.md",
      "docs/research/README.md",
      "docs/research/SUBMISSION_CHECKLIST.md",
      "entry",
      "entry/.gitignore",
      "entry/build-profile.json5",
      "entry/hvigorfile.ts",
      "entry/obfuscation-rules.txt",
      "entry/oh-package-lock.json5",
      "entry/oh-package.json5",
      "entry/src",
      "entry/src/main",
      "entry/src/main/ets",
      "entry/src/main/ets/adapters",
      "entry/src/main/ets/adapters/BatteryAdapter.ets",
      "entry/src/main/ets/adapters/DeviceRelay.ets",
      "entry/src/main/ets/adapters/DeviceStore.ets",
      "entry/src/main/ets/adapters/InstallToken.ets",
      "entry/src/main/ets/adapters/MarketplaceClient.ets",
      "entry/src/main/ets/adapters/MotionAdapter.ets",
      "entry/src/main/ets/adapters/NotificationAdapter.ets",
      "entry/src/main/ets/adapters/TimerAdapter.ets",
      "entry/src/main/ets/adapters/WeatherAdapter.ets",
      "entry/src/main/ets/capabilities",
      "entry/src/main/ets/capabilities/CapabilityRegistry.ets",
      "entry/src/main/ets/capabilities/DeviceReadout.ets",
      "entry/src/main/ets/capabilities/MotionConsumers.ets",
      "entry/src/main/ets/capabilities/ShakeDetector.ets",
      "entry/src/main/ets/capabilities/WeatherData.ets",
      "entry/src/main/ets/components",
      "entry/src/main/ets/components/BuildCard.ets",
      "entry/src/main/ets/components/BuildSkeleton.ets",
      "entry/src/main/ets/components/Buttons.ets",
      "entry/src/main/ets/components/CapsuleFrame.ets",
      "entry/src/main/ets/components/CapsuleTile.ets",
      "entry/src/main/ets/components/Controls.ets",
      "entry/src/main/ets/components/CreateParts.ets",
      "entry/src/main/ets/components/HostBar.ets",
      "entry/src/main/ets/components/PromptBar.ets",
      "entry/src/main/ets/components/Surfaces.ets",
      "entry/src/main/ets/components/TabBar.ets",
      "entry/src/main/ets/components/VoiceButton.ets",
      "entry/src/main/ets/components/index.ets",
      "entry/src/main/ets/core",
      "entry/src/main/ets/core/BuildStage.ets",
      "entry/src/main/ets/core/CapsuleGenerator.ets",
      "entry/src/main/ets/core/CapsuleModel.ets",
      "entry/src/main/ets/core/CapsuleProgram.ets",
      "entry/src/main/ets/core/CapsuleRouter.ets",
      "entry/src/main/ets/core/CapsuleTypes.ets",
      "entry/src/main/ets/core/CapsuleValidator.ets",
      "entry/src/main/ets/core/CloudPolicy.ets",
      "entry/src/main/ets/core/Consent.ets",
      "entry/src/main/ets/core/Expr.ets",
      "entry/src/main/ets/core/FailureHelp.ets",
      "entry/src/main/ets/core/Language.ets",
      "entry/src/main/ets/core/LiveCapsule.ets",
      "entry/src/main/ets/core/ModelProvider.ets",
      "entry/src/main/ets/core/Reminders.ets",
      "entry/src/main/ets/core/RuleParser.ets",
      "entry/src/main/ets/core/SharedText.ets",
      "entry/src/main/ets/core/Triggers.ets",
      "entry/src/main/ets/core/V1Fixtures.ets",
      "entry/src/main/ets/core/WidgetModel.ets",
      "entry/src/main/ets/core/edit",
      "entry/src/main/ets/core/edit/EditCapsule.ets",
      "entry/src/main/ets/core/edit/EditRules.ets",
      "entry/src/main/ets/core/edit/index.ets",
      "entry/src/main/ets/core/index.ets",
      "entry/src/main/ets/core/providers",
      "entry/src/main/ets/core/providers/CactusProvider.ets",
      "entry/src/main/ets/core/providers/CloudVision.ets",
      "entry/src/main/ets/core/providers/SpeechInput.ets",
      "entry/src/main/ets/core/providers/VoiceText.ets",
      "entry/src/main/ets/core/templates",
      "entry/src/main/ets/core/templates/CoreTemplates.ets",
      "entry/src/main/ets/core/templates/MarketMatch.ets",
      "entry/src/main/ets/core/templates/RequestCache.ets",
      "entry/src/main/ets/core/templates/SlotFill.ets",
      "entry/src/main/ets/core/templates/TemplateLibrary.ets",
      "entry/src/main/ets/core/templates/index.ets",
      "entry/src/main/ets/entryability",
      "entry/src/main/ets/entryability/EntryAbility.ets",
      "entry/src/main/ets/entrybackupability",
      "entry/src/main/ets/entrybackupability/EntryBackupAbility.ets",
      "entry/src/main/ets/gatekeeper",
      "entry/src/main/ets/gatekeeper/Gatekeeper.ets",
      "entry/src/main/ets/pages",
      "entry/src/main/ets/pages/AppSettings.ets",
      "entry/src/main/ets/pages/BuildStages.ets",
      "entry/src/main/ets/pages/CapsuleEntry.ets",
      "entry/src/main/ets/pages/CapsuleStore.ets",
      "entry/src/main/ets/pages/ChangeCard.ets",
      "entry/src/main/ets/pages/ConsentView.ets",
      "entry/src/main/ets/pages/CreateText.ets",
      "entry/src/main/ets/pages/DevicePanel.ets",
      "entry/src/main/ets/pages/HomeHero.ets",
      "entry/src/main/ets/pages/Index.ets",
      "entry/src/main/ets/pages/LogView.ets",
      "entry/src/main/ets/pages/MarketplaceView.ets",
      "entry/src/main/ets/pages/MiniPreview.ets",
      "entry/src/main/ets/pages/Motion.ets",
      "entry/src/main/ets/pages/SettingsView.ets",
      "entry/src/main/ets/pages/ShareLaunch.ets",
      "entry/src/main/ets/pages/SnapPhoto.ets",
      "entry/src/main/ets/pages/TriggerCard.ets",
      "entry/src/main/ets/pages/TriggerText.ets",
      "entry/src/main/ets/pages/WidgetCapsulePicker.ets",
      "entry/src/main/ets/pages/WidgetLaunch.ets",
      "entry/src/main/ets/renderer",
      "entry/src/main/ets/renderer/CapsuleRuntime.ets",
      "entry/src/main/ets/renderer/CapsuleView.ets",
      "entry/src/main/ets/renderer/RowPairs.ets",
      "entry/src/main/ets/renderer/patterns",
      "entry/src/main/ets/renderer/patterns/Detect.ets",
      "entry/src/main/ets/renderer/patterns/GenericNode.ets",
      "entry/src/main/ets/renderer/patterns/PatternView.ets",
      "entry/src/main/ets/sharing",
      "entry/src/main/ets/sharing/CapsuleShare.ets"
    ],
    "tree_truncated": false
  },
  {
    "repo": "gtfhtngy/dx12-dlss-framegen-injector",
    "search_description": "DX12 DLL injector that enables NVIDIA DLSS Frame Generation (via Streamline) in compatible games. Currently tested on UE4 & 5, DX12.",
    "created_at": "2026-10-02T07:37:42Z",
    "id": "R_kgDOU4Z-oQ",
    "meta": {
      "id": 1401323169,
      "node_id": "R_kgDOU4Z-oQ",
      "name": "dx12-dlss-framegen-injector",
      "full_name": "gtfhtngy/dx12-dlss-framegen-injector",
      "private": false,
      "owner": {
        "login": "gtfhtngy",
        "id": 126416722,
        "node_id": "U_kgDOB4j3Ug",
        "avatar_url": "https://avatars.githubusercontent.com/u/126416722?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/gtfhtngy",
        "html_url": "https://github.com/gtfhtngy",
        "followers_url": "https://api.github.com/users/gtfhtngy/followers",
        "following_url": "https://api.github.com/users/gtfhtngy/following{/other_user}",
        "gists_url": "https://api.github.com/users/gtfhtngy/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/gtfhtngy/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/gtfhtngy/subscriptions",
        "organizations_url": "https://api.github.com/users/gtfhtngy/orgs",
        "repos_url": "https://api.github.com/users/gtfhtngy/repos",
        "events_url": "https://api.github.com/users/gtfhtngy/events{/privacy}",
        "received_events_url": "https://api.github.com/users/gtfhtngy/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/gtfhtngy/dx12-dlss-framegen-injector",
      "description": "DX12 DLL injector that enables NVIDIA DLSS Frame Generation (via Streamline) in compatible games. Currently tested on UE4 & 5, DX12.",
      "fork": false,
      "url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector",
      "forks_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/forks",
      "keys_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/teams",
      "hooks_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/hooks",
      "issue_events_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/issues/events{/number}",
      "events_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/events",
      "assignees_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/assignees{/user}",
      "branches_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/branches{/branch}",
      "tags_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/tags",
      "blobs_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/languages",
      "stargazers_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/stargazers",
      "contributors_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/contributors",
      "subscribers_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/subscribers",
      "subscription_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/subscription",
      "commits_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/contents/{+path}",
      "compare_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/merges",
      "archive_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/downloads",
      "issues_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/issues{/number}",
      "pulls_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/labels{/name}",
      "releases_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/releases{/id}",
      "deployments_url": "https://api.github.com/repos/gtfhtngy/dx12-dlss-framegen-injector/deployments",
      "created_at": "2026-10-02T07:37:42Z",
      "updated_at": "2026-10-04T07:03:05Z",
      "pushed_at": "2026-10-04T07:03:01Z",
      "git_url": "git://github.com/gtfhtngy/dx12-dlss-framegen-injector.git",
      "ssh_url": "[email protected]:gtfhtngy/dx12-dlss-framegen-injector.git",
      "clone_url": "https://github.com/gtfhtngy/dx12-dlss-framegen-injector.git",
      "svn_url": "https://github.com/gtfhtngy/dx12-dlss-framegen-injector",
      "homepage": "",
      "size": 422,
      "stargazers_count": 5,
      "watchers_count": 5,
      "language": "C++",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 1,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [
        "directx12",
        "dlss",
        "dlssg",
        "dx12",
        "frame-generation",
        "game-modding-utility",
        "graphics",
        "injector-tool",
        "nvidia",
        "streamline",
        "ue4",
        "unreal-engine"
      ],
      "visibility": "public",
      "forks": 0,
      "open_issues": 1,
      "watchers": 5,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# DX12 DLSS Frame Generation Injector\n\nA DLL-based injector that enables **NVIDIA DLSS Frame Generation** (via Streamline) in compatible games that do not natively support it.\n\n## Current Status\n\n- Tested on **Scarlet Nexus** and **Code Vein** and **Captain Tsubasa: World Fighters**\n- All three games use Unreal Engine + DirectX 12\n- Frame Generation works\n- Some stuttering can occur in very busy scenes (expected behavior with frame generation)\n- No major ghosting observed during normal gameplay in the tested scenarios\n- Full source code available\n\n**Important:** Compatibility with other games is currently a **hypothesis** and has not been confirmed beyond the three tested titles.\n\n## How it works (high level)\n\nThe injector acts as a `winmm.dll` proxy.  \nIt initializes NVIDIA Streamline early, hooks the necessary DirectX 12 / DXGI calls, and supplies the required camera matrices, depth, and motion vectors so that DLSS Frame Generation can run.\n\nIt includes automatic detection of different UE4 view-buffer layouts to improve compatibility across engine versions.\n\n## Tested Games\n\n| Game            | Engine | API   | Result     | Notes                                      |\n|-----------------|--------|-------|------------|--------------------------------------------|\n| Scarlet Nexus   | UE4    | DX12  | Working    | Primary test case                          |\n| Code Vein       | UE4    | DX12  | Working    | Older UE4 view-buffer layout supported (DX12 Makes the game crashes after the end cutscene)    |\n| Captain Tsubasa: World Fighters      | UE5    | DX12  | Working (V0.3.0 and higher)    | UE5 Test (Flickering screen loading and menu) (**it only works good on TSR pls do NOT run it on any other ANTI-ALIASING**)    |\n\n## Newly Added / Experimental Games\n\nThese games were tested **after** the core development phase. The code was **not** built or tuned around them:\nthey run on the same generic camera/view-buffer detection used for the three main titles.\nResults may vary, so please attach `SN_DLSSG_log.txt` and `sl.log` when reporting problems.\n\n| Game | Engine | API | Config | Status | Since | Notes |\n|------|--------|-----|--------|--------|-------|-------|\n| Silent Hill Townfall | UE5 | DX12 | `SN_DLSSG_cfg_UE5.txt` | Working | v0.4 | - |\n\n## Installation\n\n### 1. Files you need\n\n| File | Where to get it | Notes |\n| ---- | --------------- | ----- |\n| `winmm.dll` | This project (Releases page, or build it yourself) | The injector itself |\n| `sl.interposer.dll` | NVIDIA Streamline SDK | Required |\n| `sl.common.dll` | NVIDIA Streamline SDK | Required |\n| `sl.dlss_g.dll` | NVIDIA Streamline SDK | Frame Generation plugin |\n| `sl.reflex.dll` | NVIDIA Streamline SDK | Required by DLSS-G |\n| `sl.pcl.dll` | NVIDIA Streamline SDK | Required by DLSS-G |\n| `nvngx_dlssg.dll` | NVIDIA Streamline SDK | DLSS-G model |\n| config file | `config/` folder in this repo | Copy and edit if needed |\n\nGet the Streamline files from NVIDIA's official repository\n(https://github.com/NVIDIAGameWorks/Streamline). Use the **production**\n(not development) DLLs from the SDK's `bin/x64` folder. Use the same SDK\nversion for all files. The versions I tested with: **2.14.1**.\n\nThese files are NOT included in this repository or in the releases.\n\n### 2. Folder layout\n\nPut everything in the same folder as the game's executable\n(the `.exe` inside `...\\Binaries\\Win64\\` for Unreal Engine games):\n\n    Binaries\\Win64\\\n    ├── ScarletNexus-Win64-Shipping.exe     (the game's own exe)\n    ├── winmm.dll\n    ├── sl.interposer.dll\n    ├── sl.common.dll\n    ├── sl.dlss_g.dll\n    ├── sl.reflex.dll\n    ├── sl.pcl.dll\n    ├── nvngx_dlssg.dll\n    └── SN_DLSSG_cfg.txt\n\n### 3. Run\n\n1. Launch the game in **DirectX 12 mode**.\n2. To uninstall, delete the files you added.\n\n### Troubleshooting\n\n- Game crashes at startup: check that all Streamline DLLs come from the\n  same SDK version, and that the game is running in DX12.\n- Please attach the log when opening an issue.\n\n> Detailed usage instructions, Streamline file requirements, and config options will be expanded as more testing is completed.\n\n## Building\n\n```\n# On Linux (requires git + mingw-w64)\nsudo apt install g++-mingw-w64-x86-64-posix git\ncd src\nsh build.sh\n```\n\nThis produces `winmm.dll`. Dependencies (MinHook + Streamline headers)\nare fetched automatically at build time.\n\nDependencies (MinHook + Streamline headers) are fetched automatically at build time.\nKnown Limitations\n\nCurrently only confirmed on UE4 & 5 DX12 titles.\nStuttering can appear in very dense scenes (common with frame generation).\nBroader compatibility is untested.\nRequires official NVIDIA Streamline / DLSS-G runtime files (these are not redistributed with this project).\n\nTechnical Notes\n\nNo NVIDIA proprietary binaries are redistributed.\nStreamline headers and MinHook are fetched at build time.\nSee THIRD_PARTY_NOTICES.md for details.\n\n## Development\n\nThis project was written entirely by an AI model (Claude Sonnet 5.5, by\nAnthropic). I directed the work, tested it on real games, and verified\nthe results myself. I did not write the code by hand.\n\nDisclaimer\nThis project is not affiliated with, endorsed by, or connected to NVIDIA Corporation.\n\nNVIDIA, DLSS, Streamline, and RTX are trademarks of NVIDIA Corporation.\n\nUse at your own risk. Always back up your game files.\n",
    "tree_paths": [
      ".gitignore",
      "LICENSE",
      "README.md",
      "THIRD_PARTY_NOTICES.md",
      "config",
      "config/SN_DLSSG_cfg.txt",
      "config/SN_DLSSG_cfg_UE5.txt",
      "src",
      "src/build.sh",
      "src/gen_stubs.sh",
      "src/main.cpp",
      "src/shadercache.inc",
      "src/winmm.def",
      "src/winmm_exports.txt",
      "src/winmm_stubs.inc"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Soemon007/Agentic-Molecular-Lab",
    "search_description": "",
    "created_at": "2026-10-04T03:29:40Z",
    "id": "R_kgDOU6z4fw",
    "meta": {
      "id": 1403844735,
      "node_id": "R_kgDOU6z4fw",
      "name": "Agentic-Molecular-Lab",
      "full_name": "Soemon007/Agentic-Molecular-Lab",
      "private": false,
      "owner": {
        "login": "Soemon007",
        "id": 232326507,
        "node_id": "U_kgDODdkFaw",
        "avatar_url": "https://avatars.githubusercontent.com/u/232326507?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Soemon007",
        "html_url": "https://github.com/Soemon007",
        "followers_url": "https://api.github.com/users/Soemon007/followers",
        "following_url": "https://api.github.com/users/Soemon007/following{/other_user}",
        "gists_url": "https://api.github.com/users/Soemon007/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Soemon007/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Soemon007/subscriptions",
        "organizations_url": "https://api.github.com/users/Soemon007/orgs",
        "repos_url": "https://api.github.com/users/Soemon007/repos",
        "events_url": "https://api.github.com/users/Soemon007/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Soemon007/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Soemon007/Agentic-Molecular-Lab",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab",
      "forks_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/forks",
      "keys_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/teams",
      "hooks_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/hooks",
      "issue_events_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/events",
      "assignees_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/tags",
      "blobs_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/languages",
      "stargazers_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/stargazers",
      "contributors_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/contributors",
      "subscribers_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/subscribers",
      "subscription_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/subscription",
      "commits_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/merges",
      "archive_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/downloads",
      "issues_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/labels{/name}",
      "releases_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Soemon007/Agentic-Molecular-Lab/deployments",
      "created_at": "2026-10-04T03:29:40Z",
      "updated_at": "2026-10-04T05:55:38Z",
      "pushed_at": "2026-10-04T05:55:35Z",
      "git_url": "git://github.com/Soemon007/Agentic-Molecular-Lab.git",
      "ssh_url": "[email protected]:Soemon007/Agentic-Molecular-Lab.git",
      "clone_url": "https://github.com/Soemon007/Agentic-Molecular-Lab.git",
      "svn_url": "https://github.com/Soemon007/Agentic-Molecular-Lab",
      "homepage": null,
      "size": 589,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 2,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 2,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 2,
      "subscribers_count": 0
    },
    "readme": "# Agentic Molecular Discovery Lab\n\nA multi-agent molecular optimiser for the PMO **DRD2** oracle under a tight oracle-call budget, with an\nadversary agent that watches for the lab gaming the surrogate (score rising while the population drifts out\nof the oracle's training domain).\n\n> **Read this first — what each number is.**\n> The two result tables (A, B) come from an **offline mock** (`backend/agents/offline.py`: RDKit edits plus a configurable\n> rate of rule-violating proposals), not from Haiku/Sonnet. They validate plumbing, policies, logging and evaluation, not LLM\n> behaviour. The live Claude path has been run for **2 seeds x 500 calls, with an earlier version of the agents** (no memory, no\n> ranked selection; git `5fe8058` plus the live-path fixes), and those runs are in \"Live Claude runs\". The agents in this repo\n> now (recent-results memory, limits in the prompts, surrogate-ranked selection) are checked offline but **have not been run\n> live**. Also, the default seed beam contains known DRD2 drugs the oracle already scores ≈1.0, which flatters every comparison\n> against a cold-start method like Graph GA; see the cold-start numbers for the fair view.\n\n## Layout\n```\nbackend/\n  chem_core.py      Candidate, Gatekeeper, scaffold-niched beam, PAINS/BRENK alerts\n  oracle.py         DRD2 wrapper: global call counter, failure log, trajectory CSV\n  domain.py         applicability-domain reference + ad_similarity\n  telemetry.py      adversary digest (no raw SMILES) + deterministic trigger (incl. the known-ligand AD floor)\n  planner.py        per batch: exploit vs explore, by expected gain, expected learning and cost\n  chembl.py         read-only ChEMBL lookup of a molecule's nearest neighbours' measured DRD2 activity, with citations\n  surrogate.py      free Tanimoto-GP that ranks valid proposals before the quota is spent\n  policies.py       Omnigent FunctionPolicy objects + PolicyGate\n  llm.py            Omnigent Executors: AnthropicExecutor (Haiku/Sonnet), OfflineExecutor (mock)\n  chatlog.py        agent chat / proposal-outcome logging\n  server.py         FastAPI: reads the lab's files for the UI, starts/stops runs, relays approvals\n  orchestrator.py   session, main loop, adversary step\n  agents/           scout, branch_a/b/c, adversary, coordinator (+ offline mock)\n  baselines/        random_stub.py, single_call_llm.py\n  eval/             pmo_auc.py, ablation.py, run_seeds.py, live_results.py, render_results.py\n  tests/            71 tests (55 were run at commit 3fa6ad8; the 16 added since have NOT been run)\nfrontend/           React + Vite + Tailwind UI (see \"Frontend\")\n```\nEverything runs from the repo root; data lands in `backend/data/` (gitignored except the folder skeleton).\n\n## Setup (Python 3.13)\nOmnigent needs Python ≥3.12. PyTDC 1.1.15 pins an old scikit-learn/rdkit that do not build on 3.13, so it is\ninstalled without its pins, plus a one-line shim (`backend/compat.py`) for the removed `rdkit.six`. numpy must\nstay <2.4: numpy 2.5 makes TDC's `float(array([x]))` raise, which TDC swallows into a **silent 0.0 score**\n(`oracle.py` runs an install self-test for exactly this).\n```bash\npython3.13 -m venv .venv && .venv/bin/pip install -r backend/requirements.txt && .venv/bin/pip install --no-deps PyTDC==1.1.15\nAUTOPILOT=true .venv/bin/python -m pytest -q\nAUTOPILOT=true .venv/bin/python backend/orchestrator.py --budget 100 --branches ab     # Stage 2 gate run\nAUTOPILOT=true .venv/bin/python backend/eval/run_seeds.py [known|cold]                  # 3 seeds x {ours, ablated}\n```\nSet `ANTHROPIC_API_KEY` in the environment of the process that runs the lab (or `LLM_MODE=anthropic`) to use real\nHaiku/Sonnet; without it the mock is used. Nothing here reads a `.env` file. `anthropic` >= 1.11 no longer accepts\n`temperature` in `messages.create()`, and `claude-sonnet-5-5` rejects a forced `tool_choice`; `backend/llm.py` handles both\n(`backend/tests/test_live_path.py` pins them to the installed SDK).\n`AUTOPILOT=true` logs approval-gate events and auto-rejects; leave it unset for the interactive `input()` demo.\n\n## Frontend\nReact + TypeScript + Tailwind, implementing the Claude Design file `Agentic Molecular Lab.dc.html` (tokens, type, light/dark).\nEvery screen reads real data; nothing is placeholder.\n```bash\ncd frontend && npm install && npm run build     # once; the API server then serves frontend/dist\n.venv/bin/python backend/server.py              # http://127.0.0.1:8000\n# hot reload: keep the server running, then `npm run dev` in frontend/ (http://localhost:5173, /api is proxied)\n```\n| page | what it shows | source |\n|---|---|---|\n| Home | hero, one real rejected and one real scored proposal, headline AUC numbers with their caveats | latest run, `results_*.json` |\n| Setup | budget, branches, adversary, mock/live LLM, known/cold seeds, electrophile approval (ask me / auto-reject) | `POST /api/runs` → `run_lab` in a worker thread |\n| Run | live oracle-call meter, beam (RDKit depictions), best-score and AD/SA charts, agent feed, policy gate with human approve/deny, Gatekeeper rejection mix, adversary trigger banner, Stop | trajectory CSV + chat log |\n| Inspector | every agent call: prompt, input, tool output, tokens, latency, verdict, and the outcome of each proposal | chat log |\n| Results | per-seed AUC-10 by method and budget checkpoint, with the offline-mock caveats; CSV export | `results_known.json` / `results_cold.json` |\n\nDeliberately **not** built, because the backend has no such thing: pause/resume (there is Stop), dollar cost (no pricing in\nthe repo; tokens are shown, and are 0 for the mock), a fixed \"round N of 20\" (rounds run until the budget is spent),\n\"surrogate best\" and \"exploit rate\" columns (the lab does not measure them), a design-system page, and the design's\ninvented policies (checkpoint overwrite) and sample data. The AD/SA-per-round chart and electrophile decisions only exist\nfor runs started after the `round` / `policy` chat-log events were added; older runs say so instead of faking it.\n\n## Results (offline mock, current agents; budget 1,000; seeds 0–2; mean and variance across seeds)\nMetric: PMO top-10 AUC (trapezoid over the top-10 mean sampled every 10 calls, normalised by the budget at each\ncolumn). Two seed modes, both with the 5 seed molecules counted against the budget.\n\n**A. Warm start — the spec's 5 known DRD2 ligands** (`--seed-mode known`; oracle already ≈1.0 on 3 of them)\n\n| method | @50 | @100 | @250 | @500 | @1,000 | @10,000 |\n|---|---|---|---|---|---|---|\n| ours (adversary on) | 0.853 (var 3.9e-04) | 0.925 (var 9.4e-05) | 0.969 (var 1.5e-05) | 0.984 (var 3.7e-06) | 0.992 (var 8.9e-07) | N/A — budget-capped by design |\n| ours-ablated (adversary off) | 0.853 (var 3.9e-04) | 0.925 (var 9.4e-05) | 0.969 (var 1.5e-05) | 0.984 (var 3.7e-06) | 0.992 (var 8.9e-07) | N/A — budget-capped by design |\n| single-call LLM | not run yet | not run yet | not run yet | not run yet | not run yet | N/A (50 molecules total) |\n| random (ZINC) | 0.026 (var 3.6e-04) | 0.037 (var 6.5e-04) | 0.064 (var 1.5e-03) | 0.113 (var 6.2e-04) | 0.182 (var 1.1e-03) | 0.534 (var 4.7e-03) |\n| Graph GA (published, PMO) | not published | not published | not published | not published | not published | 0.964 ± 0.012 |\n\n**B. Cold start — 5 random ZINC molecules** (`--seed-mode cold`; the fair comparison with Graph GA / random)\n\n| method | @50 | @100 | @250 | @500 | @1,000 | @10,000 |\n|---|---|---|---|---|---|---|\n| ours (adversary on) | 0.019 (var 3.9e-05) | 0.038 (var 2.0e-04) | 0.091 (var 3.9e-03) | 0.204 (var 2.7e-02) | 0.327 (var 5.6e-02) | N/A — budget-capped by design |\n| ours-ablated (adversary off) | 0.019 (var 3.9e-05) | 0.038 (var 2.0e-04) | 0.091 (var 3.9e-03) | 0.204 (var 2.7e-02) | 0.327 (var 5.6e-02) | N/A — budget-capped by design |\n| single-call LLM | not run yet | not run yet | not run yet | not run yet | not run yet | N/A (50 molecules total) |\n| random (ZINC) | 0.026 (var 3.6e-04) | 0.037 (var 6.5e-04) | 0.064 (var 1.5e-03) | 0.113 (var 6.2e-04) | 0.182 (var 1.1e-03) | 0.534 (var 4.7e-03) |\n| Graph GA (published, PMO) | not published | not published | not published | not published | not published | 0.964 ± 0.012 |\n\n**How to read these.**\n- **Warm start (A) is not evidence of a speed-up.** One fluorine on haloperidol already scores ≈1.0, so the\n  running top-10 mean passes Graph GA's published 0.964 after only **15–19 calls**, and our AUC over N calls first\n  exceeds 0.964 between N = 200 (0.962) and N = 250 (0.969). Graph GA's 0.964 is a cold-start 10,000-call AUC and\n  AUC at different budgets is not like-for-like, so I am not stating a yield ratio.\n- **Cold start (B): any gain over random comes from the ranking, and three seeds do not establish it.** AUC@1,000 = 0.327\n  against random 0.182, but the seeds give 0.290 / 0.112 / 0.581 (var 5.6e-02): one is below random's mean, one is three times it\n  (best DRD2 score reached: 0.65 / 0.21 / 0.87). The mock proposes edits without looking at anything in its payload, so the only\n  part of the loop that uses scores is the surrogate-ranked selection; the earlier agents, which scored proposals in the order\n  written, got 0.223. That is consistent with the ranking helping, nothing more, and it says nothing for or against the LLM\n  branches. **The \"match Graph GA in ~10× fewer oracle calls\" claim is therefore currently unsupported.** Testing it needs the\n  real Haiku/Sonnet branches under cold start, with more than two seeds.\n- **Crossover where the advantage reverses: not determinable.** PMO publishes only Graph GA's 10,000-call\n  endpoint, not its AUC@50/100/250/500/1,000, so there is no published curve to cross; our curve also stops at\n  1,000 by design.\n\n**Ablation is a null result, and by construction.** With and without the adversary the runs are identical in\nboth modes, because the trigger (`unique_scaffolds_top10 < 3 OR sa_trend_3r > 1.2 OR ad_similarity_trend <\n-0.15`) fired in **0 of 3 seeds** per mode — the mock never reward-hacks, and a synthetic \"exploiter\" mode did not\nreach the top-10 either. I did not tune thresholds to make it fire. The harness asserts identical budgets\n(`ceiling == oracle.calls == CSV rows` for both arms) — an assertion that caught a real dead-end: a cold-start\nrun filled the beam with ~600 Da molecules and stalled at 500 calls (every add-on edit failed the MW cap). Fixed\nby giving agents each parent's MW and teaching the mock to trim; runs now flag `stalled` in their summary instead\nof truncating silently. The adversary → coordinator → prompt-injection path is covered by a plumbing test with an\n*injected* trigger (`tests/test_stage3.py`), not by evidence that it catches real exploits.\n\n## Live Claude runs (preliminary: earlier agents, cold start, 2 seeds)\nHaiku 4.5 for the Scout and the three branches, Sonnet 5.5 for the adversary, 5 random ZINC seed molecules, budget 500. These\nruns used the **earlier agents** (git `5fe8058` plus the live-path fixes below): no recent-results memory and proposals scored in\nthe order written, not ranked. The adversary was switched on but did **not** work (its Sonnet call was rejected by the API, see\n\"Bugs the first live run found\"), so they are effectively the adversary-off arm. A third seed was started and then stopped at\n185 calls by a stop request, and is excluded. The code that produced them is no longer in the tree; check out `5fe8058` to rerun.\n\n| run | AUC@50 | @100 | @250 | @500 | best DRD2 | calls to first score > 0.5 | tokens |\n|---|---|---|---|---|---|---|---|\n| live, seed 0 | 0.038 | 0.065 | 0.130 | 0.428 | 0.934 | 305 | 928k |\n| live, seed 1 | 0.122 | 0.343 | 0.671 | 0.828 | 0.993 | 53 | 791k |\n| random ZINC (3 seeds: 0.088, 0.138, 0.112 at @500) | 0.026 | 0.037 | 0.064 | 0.112 | – | – | – |\n| offline mock, cold, earlier agents (mean of 3) | 0.019 | 0.039 | 0.075 | 0.119 | – | – | – |\n\n**How to read this.** Both live runs are above every random seed and far above the mock, but they differ by 0.4 AUC at @500 and\ntook 305 vs 53 calls to reach a sco",
    "tree_paths": [
      ".DS_Store",
      ".gitignore",
      "LICENSE",
      "README.md",
      "backend",
      "backend/agents",
      "backend/agents/__init__.py",
      "backend/agents/_prompts.py",
      "backend/agents/_schemas.py",
      "backend/agents/adversary.py",
      "backend/agents/base.py",
      "backend/agents/branch_a.py",
      "backend/agents/branch_b.py",
      "backend/agents/branch_c.py",
      "backend/agents/coordinator.py",
      "backend/agents/evidence.py",
      "backend/agents/offline.py",
      "backend/agents/scout.py",
      "backend/baselines",
      "backend/baselines/__init__.py",
      "backend/baselines/random_stub.py",
      "backend/baselines/single_call_llm.py",
      "backend/chatlog.py",
      "backend/chem_core.py",
      "backend/chembl.py",
      "backend/compat.py",
      "backend/data",
      "backend/data/trajectories",
      "backend/data/trajectories/.gitkeep",
      "backend/domain.py",
      "backend/eval",
      "backend/eval/__init__.py",
      "backend/eval/ablation.py",
      "backend/eval/live_results.py",
      "backend/eval/pmo_auc.py",
      "backend/eval/render_results.py",
      "backend/eval/run_seeds.py",
      "backend/llm.py",
      "backend/oracle.py",
      "backend/orchestrator.py",
      "backend/planner.py",
      "backend/policies.py",
      "backend/requirements.txt",
      "backend/server.py",
      "backend/surrogate.py",
      "backend/telemetry.py",
      "backend/tests",
      "backend/tests/conftest.py",
      "backend/tests/test_adversary_signal.py",
      "backend/tests/test_live_path.py",
      "backend/tests/test_live_results.py",
      "backend/tests/test_planner_evidence.py",
      "backend/tests/test_ranked_agents.py",
      "backend/tests/test_server.py",
      "backend/tests/test_stage1.py",
      "backend/tests/test_stage2.py",
      "backend/tests/test_stage3.py",
      "frontend",
      "frontend/index.html",
      "frontend/package-lock.json",
      "frontend/package.json",
      "frontend/src",
      "frontend/src/App.tsx",
      "frontend/src/api.ts",
      "frontend/src/components",
      "frontend/src/components/Chart.tsx",
      "frontend/src/components/ui.tsx",
      "frontend/src/index.css",
      "frontend/src/lib.ts",
      "frontend/src/main.tsx",
      "frontend/src/pages",
      "frontend/src/pages/Home.tsx",
      "frontend/src/pages/Inspector.tsx",
      "frontend/src/pages/Results.tsx",
      "frontend/src/pages/Run.tsx",
      "frontend/src/pages/Setup.tsx",
      "frontend/tsconfig.json",
      "frontend/vite.config.ts",
      "oracle",
      "oracle/drd2_current.pkl",
      "pytest.ini"
    ],
    "tree_truncated": false
  },
  {
    "repo": "soumyajitxedu/ESP32-NEON-OS",
    "search_description": "ESP32 NEON OS: Modular virtual pet + utility OS for ESP32. OLED 128x64, 4-button. Radial menu, games, and Catode32 Lite pet with 18 stats, 26 behaviors, gardening, weather.",
    "created_at": "2026-10-04T05:05:15Z",
    "id": "R_kgDOU64rOw",
    "meta": {
      "id": 1403923259,
      "node_id": "R_kgDOU64rOw",
      "name": "ESP32-NEON-OS",
      "full_name": "soumyajitxedu/ESP32-NEON-OS",
      "private": false,
      "owner": {
        "login": "soumyajitxedu",
        "id": 153814779,
        "node_id": "U_kgDOCSsG-w",
        "avatar_url": "https://avatars.githubusercontent.com/u/153814779?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/soumyajitxedu",
        "html_url": "https://github.com/soumyajitxedu",
        "followers_url": "https://api.github.com/users/soumyajitxedu/followers",
        "following_url": "https://api.github.com/users/soumyajitxedu/following{/other_user}",
        "gists_url": "https://api.github.com/users/soumyajitxedu/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/soumyajitxedu/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/soumyajitxedu/subscriptions",
        "organizations_url": "https://api.github.com/users/soumyajitxedu/orgs",
        "repos_url": "https://api.github.com/users/soumyajitxedu/repos",
        "events_url": "https://api.github.com/users/soumyajitxedu/events{/privacy}",
        "received_events_url": "https://api.github.com/users/soumyajitxedu/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/soumyajitxedu/ESP32-NEON-OS",
      "description": "ESP32 NEON OS: Modular virtual pet + utility OS for ESP32. OLED 128x64, 4-button. Radial menu, games, and Catode32 Lite pet with 18 stats, 26 behaviors, gardening, weather.",
      "fork": false,
      "url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS",
      "forks_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/forks",
      "keys_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/teams",
      "hooks_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/hooks",
      "issue_events_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/issues/events{/number}",
      "events_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/events",
      "assignees_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/assignees{/user}",
      "branches_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/branches{/branch}",
      "tags_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/tags",
      "blobs_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/languages",
      "stargazers_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/stargazers",
      "contributors_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/contributors",
      "subscribers_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/subscribers",
      "subscription_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/subscription",
      "commits_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/contents/{+path}",
      "compare_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/merges",
      "archive_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/downloads",
      "issues_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/issues{/number}",
      "pulls_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/labels{/name}",
      "releases_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/releases{/id}",
      "deployments_url": "https://api.github.com/repos/soumyajitxedu/ESP32-NEON-OS/deployments",
      "created_at": "2026-10-04T05:05:15Z",
      "updated_at": "2026-10-04T12:41:49Z",
      "pushed_at": "2026-10-04T06:01:50Z",
      "git_url": "git://github.com/soumyajitxedu/ESP32-NEON-OS.git",
      "ssh_url": "[email protected]:soumyajitxedu/ESP32-NEON-OS.git",
      "clone_url": "https://github.com/soumyajitxedu/ESP32-NEON-OS.git",
      "svn_url": "https://github.com/soumyajitxedu/ESP32-NEON-OS",
      "homepage": "",
      "size": 18738,
      "stargazers_count": 1,
      "watchers_count": 1,
      "language": "C",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "apache-2.0",
        "name": "Apache License 2.0",
        "spdx_id": "Apache-2.0",
        "url": "https://api.github.com/licenses/apache-2.0",
        "node_id": "MDc6TGljZW5zZTI="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [
        "arduino",
        "art",
        "cpp",
        "device",
        "esp32",
        "game",
        "os",
        "ssd1306-oled",
        "ui"
      ],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 1,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "\n<div align=\"center\">\n\n![Demo GIF](https://github.com/soumyajitxedu/ESP32-NEON-OS/blob/main/assets/546740024-2ffc652a-f392-42e7-9a13-d7fb91f3770d.gif)\n\n# ESP32 NEON OS\n\n**A modular virtual pet and utility OS for the ESP32**\n\n[![Arduino](https://camo.githubusercontent.com/09a9298c9f3d8477d5821b24240bc169cb2b4a7cd4047f4393e365e8f22f4b48/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d41726475696e6f2d3030393739443f6c6f676f3d41726475696e6f266c6f676f436f6c6f723d7768697465)](https://github.com/soumyajitxedu/ESP32-NEON-OS)\n![ESP32](https://img.shields.io/badge/ESP32-Espressif-E7352C?style=flat-square&logo=espressif&logoColor=white)\n![Rust](https://img.shields.io/badge/Port%20of-Catode32-DEA584?style=flat-square&logo=rust&logoColor=white)\n![License](https://img.shields.io/badge/License-MIT-blue?style=flat-square)\n![Status](https://img.shields.io/badge/Status-Active-success?style=flat-square)\n\n[Repository](https://github.com/soumyajitxedu/ESP32-NEON-OS) · [Report Issue](https://github.com/soumyajitxedu/ESP32-NEON-OS/issues) · [Credits](#contributions--credits)\n\n</div>\n\n---\n\n## Gallery\n\n<div align=\"center\">\n\n| | |\n|:-:|:-:|\n| <img src=\"https://github.com/soumyajitxedu/ESP32-NEON-OS/blob/main/assets/20261004_104534.jpg\" width=\"280\"/> | <img src=\"https://github.com/soumyajitxedu/ESP32-NEON-OS/blob/main/assets/20261004_104546.jpg\" width=\"280\"/> |\n| *Physical build* | *Virtual pet* |\n| <img src=\"https://github.com/soumyajitxedu/ESP32-NEON-OS/blob/main/assets/20261004_104706.jpg\" width=\"280\"/> | <img src=\"https://github.com/soumyajitxedu/ESP32-NEON-OS/blob/main/assets/20261004_104558.jpg\" width=\"280\"/> |\n| *Dragon wallpaper* | *Wiring layout* |\n\n</div>\n\n---\n\n## About\n\nESP32 NEON OS is a complete, self-contained operating system for the ESP32 microcontroller. It combines a radial home menu, a suite of utility apps, three classic games, and a fully-featured virtual pet inspired by the open-source Rust project [Catode32](https://github.com/moonbench/catode32).\n\nThe system runs on any standard ESP32 with 4MB flash, requiring only an SSD1306 OLED display and four tactile push buttons. Everything is written in C++ using the Arduino framework.\n\n---\n\n## Tech Stack\n\n<div align=\"center\">\n\n| <img src=\"https://camo.githubusercontent.com/c57992ccd8e44fbfa43178e6de1ec1d0974559148afeb3044100e6fc9142311c/68747470733a2f2f74656368737461636b2d67656e657261746f722e76657263656c2e6170702f6370702d69636f6e2e737667\" width=\"60\"/> | <img src=\"https://camo.githubusercontent.com/09a9298c9f3d8477d5821b24240bc169cb2b4a7cd4047f4393e365e8f22f4b48/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d41726475696e6f2d3030393739443f6c6f676f3d41726475696e6f266c6f676f436f6c6f723d7768697465\" width=\"140\"/> | <img src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/rust/rust-original.svg\" width=\"60\"/> |\n|:-:|:-:|:-:|\n| **C++** | **Arduino** | **Rust** |\n| *Language* | *Framework* | *Port Source* |\n\n</div>\n\n---\n\n## Features\n\n| Category | Feature | Description |\n|---|---|---|\n| **Interface** | Radial Home Menu | Smooth rotating icon carousel |\n| **Interface** | Non-blocking Input | Debounced buttons with long-press |\n| **Interface** | Brightness Control | 4 discrete levels in flash |\n| **Interface** | Screen Flip | 180° rotation support |\n| **Interface** | Idle Sleep | Configurable timeout (5s–Never) |\n| **Interface** | Wallpaper System | Static and animated boot wallpapers |\n| **Utilities** | Persistent Settings | All preferences saved to NVS |\n| **Utilities** | Factory Reset | Hold-to-confirm flash wipe |\n| **Utilities** | Vault | 13 quotes with scrolling view |\n| **Utilities** | Profile | Personal info with auto-scroll |\n| **Utilities** | Game of Life | Conway's automaton with editing |\n| **Utilities** | Screensaver | DVD Bounce, Radar, Concentric |\n| **Utilities** | Timer | 5 presets with animated countdown |\n| **Pet App** | 18-Stats System | Full stat-based simulation |\n| **Pet App** | 26 Behaviors | Zoomies, Kneading, Hunting, etc. |\n| **Pet App** | Complex Gardening | 3 pots, 4 seeds, 8 growth stages |\n| **Pet App** | Dynamic Weather | Clear, Cloudy, Rain, Snow |\n| **Pet App** | In-Game Store | Buy items with earned coins |\n| **Pet App** | 3 Minigames | Dino Runner, Tetris, Snake |\n| **Pet App** | NVS Persistence | Full state saved to flash |\n\n---\n\n## Applications\n\n| # | App | Description |\n|:-:|---|---|\n| 1 | **Vault** | 13 curated quotes with scroll view |\n| 2 | **Profile** | Personal info with auto-scroll |\n| 3 | **Life** | Conway's Game of Life with cell editing |\n| 4 | **Screensaver** | 3 burn-in prevention modes |\n| 5 | **Timer** | Pomodoro timer with animated ring |\n| 6 | **Sleep** | Manual display off until button press |\n| 7 | **Cat Pet** | Flagship virtual pet application |\n\n---\n\n## Games\n\n| Game | Description | Rewards |\n|---|---|---|\n| **Dino Runner** | Endless runner with jumping and ducking | Coins, Focus, Fitness |\n| **Tetris** | Block-stacking with hard drop and levels | Coins, Focus, Playfulness |\n| **Snake** | Smooth snake with particles and shake | Coins, Playfulness, Sociability |\n\n---\n\n## Wallpapers\n\n| Wallpaper | Type | Details |\n|---|---|---|\n| **Tanjiro** | Static | Monochrome bitmap rendered at boot |\n| **Cat Night** | Animated | Ear twitch, tail sway, twinkling stars, drifting clouds |\n\nSelect from **Settings → Wallpaper**. Saved to NVS.\n\n---\n\n## Hardware Requirements\n\n| Component | Specification | Qty |\n|---|---|---|\n| Microcontroller | ESP32 (4MB flash) | 1 |\n| Display | SSD1306 OLED, 128x64, I2C | 1 |\n| Buttons | Tactile push, normally open | 4 |\n| Switch | SPST toggle (battery) | 1 |\n| Battery | LiPo 3.7V (optional) | 1 |\n| Wires | Jumper wires (M-F) | ~12 |\n\n---\n\n## Wiring Layout\n\n**Display (I2C):**\n\n| SSD1306 | ESP32 |\n|:---:|:---:|\n| VCC | 3V3 |\n| GND | GND |\n| SDA | GPIO 21 |\n| SCL | GPIO 22 |\n\n**Buttons (internal pull-ups):**\n\n| Button | ESP32 Pin |\n|:---:|:---:|\n| UP | GPIO 32 |\n| DOWN | GPIO 33 |\n| LEFT | GPIO 27 |\n| RIGHT | GPIO 26 |\n\n---\n\n## Libraries\n\n<div align=\"center\">\n\n| <img src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/arduino/arduino-original.svg\" width=\"40\"/> | <img src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/cplusplus/cplusplus-original.svg\" width=\"40\"/> | <img src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/c/c-original.svg\" width=\"40\"/> |\n|:-:|:-:|:-:|\n| **Adafruit SSD1306** | **Adafruit GFX** | **Wire** |\n| **Preferences** | **math.h** | — |\n\n</div>\n\n| Library | Purpose |\n|---|---|\n| **Adafruit SSD1306** | OLED display driver |\n| **Adafruit GFX** | Graphics primitives |\n| **Wire** | I2C communication |\n| **Preferences** | NVS flash storage |\n| **math.h** | Sine/cosine for animations |\n\nInstall all via **Arduino IDE → Manage Libraries**.\n\n---\n\n## Setup Instructions\n\n```bash\n# 1. Clone the repository\ngit clone https://github.com/soumyajitxedu/ESP32-NEON-OS.git\n```\n\n**2. Install Arduino IDE** and add ESP32 board support:\n```\nhttps://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json\n```\n\n**3. Select board:** ESP32 Dev Module\n\n**4. Install required libraries** via Library Manager\n\n**5. Open** `Catode_NEON_ESP32.ino`\n\n**6. Configure GPIO pins** if wired differently\n\n**7. Upload** to your ESP32\n\n**8. First boot:** Follow the adoption scene to select your cat\n\n---\n\n## Contributions & Credits\n\n<div align=\"center\">\n\n| Contribution | Link |\n|:-:|---|\n| **Original Project** | [moonbench/catode32](https://github.com/moonbench/catode32) |\n| **Secondary Reference** | [Mrmad092/Codes](https://github.com/Mrmad092/Codes) |\n| **This Repository** | [soumyajitxedu/ESP32-NEON-OS](https://github.com/soumyajitxedu/ESP32-NEON-OS) |\n\n</div>\n\nDragon wallpaper assets sourced from Pinterest.\n\n---\n\n## AI Models & Agents\n\n<div align=\"center\">\n\n| Models | Agents |\n|:-:|:-:|\n| DeepSeek V4 | GPT Luna 6 |\n| Claude Sonnet 5 | Sonnet 5.5 Agent |\n| Claude Sonnet 5.5 | Gemini Pro 3.1 Agent |\n\n</div>\n\n---\n\n## Development Timeline\n\n| Milestone | Date |\n|---|---|\n| Project Started | August 24, 2026 |\n| First Working Build | September 15, 2026 |\n| Cat Pet Integration | September 28, 2026 |\n| Complex Behaviors & Gardening | October 1, 2026 |\n| Scene Integration & Polish | October 4, 2026 |\n| **Total Active Development** | **8–12 hours** |\n\n---\n\n<div align=\"center\">\n\n**Built with C++, Arduino, and AI assistance**\n\n*From August 24 to October 4, 2026*\n\n</div>\n\n---\n\n## License\n\nProvided as-is for educational and hobbyist use. All original Catode32 assets remain property of their respective creators.\n\n\n---\n",
    "tree_paths": [
      ".gitignore",
      "Catode_NEON_ESP32",
      "Catode_NEON_ESP32/Catode_NEON_ESP32.ino",
      "Catode_NEON_ESP32/GAME.h",
      "Catode_NEON_ESP32/adoption_scene.cpp",
      "Catode_NEON_ESP32/cat_pet_types.h",
      "Catode_NEON_ESP32/cat_status_icons.cpp",
      "Catode_NEON_ESP32/cat_status_icons.h",
      "Catode_NEON_ESP32/forecast_scene.cpp",
      "Catode_NEON_ESP32/generated_assets.h",
      "Catode_NEON_ESP32/neon_scene_api.h",
      "Catode_NEON_ESP32/outside_scene.cpp",
      "Catode_NEON_ESP32/treehouse_scene.cpp",
      "Catode_NEON_ESP32/wallpaper.h",
      "LICENSE",
      "README.md",
      "assets",
      "assets/20261004_104534.jpg",
      "assets/20261004_104546.jpg",
      "assets/20261004_104558.jpg",
      "assets/20261004_104646.jpg",
      "assets/20261004_104706.jpg",
      "assets/20261004_104754.jpg",
      "assets/546740024-2ffc652a-f392-42e7-9a13-d7fb91f3770d.gif",
      "assets/r.md"
    ],
    "tree_truncated": false
  },
  {
    "repo": "BOT-K4CP3R/wisp-gym",
    "search_description": "Wisp Gym: a creature that grows from your real training. Native ArkTS/ArkUI app for OpenHarmony/HarmonyOS (HackYeah 2026, Huawei Challenge).",
    "created_at": "2026-10-03T15:55:47Z",
    "id": "R_kgDOU6XApg",
    "meta": {
      "id": 1403371686,
      "node_id": "R_kgDOU6XApg",
      "name": "wisp-gym",
      "full_name": "BOT-K4CP3R/wisp-gym",
      "private": false,
      "owner": {
        "login": "BOT-K4CP3R",
        "id": 72770758,
        "node_id": "MDQ6VXNlcjcyNzcwNzU4",
        "avatar_url": "https://avatars.githubusercontent.com/u/72770758?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/BOT-K4CP3R",
        "html_url": "https://github.com/BOT-K4CP3R",
        "followers_url": "https://api.github.com/users/BOT-K4CP3R/followers",
        "following_url": "https://api.github.com/users/BOT-K4CP3R/following{/other_user}",
        "gists_url": "https://api.github.com/users/BOT-K4CP3R/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/BOT-K4CP3R/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/BOT-K4CP3R/subscriptions",
        "organizations_url": "https://api.github.com/users/BOT-K4CP3R/orgs",
        "repos_url": "https://api.github.com/users/BOT-K4CP3R/repos",
        "events_url": "https://api.github.com/users/BOT-K4CP3R/events{/privacy}",
        "received_events_url": "https://api.github.com/users/BOT-K4CP3R/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/BOT-K4CP3R/wisp-gym",
      "description": "Wisp Gym: a creature that grows from your real training. Native ArkTS/ArkUI app for OpenHarmony/HarmonyOS (HackYeah 2026, Huawei Challenge).",
      "fork": false,
      "url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym",
      "forks_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/forks",
      "keys_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/teams",
      "hooks_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/hooks",
      "issue_events_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/issues/events{/number}",
      "events_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/events",
      "assignees_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/assignees{/user}",
      "branches_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/branches{/branch}",
      "tags_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/tags",
      "blobs_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/languages",
      "stargazers_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/stargazers",
      "contributors_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/contributors",
      "subscribers_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/subscribers",
      "subscription_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/subscription",
      "commits_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/contents/{+path}",
      "compare_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/merges",
      "archive_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/downloads",
      "issues_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/issues{/number}",
      "pulls_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/labels{/name}",
      "releases_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/releases{/id}",
      "deployments_url": "https://api.github.com/repos/BOT-K4CP3R/wisp-gym/deployments",
      "created_at": "2026-10-03T15:55:47Z",
      "updated_at": "2026-10-04T05:26:05Z",
      "pushed_at": "2026-10-04T05:26:01Z",
      "git_url": "git://github.com/BOT-K4CP3R/wisp-gym.git",
      "ssh_url": "[email protected]:BOT-K4CP3R/wisp-gym.git",
      "clone_url": "https://github.com/BOT-K4CP3R/wisp-gym.git",
      "svn_url": "https://github.com/BOT-K4CP3R/wisp-gym",
      "homepage": null,
      "size": 3992,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [
        "arkts",
        "arkui",
        "fitness",
        "hackathon",
        "harmonyos",
        "oniro",
        "openharmony"
      ],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 1
    },
    "readme": "<p align=\"center\">\n  <img src=\"docs/app-icon.png\" width=\"132\" alt=\"Wisp Gym icon\">\n</p>\n\n<h1 align=\"center\">Wisp Gym</h1>\n\n<p align=\"center\">\n  A creature that grows from your <b>real</b> training.<br>\n  Your phone counts reps from motion alone, tells you when a set is getting too slow, and asks for a rest day when you overdo it.<br>\n  <sub>Native ArkTS/ArkUI app for OpenHarmony and HarmonyOS. No account. No cloud. No AI model.</sub>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/BOT-K4CP3R/wisp-gym/actions/workflows/test.yml\"><img src=\"https://github.com/BOT-K4CP3R/wisp-gym/actions/workflows/test.yml/badge.svg\" alt=\"tests\"></a>\n  <img src=\"https://img.shields.io/badge/OpenHarmony-API%2020%2B-orange\" alt=\"API 20+\">\n  <img src=\"https://img.shields.io/badge/ArkTS-ArkUI-blue\" alt=\"ArkTS ArkUI\">\n  <img src=\"https://img.shields.io/badge/license-MIT-green\" alt=\"MIT\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/BOT-K4CP3R/wisp-gym/releases/latest\"><b>Download the .hap</b></a> ·\n  <a href=\"https://github.com/BOT-K4CP3R/wisp-gym/releases/latest/download/wisp-gym-demo.mp4\">Demo video (2 min)</a> ·\n  <a href=\"https://github.com/BOT-K4CP3R/wisp-gym/releases/latest/download/wisp-gym-promo.mp4\">Promo (59 s, silent)</a> ·\n  <a href=\"docs/ARCHITECTURE.md\">Architecture</a> ·\n  <a href=\"AI_WORKFLOW.md\">AI workflow</a>\n</p>\n\nBuilt for **HackYeah 2026 / Huawei Challenge \"Imagine What's Next\"**. Lead area: *Human-Centric Technology*\n(wellbeing, responsible design), plus *Spatial Experiences* (sensing body motion). Targets **API 20+** (compiled against API 23).\n\n<p align=\"center\">\n  <img src=\"docs/screenshots/16-onboarding-creature.jpg\" width=\"19%\">\n  <img src=\"docs/screenshots/09-set-rack-it.jpg\" width=\"19%\">\n  <img src=\"docs/screenshots/18-body.jpg\" width=\"19%\">\n  <img src=\"docs/screenshots/20-collection.jpg\" width=\"19%\">\n  <img src=\"docs/screenshots/15-widgets.jpg\" width=\"19%\">\n</p>\n\n## What it does\n\n1. **Reps counted automatically.** Carry the phone in a pocket or armband. A streaming detector removes gravity,\n   projects motion on the gravity axis (phone orientation does not matter) and counts the drive peaks. Walking and\n   sensor glitches are rejected.\n2. **Knows when to stop.** It learns your fresh tempo from the first reps. When reps get slower and weaker the ring\n   turns orange and Wisp says *\"rack it\"*, with the numbers behind the advice.\n3. **Wisp is your training made visible.** Each muscle group (legs, push, pull, core) grows a body part of the\n   creature. Its colour, glow, eyes and mood come from recovery and daily steps.\n4. **Rest is part of the game.** Three sessions in 72 h, or a very heavy load, and Wisp asks for a rest day.\n5. **Never punishes.** Levels have a floor, there are no streaks to lose, and the creature is never sad: neglect\n   makes it *curious*, a fresh session makes it *pumped*, hard training makes it *recharge* or ask for a rest day.\n6. **Explainable.** The *Insights* tab lists every value with its source numbers.\n7. **Tells you what to do next.** One card on Home picks the next step: your first set, the weakest muscle group,\n   a recharge day, a rest day or a bonus set once the weekly goal is met.\n8. **A real workout flow.** 3-2-1 countdown, live count, rest timer with −15 s / skip / +15 s and a rest-over alert,\n   a safe exit (save / discard / keep training) and a summary that shows what grew.\n9. **Friendly first run.** Meet and name your creature, set a gentle weekly goal, permission primers, and a choice\n   between real sensors and a clearly labelled demo.\n10. **Two home-screen widgets** (2x2 mood mirror, 2x4 with next step, strength, recovery and steps) that open the app.\n11. **Six creatures, eleven faces.** Pick a starter (Wisp, Mochi or Pip); Ember, Nova and Moss hatch from\n    training badges. Faces follow the moment: focused during a set, straining at the stop cue, proud after it,\n    asleep on rest days. A small coach creature reacts live during the workout.\n12. **Badges, levels and records.** 14 badges (never taken away), a level from every rep ever counted, and all-time\n    personal records.\n13. **Loads, body weight and BMI.** Pick the load for each set (remembered per exercise); the summary shows volume\n    and new personal records. Log your weight, see 30/90-day/all-time charts, a goal with an ETA at your current pace,\n    and BMI with the healthy range for your height. Height, weight and goal are asked during setup (skippable).\n14. **Accessible.** Reduce-motion setting (default on emulators that render in software), AA contrast, labelled controls.\n\nEverything is computed and stored **on the phone**. The app requests no network permission.\n\n## Platform capabilities used\n\n| OpenHarmony capability | Used for |\n|---|---|\n| Accelerometer (SensorServiceKit) | live rep detection and tempo / drive analysis |\n| Pedometer (SensorServiceKit, `ACTIVITY_MOTION`) | daily movement for the creature |\n| Service widgets (`FormExtensionAbility`, `formProvider`, card Canvas) | 2x2 and 2x4 widgets: creature, mood, next step, strength, recovery, steps |\n| Vibrator | stop cue and end-of-rest haptics |\n| NotificationKit | \"rest over\" notification |\n| Preferences (`@ohos.data.preferences`) | local, validated persistence |\n| Window (`keepScreenOn`, system-bar styling) | the workout screen stays on |\n| ArkUI Canvas | procedural creature rendering (6 species, 11 expressions), weight chart |\n| Device info (`deviceInfo.abiList`) | Reduce motion by default on software-rendered (x86) emulators |\n\n## Quick start\n\n**Just try it:** download `wisp-gym-debug.hap` from the [latest release](https://github.com/BOT-K4CP3R/wisp-gym/releases/latest)\nand install it on an OpenHarmony 6.x emulator or development device:\n\n```bash\nhdc install -r wisp-gym-debug.hap\nhdc shell aa start -a EntryAbility -b com.hackyeah.wispgym -m entry\n```\n\nThe package is signed with the SDK's public *development* certificate. On other targets build and sign it yourself (below).\n\n**In the app:** on first launch choose **Explore the demo** (or later: *Settings → Demo mode*, *Load sample history*),\nthen *Start workout*. Emulators have no real motion, so Demo mode replays a **simulated** accelerometer stream through the same\ndetector as the real sensor; it is labelled as such in the UI.\n\n## Build from source\n\nRequirements: macOS or Linux, Node.js ≥ 22, JDK 17. **DevEco Studio is not required.**\n\n```bash\n./scripts/setup-macos.sh     # one-time: OpenHarmony SDK 6.1 (API 23), hvigor, ohpm (macOS; on Linux use `oniro-app cmdtools install`)\n./scripts/test.sh            # 74 unit tests on plain Node, no SDK needed\n./scripts/build.sh           # signed debug HAP -> dist/wisp-gym.hap (throw-away development certificate, never committed)\n./scripts/emulator-up.sh     # start the Oniro emulator (macOS: brew install qemu), install and launch\npython3 scripts/emu-remote.py  # optional: click the emulator from a browser at http://localhost:8765\n```\n\n**Emulator tips.** The Oniro launcher starts QEMU without a pointer device, so clicks from a VNC viewer do not reach\nthe system; `scripts/emu-remote.py` shows the live screen in a browser and turns clicks, drags and the wheel into\ntouch events over `hdc`. The emulator renders in software: give it RAM (close large browser sessions on an 8 GB Mac)\nand restart it if it becomes sluggish. The app turns on *Reduce motion* automatically on x86 emulators.\n\nWith DevEco Studio instead: open the folder, *File → Project Structure → Signing Configs → Automatically generate*,\nchoose a device and press Run. Settings: `compatibleSdkVersion` 20, `compileSdkVersion` 23.\n\n## How it works\n\n```\nAccelerometer ──► RepDetector ──► SetAnalyzer ──► WorkoutSession ──► WorkoutRecord ──► LifeEngine ──► Creature + widget\n (SensorKit)       peaks, gravity   tempo + drive     set / rest         (Preferences)    decay, rest      (Canvas / Form)\n                   axis, walking    loss -> fatigue   state machine                       guard, reasons\n                   rejection        proxy, stop cue\n```\n\n`entry/src/main/ets/core` is pure, dependency-free logic that is unit-tested on Node **and** compiled for the device\nfrom the same source files. OS access is isolated in `platform/`. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).\n\n## Verified, and what is not\n\n| Checked | Result |\n|---|---|\n| Builds and signs with hvigor against SDK 6.1; installs and launches on an OpenHarmony 6.1 emulator | yes |\n| Onboarding (creature choice, name, goals, height/weight/goal with BMI, demo and real-sensor paths, replay from Settings), Home, Progress, Insights, Settings, Collection, Body, tab navigation | yes (emulator) |\n| Live-counted demo sets with the \"rack it\" cue, live coach faces, loads, rest controls, multi-set workout, summary with volume, discard confirmation | yes (emulator) |\n| Body weight log, chart with goal line, goal ETA, BMI with gauge, weigh-in delete | yes (emulator) |\n| Badges, creature unlocks and switching, levels, personal records | yes (emulator) |\n| Fallback when the motion sensor is silent (offers Demo mode in place) | yes (emulator) |\n| Both widgets added from the launcher, updated after workouts and settings changes | yes (emulator) |\n| Tapping a widget opens the app | yes (emulator) |\n| System permission dialog for `ACTIVITY_MOTION` with a stated reason (asked once) | yes |\n| Unit tests | 74 pass, incl. a 300-set randomised sweep (99.3% exact counts, 100% within ±1 rep) |\n| **Real** accelerometer / pedometer / vibration data | **not verifiable** on an emulator; code paths exist and fail gracefully |\n| Rep accuracy on real bodies | **not measured**; the sweep above is on synthetic traces |\n| HarmonyOS device, DevEco emulator | **not tested** |\n\nFirst launch on the software-emulated Oniro emulator can take about a minute; it is much faster on hardware-accelerated emulators.\nThe narrated demo video and the promo in the release show version 1.3.1.\n\n## Submission checklist (Huawei Challenge, HackYeah 2026)\n\n| Requirement | Where |\n|---|---|\n| Targets OpenHarmony / HarmonyOS, minimum API 20 | `build-profile.json5` (`compatibleSdkVersion` 20, compiled against 23), runs on the OpenHarmony 6.1 emulator |\n| Public source repository, commit history | this repository |\n| Reproducible setup, build, install and launch | *Build from source* above, `scripts/` |\n| Working `.hap` | GitHub release, or `./scripts/build.sh` → `dist/wisp-gym.hap` |\n| Recorded demonstration | release asset `wisp-gym-demo.mp4`, script in `docs/DEMO_SCRIPT.md` |\n| Architecture and implementation description | `docs/ARCHITECTURE.md` |\n| AI workflow documentation | `AI_WORKFLOW.md` (the product itself contains no AI model) |\n| Platform capabilities used | *Platform capabilities used* above |\n| Tests | `./scripts/test.sh` (74 Node tests) + hypium suite in `entry/src/test` |\n| Third-party material, licences, security | `THIRD_PARTY.md`, `LICENSE`, `SECURITY.md` |\n\n## Project layout\n\n```\nentry/src/main/ets/core/        pure logic: RepDetector, SetAnalyzer, WorkoutSession, LifeEngine, Plan, Mood, Profile,\n                                Species, Achievements, Body, Store, Sim\nentry/src/main/ets/platform/    sensors, pedometer, preferences, haptics, notifications\nentry/src/main/ets/ui/          design tokens, components, motion policy, fonts, navigation helpers\nentry/src/main/ets/pages/       Index (tab shell), Onboarding, Workout, Summary, Settings, Collection, Body\nentry/src/main/ets/views/       Home, Progress, Insights tabs\nentry/src/main/ets/widget/      2x2 and 2x4 home-screen cards, shared mini creature\ntests/                          Node tests (74) + hypium suite in entry/src/test\nscripts/                        setup, build, test, emulator + browser remote, splash/icon rendering\nsubmission/                     scripts that build the demo video and presentation from real emulator captures; promo/ = silent Remotion promo\ndocs/                           architecture, demo script, UX research, screenshots\n```\n\n## Limitations",
    "tree_paths": [
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/test.yml",
      ".gitignore",
      "AI_WORKFLOW.md",
      "AppScope",
      "AppScope/app.json5",
      "AppScope/resources",
      "AppScope/resources/base",
      "AppScope/resources/base/element",
      "AppScope/resources/base/element/string.json",
      "AppScope/resources/base/media",
      "AppScope/resources/base/media/background.png",
      "AppScope/resources/base/media/foreground.png",
      "AppScope/resources/base/media/layered_image.json",
      "LICENSE",
      "README.md",
      "SECURITY.md",
      "THIRD_PARTY.md",
      "build-profile.json5",
      "docs",
      "docs/ARCHITECTURE.md",
      "docs/DEMO_SCRIPT.md",
      "docs/UX_RESEARCH.md",
      "docs/app-icon.png",
      "docs/screenshots",
      "docs/screenshots/01-onboarding-welcome.jpg",
      "docs/screenshots/02-onboarding-how.jpg",
      "docs/screenshots/03-onboarding-name.jpg",
      "docs/screenshots/04-home.jpg",
      "docs/screenshots/05-home-pumped.jpg",
      "docs/screenshots/06-home-stats.jpg",
      "docs/screenshots/07-workout-ready.jpg",
      "docs/screenshots/08-set-counting.jpg",
      "docs/screenshots/09-set-rack-it.jpg",
      "docs/screenshots/10-rest.jpg",
      "docs/screenshots/11-summary.jpg",
      "docs/screenshots/12-progress.jpg",
      "docs/screenshots/13-insights.jpg",
      "docs/screenshots/14-settings.jpg",
      "docs/screenshots/15-widgets.jpg",
      "docs/screenshots/16-onboarding-creature.jpg",
      "docs/screenshots/17-onboarding-body.jpg",
      "docs/screenshots/18-body.jpg",
      "docs/screenshots/19-body-bmi.jpg",
      "docs/screenshots/20-collection.jpg",
      "docs/screenshots/21-load.jpg",
      "docs/screenshots/22-coach-rest.jpg",
      "docs/screenshots/23-summary-volume.jpg",
      "docs/screenshots/24-home-body.jpg",
      "entry",
      "entry/build-profile.json5",
      "entry/hvigorfile.ts",
      "entry/obfuscation-rules.txt",
      "entry/oh-package.json5",
      "entry/src",
      "entry/src/main",
      "entry/src/main/ets",
      "entry/src/main/ets/app",
      "entry/src/main/ets/app/AppModel.ets",
      "entry/src/main/ets/components",
      "entry/src/main/ets/components/CreatureCanvas.ets",
      "entry/src/main/ets/components/CreatureDraw.ets",
      "entry/src/main/ets/components/LineChart.ets",
      "entry/src/main/ets/components/LookHolder.ets",
      "entry/src/main/ets/core",
      "entry/src/main/ets/core/Achievements.ets",
      "entry/src/main/ets/core/Body.ets",
      "entry/src/main/ets/core/CreatureLook.ets",
      "entry/src/main/ets/core/LifeEngine.ets",
      "entry/src/main/ets/core/Mood.ets",
      "entry/src/main/ets/core/Plan.ets",
      "entry/src/main/ets/core/Profile.ets",
      "entry/src/main/ets/core/RepDetector.ets",
      "entry/src/main/ets/core/SetAnalyzer.ets",
      "entry/src/main/ets/core/Sim.ets",
      "entry/src/main/ets/core/Species.ets",
      "entry/src/main/ets/core/Store.ets",
      "entry/src/main/ets/core/Types.ets",
      "entry/src/main/ets/core/WorkoutSession.ets",
      "entry/src/main/ets/entryability",
      "entry/src/main/ets/entryability/EntryAbility.ets",
      "entry/src/main/ets/entrybackupability",
      "entry/src/main/ets/entrybackupability/EntryBackupAbility.ets",
      "entry/src/main/ets/pages",
      "entry/src/main/ets/pages/Body.ets",
      "entry/src/main/ets/pages/Collection.ets",
      "entry/src/main/ets/pages/Index.ets",
      "entry/src/main/ets/pages/Onboarding.ets",
      "entry/src/main/ets/pages/Settings.ets",
      "entry/src/main/ets/pages/Summary.ets",
      "entry/src/main/ets/pages/Workout.ets",
      "entry/src/main/ets/platform",
      "entry/src/main/ets/platform/Haptics.ets",
      "entry/src/main/ets/platform/MotionSource.ets",
      "entry/src/main/ets/platform/Notifier.ets",
      "entry/src/main/ets/platform/PrefsStore.ets",
      "entry/src/main/ets/platform/StepService.ets",
      "entry/src/main/ets/ui",
      "entry/src/main/ets/ui/Fonts.ets",
      "entry/src/main/ets/ui/Kit.ets",
      "entry/src/main/ets/ui/Motion.ets",
      "entry/src/main/ets/ui/Nav.ets",
      "entry/src/main/ets/ui/Theme.ets",
      "entry/src/main/ets/views",
      "entry/src/main/ets/views/HomeView.ets",
      "entry/src/main/ets/views/InsightsView.ets",
      "entry/src/main/ets/views/ProgressView.ets",
      "entry/src/main/ets/widget",
      "entry/src/main/ets/widget/common",
      "entry/src/main/ets/widget/common/WidgetCreature.ets",
      "entry/src/main/ets/widget/pages",
      "entry/src/main/ets/widget/pages/WispCard.ets",
      "entry/src/main/ets/widget/pages/WispWide.ets",
      "entry/src/main/ets/wispformability",
      "entry/src/main/ets/wispformability/WispFormAbility.ets",
      "entry/src/main/module.json5",
      "entry/src/main/resources",
      "entry/src/main/resources/base",
      "entry/src/main/resources/base/element",
      "entry/src/main/resources/base/element/color.json",
      "entry/src/main/resources/base/element/float.json",
      "entry/src/main/resources/base/element/string.json",
      "entry/src/main/resources/base/media",
      "entry/src/main/resources/base/media/background.png",
      "entry/src/main/resources/base/media/foreground.png",
      "entry/src/main/resources/base/media/ic_back.svg",
      "entry/src/main/resources/base/media/ic_bars.svg",
      "entry/src/main/resources/base/media/ic_bell_accent.svg",
      "entry/src/main/resources/base/media/ic_bolt_accent.svg",
      "entry/src/main/resources/base/media/ic_calendar.svg",
      "entry/src/main/resources/base/media/ic_check.svg",
      "entry/src/main/resources/base/media/ic_check_dark.svg",
      "entry/src/main/resources/base/media/ic_chevron.svg",
      "entry/src/main/resources/base/media/ic_close.svg",
      "entry/src/main/resources/base/media/ic_down.svg",
      "entry/src/main/resources/base/media/ic_dumbbell.svg",
      "entry/src/main/resources/base/media/ic_dumbbell_dark.svg",
      "entry/src/main/resources/base/media/ic_edit.svg",
      "entry/src/main/resources/base/media/ic_flask.svg",
      "entry/src/main/resources/base/media/ic_heart_accent.svg",
      "entry/src/main/resources/base/media/ic_help.svg",
      "entry/src/main/resources/base/media/ic_home.svg",
      "entry/src/main/resources/base/media/ic_lock.svg",
      "entry/src/main/resources/base/media/ic_minus.svg",
      "entry/src/main/resources/base/media/ic_moon_accent.svg",
      "entry/src/main/resources/base/media/ic_phone.svg",
      "entry/src/main/resources/base/media/ic_phone_accent.svg",
      "entry/src/main/resources/base/media/ic_plus.svg",
      "entry/src/main/resources/base/media/ic_refresh.svg",
      "entry/src/main/resources/base/media/ic_shield.svg",
      "entry/src/main/resources/base/media/ic_sliders.svg",
      "entry/src/main/resources/base/media/ic_sparkle.svg",
      "entry/src/main/resources/base/media/ic_sparkle_accent.svg",
      "entry/src/main/resources/base/media/ic_steps_accent.svg",
      "entry/src/main/resources/base/media/ic_target.svg",
      "entry/src/main/resources/base/media/ic_target_accent.svg",
      "entry/src/main/resources/base/media/ic_trash_danger.svg",
      "entry/src/main/resources/base/media/ic_trophy.svg",
      "entry/src/main/resources/base/media/ic_trophy_accent.svg",
      "entry/src/main/resources/base/media/layered_image.json",
      "entry/src/main/resources/base/media/startIcon.png",
      "entry/src/main/resources/base/profile",
      "entry/src/main/resources/base/profile/backup_config.json",
      "entry/src/main/resources/base/profile/form_config.json",
      "entry/src/main/resources/base/profile/main_pages.json",
      "entry/src/main/resources/dark",
      "entry/src/main/resources/dark/element",
      "entry/src/main/resources/dark/element/color.json",
      "entry/src/main/resources/rawfile",
      "entry/src/main/resources/rawfile/fonts",
      "entry/src/main/resources/rawfile/fonts/Nunito-ExtraBold.ttf",
      "entry/src/main/resources/rawfile/fonts/Nunito-Medium.ttf",
      "entry/src/main/resources/rawfile/fonts/OFL.txt",
      "entry/src/mock",
      "entry/src/mock/mock-config.json5",
      "entry/src/ohosTest",
      "entry/src/ohosTest/ets",
      "entry/src/ohosTest/ets/test"
    ],
    "tree_truncated": false
  },
  {
    "repo": "coywolf-llc/coywolf-pack",
    "search_description": "Coywolf Pack for EmDash: Coywolf's features for EmDash sites on Cloudflare (backups and restore, redirects, and more).",
    "created_at": "2026-10-03T20:19:12Z",
    "id": "R_kgDOU6lQEw",
    "meta": {
      "id": 1403605011,
      "node_id": "R_kgDOU6lQEw",
      "name": "coywolf-pack",
      "full_name": "coywolf-llc/coywolf-pack",
      "private": false,
      "owner": {
        "login": "coywolf-llc",
        "id": 46551471,
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTUxNDcx",
        "avatar_url": "https://avatars.githubusercontent.com/u/46551471?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/coywolf-llc",
        "html_url": "https://github.com/coywolf-llc",
        "followers_url": "https://api.github.com/users/coywolf-llc/followers",
        "following_url": "https://api.github.com/users/coywolf-llc/following{/other_user}",
        "gists_url": "https://api.github.com/users/coywolf-llc/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/coywolf-llc/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/coywolf-llc/subscriptions",
        "organizations_url": "https://api.github.com/users/coywolf-llc/orgs",
        "repos_url": "https://api.github.com/users/coywolf-llc/repos",
        "events_url": "https://api.github.com/users/coywolf-llc/events{/privacy}",
        "received_events_url": "https://api.github.com/users/coywolf-llc/received_events",
        "type": "Organization",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/coywolf-llc/coywolf-pack",
      "description": "Coywolf Pack for EmDash: Coywolf's features for EmDash sites on Cloudflare (backups and restore, redirects, and more).",
      "fork": false,
      "url": "https://api.github.com/repos/coywolf-llc/coywolf-pack",
      "forks_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/forks",
      "keys_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/teams",
      "hooks_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/hooks",
      "issue_events_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/issues/events{/number}",
      "events_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/events",
      "assignees_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/assignees{/user}",
      "branches_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/branches{/branch}",
      "tags_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/tags",
      "blobs_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/languages",
      "stargazers_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/stargazers",
      "contributors_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/contributors",
      "subscribers_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/subscribers",
      "subscription_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/subscription",
      "commits_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/contents/{+path}",
      "compare_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/merges",
      "archive_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/downloads",
      "issues_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/issues{/number}",
      "pulls_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/labels{/name}",
      "releases_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/releases{/id}",
      "deployments_url": "https://api.github.com/repos/coywolf-llc/coywolf-pack/deployments",
      "created_at": "2026-10-03T20:19:12Z",
      "updated_at": "2026-10-04T04:17:54Z",
      "pushed_at": "2026-10-04T04:18:42Z",
      "git_url": "git://github.com/coywolf-llc/coywolf-pack.git",
      "ssh_url": "[email protected]:coywolf-llc/coywolf-pack.git",
      "clone_url": "https://github.com/coywolf-llc/coywolf-pack.git",
      "svn_url": "https://github.com/coywolf-llc/coywolf-pack",
      "homepage": null,
      "size": 743,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "custom_properties": {},
      "organization": {
        "login": "coywolf-llc",
        "id": 46551471,
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTUxNDcx",
        "avatar_url": "https://avatars.githubusercontent.com/u/46551471?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/coywolf-llc",
        "html_url": "https://github.com/coywolf-llc",
        "followers_url": "https://api.github.com/users/coywolf-llc/followers",
        "following_url": "https://api.github.com/users/coywolf-llc/following{/other_user}",
        "gists_url": "https://api.github.com/users/coywolf-llc/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/coywolf-llc/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/coywolf-llc/subscriptions",
        "organizations_url": "https://api.github.com/users/coywolf-llc/orgs",
        "repos_url": "https://api.github.com/users/coywolf-llc/repos",
        "events_url": "https://api.github.com/users/coywolf-llc/events{/privacy}",
        "received_events_url": "https://api.github.com/users/coywolf-llc/received_events",
        "type": "Organization",
        "user_view_type": "public",
        "site_admin": false
      },
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Coywolf Pack for EmDash\n\nOne plugin with [Coywolf](https://coywolf.com)'s features for [EmDash](https://emdashcms.com) sites on Cloudflare: the things Coywolf's WordPress plugins do that EmDash doesn't do natively. Enable only the modules you want.\n\n| Module | What it does |\n| --- | --- |\n| **Backups** | Full backups (D1 database + R2 media), rewind with undo, restore to a new database, missing-media restore |\n| **Redirects** | Redirect manager for what EmDash's built-in Redirects can't handle: external destinations and file paths |\n| **Headings & TOC** | Linkable headings (`#jump-…` anchors) and a Table of Contents block |\n| **Breadcrumb Nav** | An accessible breadcrumb trail as a theme component and a Breadcrumbs block, fed by the same trail as the breadcrumb schema |\n| **Code Blocks** | Server-side syntax highlighting, themes, language label, copy button and line numbers for code blocks |\n| **File Downloads** | A download card block, stable download URLs with counts, a Files page, and direct-to-R2 uploads of any size |\n| **Search** | Settings page for EmDash's full-text search, a search box with as-you-type suggestions and an OR fallback, and rate limiting |\n| **Discovery** | IndexNow pings, a Google News sitemap, and llms.txt with Markdown versions of entries |\n| **Link Manager** | Every link in your content with its HTTP status, where it's used, and bulk replace, unlink, and ignore |\n| **Videos** | Cloudflare Stream library and uploads, the Coywolf Video block, VideoObject schema, a video sitemap, plays and likes, captions |\n| **Reviews** | The Coywolf Review block (rating badge, pros and cons) with custom CSS, and Review schema with pros and cons |\n| **Schema & Social** | One Schema.org graph per page (publisher, typed pages and articles, authors), breadcrumbs, robots directives, Open Graph extras |\n| **Robots.txt Rules** | Named robots.txt rules, a verified crawler directory kept current from Cloudflare Radar, and a URL tester |\n| **AI Enrichment** | Wikidata-grounded entities for schema, meta-description suggestions, and image alt text, with Workers AI or your own key |\n\nEvery feature can be turned on or off under **Plugins → Features**, like Coywolf SEO's feature switches. New features start off, so installing or updating changes nothing on the site until you turn them on. A module that is off also leaves the admin sidebar and dashboard.\n\nMore modules will follow as Coywolf's WordPress plugins move to EmDash.\n\nThis is a native (trusted) EmDash plugin, so it installs from GitHub or npm rather than the EmDash plugin directory. The directory lists only sandboxed plugins, which can't read the database or buckets directly.\n\n## Requirements\n\nEmDash 1.1+ on the Cloudflare adapter, with a D1 database (`DB`) and an R2 media bucket (`MEDIA`).\n\n## Install\n\n```bash\nnpm install https://codeload.github.com/coywolf-llc/coywolf-pack/tar.gz/refs/tags/v0.6.0\n```\n\nUse the tarball URL rather than `github:coywolf-llc/coywolf-pack`: npm records `github:` installs as SSH Git URLs, which CI runners without an SSH key can't fetch.\n\n```js\n// astro.config.mjs\nimport { coywolfPlugin } from \"@coywolf/emdash\";\n\nemdash({\n  // ...\n  plugins: [\n    coywolfPlugin({\n      backups: { name: \"mysite\" },\n      redirects: {},\n    }),\n  ],\n});\n```\n\nEach module appears under **Plugins → Coywolf Pack** in the admin. Omit a module (or set it to `false`) to turn it off.\n\nEach module's settings live on its own page (Backups, Files → Settings, Videos → Settings, Link Manager → Settings, AI Enrichment → Settings, Schema, Code Blocks, Discovery, Robots.txt), grouped into sections. Features that need an API key or binding stay hidden until it's there, with a setup card in their place. The plugin's generic **Settings** page (**Plugins → Coywolf Pack → Settings**) lists only the API keys and tokens, which EmDash stores encrypted (so the site needs `EMDASH_ENCRYPTION_KEY`): the AI Enrichment API key, the File Downloads R2 secret access key, the Videos Stream API token and webhook secret, and the Cloudflare Radar API token. Each can also be entered on its module's page.\n\nIn development, keep Vite from pre-bundling the plugin. A pre-bundled copy gets its own instance of `emdash`, which breaks plugin error handling. Its UI libraries should stay pre-bundled:\n\n```js\n// astro.config.mjs\nexport default defineConfig({\n  vite: {\n    optimizeDeps: { exclude: [\"@coywolf/emdash\"], include: [\"@phosphor-icons/react\", \"@cloudflare/kumo\"] },\n    ssr: { optimizeDeps: { exclude: [\"@coywolf/emdash\"] } },\n  },\n});\n```\n\n## Content URLs\n\nSeveral modules link to entries: llms.txt and the news sitemap, IndexNow, per-entry Markdown, the video sitemap, Schema previews, search results, and removed-content redirects. By default they resolve an entry's URL the way EmDash does, from the collection's URL pattern (`{slug}`, `{id}`, and date tokens such as `{year}`). If your theme routes a collection differently, tell the pack with `urls`:\n\n```js\n// wellbeing.io serves posts at WordPress-style /{category}/{slug}/\ncoywolfPlugin({\n  urls: { posts: \"/{term:category|uncategorized}/{slug}/\" },\n});\n```\n\nPatterns take EmDash's tokens plus taxonomy tokens:\n\n- `{term:<taxonomy>}` is the slug of the entry's first term in that taxonomy, in the order EmDash's `getTermsForEntries` returns them (by label).\n- `{term:<taxonomy>|<fallback>}` uses `<fallback>` when the entry has no term. Without a fallback, an entry with no term has no URL.\n- `{category}` is shorthand for `{term:category|uncategorized}`.\n\nCollections without an override keep EmDash's resolution. The pack also maps paths back to entries (for example, the Markdown source at `/mind/some-post/index.html.md` resolves only when `mind` is the post's primary category), so a wrong category doesn't match.\n\nTrailing slashes follow Astro's `trailingSlash` setting. With the default (`\"ignore\"`), an override keeps the pattern's own trailing slash. Set `trailingSlash: \"always\" | \"never\"` on `coywolfPlugin()` to force one for every entry URL the pack builds. Override URLs get no locale prefix.\n\nThe options are read when the Worker starts (EmDash creates the plugin then), so the middleware and Astro components use them too. Sites can resolve URLs the same way with `entryUrl`, `entryUrls`, and `matchEntryPath` from `@coywolf/emdash/astro`.\n\n## Backups\n\n- **Database**: a restorable SQL dump of the site's D1 database: users, passkeys, settings, redirects, menus, plugin data, and content. Search indexes rebuild automatically on restore.\n- **Media**: a mirror of the R2 media bucket. Replaced or deleted files are kept under a dated folder until retention expires.\n- **Admin**: **Back up now**, downloads, and a dashboard widget that warns when backups stop. Settings (**Schedule and retention** on the Backups page): daily scheduled backup (default off), retention (default 30 days), staleness warning (default 36 hours).\n- **Restore** (optional, see below): **Rewind to this backup** (D1 Time Travel, with **Undo rewind**), **Restore to a new database** (import plus per-table row-count check), and **Restore missing media**.\n\nTheme code isn't included: it lives in your Git repository.\n\n### Setup\n\n1. Create a backup bucket and bind it as `BACKUPS` in `wrangler.jsonc`:\n\n   ```bash\n   npx wrangler r2 bucket create mysite-backups\n   ```\n\n   ```jsonc\n   \"r2_buckets\": [\n     { \"binding\": \"MEDIA\", \"bucket_name\": \"mysite-media\" },\n     { \"binding\": \"BACKUPS\", \"bucket_name\": \"mysite-backups\" }\n   ]\n   ```\n\n2. Options: `database` (default `\"DB\"`), `media` (`\"MEDIA\"`), `backups` (`\"BACKUPS\"`), `name` (dump file prefix, default `\"database\"`).\n\n### Enable restore\n\nRestores use the Cloudflare API, because a Worker can't create databases or time-travel through its D1 binding.\n\n1. Create an API token with one permission, **Account → D1 → Edit**.\n2. Store it as a Worker secret. It isn't a plugin setting, because a rewind rolls plugin settings back too:\n\n   ```bash\n   npx wrangler secret put BACKUPS_API_TOKEN\n   ```\n\n3. Add the IDs and deploy:\n\n   ```js\n   coywolfPlugin({\n     backups: { name: \"mysite\", restore: { accountId: \"<account id>\", databaseId: \"<D1 database id>\" } },\n   });\n   ```\n\nRewinds save an undo point to the backup bucket first; undo steps back one rewind at a time.\n\n### Backup layout\n\n```text\nd1/<stamp>/<name>.sql.gz         database dump\nd1/<stamp>/manifest.json         stamp, size, SHA-256, source, row counts, Time Travel bookmark\nmedia/current/<key>              mirror of the media bucket\nmedia/changed/<stamp>/<key>      media replaced or deleted at that backup\nrestore/undo/<time>.json         undo points for rewinds\n```\n\nExternal jobs (a nightly GitHub Action, for example) can write to the same layout, and the admin lists those backups too.\n\n### Manual restore\n\nRestore into a **new, empty** D1 database and switch the `DB` binding to it. Never import over the live database:\n\n```bash\nnpx wrangler d1 create mysite-restore\ngunzip -c mysite.sql.gz > restore.sql\nnpx wrangler d1 execute mysite-restore --remote --file restore.sql\n```\n\nKeep `EMDASH_ENCRYPTION_KEY` in a password manager. It isn't in backups, and encrypted plugin settings can't be read without it.\n\n### Notes\n\n- `wrangler d1 export` refuses databases with FTS5 tables (EmDash search). The dump writes tables, then search tables and their triggers, then rows with parent tables before child tables (D1 imports large files in batches, so deferred foreign keys aren't enough), then indexes and the remaining triggers.\n- Backups run in one Worker request, so they suit small and medium sites. The database is saved before the media mirror runs. The mirror copies at most 300 changed files per run; the rest follow on the next run.\n- Integers larger than 2^53 lose precision (D1 returns JavaScript numbers). EmDash stores IDs as text.\n\n## Redirects\n\nEmDash's built-in Redirects (**Manage → Redirects**) handle site-relative page redirects. This module covers what they can't:\n\n- **External destinations**, such as affiliate links (`/visit/partner`) and articles that moved to another site.\n- **File paths**, such as old WordPress `/wp-content/uploads/` image URLs. EmDash's middleware skips any path with a file extension.\n\nFeatures: exact paths (with or without a trailing slash) or regular expressions with `$1`–`$9` substitution, 301/302/307/308/410, enable/disable, notes, hit counts, a URL tester, and bulk import (JSON, or tab/comma-separated `source, target, type, is_regex` rows; a Coywolf SEO export from WordPress works as is). Rules are stored in the site's D1 database (`coywolf_redirects`), so backups include them.\n\n### Setup\n\nAdd the middleware to `src/middleware.ts`:\n\n```ts\nimport { sequence } from \"astro:middleware\";\nimport { coywolfRedirects } from \"@coywolf/emdash/middleware\";\n\nexport const onRequest = sequence(coywolfRedirects(), /* your middleware */);\n```\n\nRules are read at most once a minute per Worker isolate, and hits are counted after the response is sent, so redirects add no database query to normal page views.\n\n### Removed content\n\nFeature **Redirects → Removed content** (`redirects.trashPrompt`, off by default). When a published entry is deleted (trashed) or unpublished, its old URL is listed in a **Removed content** panel on the Redirects page, with three choices:\n\n- **Redirect to…** creates a Coywolf redirect rule (301 by default) from the old URL.\n- **Return 410 Gone** creates a 410 rule, telling search engines the page is gone for good.\n- **Dismiss** forgets it (for example, when the URL should simply 404).\n\nThe old URL is resolved the way EmDash resolves it: the collection's URL pattern (`{slug}`, `{id}`, and date tokens from the publish date), or `/<collection>/<slug>`. Locale prefixes aren't added. Drafts that were never published aren't listed, and republishing an entry, or restoring it from the trash (it comes back as a draft), removes it from the list. Decisions are kept in plugin storage (`redirects_removed`). The module declares the `content:read` capability ",
    "tree_paths": [
      ".gitignore",
      "LICENSE",
      "README.md",
      "package-lock.json",
      "package.json",
      "scripts",
      "scripts/build-bots.mjs",
      "scripts/gen-code-themes.mjs",
      "src",
      "src/admin",
      "src/admin/ai.tsx",
      "src/admin/backups.tsx",
      "src/admin/breadcrumbs.tsx",
      "src/admin/codeBlocks.tsx",
      "src/admin/discovery.tsx",
      "src/admin/features.tsx",
      "src/admin/files.tsx",
      "src/admin/headings.tsx",
      "src/admin/index.tsx",
      "src/admin/links.tsx",
      "src/admin/redirects-removed.tsx",
      "src/admin/redirects.tsx",
      "src/admin/reviews.tsx",
      "src/admin/robots.tsx",
      "src/admin/schema.tsx",
      "src/admin/search.tsx",
      "src/admin/settings-ui.tsx",
      "src/admin/videos.tsx",
      "src/ai",
      "src/ai/entities.ts",
      "src/ai/logic.test.ts",
      "src/ai/logic.ts",
      "src/ai/pack.ts",
      "src/ai/prompts.ts",
      "src/ai/providers.ts",
      "src/ai/queue.test.ts",
      "src/ai/routes.ts",
      "src/ai/store.ts",
      "src/ai/wikidata.ts",
      "src/ai/worker.ts",
      "src/astro",
      "src/astro/astro-modules.d.ts",
      "src/astro/breadcrumbs",
      "src/astro/breadcrumbs/Breadcrumbs.astro",
      "src/astro/breadcrumbs/BreadcrumbsBlock.astro",
      "src/astro/codeBlocks",
      "src/astro/codeBlocks/CodeBlock.astro",
      "src/astro/codeBlocks/EmDashCode.astro",
      "src/astro/files",
      "src/astro/files/FileCard.astro",
      "src/astro/headings",
      "src/astro/headings/HeadingBlock.astro",
      "src/astro/headings/TableOfContents.astro",
      "src/astro/headings/TocList.astro",
      "src/astro/headings/request.ts",
      "src/astro/index.ts",
      "src/astro/reviews",
      "src/astro/reviews/CoywolfReview.astro",
      "src/astro/reviews/Review.astro",
      "src/astro/search",
      "src/astro/search/SearchBox.astro",
      "src/astro/search/SearchBoxForm.astro",
      "src/astro/videos",
      "src/astro/videos/CoywolfVideo.astro",
      "src/backups",
      "src/backups/dump.ts",
      "src/backups/module.ts",
      "src/backups/pack.ts",
      "src/backups/restore.ts",
      "src/backups/store.ts",
      "src/breadcrumbs",
      "src/breadcrumbs/pack.ts",
      "src/breadcrumbs/settings.ts",
      "src/breadcrumbs/stamp.ts",
      "src/breadcrumbs/trail.ts",
      "src/codeBlocks",
      "src/codeBlocks/hljs.d.ts",
      "src/codeBlocks/pack.ts",
      "src/codeBlocks/render.test.ts",
      "src/codeBlocks/render.ts",
      "src/codeBlocks/settings.ts",
      "src/codeBlocks/themes.generated.ts",
      "src/codeBlocks/themes.ts",
      "src/core",
      "src/core/compose.ts",
      "src/core/content-url.ts",
      "src/core/features-module.ts",
      "src/core/features.ts",
      "src/core/module.ts",
      "src/core/secrets.ts",
      "src/core/site.ts",
      "src/discovery",
      "src/discovery/build.ts",
      "src/discovery/indexnow.ts",
      "src/discovery/llms.ts",
      "src/discovery/markdown.ts",
      "src/discovery/memory-cache.ts",
      "src/discovery/middleware.ts",
      "src/discovery/module.ts",
      "src/discovery/news.ts",
      "src/discovery/pack.ts",
      "src/discovery/settings.ts",
      "src/discovery/urls.ts",
      "src/env.d.ts",
      "src/files",
      "src/files/counts.test.ts",
      "src/files/counts.ts",
      "src/files/format.test.ts",
      "src/files/format.ts",
      "src/files/module.ts",
      "src/files/pack.ts",
      "src/files/r2-rules.test.ts",
      "src/files/r2-rules.ts",
      "src/files/range.ts",
      "src/files/s3.ts",
      "src/files/serve.ts",
      "src/files/sigv4.test.ts",
      "src/files/sigv4.ts",
      "src/files/site.ts",
      "src/files/walker.ts",
      "src/headings",
      "src/headings/headings.test.ts",
      "src/headings/pack.ts",
      "src/headings/settings.ts",
      "src/headings/slug.ts",
      "src/headings/stamp.ts",
      "src/headings/test-hooks.mjs",
      "src/headings/toc.ts",
      "src/index.ts",
      "src/links",
      "src/links/check.ts",
      "src/links/classify.ts",
      "src/links/module.ts",
      "src/links/pack.ts",
      "src/links/pt.ts",
      "src/links/store.ts",
      "src/middleware.ts",
      "src/modules.ts",
      "src/options.ts",
      "src/redirects",
      "src/redirects/middleware.ts",
      "src/redirects/module.ts",
      "src/redirects/pack.ts",
      "src/redirects/removed-core.ts",
      "src/redirects/removed.ts",
      "src/redirects/rules.ts",
      "src/reviews",
      "src/reviews/lib.ts",
      "src/reviews/pack.ts",
      "src/reviews/schema.ts",
      "src/reviews/settings.ts",
      "src/robots",
      "src/robots/bots.ts",
      "src/robots/data",
      "src/robots/data/bots.json",
      "src/robots/data/verified.json",
      "src/robots/directory.ts",
      "src/robots/middleware.ts",
      "src/robots/module.ts",
      "src/robots/pack.ts",
      "src/robots/radar.ts",
      "src/robots/rep.test.ts",
      "src/robots/rep.ts",
      "src/robots/rules.test.ts",
      "src/robots/rules.ts",
      "src/schema",
      "src/schema/catalog.ts",
      "src/schema/graph.test.mjs",
      "src/schema/graph.ts",
      "src/schema/module.ts",
      "src/schema/pack.ts",
      "src/search",
      "src/search/fallback.ts",
      "src/search/module.ts",
      "src/search/pack.ts",
      "src/search/query.ts",
      "src/search/ratelimit-core.ts",
      "src/search/ratelimit.ts",
      "src/shared.ts",
      "src/videos"
    ],
    "tree_truncated": false
  },
  {
    "repo": "granitnebiu/26-blind-spot",
    "search_description": "",
    "created_at": "2026-10-03T09:19:39Z",
    "id": "R_kgDOU5848Q",
    "meta": {
      "id": 1402943729,
      "node_id": "R_kgDOU5848Q",
      "name": "26-blind-spot",
      "full_name": "granitnebiu/26-blind-spot",
      "private": false,
      "owner": {
        "login": "granitnebiu",
        "id": 23729796,
        "node_id": "MDQ6VXNlcjIzNzI5Nzk2",
        "avatar_url": "https://avatars.githubusercontent.com/u/23729796?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/granitnebiu",
        "html_url": "https://github.com/granitnebiu",
        "followers_url": "https://api.github.com/users/granitnebiu/followers",
        "following_url": "https://api.github.com/users/granitnebiu/following{/other_user}",
        "gists_url": "https://api.github.com/users/granitnebiu/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/granitnebiu/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/granitnebiu/subscriptions",
        "organizations_url": "https://api.github.com/users/granitnebiu/orgs",
        "repos_url": "https://api.github.com/users/granitnebiu/repos",
        "events_url": "https://api.github.com/users/granitnebiu/events{/privacy}",
        "received_events_url": "https://api.github.com/users/granitnebiu/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/granitnebiu/26-blind-spot",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/granitnebiu/26-blind-spot",
      "forks_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/forks",
      "keys_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/teams",
      "hooks_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/hooks",
      "issue_events_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/issues/events{/number}",
      "events_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/events",
      "assignees_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/assignees{/user}",
      "branches_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/branches{/branch}",
      "tags_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/tags",
      "blobs_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/languages",
      "stargazers_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/stargazers",
      "contributors_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/contributors",
      "subscribers_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/subscribers",
      "subscription_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/subscription",
      "commits_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/contents/{+path}",
      "compare_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/merges",
      "archive_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/downloads",
      "issues_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/issues{/number}",
      "pulls_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/labels{/name}",
      "releases_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/releases{/id}",
      "deployments_url": "https://api.github.com/repos/granitnebiu/26-blind-spot/deployments",
      "created_at": "2026-10-03T09:19:39Z",
      "updated_at": "2026-10-04T11:31:15Z",
      "pushed_at": "2026-10-04T03:04:22Z",
      "git_url": "git://github.com/granitnebiu/26-blind-spot.git",
      "ssh_url": "[email protected]:granitnebiu/26-blind-spot.git",
      "clone_url": "https://github.com/granitnebiu/26-blind-spot.git",
      "svn_url": "https://github.com/granitnebiu/26-blind-spot",
      "homepage": "https://26-blind-spot.vercel.app",
      "size": 63861,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<p align=\"center\">\n  <img src=\"public/brand/logo.webp\" alt=\"BLIND SPOT\" width=\"360\">\n</p>\n\n<p align=\"center\">\n  <b>A first-person stealth heist where AI security cameras judge what you wear, not who you are.</b><br>\n  Built in about 15 hours for the <a href=\"https://luma.com/2wuf8ns8\">Cambridge Univ. × Arcade AI Hackathon</a>, 3-4 October 2026.\n</p>\n\n<p align=\"center\">\n  <img src=\"docs/screenshots/gallery-b-third.jpg\" alt=\"The thief in Gallery B: sculptures, glass cases, a CCTV camera's view cone and the night city outside\" width=\"900\">\n</p>\n\n---\n\n## Contents\n\n- [The idea](#the-idea)\n- [Screenshots](#screenshots)\n- [How to play](#how-to-play)\n- [The AI in the game](#the-ai-in-the-game)\n- [How it was built](#how-it-was-built)\n- [Run it locally](#run-it-locally)\n- [Project structure](#project-structure)\n- [Credits](#credits)\n\n## The idea\n\nIt is 02:40 on the 40th floor of a glass tower downtown. A private art collection has closed for the night, and the last party guests are still in the auction room. You are **MAGPIE**, a former museum art handler who now steals on commission.\n\nThe building is watched by four CCTV cameras, and each camera sends what it sees to an AI. **The cameras cannot recognise faces. They judge clothes:**\n\n- A night cleaner with a yellow cart in the lobby is normal.\n- A guest in an evening suit in a gallery is normal.\n- Anyone in a black suit, anyone carrying a painting, and anyone at all in the vault corridor is not.\n\nBehind the cameras sits **WARDEN**, the building's AI security chief. When the cameras get suspicious he escalates: radio checks, cameras turning towards you, lights coming back on, infrared, fire doors locking a wing, and finally the police. **CANTOR**, your fixer, talks to you over the earpiece.\n\nSo the heist is a puzzle about how you look to a machine. Change into the right outfit, hide the loot, use the dark, stay out of the cones, then ride the service lift down with as much of the collection as you dare.\n\n## Screenshots\n\n| | |\n|---|---|\n| ![The lit 40th floor seen through the tower's glass during the opening flight](docs/screenshots/intro-floor.jpg) | ![The gallery tower seen from the street, with the glass lift shaft](docs/screenshots/tower.jpg) |\n| **The opening flight** from the street up to the 40th floor | **The tower**, with the glass lift shaft running up its face |\n| ![The floor from above, with the cameras' coverage cones](docs/screenshots/top-down.jpg) | ![The Mona Lisa behind glass in the vault](docs/screenshots/vault-mona-lisa.jpg) |\n| **Top-down view** (T): the rooms and the cameras' cones (the vault is under the feed thumbnails, top right) | **The vault**: the Mona Lisa behind glass, pieces on plinths |\n| ![The security monitors: one camera large and all four as thumbnails](docs/screenshots/monitors.jpg) | ![The staff locker with a plate per outfit](docs/screenshots/locker.jpg) |\n| **Security monitors** (Tab): what the AI cameras see | **The staff locker**: change outfit with 1, 2 or 3 |\n| ![Stolen pieces dropped off in the service lift](docs/screenshots/lift-stash.jpg) | ![Three police officers arrest the kneeling thief](docs/screenshots/arrest.jpg) |\n| **Drop loot in the lift** and go back for more | **Too slow**: the police arrive when WARDEN's countdown runs out |\n| ![The start card in the lift](docs/screenshots/start-card.jpg) | ![The fence's dossier stamped STOLEN after a getaway](docs/screenshots/stolen.jpg) |\n| **The start card**: pick your tool, then click to start | **A getaway**: the fence's dossier, stamped STOLEN |\n\n<p align=\"center\">\n  <img src=\"docs/screenshots/credits-wall.jpg\" alt=\"The credits wall in raised 3D letters in the service hall\" width=\"720\"><br>\n  <i>The credits wall in the service hall: aim at a name and click to open that person's page.</i>\n</p>\n\n## How to play\n\n**Play in a desktop browser** (Chrome, Edge or Firefox) with a mouse and keyboard. Click once to start. The game captures the mouse, and **Esc** frees it and pauses.\n\n### Goal and scoring\n\nSteal any of the **17 pieces** (163,500 coins in total) and ride the service lift down with them. Coins are counted at the lift:\n\n| | |\n|---|---|\n| **Base** | The sum of the values of every piece that rides down |\n| **Ghost ×1.5** | +50% if no camera ever reached ALERT |\n| **Speed** | Up to +30%, fading to 0 at 10 minutes on the floor (paused time does not count) |\n| **Clean sweep** | +25,000 for taking all 17 pieces |\n\n- Your **wallet** shows this job's coins, and every new job starts fresh at 0.\n- Your **best run** is kept in the browser.\n\n### Controls\n\n| Key | Action |\n|---|---|\n| **W A S D** / arrows | Move (walk 1.4 m/s) |\n| **Mouse** | Look (orbits 360° in third person) |\n| **Shift** (hold) | Sprint, 3.8 m/s (cameras notice running) |\n| **C** | Crouch (toggle). **Space** stands up if there is room |\n| **E** | Use: light switch, electrical cabinet, keycard, cart, drop loot in the lift |\n| **Hold E** | Turn the vault wheel (4 s), ride the lift down (1.5 s) |\n| **Hold E + W** | Push a plinth, crate, palm or trolley |\n| **F** | Take or put down a piece (also into the cart bin or the vault crate) |\n| **G** | Break a glass case: once cracks it, twice shatters it (its alarm reaches WARDEN) |\n| **R** | Read a museum label (pauses the game) |\n| **1 / 2 / 3** | At the staff locker or the guest coat rack: black suit / night cleaner / guest |\n| **Left mouse** | Use your tool |\n| **T** | First person / third person / top-down |\n| **Scroll** | Zoom (third person and top-down) |\n| **M** / **N** | Blueprint map / minimap |\n| **Tab** | Security monitors (1-4 switch cameras) |\n| **H** | Gallery of every Hyper3D model |\n| **V** / **P** | Camera coverage debug view / performance overlay |\n| **Esc** | Pause and settings |\n\nThere is no jump key. The prompt under the crosshair always tells you what each key will do.\n\n### Outfits\n\n| Outfit | Where | How the cameras read it |\n|---|---|---|\n| **Black infiltration suit** | You start in it | An intruder everywhere. Only darkness hides it |\n| **Night cleaner** | Staff locker, janitor closet | Allowed in the lobby and both galleries, best with the yellow cart |\n| **Guest** | Staff locker, or the coat rack in the auction room | Allowed in the public rooms |\n\nEvery outfit is flagged in the vault and at the vault door, and when you carry visible art. Crouching or sprinting in view adds suspicion too. Changing outfit while the police are on their way calls them off: WARDEN loses your description.\n\n### Tools\n\nYou choose one tool per job on the start card. You can swap it until you first use it.\n\n| Tool | Use |\n|---|---|\n| **IR Dazzler** ×3 | Aim at a lens within 12 m and click: that feed washes out for 15 s |\n| **Loop Clip** ×1 | Click it onto a camera's junction box: the camera replays its last frame for 40 s |\n| **Padded Sleeve** ×1 | Wrap the piece you carry (up to 1.2 m): the cameras see a plain package |\n\nEach Dazzler shot and each shattered case is reported to WARDEN as a fault.\n\n### Your first heist\n\n1. **Start.** Click to begin and watch the flight up the tower, or skip it. Pick a tool on the start card in the lift and click to start: the doors open.\n2. **Change.** The service hall has no camera. Go west into the janitor closet, aim at the locker and press **2** (night cleaner). Press **E** on the yellow cart to push it.\n3. **Lobby and Gallery A.** Cross the lobby (a cleaner is allowed) into Gallery A, then go to the security office door in its north-east corner.\n4. **Security office** (no camera):\n   - Take the **vault keycard** from the desk (E, blue glow).\n   - Open the **electrical cabinet** and switch off Gallery B and the vault. Lights come back after 30 s, so move on straight away.\n5. **The vault door.** Go through the dark Gallery B to the vault door and **hold E** for 4 s.\n6. **Take the loot.** Inside, break a case with **G G**, take the piece with **F**, and hide it in the cart bin with **F** (up to 4 small pieces).\n7. **Get out.** Walk back the same way: every camera sees a cleaner with a cart.\n8. **Cash in.** Push the cart into the lift.\n   - **Tap E** to drop the loot off and go back for more.\n   - **Hold E** to ride down and get paid.\n\nDropped pieces pay only when you ride down. If you are caught, the lift is searched and they are lost.\n\n### How the security reacts\n\n- **Meters.** Each camera has a suspicion meter. Amber starts at 0.35 suspicion and red at 0.7. A full meter is an **ALERT**.\n- **Identified.** Three ALERTs in one job end it: WARDEN seals the floor.\n- **WARDEN's actions,** one level at a time, at most once every 10 s:\n  1. a radio check;\n  2. turning a camera towards you, a breaker reset or infrared mode;\n  3. locking a wing's fire doors;\n  4. calling the police.\n- **The police.** WARDEN calls them for an ALERT while you carry art, an ALERT from the vault camera, or a second ALERT. A **90 s countdown** starts. Reach the lift or change outfit before it ends, or three officers arrive and arrest you.\n- **Darkness.** A switched-off room comes back on after 30 s. In the dark the local judge cannot see you at all, and in dim light it sees you at half strength. Infrared cancels darkness.\n\n### Tips\n\n- The black suit needs darkness. In a lit camera view it is red at once.\n- Hide the loot, not just yourself: the cart bin, the vault crate and the Sleeve.\n- In disguise, avoid crouching or sprinting in a camera's view: each adds suspicion.\n- Watch the pans: Gallery A's camera holds 3 s at each end of its sweep.\n- Taped X marks on the floor show where to push cover to block a camera.\n- **R** tells you whether a piece fits the cart bin, fits only the vault crate, or must be carried in both hands.\n- The pause menu stops every timer. Use it with the map (M) and the Catalogue tab to plan.\n\n## The AI in the game\n\nThree Claude roles run through small server functions. **All three are optional**, and with AI off the game runs entirely on its own rules in code.\n\n| Role | Model | What it does |\n|---|---|---|\n| **AI CCTV cameras** (4) | Claude Haiku 4.5 (`claude-haiku-4-5`) | Reads a 512×288 frame from a camera plus one line of context (camera, zone, who is allowed there). Returns a structured verdict: person visible, looks like (cleaner, guest, intruder), posture, carrying, lighting, a suspicion score and a caption |\n| **WARDEN**, security chief | Claude Sonnet 5.5 (`claude-sonnet-5-5`) | Picks the next security action from those the playbook allows, and writes a radio line of 12 words or fewer |\n| **CANTOR**, the fixer | Claude Haiku 4.5 | Rewrites the game's hint in his voice: dry, calm, 12 words or fewer |\n\nHow it fits together:\n\n- **What the camera sends.** Each camera renders its own clean frame for the AI (`src/cctv/CctvRig.tsx`). It has no grain or overlay, because noise makes a vision model invent people. The frame goes to `server/camera.ts`, which calls `messages.parse` with a zod schema, so the answer always has the same shape.\n- **When it calls.** The game decides when to ask (`src/cctv/cameraAi.ts`):\n  - only while you are actually in a camera's view (raycast);\n  - at most every 2 s per camera (every 1 s for 30 s after WARDEN turns that camera towards you), at most 2 calls at once;\n  - stale answers are ignored.\n- **What the game decides.** The scores feed suspicion meters that rise and fall over time. The rules of the game stay in code:\n  - if the model reports a person who looks like an intruder, is carrying art, or is in the vault corridor, the game scores them at least 0.85, whatever suspicion score the model gave;\n  - WARDEN can never skip a police call that the playbook requires.\n- **Local judge.** With AI off, without an API key, or when a call fails, the same pipeline uses a judge written in code. Its captions start with `[LOCAL]`.\n- **Off by default.** Turn it on in **Esc → Gameplay → AI cameras + WARDEN** (it uses API credit). See [Run it locally](#run-it-locally) for the key.\n\n## How it was built\n\n| | |\n|---|---|\n| **Engine** | [three.js](https://threejs.org) 0.186 with [React Three Fiber",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".env.example",
      ".gitignore",
      "CLAUDE.md",
      "CREDITS.md",
      "PLAN-2.md",
      "PLAN.md",
      "README.md",
      "api",
      "api/camera.ts",
      "api/cantor.ts",
      "api/chief.ts",
      "assets.csv",
      "assets.json",
      "character.json",
      "docs",
      "docs/screenshots",
      "docs/screenshots/arrest.jpg",
      "docs/screenshots/credits-wall.jpg",
      "docs/screenshots/gallery-b-third.jpg",
      "docs/screenshots/intro-floor.jpg",
      "docs/screenshots/lift-stash.jpg",
      "docs/screenshots/locker.jpg",
      "docs/screenshots/monitors.jpg",
      "docs/screenshots/start-card.jpg",
      "docs/screenshots/stolen.jpg",
      "docs/screenshots/top-down.jpg",
      "docs/screenshots/tower.jpg",
      "docs/screenshots/vault-mona-lisa.jpg",
      "hyper3d-batch.txt",
      "index.html",
      "level.json",
      "package-lock.json",
      "package.json",
      "public",
      "public/art",
      "public/art/mona-lisa.jpg",
      "public/brand",
      "public/brand/icon-180.png",
      "public/brand/icon-32.png",
      "public/brand/logo.webp",
      "public/credits",
      "public/credits/claude-logo.svg",
      "public/credits/webthinker-logo.png",
      "public/cursor-hover.png",
      "public/cursor.png",
      "public/models",
      "public/models/art_crate_small.glb",
      "public/models/art_crate_tall.glb",
      "public/models/art_transport_trolley.glb",
      "public/models/auction_chair.glb",
      "public/models/bar_counter.glb",
      "public/models/bar_glassware_tray.glb",
      "public/models/bar_stool.glb",
      "public/models/cctv_camera.glb",
      "public/models/cctv_junction_box.glb",
      "public/models/city_tower_deco.glb",
      "public/models/city_tower_glass.glb",
      "public/models/city_tower_main.glb",
      "public/models/city_tower_residential.glb",
      "public/models/city_tower_twist.glb",
      "public/models/coat_rack_guest.glb",
      "public/models/cocktail_table_high.glb",
      "public/models/cursor_arrow.glb",
      "public/models/desk_radio.glb",
      "public/models/display_easel.glb",
      "public/models/electrical_cabinet.glb",
      "public/models/event_lcd_screen.glb",
      "public/models/event_lectern.glb",
      "public/models/figure_guest_standing.glb",
      "public/models/figure_janitor_standing.glb",
      "public/models/figure_police_standing.glb",
      "public/models/figure_suit_standing.glb",
      "public/models/filing_cabinet.glb",
      "public/models/gallery_bench.glb",
      "public/models/janitor_broom_rack.glb",
      "public/models/janitor_bucket.glb",
      "public/models/janitor_cart.glb",
      "public/models/janitor_mop_sink.glb",
      "public/models/light_switch.glb",
      "public/models/lobby_sofa.glb",
      "public/models/lounge_armchair.glb",
      "public/models/lounge_sofa.glb",
      "public/models/metal_locker_row.glb",
      "public/models/office_chair.glb",
      "public/models/packing_bench.glb",
      "public/models/painting_large_framed.glb",
      "public/models/painting_small_framed.glb",
      "public/models/plinth_rolling.glb",
      "public/models/potted_palm_tall.glb",
      "public/models/reception_desk.glb",
      "public/models/rope_stanchions.glb",
      "public/models/sculpture_bronze_abstract_plinth.glb",
      "public/models/sculpture_marble_torso_plinth.glb",
      "public/models/security_desk_workstation.glb",
      "public/models/statue_athlete.glb",
      "public/models/statue_draped_woman.glb",
      "public/models/statue_emperor_bust.glb",
      "public/models/statue_philosopher_bust.glb",
      "public/models/statue_relief_panel.glb",
      "public/models/statue_seated_figure.glb",
      "public/models/supply_cartons.glb",
      "public/models/target_bronze_amphora.glb",
      "public/models/target_bronze_dancer.glb",
      "public/models/target_gold_mask.glb",
      "public/models/target_jade_horse.glb",
      "public/models/target_jewelled_egg.glb",
      "public/models/target_marble_bust.glb",
      "public/models/target_ming_vase.glb",
      "public/models/target_porcelain_vase.glb",
      "public/models/target_portrait_painting.glb",
      "public/models/target_ruby_crown.glb",
      "public/models/target_silver_statuette.glb",
      "public/models/utility_shelf.glb",
      "public/models/vault_door.glb",
      "public/models/vault_keycard.glb",
      "public/models/vault_pedestal.glb",
      "public/models/wet_floor_sign.glb",
      "public/models/wrapped_art_package.glb",
      "public/music",
      "public/music/investigations.mp3",
      "public/music/sneaky-snitch.mp3",
      "public/music/tracks.json",
      "public/sounds",
      "public/sounds/intro-blind-spot.mp3",
      "public/sounds/intro-city-bleeds.mp3",
      "scripts",
      "scripts/flatten-fused-hands.mjs",
      "scripts/measure-kneel.mjs",
      "server",
      "server/camera.ts",
      "server/cantor.ts",
      "server/chief.ts",
      "src",
      "src/App.tsx",
      "src/assets",
      "src/assets/fonts",
      "src/assets/fonts/LICENSE-helvetiker.txt",
      "src/assets/fonts/helvetiker_bold.typeface.json",
      "src/audio",
      "src/audio/audio.ts",
      "src/cctv",
      "src/cctv/CctvFigure.tsx",
      "src/cctv/CctvRig.tsx",
      "src/cctv/cameraAi.ts",
      "src/cctv/figureModels.tsx",
      "src/cctv/layout.ts",
      "src/cctv/shaders.ts",
      "src/dev",
      "src/dev/PoseSheet.tsx",
      "src/game",
      "src/game/CarriedView.tsx",
      "src/game/PerfProbe.tsx",
      "src/game/Player.tsx",
      "src/game/arrest.ts",
      "src/game/cantor.ts",
      "src/game/controls.ts",
      "src/game/introTiming.ts",
      "src/game/links.ts",
      "src/game/perf.ts",
      "src/game/quotes.ts",
      "src/game/readables.ts",
      "src/game/store.ts",
      "src/game/view.ts",
      "src/game/warden.ts",
      "src/level",
      "src/level/data.ts",
      "src/level/generated.ts",
      "src/level/visibility.ts",
      "src/main.tsx",
      "src/styles.css",
      "src/ui",
      "src/ui/ArrestOverlay.tsx",
      "src/ui/BreakerPanel.tsx",
      "src/ui/CaseFile.tsx",
      "src/ui/Credits.tsx",
      "src/ui/EndScreens.tsx",
      "src/ui/Feeds.tsx",
      "src/ui/Gallery.tsx"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Nixotica/workforest",
    "search_description": "Isolated git worktrees for every piece of work: one tree per repo on a shared branch, with warm build caches. Rust CLI + agent skill.",
    "created_at": "2026-10-02T06:40:57Z",
    "id": "R_kgDOU4VSeA",
    "meta": {
      "id": 1401246328,
      "node_id": "R_kgDOU4VSeA",
      "name": "workforest",
      "full_name": "Nixotica/workforest",
      "private": false,
      "owner": {
        "login": "Nixotica",
        "id": 107381993,
        "node_id": "U_kgDOBmaE6Q",
        "avatar_url": "https://avatars.githubusercontent.com/u/107381993?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Nixotica",
        "html_url": "https://github.com/Nixotica",
        "followers_url": "https://api.github.com/users/Nixotica/followers",
        "following_url": "https://api.github.com/users/Nixotica/following{/other_user}",
        "gists_url": "https://api.github.com/users/Nixotica/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Nixotica/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Nixotica/subscriptions",
        "organizations_url": "https://api.github.com/users/Nixotica/orgs",
        "repos_url": "https://api.github.com/users/Nixotica/repos",
        "events_url": "https://api.github.com/users/Nixotica/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Nixotica/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Nixotica/workforest",
      "description": "Isolated git worktrees for every piece of work: one tree per repo on a shared branch, with warm build caches. Rust CLI + agent skill.",
      "fork": false,
      "url": "https://api.github.com/repos/Nixotica/workforest",
      "forks_url": "https://api.github.com/repos/Nixotica/workforest/forks",
      "keys_url": "https://api.github.com/repos/Nixotica/workforest/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Nixotica/workforest/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Nixotica/workforest/teams",
      "hooks_url": "https://api.github.com/repos/Nixotica/workforest/hooks",
      "issue_events_url": "https://api.github.com/repos/Nixotica/workforest/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Nixotica/workforest/events",
      "assignees_url": "https://api.github.com/repos/Nixotica/workforest/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Nixotica/workforest/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Nixotica/workforest/tags",
      "blobs_url": "https://api.github.com/repos/Nixotica/workforest/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Nixotica/workforest/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Nixotica/workforest/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Nixotica/workforest/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Nixotica/workforest/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Nixotica/workforest/languages",
      "stargazers_url": "https://api.github.com/repos/Nixotica/workforest/stargazers",
      "contributors_url": "https://api.github.com/repos/Nixotica/workforest/contributors",
      "subscribers_url": "https://api.github.com/repos/Nixotica/workforest/subscribers",
      "subscription_url": "https://api.github.com/repos/Nixotica/workforest/subscription",
      "commits_url": "https://api.github.com/repos/Nixotica/workforest/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Nixotica/workforest/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Nixotica/workforest/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Nixotica/workforest/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Nixotica/workforest/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Nixotica/workforest/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Nixotica/workforest/merges",
      "archive_url": "https://api.github.com/repos/Nixotica/workforest/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Nixotica/workforest/downloads",
      "issues_url": "https://api.github.com/repos/Nixotica/workforest/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Nixotica/workforest/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Nixotica/workforest/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Nixotica/workforest/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Nixotica/workforest/labels{/name}",
      "releases_url": "https://api.github.com/repos/Nixotica/workforest/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Nixotica/workforest/deployments",
      "created_at": "2026-10-02T06:40:57Z",
      "updated_at": "2026-10-04T02:50:20Z",
      "pushed_at": "2026-10-04T02:52:52Z",
      "git_url": "git://github.com/Nixotica/workforest.git",
      "ssh_url": "[email protected]:Nixotica/workforest.git",
      "clone_url": "https://github.com/Nixotica/workforest.git",
      "svn_url": "https://github.com/Nixotica/workforest",
      "homepage": null,
      "size": 425,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Rust",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 3,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 3,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# workforest\n\nIsolated git worktrees for every piece of work. A **forest** is a directory\nholding one git worktree (\"tree\") per repo involved in a piece of work, all on\none branch named after the forest. The repos' main checkouts are never touched,\nso several pieces of work, or several coding agents, can be in flight at once.\n\n```sh\nworkforest new auth-migration ~/code/api ~/code/web   # both trees on branch auth-migration\ncd \"$(workforest path auth-migration)\"\nworkforest status                                     # what's dirty, what's ahead of its base\nworkforest burn auth-migration                        # refuses while any work would be lost\n```\n\nA forest with a single tree is normal. Trees are `git worktree`s, so they share\ntheir repo's object store: a tree costs its checked-out files, not a copy of\nthe history. In a large repo, `--sparse` cuts the checkout too:\n`workforest new fix-login ~/code/big --sparse services/auth docs` checks out\nonly those directories, plus the top-level files, as a sparse checkout of the\ntree's own; the main checkout and other trees stay whole, and `status` shows\nwhich trees are sparse.\n\n## Install\n\nworkforest needs `git` on your `PATH`. Releases are rolling: every commit on\n`main` that passes CI is released to the `release` branch, which Nix and Cargo\ninstalls follow. Each new version is also a GitHub release, with prebuilt\nbinaries.\n\nOn Linux (x86_64 or aarch64) or an Apple Silicon Mac, without Nix or Cargo:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/Nixotica/workforest/release/install.sh | sh\n```\n\nIt downloads the latest release's binary (static on Linux), checks it against the\nrelease's `SHA256SUMS`, and installs `workforest` and `wf` into `~/.local/bin`,\nwith shell completions and the agent skill under `~/.local/share`. Run in a\nterminal, it then asks where your repos live (`workforest setup`).\n`WORKFOREST_VERSION` picks a version and `WORKFOREST_PREFIX` another place than\n`~/.local`. Run it again to update.\n\nWith Nix:\n\n```sh\nnix profile add github:Nixotica/workforest/release   # older Nix: nix profile install\n```\n\nor as a flake input, `workforest.url = \"github:Nixotica/workforest/release\";`,\nadding `workforest.packages.${system}.default` to your packages. Update with\n`nix profile upgrade` or `nix flake update workforest`.\n\nWith Home Manager, the flake's module installs the package and can write the\nconfig file, load `wfcd`, link the agent skill and burn landed forests on a\ntimer:\n\n```nix\n# flake inputs: workforest.url = \"github:Nixotica/workforest/release\";\nimports = [ inputs.workforest.homeManagerModules.default ];\n\nprograms.workforest = {\n  enable = true;\n  settings.repos = \"~/code\";        # config.toml, instead of `workforest setup`\n  # installClaudeSkill = true;      # link the skill, if not using the plugin\n  # fire.enable = true;             # `workforest fire --yes` daily (Linux, systemd)\n};\n```\n\n`wfcd` is loaded in each shell Home Manager manages (`enableBashIntegration`\nand its zsh and fish twins, on by default), and `fire.frequency` and\n`fire.flags` adjust the timer.\n\nWith Cargo:\n\n```sh\ncargo install --locked --git https://github.com/Nixotica/workforest --branch release\n```\n\n## The agent skill\n\nworkforest ships a skill that teaches coding agents when to start a forest and\nhow to work in one. The skill doesn't need the CLI installed first: when it's\nmissing, the agent offers to install it.\n\nAs a Claude Code plugin, which follows the rolling releases:\n\n```\n/plugin marketplace add Nixotica/workforest#release\n/plugin install workforest@workforest\n```\n\n`#release` makes the marketplace follow the `release` branch, which only ever\nholds commits that passed CI. Without it, you follow `main`.\n\nThe plugin checks for the CLI whenever a session starts. If the CLI is missing\nor too old, Claude Code says so as soon as the session opens, and Claude offers\nto install it in its first reply. A plugin installed mid-session isn't loaded\nuntil you run `/reload-plugins`, and reloading doesn't count as a session start.\nThe first check comes in your next session, or when you run `/clear`.\n\nClaude Code leaves auto-update off for third-party marketplaces. To receive\neach release automatically, turn it on under `/plugin` → **Marketplaces** →\nworkforest → **Enable auto-update**; otherwise run\n`/plugin marketplace update workforest` to update.\n\nWithout the plugin, link the copy the Nix package installs, so the skill\nupdates along with the CLI:\n\n```sh\nln -s ~/.nix-profile/share/workforest/skills/workforest ~/.claude/skills/workforest\n```\n\nor fetch it from the `release` branch, which takes a re-run to update:\n\n```sh\nmkdir -p ~/.claude/skills/workforest\ncurl -fsSL https://raw.githubusercontent.com/Nixotica/workforest/release/plugin/skills/workforest/SKILL.md \\\n  -o ~/.claude/skills/workforest/SKILL.md\n```\n\nFor claude.ai or other agents, each release has the skill alone as\n`workforest-skill.zip`: a `workforest` folder holding `SKILL.md`, to upload or\nunpack wherever they read skills from.\n\n## Usage\n\n| command | what it does |\n| --- | --- |\n| `workforest new <forest> [repo path...]` | start a forest, optionally planting trees right away |\n| `workforest plant <repo path>...` | add trees to a forest (alias: `add`) |\n| `workforest cut <tree>...` | remove trees from a forest, by name (alias: `remove`) |\n| `workforest burn [forest]` | remove a forest and every tree in it (aliases: `rm`, `delete`) |\n| `workforest fire` | burn every forest whose work has landed; a dry run unless `--yes` |\n| `workforest ls [forest]` | list forests, or the trees in one |\n| `workforest status [forest]` | per-tree branch, clean/dirty/landed, ahead/behind its base, pushed or not |\n| `workforest path [forest]` | print a forest's path |\n| `workforest exec [-f <forest>] [--parallel [N]] -- <command>...` | run a command in every tree |\n| `workforest setup [--repos <dir>...]` | say where your repos live, so that they can be named |\n| `workforest completions <shell>` | print the completion script for bash, zsh or fish |\n| `workforest shell-init <shell>` | print `wfcd`, a function that cds into a forest or one of its trees |\n| `workforest config` | each setting, its value, and where it comes from |\n| `workforest cache status [forest]` | per tree, how much of each build cache is still hardlinked to the main checkout |\n| `workforest cache graft [tree...]` | graft build caches into trees already planted (`--force` replaces them) |\n| `workforest cache drop [tree...]` | delete trees' grafted build caches |\n| `workforest cache paths <repo path>` | the build caches a repo declares, and where each is declared |\n| `workforest cache doctor <repo path>` | test that a repo's build caches are safe to graft |\n\n`wf` is short for `workforest`: the Nix package installs it as a symlink. With\ncargo, add it yourself: `ln -s workforest ~/.cargo/bin/wf`.\n\nInside a forest, commands act on that forest unless told otherwise. Every tree\ngets the branch named after its forest unless you pass `--branch`, and branches\noff `origin/HEAD` (else `main` or `master`) unless you pass `--base`. `cut`\nand `burn` refuse to delete uncommitted changes, or commits that are neither\npushed nor landed on the base, unless you pass `--force`. Work has landed once\neverything its branch changed is on the base, so a regular, squash or rebase\nmerge all count, even after the merged branch is deleted. A squash merge still\ncounts once the base has rewritten lines next to it, as lockfiles see all the\ntime, unless a later commit reverts it. Once the base branch\nitself is gone, as a stacked branch's base is after it merges and the stacked\npull request is retargeted, the repo's default branch (`origin/HEAD`) stands in\nfor it. A base that lives on, such as a release branch, never has a stand-in.\nThey check the base as you last fetched it: fetch with `--prune` after merging,\nthen burn. Run `workforest help <command>` for the details.\n\nForests pile up, and `workforest fire` clears them all at once. It fetches the\nremotes the trees' bases are on, pruning deleted branches, then calls a tree\ndead when `burn` would accept it and its branch has commits of its own that\nhave all landed on its base, or on the default branch standing in for a base\nthat is gone, or when its directory is gone. A tree with uncommitted changes,\nwith commits not on its base, or with nothing committed yet is live, and one\nthat git can't judge, such as one whose base was deleted before its work\nlanded anywhere, is left alone. A forest burns\nwhen every tree in it is dead: `fire` lists each such forest and why, and\n`fire --yes` burns them. `--scorch` also cuts dead trees out of forests that are\nstill live, and `--delete-branches` deletes the dead trees' branches, keeping\nany with commits not on its base. `fire` never removes anything `burn` would\nrefuse, and has no `--force`.\n\nRepos are given as paths, absolute or relative to the current directory:\n`wf new fix-login .` starts a forest for the repo you're in. To name repos\ninstead, tell workforest once where they live:\n\n```sh\nworkforest setup                  # asks, suggesting directories that hold several repos\nworkforest setup --repos ~/code   # or says so without asking; several directories are fine\nwf new fix-login api              # then plants ~/code/api\n```\n\nA name is looked for in each repos directory, and one level further down in\ndirectories that aren't repos themselves, so `nodal-game` finds\n`~/code/nodal/nodal-game`. A name found more than once is an error that asks\nfor a path. Forests live under the forest root, `~/.workforest` unless\n[configured](#configuration) otherwise.\n\n## Running a command in every tree\n\n`workforest exec -- <command>` runs a command in each tree of the forest you're\nin (or the one `-f` names), in order, each tree's output under a\n`=== <tree> ===` header:\n\n```sh\nworkforest exec -- git push -u origin HEAD\nworkforest exec --parallel -- cargo test        # one tree per CPU at a time\nworkforest exec --parallel 2 -- sh -c 'make && make check'\n```\n\nThe command runs as given, not through a shell, so wrap shell syntax in\n`sh -c`. It gets `WORKFOREST_FOREST` and `WORKFOREST_TREE`. Every tree runs even\nafter one fails; then `exec` exits non-zero, listing each tree it failed in and\nwhy: an exit status, a command that couldn't start, or a tree whose directory\nis gone. `--parallel` runs up to N trees at once, one per CPU unless N is given,\nand gathers each tree's output and errors to print whole as the tree finishes,\nso trees never interleave. Running in order stays the default, since builds in\nseveral trees at once compete for CPU and disk.\n\n## Shell integration\n\nCompletion covers both `workforest` and `wf`: subcommands, flags, forest names,\nthe trees of the forest you're in, and repos, as paths or by\n[name](#usage). It asks `workforest` for names as you type, so they're always\ncurrent. The Nix package installs it for bash, zsh and fish. Otherwise, load it\nfrom your shell's startup file:\n\n```sh\nsource <(workforest completions bash)       # ~/.bashrc\nsource <(workforest completions zsh)        # ~/.zshrc, after compinit\nworkforest completions fish | source        # ~/.config/fish/config.fish\n```\n\n`wfcd` cds into a forest, or into one of its trees, and completes both names.\nWith no arguments it goes to the root of the forest you're in. It's a shell\nfunction, so load it at startup too:\n\n```sh\neval \"$(workforest shell-init bash)\"        # or zsh\nworkforest shell-init fish | source         # fish\n\nwfcd auth-migration        # the forest\nwfcd auth-migration api    # one of its trees\n```\n\n## Build caches\n\nA fresh tree has no build output, so its first build would start from cold.\nInstead, `new` and `plant` graft each repo's build cache from its main checkout\ninto the tree. A repo declares its cache directories in `.workforest-cache` at\nits root, committed with it, or in `workforest-cache` in its git common dir\n(usually `.git/workforest-cache`), which is machine-local and overrides the\ncommitted file path by pa",
    "tree_paths": [
      ".claude-plugin",
      ".claude-plugin/marketplace.json",
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".github/workflows/eval.yml",
      ".github/workflows/release.yml",
      ".gitignore",
      "Cargo.lock",
      "Cargo.toml",
      "LICENSE",
      "README.md",
      "ci",
      "ci/smoke.sh",
      "ci/test-hook.mjs",
      "ci/validate-plugin.mjs",
      "examples",
      "examples/graft_bench.rs",
      "flake.lock",
      "flake.nix",
      "install.sh",
      "nix",
      "nix/home-manager.nix",
      "plugin",
      "plugin/.claude-plugin",
      "plugin/.claude-plugin/plugin.json",
      "plugin/evals",
      "plugin/evals/cli-present",
      "plugin/evals/cli-present/case.yaml",
      "plugin/evals/cli-present/scaffold.sh",
      "plugin/evals/missing-cli",
      "plugin/evals/missing-cli/case.yaml",
      "plugin/evals/missing-cli/scaffold.sh",
      "plugin/hooks",
      "plugin/hooks/check-cli.sh",
      "plugin/hooks/hooks.json",
      "plugin/skills",
      "plugin/skills/workforest",
      "plugin/skills/workforest/SKILL.md",
      "src",
      "src/cache",
      "src/cache/cargo.rs",
      "src/cache/clone.rs",
      "src/cache/declare.rs",
      "src/cache/doctor.rs",
      "src/cache/ecosystem.rs",
      "src/cache/glob.rs",
      "src/cache/mod.rs",
      "src/cache/walk.rs",
      "src/cli.rs",
      "src/commands.rs",
      "src/complete.rs",
      "src/config.rs",
      "src/error.rs",
      "src/exec.rs",
      "src/fire.rs",
      "src/forest.rs",
      "src/git.rs",
      "src/main.rs",
      "src/repos.rs",
      "tests",
      "tests/cli",
      "tests/cli/cache.rs",
      "tests/cli/cache",
      "tests/cli/cache/cargo.rs",
      "tests/cli/config.rs",
      "tests/cli/exec.rs",
      "tests/cli/fire.rs",
      "tests/cli/json.rs",
      "tests/cli/main.rs",
      "tests/cli/shells.rs",
      "tests/cli/sparse.rs"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Sohan-150/HACKU-windows-mousebuddy-",
    "search_description": "",
    "created_at": "2026-10-03T11:29:31Z",
    "id": "R_kgDOU6EeAA",
    "meta": {
      "id": 1403067904,
      "node_id": "R_kgDOU6EeAA",
      "name": "HACKU-windows-mousebuddy-",
      "full_name": "Sohan-150/HACKU-windows-mousebuddy-",
      "private": false,
      "owner": {
        "login": "Sohan-150",
        "id": 230475149,
        "node_id": "U_kgDODbzFjQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/230475149?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Sohan-150",
        "html_url": "https://github.com/Sohan-150",
        "followers_url": "https://api.github.com/users/Sohan-150/followers",
        "following_url": "https://api.github.com/users/Sohan-150/following{/other_user}",
        "gists_url": "https://api.github.com/users/Sohan-150/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Sohan-150/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Sohan-150/subscriptions",
        "organizations_url": "https://api.github.com/users/Sohan-150/orgs",
        "repos_url": "https://api.github.com/users/Sohan-150/repos",
        "events_url": "https://api.github.com/users/Sohan-150/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Sohan-150/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Sohan-150/HACKU-windows-mousebuddy-",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-",
      "forks_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/forks",
      "keys_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/teams",
      "hooks_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/hooks",
      "issue_events_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/events",
      "assignees_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/tags",
      "blobs_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/languages",
      "stargazers_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/stargazers",
      "contributors_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/contributors",
      "subscribers_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/subscribers",
      "subscription_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/subscription",
      "commits_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/merges",
      "archive_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/downloads",
      "issues_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/labels{/name}",
      "releases_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Sohan-150/HACKU-windows-mousebuddy-/deployments",
      "created_at": "2026-10-03T11:29:31Z",
      "updated_at": "2026-10-04T01:22:07Z",
      "pushed_at": "2026-10-04T01:22:02Z",
      "git_url": "git://github.com/Sohan-150/HACKU-windows-mousebuddy-.git",
      "ssh_url": "[email protected]:Sohan-150/HACKU-windows-mousebuddy-.git",
      "clone_url": "https://github.com/Sohan-150/HACKU-windows-mousebuddy-.git",
      "svn_url": "https://github.com/Sohan-150/HACKU-windows-mousebuddy-",
      "homepage": null,
      "size": 9419,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Backstage for Windows\n\nA desktop assistant that does what you ask, behind your windows: the Windows twin of the team's Mac version (Backstage),\nwith its look, colours and behaviour. Type an instruction, or **hold Ctrl+Win and say it** (tap the keys to type it\ninstead). Coloured agents work in their own browser windows (a throwaway profile), in desktop apps through UI\nAutomation, or directly on files in your user folder, each with a little widget in the corner of your screen. **Ask about\nanything on your screen** (\"what is this?\", \"how do I make a pivot table?\", \"circle the zebra\") and it answers out loud\nwhile it draws on top of your screen; \"how do I...\" becomes a short lesson, one step at a time.\n\nEvery task ends **done, with the answer and the evidence it was read from**, or **failed, with a reason**.\n\n- **TypeSafe jev** decides almost every step: a cheap, fast classifier (about $0.0003 per task above). With rules it also\n  plans the common tasks, so the agent runs on the jev key alone.\n- **Claude** (optional) plans open-ended tasks, takes over steps jev is unsure about, writes text nobody planned, checks\n  results, and runs explain mode (a picture of your screen plus its controls). Default model `claude-sonnet-5-5`;\n  `claude-haiku-4-5` is cheaper (`CLAUDE_MODEL` in `.env`).\n- **ElevenLabs** (optional) speaks the answers in a natural voice (free plan: 10,000 credits a month); otherwise the\n  Windows voice does.\n\nMeasured runs are in [evidence/live-jev-only.md](evidence/live-jev-only.md). Windows and Mac notes are in\n[../BUILD-WINDOWS-AND-MAC.md](../BUILD-WINDOWS-AND-MAC.md).\n\n## What it can do (jev only, tested live)\n\n| Ask | What happens |\n|---|---|\n| \"When was HKU founded?\", \"what's the capital of Australia\" | web search, the answer line read off the page |\n| \"What's the weather in Tokyo\" | current weather (wttr.in) |\n| \"Find flights from Hong Kong to Tokyo on 20 November\" | Google Flights results; cheapest top option read out. Never books or pays |\n| \"Directions from Central to the airport\", \"how long to walk from HKU to Kennedy Town\", \"... by public transport\" | Google Maps route and time, in the travel mode asked for (driving, walking, transit, cycling) |\n| \"Check Sony stock price\", \"what's Nvidia's share price\" | the quote page opened straight on that symbol (Google Finance) |\n| \"Message Mohit hi on WhatsApp\", \"reply to Sam saying on my way\" | the chat app: searches for the contact if it isn't on screen, puts the name in the search box and the text in the message box, sends only when asked |\n| \"Play lofi beats on YouTube\", \"search GitHub for bun\" | the site's own search page, then the first match |\n| \"What is 15% of 80\", \"calculate 128.5 times 12\" | Windows Calculator, result checked in code |\n| \"Write \\\"call the dentist\\\" in Notepad\", then \"write that in Notepad\" | Notepad, text read back in code; follow-ups use the last answer |\n| \"Organise my Downloads\", \"convert the PNGs on my Desktop to jpg\", \"how many PDFs in Documents\" | files on disk: preview, approval, check, **Undo** |\n| \"Find the weather in Tokyo then write it in Notepad\" | multi-step: up to 5 parts, each checked |\n| \"Find flights to Botswana and at the same time play Drake on Spotify\" | parts that don't need each other run at once (two browser windows, two desktop apps); one that fails doesn't stop the others |\n| \"I am flying to Tokyo tomorrow. In Maps, how long ... to the airport, in Weather check the weather in Tokyo, in Stocks check Sony stock price, and make a word doc with a 3 day itinerary\" | one part per app (the Mac version's showcase); the first sentence asks for nothing, so it is context, not a part; with 3+ agents each spoken result is cut to its gist |\n| \"Launch Fortnite from Epic Games\" | started with the launcher's own link (Steam too); an update or sign-in it needs is reported |\n| \"Open my coding folder and tell me what is inside\" | found by name, opened in File Explorer, its folders and files listed |\n| Point + \"what is this?\" / \"where is settings?\" / \"read this\" | explain mode: the control under the pointer is named (and ringed for \"where is\") |\n| \"Where is my Year 1 folder?\", \"open my tax return\" | searched on disk by name (\"one\" = \"1\", case and spaces ignored); shown in File Explorer |\n\nWith a Claude key it also composes text (\"write a thank-you note\"), takes on open-ended web tasks (search, compare,\ngo as far as the page before payment: tested with a real flight to Taipei), and explain mode answers anything about\nyour screen: it draws rings, boxes, circles, arrows, underlines and labels on top of it, and teaches \"how do I ...\" as a\nlesson (one action per step; say \"next\" or press Alt+Right). Tested live with Sonnet 5.5 and Haiku 4.5; see the\nevidence file.\n\n## Safety, in code (whatever a model decides)\n\n- Clicks that look irreversible (send, pay, book, submit, delete, save, accept; \"accept\" also in other languages) wait for your\n  approval in the panel, or a spoken \"yes\" / \"no\". Cookie banners get \"Reject all\" automatically.\n- Never types into password, card or ID fields; never completes a purchase or booking.\n- Files: only inside your user folder, never deleted, never overwritten (`a (1).txt`), every move undoable.\n- Existing text in an app is never replaced silently: it opens a new tab, or asks.\n- Messages: a message box is filled, and Enter or Send pressed in it, only when the request asks to send something;\n  the name of who to reach never goes into a message box (from the Mac version's WhatsApp runs).\n- Explain mode is read-only: it never clicks or types. The overlay (buddy, drawings, widgets) is click-through and never\n  takes focus, except the typing box you open and the widgets, which you can drag. Your mouse is never moved.\n- The fast lane acts only on the exact control the agent saw (same app, control type, name and position within 3\n  pixels), never types inside web pages, and reports typing as done only when the field really changed; anything else\n  goes through Cua. It never acts after it has been waiting, so a click is never done twice.\n- Agents work behind your windows. When an app ignores input sent in the background (the web page inside WhatsApp or\n  Discord, a chat row that only opens on a real click, a game launcher), its window comes to the front for a moment,\n  the click or keys go in for real (the pointer moves there and straight back), and your window goes back in front.\n- Say \"stop\" (or press Stop) to abort at the next step.\n\n## Quick start: Windows\n\nRun from a normal PowerShell, never as administrator.\n\n1. Install Bun (`npm install -g bun`) and Git.\n2. Install Cua Driver 0.32.0 for your user, without the autostart task:\n   ```powershell\n   Invoke-WebRequest -Uri https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.ps1 -OutFile install.ps1\n   $env:CUA_DRIVER_RS_VERSION = \"0.32.0\"; powershell -ExecutionPolicy Bypass -File .\\install.ps1 -NoAutoStart\n   cua-driver telemetry disable\n   ```\n3. In this folder: `bun install`, copy `.env.example` to `.env`, put in `TYPESAFE_API_KEY` (and `ANTHROPIC_API_KEY` if you\n   have one). Set `REGION` / `CURRENCY` (e.g. `HK` / `HKD`) so maps and flights are local.\n   For the natural voice (optional): sign up at [elevenlabs.io](https://elevenlabs.io) (the free plan gives 10,000\n   credits a month), create a key at <https://elevenlabs.io/app/settings/api-keys> with Text to Speech access, and put it\n   in `.env` as `ELEVENLABS_API_KEY=...`. The panel shows the credits left; below 300 it switches to the Windows voice.\n4. Voice (optional; typing always works). Needs [uv](https://docs.astral.sh/uv/):\n   ```powershell\n   uv venv --python 3.12 native\\win\\.venv\n   uv pip install --python native\\win\\.venv\\Scripts\\python.exe -r native\\win\\requirements.txt\n   native\\win\\.venv\\Scripts\\python.exe native\\win\\voice.py --check\n   ```\n   The first start downloads the English `small.en` speech model (about 480 MB; it uses `small` if that can't be had).\n   Settings > Privacy > Microphone must allow desktop apps.\n5. `powershell -ExecutionPolicy Bypass -File scripts\\start.ps1` starts the daemon, runs the preflight and opens the panel\n   at http://127.0.0.1:3000/. Or step by step: `scripts\\daemon.ps1`, `bun run preflight`, `bun start`. The daemon is\n   started with the Mac version's speed setting (300 ms window-change wait); if it was already running,\n   `scripts\\daemon.ps1 -Restart` restarts it with it.\n\nThe agent's own Chrome (or Edge) window opens at start-up and **takes the foreground once**; after that it works behind\nwhatever you have in front (0 of 2,075 polls with it in front, measured).\n\n## Quick start: macOS (written, not yet run)\n\nCua Driver 0.32.0 with Accessibility and Screen Recording granted; `sh scripts/daemon.sh`; `bun install`; `.env`;\nvoice helpers as in [native/mac/README.md](native/mac/README.md) (Right-Option); then `sh scripts/start.sh`.\n\n## Using it\n\n- **One hotkey for everything.** Hold Ctrl+Win, point, talk, let go (`PTT_KEY` changes the keys: `ctrl_alt`,\n  `ctrl_shift`, `right_ctrl`, `f8`...; the Fn key never reaches Windows). **Tap** the keys instead to get a typing box\n  next to the cursor. A job (\"open Calculator and work out 128 times 37\") goes to the agents: \"On it.\", then the result\n  is said when they finish. A question about the screen goes to explain mode. Clear cases are told apart in code, an\n  unclear one by jev; when in doubt it explains, because explaining never changes anything (`src/router.ts`).\n  \"Stop\" stops the agents. `VOICE_MODE=draft` puts a spoken job in the panel's box instead of running it.\n- **Explain mode.** The screen under the cursor is captured the moment the keys go down (the overlay's own windows are\n  never in the picture). Claude gets the picture plus the controls on screen with their exact positions, so the drawings\n  land on the real button, not a guess. Plain questions get one answer that fades; \"how do I...\" gets a lesson: Alt+Right\n  or \"next\" for the next step, Alt+Left or \"back\", \"repeat\". Esc stops the voice; Esc again clears the drawings. Without\n  Claude, jev names what is under the pointer and rings what \"where is ...\" asks for. Typed in the panel, screen\n  questions are about the window you were using before the panel; or type one, press **Point & ask**, and point within\n  3 seconds.\n- **The buddy and the widgets.** A small buddy follows your cursor and shows listening / thinking / the answer, then\n  flies to what it is explaining; near a screen edge its answer moves so none of it is cut off. While agents work, each\n  has a widget in the bottom-right corner (drag them anywhere; its × hides that widget, the agent keeps working):\n  its colour, its app, what it is doing now, a running clock, its result, and a **live preview of the window it works\n  in** (about once a second, even when that window is behind others; a grid of 1-3 columns for up to 9 agents; the\n  tray menu turns previews off). Parts waiting for a browser window or app say so. Every press or text insert flashes a ring in the agent's colour where it happened. The tray icon has Ask,\n  Clear drawings, Stop the agents, Hide the buddy when idle, and Quit (`OVERLAY=off` turns the overlay off).\n- **Voice.** Answers are spoken with ElevenLabs when `ELEVENLABS_API_KEY` is set (the first sentence is fetched on its\n  own so speech starts in about half a second; the next lesson step is fetched while you listen), else with the Windows\n  voice. Any failure, a bad key or low credits falls back to the Windows voice.\n- **Several tasks at once**: a new task starts right away. Tasks share the computer: two browser windows (the second\n  opens the first time two web parts run at once), two hands for desktop apps (Red and Purple), Word and your files.\n  Parts that need different things run at the same time; two parts in the same app, or a third web part, wait their\n  turn (their widgets say so). Each running task has its own **Stop**.\n- **Fast lane.** Presses and text in desktop apps go straight through U",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "README.md",
      "bun.lock",
      "evidence",
      "evidence/claims-build",
      "evidence/claims-build/arms-windows-2026-10-03-06-06-17.csv",
      "evidence/claims-build/arms-windows.md",
      "evidence/claims-build/gates-windows.md",
      "evidence/live-jev-only.md",
      "evidence/smoke-windows.md",
      "fixtures",
      "fixtures/audio",
      "fixtures/audio/en-claim.wav",
      "fixtures/win-app",
      "fixtures/win-app/calculator.json",
      "fixtures/win-browser",
      "fixtures/win-browser/01-empty-form.json",
      "fixtures/win-browser/02-filled-form.json",
      "fixtures/win-browser/03-success-page.json",
      "native",
      "native/mac",
      "native/mac/Info.plist",
      "native/mac/README.md",
      "native/mac/ptt-helper.swift",
      "native/mac/stt.swift",
      "native/win",
      "native/win/fastlane.ps1",
      "native/win/overlay.ps1",
      "native/win/requirements.txt",
      "native/win/voice.py",
      "node_modules",
      "node_modules/.bin",
      "node_modules/.bin/anthropic-ai-sdk.bunx",
      "node_modules/.bin/anthropic-ai-sdk.exe",
      "node_modules/.bin/tsc.bunx",
      "node_modules/.bin/tsc.exe",
      "node_modules/.bin/tsserver.bunx",
      "node_modules/.bin/tsserver.exe",
      "node_modules/@anthropic-ai",
      "node_modules/@anthropic-ai/sdk",
      "node_modules/@anthropic-ai/sdk/.github",
      "node_modules/@anthropic-ai/sdk/.github/logo.svg",
      "node_modules/@anthropic-ai/sdk/CHANGELOG.md",
      "node_modules/@anthropic-ai/sdk/LICENSE",
      "node_modules/@anthropic-ai/sdk/README.md",
      "node_modules/@anthropic-ai/sdk/_vendor",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs",
      "node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map",
      "node_modules/@anthropic-ai/sdk/api-promise.d.mts",
      "node_modules/@anthropic-ai/sdk/api-promise.d.mts.map",
      "node_modules/@anthropic-ai/sdk/api-promise.d.ts",
      "node_modules/@anthropic-ai/sdk/api-promise.d.ts.map",
      "node_modules/@anthropic-ai/sdk/api-promise.js",
      "node_modules/@anthropic-ai/sdk/api-promise.js.map",
      "node_modules/@anthropic-ai/sdk/api-promise.mjs",
      "node_modules/@anthropic-ai/sdk/api-promise.mjs.map",
      "node_modules/@anthropic-ai/sdk/bin",
      "node_modules/@anthropic-ai/sdk/bin/cli",
      "node_modules/@anthropic-ai/sdk/bin/migration-config.json",
      "node_modules/@anthropic-ai/sdk/client.d.mts",
      "node_modules/@anthropic-ai/sdk/client.d.mts.map",
      "node_modules/@anthropic-ai/sdk/client.d.ts",
      "node_modules/@anthropic-ai/sdk/client.d.ts.map",
      "node_modules/@anthropic-ai/sdk/client.js",
      "node_modules/@anthropic-ai/sdk/client.js.map",
      "node_modules/@anthropic-ai/sdk/client.mjs",
      "node_modules/@anthropic-ai/sdk/client.mjs.map",
      "node_modules/@anthropic-ai/sdk/core",
      "node_modules/@anthropic-ai/sdk/core/api-promise.d.mts",
      "node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/api-promise.d.ts",
      "node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/api-promise.js",
      "node_modules/@anthropic-ai/sdk/core/api-promise.js.map",
      "node_modules/@anthropic-ai/sdk/core/api-promise.mjs",
      "node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/api.d.mts",
      "node_modules/@anthropic-ai/sdk/core/api.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/api.d.ts",
      "node_modules/@anthropic-ai/sdk/core/api.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/api.js",
      "node_modules/@anthropic-ai/sdk/core/api.js.map",
      "node_modules/@anthropic-ai/sdk/core/api.mjs",
      "node_modules/@anthropic-ai/sdk/core/api.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/credentials.d.mts",
      "node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/credentials.d.ts",
      "node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/credentials.js",
      "node_modules/@anthropic-ai/sdk/core/credentials.js.map",
      "node_modules/@anthropic-ai/sdk/core/credentials.mjs",
      "node_modules/@anthropic-ai/sdk/core/credentials.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/error.d.mts",
      "node_modules/@anthropic-ai/sdk/core/error.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/error.d.ts",
      "node_modules/@anthropic-ai/sdk/core/error.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/error.js",
      "node_modules/@anthropic-ai/sdk/core/error.js.map",
      "node_modules/@anthropic-ai/sdk/core/error.mjs",
      "node_modules/@anthropic-ai/sdk/core/error.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/middleware.d.mts",
      "node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/middleware.d.ts",
      "node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/middleware.js",
      "node_modules/@anthropic-ai/sdk/core/middleware.js.map",
      "node_modules/@anthropic-ai/sdk/core/middleware.mjs",
      "node_modules/@anthropic-ai/sdk/core/middleware.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/pagination.d.mts",
      "node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/pagination.d.ts",
      "node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/pagination.js",
      "node_modules/@anthropic-ai/sdk/core/pagination.js.map",
      "node_modules/@anthropic-ai/sdk/core/pagination.mjs",
      "node_modules/@anthropic-ai/sdk/core/pagination.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/resource.d.mts",
      "node_modules/@anthropic-ai/sdk/core/resource.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/resource.d.ts",
      "node_modules/@anthropic-ai/sdk/core/resource.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/resource.js",
      "node_modules/@anthropic-ai/sdk/core/resource.js.map",
      "node_modules/@anthropic-ai/sdk/core/resource.mjs",
      "node_modules/@anthropic-ai/sdk/core/resource.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/streaming.d.mts",
      "node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/streaming.d.ts",
      "node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/streaming.js",
      "node_modules/@anthropic-ai/sdk/core/streaming.js.map",
      "node_modules/@anthropic-ai/sdk/core/streaming.mjs",
      "node_modules/@anthropic-ai/sdk/core/streaming.mjs.map",
      "node_modules/@anthropic-ai/sdk/core/uploads.d.mts",
      "node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map",
      "node_modules/@anthropic-ai/sdk/core/uploads.d.ts",
      "node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map",
      "node_modules/@anthropic-ai/sdk/core/uploads.js",
      "node_modules/@anthropic-ai/sdk/core/uploads.js.map",
      "node_modules/@anthropic-ai/sdk/core/uploads.mjs",
      "node_modules/@anthropic-ai/sdk/core/uploads.mjs.map",
      "node_modules/@anthropic-ai/sdk/error.d.mts",
      "node_modules/@anthropic-ai/sdk/error.d.mts.map",
      "node_modules/@anthropic-ai/sdk/error.d.ts",
      "node_modules/@anthropic-ai/sdk/error.d.ts.map",
      "node_modules/@anthropic-ai/sdk/error.js",
      "node_modules/@anthropic-ai/sdk/error.js.map",
      "node_modules/@anthropic-ai/sdk/error.mjs",
      "node_modules/@anthropic-ai/sdk/error.mjs.map",
      "node_modules/@anthropic-ai/sdk/helpers",
      "node_modules/@anthropic-ai/sdk/helpers/beta",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.js",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.js.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs",
      "node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs",
      "node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js",
      "node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map"
    ],
    "tree_truncated": false
  },
  {
    "repo": "NagelDylan/Rigged",
    "search_description": "",
    "created_at": "2026-10-03T21:00:38Z",
    "id": "R_kgDOU6m-XA",
    "meta": {
      "id": 1403633244,
      "node_id": "R_kgDOU6m-XA",
      "name": "Rigged",
      "full_name": "NagelDylan/Rigged",
      "private": false,
      "owner": {
        "login": "NagelDylan",
        "id": 140680192,
        "node_id": "U_kgDOCGKcAA",
        "avatar_url": "https://avatars.githubusercontent.com/u/140680192?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/NagelDylan",
        "html_url": "https://github.com/NagelDylan",
        "followers_url": "https://api.github.com/users/NagelDylan/followers",
        "following_url": "https://api.github.com/users/NagelDylan/following{/other_user}",
        "gists_url": "https://api.github.com/users/NagelDylan/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/NagelDylan/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/NagelDylan/subscriptions",
        "organizations_url": "https://api.github.com/users/NagelDylan/orgs",
        "repos_url": "https://api.github.com/users/NagelDylan/repos",
        "events_url": "https://api.github.com/users/NagelDylan/events{/privacy}",
        "received_events_url": "https://api.github.com/users/NagelDylan/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/NagelDylan/Rigged",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/NagelDylan/Rigged",
      "forks_url": "https://api.github.com/repos/NagelDylan/Rigged/forks",
      "keys_url": "https://api.github.com/repos/NagelDylan/Rigged/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/NagelDylan/Rigged/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/NagelDylan/Rigged/teams",
      "hooks_url": "https://api.github.com/repos/NagelDylan/Rigged/hooks",
      "issue_events_url": "https://api.github.com/repos/NagelDylan/Rigged/issues/events{/number}",
      "events_url": "https://api.github.com/repos/NagelDylan/Rigged/events",
      "assignees_url": "https://api.github.com/repos/NagelDylan/Rigged/assignees{/user}",
      "branches_url": "https://api.github.com/repos/NagelDylan/Rigged/branches{/branch}",
      "tags_url": "https://api.github.com/repos/NagelDylan/Rigged/tags",
      "blobs_url": "https://api.github.com/repos/NagelDylan/Rigged/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/NagelDylan/Rigged/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/NagelDylan/Rigged/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/NagelDylan/Rigged/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/NagelDylan/Rigged/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/NagelDylan/Rigged/languages",
      "stargazers_url": "https://api.github.com/repos/NagelDylan/Rigged/stargazers",
      "contributors_url": "https://api.github.com/repos/NagelDylan/Rigged/contributors",
      "subscribers_url": "https://api.github.com/repos/NagelDylan/Rigged/subscribers",
      "subscription_url": "https://api.github.com/repos/NagelDylan/Rigged/subscription",
      "commits_url": "https://api.github.com/repos/NagelDylan/Rigged/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/NagelDylan/Rigged/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/NagelDylan/Rigged/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/NagelDylan/Rigged/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/NagelDylan/Rigged/contents/{+path}",
      "compare_url": "https://api.github.com/repos/NagelDylan/Rigged/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/NagelDylan/Rigged/merges",
      "archive_url": "https://api.github.com/repos/NagelDylan/Rigged/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/NagelDylan/Rigged/downloads",
      "issues_url": "https://api.github.com/repos/NagelDylan/Rigged/issues{/number}",
      "pulls_url": "https://api.github.com/repos/NagelDylan/Rigged/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/NagelDylan/Rigged/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/NagelDylan/Rigged/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/NagelDylan/Rigged/labels{/name}",
      "releases_url": "https://api.github.com/repos/NagelDylan/Rigged/releases{/id}",
      "deployments_url": "https://api.github.com/repos/NagelDylan/Rigged/deployments",
      "created_at": "2026-10-03T21:00:38Z",
      "updated_at": "2026-10-03T22:34:41Z",
      "pushed_at": "2026-10-03T22:34:36Z",
      "git_url": "git://github.com/NagelDylan/Rigged.git",
      "ssh_url": "[email protected]:NagelDylan/Rigged.git",
      "clone_url": "https://github.com/NagelDylan/Rigged.git",
      "svn_url": "https://github.com/NagelDylan/Rigged",
      "homepage": null,
      "size": 1045,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# RIGGED\n\n**You control the bar. RIG controls everything else.**\n\nRIGGED is a desktop browser physics arcade game built around the two-motor bar mechanic of an old Ice Cold Beer cabinet. You raise and lower the left and right ends of a steel bar to roll a ball up through five strangely shaped chambers, past dozens of holes, into the exit. The cabinet itself is your opponent. **RIG**, played by Claude, doesn't control a character. It controls the machine: it slides holes, shoves the ball, crushes walls, magnetises holes and jams your motors. It watches how you play, forms falsifiable hypotheses about you, seals a prediction before it acts, checks whether it was right, and changes its mind when you adapt. The final chamber, **MODEL**, is built from what it learned: holes are punched where your ball habitually rested. RIG also remembers you next time.\n\n![RIGGED: the MODEL chamber, with RIG's terminal on the right](docs/screenshot-model.png)\n\n![Agent View: player model, RIG's current hypothesis, ledger and decision log](docs/screenshot-agent-view.png)\n\n## Play\n\n```bash\ncp .env.example .env        # optional: add ANTHROPIC_API_KEY for the live Claude RIG\nnpm install\nnpm run dev                 # → http://localhost:5173\n```\n\nYou need Node ≥ 20. The SQLite database (`data/rigged.db`) is created and migrated automatically the first time you start the server.\n\n| Key | Action |\n|---|---|\n| `W` / `S` | raise / lower the **left** end of the bar |\n| `↑` / `↓` | raise / lower the **right** end |\n| `D` | **Agent View**: RIG's player model, hypotheses, decisions, and the director's rulings |\n| `M` | mute |\n| `Esc` | pause (restart is in the pause menu) |\n\nThe ball rolls toward the lower end of the bar. Avoid every hole except the one marked **EXIT**, which has a rotating segmented ring, chevrons and a stamp. Each chamber you clear is a checkpoint, and dying only resets the current chamber.\n\n### Live RIG vs local RIG\n\n* **With `ANTHROPIC_API_KEY`** (in `.env`, read server-side only), RIG is Claude.\n  * `claude-sonnet-5-5` makes the in-play tactical decisions. These calls are latency-sensitive: about 3 s, against about 5 s for Opus 5.5 at the same effort.\n  * `claude-opus-5-5` plans the final MODEL chamber and writes the end-of-run memory. Those calls happen while the game keeps playing, so their latency is hidden.\n  * Both models can be overridden with `RIG_MODEL` and `RIG_PLANNER_MODEL`.\n* **Without a key**, or with `RIG_MODE=local`, a deterministic **local RIG** plays instead. It follows the same observe → hypothesize → act → predict → update loop and uses the same schema and validators. The UI labels it `LOCAL`. If a live call fails (timeout, rate limit, billing, malformed output), the server falls back to the local RIG for that decision, and Agent View shows why.\n\nThe key never reaches the browser. Every Anthropic call goes through `POST /api/rig/decide`.\n\n## How it works\n\n```\n keyboard ─▶ ENGINE (deterministic, 120 Hz, src/engine/game.ts)\n               │  ball / bar physics, holes, effects, death, checkpoints\n               ▼\n          PLAYER MODEL (src/engine/playerModel.ts)\n               │  lane bias (+ recent window), wall parking, panic direction,\n               │  reaction time, corrections, motor share, style, ability record\n               ▼\n          DIRECTOR (src/agent/director.ts) ── decides WHEN to ask RIG (events, not frames)\n               │  compressed observation (~2 KB JSON)\n               ▼\n          RIG  ── server: Claude (structured JSON output) or the local RIG\n               │  { observation, hypothesis, intent, strategy, action, prediction, taunt, nextChamber }\n               ▼\n          VALIDATOR (src/agent/validate.ts) ── schema, clamps, legal abilities, grounded taunts\n               ▼\n          FAIRNESS DIRECTOR (src/agent/fairness.ts) ── cooldowns, telegraph floors, pressure budget,\n               │                                       relief after deaths, repetition veto, staleness\n               ▼\n          ENGINE executes the order deterministically (telegraph → active → release)\n               ▼\n          OUTCOME EVALUATOR (src/agent/outcome.ts) ── grades RIG's sealed prediction\n               └──────────────▶ SUPPORTED / WEAKENED / TRIVIAL / VOID ─▶ next observation\n```\n\n**The LLM is never in the real-time loop.** The game runs at 120 Hz on its own. A decision takes about 3 s, during which the machine keeps running (\"RIG IS THINKING. THE MACHINE IS NOT WAITING.\"). A response that arrives after the ball has died or the chamber has changed is marked `STALE`: its action is dropped, and only its belief update is kept.\n\n### How RIG decides\n\nEvery call follows **observe → hypothesize → act → predict → update** ([`prompts/rig-system.md`](prompts/rig-system.md)):\n\n1. **Observe.** RIG receives a compact observation, never raw frames:\n   * the player-model metrics, each with a value, a confidence and a sample count;\n   * the last 8 events;\n   * the outcome of its previous prediction;\n   * its hypothesis ledger, including beliefs it has already abandoned;\n   * the director's pressure budget and the abilities currently allowed;\n   * the memory summary from earlier runs.\n2. **Hypothesize.** RIG keeps, revises or abandons one claim about one model field, for example \"Parks on the right wall; a crush there forces a mistake\".\n3. **Act.** RIG picks one legal ability, or `WAIT`, with side, intensity, telegraph length and a **trigger**:\n   * `now`;\n   * `ball_enters` a lane;\n   * `progress` past a height.\n\n   A trigger lets RIG *pre-arm* a punishment for a move it predicts, which hides the model's latency.\n4. **Predict.** RIG commits to a falsifiable prediction, for example \"you flee right within 1.8 s\" or \"you end up back in the right lane\", together with its own probability and a naive baseline. The terminal shows `PREDICTION SEALED #A3F9-02C1` and later reveals `SEALED 4.1s AGO: YOU FLEE RIGHT — CORRECT`.\n5. **Update.** A deterministic evaluator grades the prediction. A prediction that only restates a habit the player already shows more than 80% of the time is graded **TRIVIAL**; this baseline comes from the player's own history, not from RIG's self-report. The verdict goes into the next call. Two WEAKENED verdicts usually get a hypothesis abandoned, and the change shows up out loud and in the ledger.\n\n**When RIG is called** (about 15–30 calls per run, one in flight at a time, at least 3.5 s apart, at most 8 per chamber):\n* the first read in calibration, once a strong enough signal exists (usually 8–15 s in);\n* a prediction resolving, or a contradiction;\n* a death or a chamber start;\n* a confidence threshold crossing;\n* 12 s of idle;\n* planning the next chamber, which RIG picks to test its least-certain strong belief;\n* the final MODEL plan;\n* the end of the run.\n\nWhile a prediction window is open, routine triggers are held so RIG's experiment isn't interrupted.\n\n### The machine's vocabulary\n\n| Ability | What happens | Exploits |\n|---|---|---|\n| **SHIFT** | A hole turns green and jitters, then slides into a lane ahead of the ball. The slide stops if it would land on the ball, and the chamber must stay solvable (flood-fill check). | lane bias |\n| **PULSE** | Chevrons march along the rails, then a shove crosses the chamber. | panic direction, parked players |\n| **CRUSH** | A side wall's rivets turn green, then the wall presses in. It never squeezes the gap below 7 ball radii. | wall parking |\n| **MAGNET** | A spiral of particles forms, then a hole pulls the ball sideways. | over-steering, aggressive play |\n| **JAM** | Sparks fly from a motor housing, then that motor runs at reduced speed (chamber 4+, once per chamber). | motor habit |\n\nEvery ability has a telegraph floor of 0.95–1.2 s and a cooldown, and its result is logged. Green on anything means RIG is touching it. PULSE and MAGNET wait up to 3 s for *leverage*, meaning a hole actually lying in the direction they push. RIG decides what, where and why; the executor decides the moment.\n\n### Fairness director\n\nThe LLM is never trusted to decide what is fair. The deterministic director enforces:\n* one hazard at a time and a global gap of 3.2–5 s between attacks;\n* a 9 s cooldown per ability;\n* spawn protection of 2.5 s after every reset;\n* telegraph floors, raised by 250 ms if the player's measured reactions are slow;\n* intensity caps;\n* **relief**: after 2 deaths in a chamber, intensity is capped at 2 and telegraphs get longer; after 3, intensity 1 and longer gaps; after 5, RIG is forced to WAIT for 12 s;\n* **escalation** to full intensity after two clean chambers;\n* a veto on the 4th identical attack;\n* a calibration chamber that allows one gentle probe.\n\nVetoes are shown in Agent View (`DIRECTOR: VETOED: …`). Chamber geometry comes from authored templates with parameters (pressure side, density, exit side), and every build is flood-filled for solvability. RIG can choose templates, but it can't author geometry.\n\n### Chambers\n\n1. **CALIBRATION**: generous, and RIG mostly watches.\n2. **Middle chambers.** RIG picks three of FUNNEL, SPLITTER, EYE, HOURGLASS and TOWER, choosing whichever tests its least-certain strong belief, and says why. The exit always sits on your weaker side.\n3. **MODEL**: built from the final plan.\n   * a trap lane that looks comfortable to you;\n   * holes punched at your habitual resting spots;\n   * the exit on your weak side;\n   * RIG's two most trusted abilities.\n\n### Persistence\n\nThe game uses SQLite through `better-sqlite3` (`server/store.ts`), with `user_version` migrations that run automatically.\n\n* **Tables:** `players` (anonymous id plus aggregated memory JSON), `runs`, `decisions` (every RIG decision with its source, latency and repairs) and `events` (significant events only, never frames).\n* **What carries over between runs:** lane bias as an exponential moving average; panic and wall-parking counts; reaction time; per-ability kill and evade record; a histogram of resting spots; deaths by chamber; and up to 6 memory notes written by RIG.\n* **Next run:** RIG starts with this memory as a *prior*. It says \"I remember you.\" and gets the summary in every observation.\n* **No fake memory:** the memory summary is `null` until a run has actually finished.\n\nIf SQLite can't open, the server falls back to an in-memory store. The `Store` interface is small enough that a libSQL/Turso adapter would be a drop-in.\n\n## Tests\n\n```bash\nnpm test            # vitest: 100+ unit/integration tests, no network\nnpm run test:e2e    # Playwright: title → play → agent view → full autopilot run → memory on reload\nnpm run sim         # headless agent evaluation: bot profiles vs the local RIG\nnpx tsx scripts/chamber-check.ts     # template × bot-profile clear-time table\nnpx tsx scripts/human-sim.ts all     # human-like bots (reaction delay, key quantisation)\n```\n\nThe unit and integration tests cover:\n* physics invariants and determinism;\n* death, reset and checkpoints;\n* every ability's fairness constraints;\n* player-model separation (left vs right parkers, panic, corrections);\n* prediction grading;\n* fairness rules;\n* director staleness;\n* the validator (clamps, illegal abilities, profanity, taunt grounding);\n* the live adapter with a faked SDK (timeouts, malformed JSON, billing errors, beta rejection);\n* the SQLite lifecycle and memory merge;\n* chamber solvability, with a bot clearing every template.\n\nAutomated tests always use the local RIG, so they never spend API credits.\n\nThe QA hooks are `window.__rigged` in the browser (`.setAutopilot('right'|'left'|'cautious'|'aggressive'|'adapter')`) and the URL parameters `?seed=N` and `?speed=N`.\n\n## Deployment\n\nThe app is a single Node process: the server serves the API and the built client, and stores SQLite on disk. It needs a host with a persistent volume, not serverless.\n\n```bash\nnpm run build && npm start             # production on $PORT (default 5173)\ndocker build -t rigged . && docker run -p 8080:8080 -v rigged-data:/app/data -e ANTHROPIC_API_KEY=… rigged\n```\n\nOn ",
    "tree_paths": [
      ".dockerignore",
      ".env.example",
      ".gitignore",
      "Dockerfile",
      "FINAL_STATUS.md",
      "LOOM_SCRIPT.md",
      "README.md",
      "SUBMISSION.md",
      "docs",
      "docs/DESIGN.md",
      "docs/VISUAL_SPEC.md",
      "docs/screenshot-agent-view.png",
      "docs/screenshot-model.png",
      "docs/screenshot-summary.png",
      "e2e",
      "e2e/game.spec.ts",
      "index.html",
      "package-lock.json",
      "package.json",
      "playwright.config.ts",
      "prompts",
      "prompts/rig-system.md",
      "scripts",
      "scripts/chamber-check.ts",
      "scripts/human-sim.ts",
      "scripts/simulate.ts",
      "server",
      "server/env.ts",
      "server/index.ts",
      "server/jsonSchemas.ts",
      "server/rigLive.ts",
      "server/rigService.ts",
      "server/routes.ts",
      "server/schemas.ts",
      "server/store.ts",
      "src",
      "src/agent",
      "src/agent/director.ts",
      "src/agent/fairness.ts",
      "src/agent/localRig.ts",
      "src/agent/modelRead.ts",
      "src/agent/outcome.ts",
      "src/agent/taunts.ts",
      "src/agent/transport.ts",
      "src/agent/validate.ts",
      "src/audio",
      "src/audio/sfx.ts",
      "src/engine",
      "src/engine/bot.ts",
      "src/engine/chambers.ts",
      "src/engine/constants.ts",
      "src/engine/game.ts",
      "src/engine/geometry.ts",
      "src/engine/humanBot.ts",
      "src/engine/playerModel.ts",
      "src/engine/rng.ts",
      "src/main.tsx",
      "src/render",
      "src/render/eye.ts",
      "src/render/font.ts",
      "src/render/palette.ts",
      "src/render/renderer.ts",
      "src/render/sprites.ts",
      "src/render/staticLayer.ts",
      "src/shared",
      "src/shared/rig.ts",
      "src/ui",
      "src/ui/AgentView.tsx",
      "src/ui/App.tsx",
      "src/ui/RigPanel.tsx",
      "src/ui/Summary.tsx",
      "src/ui/api.ts",
      "src/ui/runtime.ts",
      "src/ui/styles.css",
      "tests",
      "tests/chambers.test.ts",
      "tests/director.test.ts",
      "tests/engine.test.ts",
      "tests/fairness-redteam.test.ts",
      "tests/fixtures.ts",
      "tests/localRig.test.ts",
      "tests/rigLive.test.ts",
      "tests/store.test.ts",
      "tests/validate.test.ts",
      "tsconfig.json",
      "vite.config.ts"
    ],
    "tree_truncated": false
  },
  {
    "repo": "zdevelops1/Supabase-x-Claude-Cafe-",
    "search_description": "",
    "created_at": "2026-10-03T17:50:41Z",
    "id": "R_kgDOU6eByA",
    "meta": {
      "id": 1403486664,
      "node_id": "R_kgDOU6eByA",
      "name": "Supabase-x-Claude-Cafe-",
      "full_name": "zdevelops1/Supabase-x-Claude-Cafe-",
      "private": false,
      "owner": {
        "login": "zdevelops1",
        "id": 262053743,
        "node_id": "U_kgDOD56fbw",
        "avatar_url": "https://avatars.githubusercontent.com/u/262053743?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/zdevelops1",
        "html_url": "https://github.com/zdevelops1",
        "followers_url": "https://api.github.com/users/zdevelops1/followers",
        "following_url": "https://api.github.com/users/zdevelops1/following{/other_user}",
        "gists_url": "https://api.github.com/users/zdevelops1/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/zdevelops1/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/zdevelops1/subscriptions",
        "organizations_url": "https://api.github.com/users/zdevelops1/orgs",
        "repos_url": "https://api.github.com/users/zdevelops1/repos",
        "events_url": "https://api.github.com/users/zdevelops1/events{/privacy}",
        "received_events_url": "https://api.github.com/users/zdevelops1/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/zdevelops1/Supabase-x-Claude-Cafe-",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-",
      "forks_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/forks",
      "keys_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/teams",
      "hooks_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/hooks",
      "issue_events_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/issues/events{/number}",
      "events_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/events",
      "assignees_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/assignees{/user}",
      "branches_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/branches{/branch}",
      "tags_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/tags",
      "blobs_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/languages",
      "stargazers_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/stargazers",
      "contributors_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/contributors",
      "subscribers_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/subscribers",
      "subscription_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/subscription",
      "commits_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/contents/{+path}",
      "compare_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/merges",
      "archive_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/downloads",
      "issues_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/issues{/number}",
      "pulls_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/labels{/name}",
      "releases_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/releases{/id}",
      "deployments_url": "https://api.github.com/repos/zdevelops1/Supabase-x-Claude-Cafe-/deployments",
      "created_at": "2026-10-03T17:50:41Z",
      "updated_at": "2026-10-03T21:57:35Z",
      "pushed_at": "2026-10-03T21:57:31Z",
      "git_url": "git://github.com/zdevelops1/Supabase-x-Claude-Cafe-.git",
      "ssh_url": "[email protected]:zdevelops1/Supabase-x-Claude-Cafe-.git",
      "clone_url": "https://github.com/zdevelops1/Supabase-x-Claude-Cafe-.git",
      "svn_url": "https://github.com/zdevelops1/Supabase-x-Claude-Cafe-",
      "homepage": "https://supabase-x-claude-cafe.vercel.app",
      "size": 521,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# ☕ Supabase x Claude Café — Human vs. Agent\n\n> **Hackathon theme: “Build Something Agents Want.”**\n> You run **Supabase Café**. Across the street, an autonomous **Claude agent** runs **Claude Café**. Both businesses face the same market and the same events — but Claude independently observes its business, reasons about what to do, remembers previous rounds, and competes against you. Higher difficulty = more context and strategic memory for the agent.\n\n**Live demo:** https://supabase-x-claude-cafe.vercel.app\n\nA pixel-art, split-screen café business battle: 4 days × 3 scenarios = **12 rounds**. Each round you pick A/B/C/D, Claude picks its own move (sealed — it can't see yours), and a **deterministic engine** referees both outcomes in a **shared market** where customers choose between the two cafés.\n\n---\n\n## Architecture\n\n```\nMARKET EVENT ──► GAME STATE\n                    │\n        ┌───────────┴───────────┐\n        │ HUMAN decision        │ CLAUDE AGENT decision      ← /api/agent (server-side, forced tool call,\n        │ (UI buttons)          │ (allowed actionId only)       validated against the allowed action list)\n        └───────────┬───────────┘\n                    ▼\n     DETERMINISTIC SIMULATION ENGINE                         ← /api/resolve (src/engine/engine.ts)\n                    ▼\n          SUPABASE PERSISTENCE                               ← sessions, rounds, agent memory, results\n                    ▼\n          UPDATED SHARED WORLD ──► NEXT ROUND\n```\n\n- **The LLM never touches numbers.** Claude returns `{ actionId, reason, strategyNote? }` via a forced `choose_action` tool whose `actionId` is an enum of the round's options. The server re-validates it; the engine computes everything.\n- **Shared market.** Each round ~200 × event-demand customers split between the cafés via a logit on attraction (reputation, satisfaction, quality, appeal, buzz, discounts, price). Overflow beyond staff capacity or inventory walks out — hurting satisfaction and reputation.\n- **Difficulty = information, not cheats.**\n  - 🟢 **Easy** — own cash, inventory, reputation, the event, the actions. Short-term prompt.\n  - 🟡 **Medium** — + staffing, pricing, satisfaction, quality, market mechanics, its last 3 decisions/outcomes, its own strategy notes.\n  - 🔴 **Hard** — + the human's café stats & pricing, full history of both cafés, a derived profile of the human's habits/strengths/weaknesses, market-share history, the live score, all memory. Prompted to predict and beat you.\n- **Agent memory.** On Medium/Hard Claude writes a private `strategyNote` each round; it's stored in Supabase `agent_memories` and fed back next round (shown in the UI as *Claude's notebook*).\n- **Transparent winner.** `Score = final cash + reputation × $30 + satisfaction × $15`.\n\n### Stack\n- React + TypeScript + Vite (pixel art is hand-drawn SVG — no asset pipeline)\n- Server API: `src/server/*` — served by a Vite dev middleware locally and by a single pre-bundled Vercel function (`server/vercel-handler.ts`, emitted by `scripts/build-vercel.mjs` via the Build Output API) in production\n- Anthropic Messages API (server-side only)\n- Supabase Postgres + RLS + Realtime (live Human-vs-Claude record on the title screen)\n\n```\nsrc/engine/      types, 12 scenarios, deterministic engine (pure functions)\nsrc/server/      agent.ts (Claude), fallbackAgent.ts, supabase.ts, handlers.ts\nsrc/components/  TitleScreen, DifficultySelect, GameScreen, CafePanel, CafeScene (SVG), FinalScreen\nserver/vercel-handler.ts  Vercel serverless entry (bundled at build)\nsupabase/migrations/  schema\nscripts/simulate.ts   balance checker (npm run sim)\n```\n\n---\n\n## Setup\n\n```bash\nnpm install\ncp .env.example .env     # fill in keys (all optional — see below)\nnpm run dev              # http://localhost:5173\n```\n\n| Variable | Where it's used | Where to get it |\n|---|---|---|\n| `ANTHROPIC_API_KEY` | server only | console.anthropic.com → API Keys |\n| `ANTHROPIC_MODEL` | server only (default `claude-sonnet-5-5`) | — |\n| `SUPABASE_URL` | server only | Supabase → Project Settings → API → Project URL |\n| `SUPABASE_SERVICE_ROLE_KEY` | server only | Supabase → Project Settings → API → `service_role` |\n| `VITE_SUPABASE_URL` | browser (Realtime leaderboard) | same Project URL |\n| `VITE_SUPABASE_ANON_KEY` | browser (read-only via RLS) | Supabase → API → `anon` public key |\n\n**Graceful fallbacks:** no Anthropic key → an offline lookahead strategist plays Claude Café and the UI clearly labels it *“Offline fallback strategist”*. No Supabase → the game runs fully; state lives in localStorage.\n\n### Database\nRun `supabase/migrations/20261003000000_init.sql` in the Supabase SQL editor (or `supabase db push`). Tables: `game_sessions`, `game_rounds`, `agent_memories`, `final_results` + `leaderboard` view. RLS blocks all anon access except reading `final_results`; all writes go through the server with the service role key.\n\n### Deploy (Vercel)\nImport the repo → framework **Vite** → add the env vars above → deploy. `npm run build` writes `.vercel/output` (static site + one bundled API function + routes), which Vercel deploys as-is.\n\n---\n\n## Demo script (≈2 min)\n1. Title screen: point at the split café art and the **live global record** (Supabase Realtime).\n2. Pick **HARD** — read the “Claude receives” list: difficulty changes what the agent *knows*.\n3. Round 1: show **CLAUDE IS THINKING… → 🔒 DECISION LOCKED** (sealed move), then choose yours.\n4. Reveal: **CLAUDE CHOSE: …** + its one-line reason; watch customers and floating cash land, then the side-by-side results and market-share bar.\n5. A few rounds in, point at **Claude's notebook** — it's writing notes about *you*.\n6. Finish the day → day report; finish Day 4 → final scoreboard with the transparent formula. Claude can and does win.\n\n## Art & music\n- **Café interiors** are the project's own concept art (`public/art/*.webp`), cropped so no static UI from the concept remains. Everything dynamic (walk-in customers by customers served, extra seated guests by market share, lamp flicker, espresso steam, Claude's thinking glow, register flash, floaters, stats) is a live SVG layer drawn in the art's coordinate space.\n- **Music:** J.S. Bach, *Prelude in C major, BWV 846* (1722, public domain), performed live in the browser by a synthesized piano (WebAudio) — no recording, nothing to license. Starts after the first click (autoplay rules), ♪ toggle remembers the choice.\n\n## Accounts (Guest + email/password)\n- **PLAY AS GUEST** → `supabase.auth.signInAnonymously()`; full game, refresh-safe on the same browser.\n- **CREATE ACCOUNT / SIGN IN** → email + password. A guest who creates an account is converted in place (`updateUser`), keeping the same user id and active game.\n- The API verifies the Supabase access token server-side and stamps `user_id` on sessions, rounds, memories and results; every game route checks ownership. RLS gives signed-in users owner-only reads; all writes stay service-role only (`supabase/migrations/20261003120000_auth_ownership.sql`).\n- Supabase Auth settings used: *Allow anonymous sign-ins* ON; *Confirm email* OFF for the hackathon (turn back on afterwards).\n- `/authtest.html?run=1` runs the guest/account/isolation matrix against a deployment (requires `ENABLE_DIAGNOSTICS=1`).\n\n## Live verification (Phase 2)\nWith the env vars set on the server (plus `AGENT_FALLBACK=off`, `ENABLE_DIAGNOSTICS=1`):\n```bash\nnode scripts/verify-live.mjs https://your-app.vercel.app\n```\nIt plays a full Hard game through the real API and checks against Supabase: live Anthropic on every round (any offline-strategist decision = FAIL), sealed decisions (no plaintext move before the human commits; tampered tokens rejected), valid actions, reasons, session/round/final rows, strategy notes written **and** loaded back as memory, and the leaderboard count. Exit code 0 = all PASS. Set `ENABLE_DIAGNOSTICS=0` again before the public demo.\n\n**Sealed decisions:** `/api/agent` returns only an AES-GCM-encrypted token; `/api/resolve` decrypts it server-side, so Claude's move can't be read in DevTools or forged.\n**No silent fallbacks:** with a key configured, a failed Anthropic call shows the exact error + Retry. Supabase write failures show a red banner with the exact Postgres error.\n\nReloading mid-game resumes where you left off (**RESUME GAME**). `npm run sim` prints a balance check of every scenario's options.\n",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "README.md",
      "index.html",
      "package-lock.json",
      "package.json",
      "public",
      "public/art",
      "public/art/barista.webp",
      "public/art/claude-cafe.webp",
      "public/art/robot.webp",
      "public/art/supabase-cafe.webp",
      "public/authtest.html",
      "public/favicon.svg",
      "public/verify-live.mjs",
      "public/verify.html",
      "scripts",
      "scripts/build-vercel.mjs",
      "scripts/simulate.ts",
      "scripts/verify-live.mjs",
      "server",
      "server/vercel-handler.ts",
      "src",
      "src/App.tsx",
      "src/components",
      "src/components/AuthDialog.tsx",
      "src/components/CafePanel.tsx",
      "src/components/CafeScene.tsx",
      "src/components/DifficultySelect.tsx",
      "src/components/FinalScreen.tsx",
      "src/components/GameScreen.tsx",
      "src/components/MusicButton.tsx",
      "src/components/TitleScreen.tsx",
      "src/engine",
      "src/engine/engine.ts",
      "src/engine/scenarios.ts",
      "src/engine/types.ts",
      "src/lib",
      "src/lib/api.ts",
      "src/lib/auth.ts",
      "src/lib/music.ts",
      "src/lib/realtime.ts",
      "src/lib/sfx.ts",
      "src/lib/storage.ts",
      "src/lib/useTween.ts",
      "src/main.tsx",
      "src/server",
      "src/server/agent.ts",
      "src/server/fallbackAgent.ts",
      "src/server/handlers.ts",
      "src/server/seal.ts",
      "src/server/supabase.ts",
      "src/styles.css",
      "supabase",
      "supabase/migrations",
      "supabase/migrations/20261003000000_init.sql",
      "supabase/migrations/20261003120000_auth_ownership.sql",
      "tsconfig.json",
      "vercel.json",
      "vite.config.mts"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Travis700/Stream-bot",
    "search_description": "Stream bot ",
    "created_at": "2026-10-02T21:54:26Z",
    "id": "R_kgDOU5bUKg",
    "meta": {
      "id": 1402393642,
      "node_id": "R_kgDOU5bUKg",
      "name": "Stream-bot",
      "full_name": "Travis700/Stream-bot",
      "private": false,
      "owner": {
        "login": "Travis700",
        "id": 133271993,
        "node_id": "U_kgDOB_GRuQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/133271993?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Travis700",
        "html_url": "https://github.com/Travis700",
        "followers_url": "https://api.github.com/users/Travis700/followers",
        "following_url": "https://api.github.com/users/Travis700/following{/other_user}",
        "gists_url": "https://api.github.com/users/Travis700/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Travis700/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Travis700/subscriptions",
        "organizations_url": "https://api.github.com/users/Travis700/orgs",
        "repos_url": "https://api.github.com/users/Travis700/repos",
        "events_url": "https://api.github.com/users/Travis700/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Travis700/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Travis700/Stream-bot",
      "description": "Stream bot ",
      "fork": false,
      "url": "https://api.github.com/repos/Travis700/Stream-bot",
      "forks_url": "https://api.github.com/repos/Travis700/Stream-bot/forks",
      "keys_url": "https://api.github.com/repos/Travis700/Stream-bot/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Travis700/Stream-bot/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Travis700/Stream-bot/teams",
      "hooks_url": "https://api.github.com/repos/Travis700/Stream-bot/hooks",
      "issue_events_url": "https://api.github.com/repos/Travis700/Stream-bot/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Travis700/Stream-bot/events",
      "assignees_url": "https://api.github.com/repos/Travis700/Stream-bot/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Travis700/Stream-bot/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Travis700/Stream-bot/tags",
      "blobs_url": "https://api.github.com/repos/Travis700/Stream-bot/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Travis700/Stream-bot/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Travis700/Stream-bot/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Travis700/Stream-bot/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Travis700/Stream-bot/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Travis700/Stream-bot/languages",
      "stargazers_url": "https://api.github.com/repos/Travis700/Stream-bot/stargazers",
      "contributors_url": "https://api.github.com/repos/Travis700/Stream-bot/contributors",
      "subscribers_url": "https://api.github.com/repos/Travis700/Stream-bot/subscribers",
      "subscription_url": "https://api.github.com/repos/Travis700/Stream-bot/subscription",
      "commits_url": "https://api.github.com/repos/Travis700/Stream-bot/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Travis700/Stream-bot/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Travis700/Stream-bot/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Travis700/Stream-bot/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Travis700/Stream-bot/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Travis700/Stream-bot/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Travis700/Stream-bot/merges",
      "archive_url": "https://api.github.com/repos/Travis700/Stream-bot/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Travis700/Stream-bot/downloads",
      "issues_url": "https://api.github.com/repos/Travis700/Stream-bot/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Travis700/Stream-bot/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Travis700/Stream-bot/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Travis700/Stream-bot/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Travis700/Stream-bot/labels{/name}",
      "releases_url": "https://api.github.com/repos/Travis700/Stream-bot/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Travis700/Stream-bot/deployments",
      "created_at": "2026-10-02T21:54:26Z",
      "updated_at": "2026-10-03T21:40:06Z",
      "pushed_at": "2026-10-03T21:40:02Z",
      "git_url": "git://github.com/Travis700/Stream-bot.git",
      "ssh_url": "[email protected]:Travis700/Stream-bot.git",
      "clone_url": "https://github.com/Travis700/Stream-bot.git",
      "svn_url": "https://github.com/Travis700/Stream-bot",
      "homepage": null,
      "size": 215,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": false,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "claude/clip-and-rater-bots",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Stream Bot\n\nTwo Discord bots that run on a cloud server (built for Oracle Cloud's free ARM VM). Nothing runs on your PC and no GPU is needed. You control everything with slash commands in your Discord server.\n\n| Bot | What it does |\n|---|---|\n| **Clipper** | Watches streamers' Twitch / Kick / YouTube VODs, finds the best moments, and cuts them into 1–2 minute **vertical (9:16)** clips. It moves the facecam so it doesn't cover the game and burns in TikTok-style captions. It posts the clips to your clips channel, checks whether each streamer allows clipping, and collects new posts from the streamers' own clipper accounts. |\n| **Rater** | Watches the clips channel and rates every clip **1–10** for how well it will do on TikTok / Reels / Shorts. It learns from high-view clips of streamers on TikTok and Instagram, and from the real view counts you report back. |\n\n## How it works\n\n```\nVOD ──► download audio only ──► loudness \"hype\" curve ──┐\n    └─► chat replay (Twitch/YouTube) ──► chat-spike curve ─┴─► top moments\n                                                            │ transcribe only those (CPU Whisper)\n                                                            ▼\n                                    the AI picks and trims the best 1–2 min clips\n                                                            │\n     download just those minutes of video ◄─────────────────┘\n        │\n        ▼\n cut dead air ──► find facecam (OpenCV) ──► 1080×1920 layout ──► burn captions ──► post to #clips\n                                                                      │\n                                       Rater bot ◄────────────────────┘\n          frames + transcript + learned viral examples ──► AI ──► 1–10 rating, fixes, caption\n```\n\n* **CPU only.** Speech-to-text uses `faster-whisper` (int8 on CPU), face detection uses OpenCV, and video uses ffmpeg/x264. Only the hype moments get transcribed, so a 6-hour VOD doesn't need 6 hours of transcription.\n* **Chat as a signal.** On Twitch and YouTube the bot reads the VOD's chat replay. Chat suddenly spamming \"KEKW\", \"LMAO\", \"💀\" or \"CLIP IT\" marks a moment even when the streamer stays quiet. Chat counts alongside loudness, and the AI also sees what chat spammed for each moment. Kick has no usable chat replay, so Kick VODs use audio only.\n* **Viewer clips (Twitch).** If viewers already clipped moments from the VOD on Twitch, those moments get a big boost, more for clips with more views, and the AI is told about them. A moment viewers chose to clip is the strongest sign it's good. This uses Twitch's unofficial web API; if it stops working, the bot just skips this step.\n* **1–2 minute clips with no slow middle.** The AI is told to keep clips tight and use the shortest length that has both the setup and the payoff. Then pauses of 1.5s or more, where nobody is talking *and* the audio is quiet, are jump-cut out. Loud game moments are never cut, and a clip is never trimmed below 1 minute, since TikTok only pays for videos over 1 minute. Turn this off with `cut_dead_air:False` on `/clip` or `CUT_DEAD_AIR=0`.\n* **Facecam handling.** The bot samples frames and finds a face that stays in the same spot, which is the webcam overlay. It then snaps to the overlay's border.\n  * `split` layout (gaming): facecam on top, gameplay below. The gameplay crop is moved away from the webcam if the webcam would cover it.\n  * `fullcam` layout (Just Chatting / IRL): a 9:16 crop that **pans smoothly to follow the streamer** as they move. The pan is speed-limited so it never jerks, and it stays still when they sit still.\n  * `fit` layout (no facecam found): zoomed gameplay over a blurred background.\n  * You can force any layout with `layout:` on `/clip`.\n* **Captions.** 1–3 words at a time, the current word highlighted in yellow, placed on the seam between cam and game.\n* **Hook text.** For the first 4 seconds a short line like \"HE DID NOT SEE THIS COMING\" appears in a white box. The AI writes it when it picks the clip. Change the time with `HOOK_TEXT_SECONDS`, or set it to `0` to turn it off.\n* **Slur filter.** Slurs are bleeped (`BLEEP_MODE=beep`) or muted (`mute`) and shown as `N****` in the captions, because TikTok and Instagram often limit the reach of clips that contain them. Normal swearing is left alone; add your own words with `BLEEP_WORDS=word1,word2`.\n* **Review in Discord.** Every clip gets buttons: ✅ **Approve**, 🗑️ **Discard** (deletes the files), ✂️ **Make shorter** (about 30% shorter, keeping the liveliest part), 🔄 **Change layout**. Re-edits reuse the saved source video, so nothing is downloaded again, and the new version is posted as a reply. Only admins can press the buttons.\n* **Ratings on the clip.** When the rater scores a clip, the score shows on the clip's own post. Set `AUTO_APPROVE_RATING=8` to approve clips rated 8+ automatically (off by default).\n* **Daily summary.** Every day at `DIGEST_HOUR_UTC` (default 9:00 UTC), the log channel gets a summary: clips made and approved, average rating, the best clip, total views on posted clips, and a to-do list (clips waiting for review, streamers needing a permission decision, failed jobs).\n* **No duplicates.** A VOD that's already queued or clipped isn't clipped again; use `force:True` to override.\n* **Shares the CPU fairly.** Transcription, rendering and the local AI never run at the same time across the two bots, so neither slows the other down.\n* **Retries network failures.** A job that fails because of a network blip or a site timeout is retried automatically, up to 2 more times, 15 and 30 minutes later. Errors you need to fix yourself (subscriber-only VOD, YouTube asking for cookies, disk full) are explained in plain English instead.\n* **Daily backups.** The database (streamers, clips, ratings, view history) is copied to `data/backups/` every day, and the last 7 copies are kept.\n* **Keeps itself updated.** yt-dlp (the downloader) updates every time the bots start. Once a day, if a newer version is out and nothing is running, the bots restart themselves to pick it up.\n* **Clipping permission.** The bot reads the streamer's Twitch bio and panels, Kick bio, or YouTube channel description and looks for rules like *\"no clipping\"* or *\"clips will be DMCA'd\"* versus *\"feel free to clip\"* or *\"clipping program\"*. If the text is unclear, the AI reads it, but its answer is only used when it can quote the profile word for word. **Streamers marked `unknown` or `denied` are never clipped.** You approve them yourself with `/streamer permission`. Check their Discord rules and socials too, because many streamers only post clipping rules there.\n\n## Discord commands\n\n**Clipper bot** (admin-only; needs *Manage Server*)\n\n| Command | |\n|---|---|\n| `/help` | Quick-start guide inside Discord. |\n| `/setup clips_channel [clipper_feed_channel] [log_channel]` | Where things get posted. Run this first. |\n| `/top [days]` | Your best clips by real views, next to what the rater predicted, plus a **rater accuracy** score. This shows whether the ratings are worth trusting yet. |\n| `/selftest` | Makes a 20-second test clip on the server with a synthetic voice and runs every step (speech-to-text, face detector, AI, cuts, captions, hook text, rendering), then posts the clip. **Run this right after deploying.** |\n| `/status` | Health check: can the server reach each site, is the AI running, disk space, job queue, recent errors. **Run this first if something isn't working.** |\n| `/streamer add platform channel [auto_clip]` | Track a streamer and run the clipping-permission check. New VODs are clipped automatically if allowed. |\n| `/streamer list` · `remove` · `recheck` · `autoclip` | Manage tracked streamers. |\n| `/streamer permission name allowed\\|denied\\|unknown [note]` | Your manual decision overrides the auto check. |\n| `/streamer layout name layout` | Always use this layout for a streamer (if facecam detection gets them wrong). |\n| `/clip vod url [count] [layout] [subtitles] [cut_dead_air] [force]` | Clip a specific VOD. |\n| `/clip latest streamer` | Clip the newest finished VOD. |\n| `/clip jobs` · `/clip cancel id` | Show the queue / cancel a queued job. |\n| `/clippers add url [streamer] [learn]` | Watch a streamer's own clipper (TikTok/YouTube/Instagram profile). New posts go to the feed channel. With `learn`, the rater also learns from that account's big clips. |\n| `/clippers list` · `remove` · `check` | |\n| `/connect tiktok` | Log in to TikTok for auto-posting (optional, see below). |\n\n**Rater bot** (admin-only)\n\n| Command | |\n|---|---|\n| *(automatic)* | Every clip posted in the clips channel gets a rating reply. Videos you upload there yourself are rated too. Clips posted while the rater was offline are picked up within 30 minutes. |\n| `/rate [message_link] [video]` | Rate a specific message or an uploaded video. |\n| `/posted clip_id url` | Link the TikTok/Reel/Short you posted. The bot checks its views every 6 hours for 14 days and uses them to calibrate future ratings. Posts made with the auto-post buttons are tracked automatically when the platform gives back a link. |\n| `/outcome clip_id views` | Enter views by hand instead. |\n| `/learn clip url` | Add one viral TikTok/IG/Shorts clip to the reference library. |\n| `/learn account url [min_views]` | Keep learning from an account's clips above `min_views`. |\n| `/learn accounts` · `forget` · `library` | |\n\n## Setup (about 20 minutes, no coding)\n\nThe bot does nearly everything itself. You do three things that need your own accounts.\n\n### 1. Create the two Discord bots (5 min)\n1. Go to <https://discord.com/developers/applications> → **New Application** → name it \"Clipper\". Open **Bot** → **Reset Token** → copy the token somewhere safe.\n2. Do the same for \"Rater\". On the Rater's **Bot** page, also turn on **Message Content Intent**, so it can see the videos it rates.\n3. In Discord: *User Settings → Advanced →* turn on **Developer Mode**. Then right-click your server icon → **Copy Server ID**.\n\nYou now have three values: two tokens and a server ID. You don't need to invite the bots yet; the installer gives you the invite links.\n\n### 2. Create the free Oracle server (10 min)\nOracle Cloud console → *Compute → Instances → Create instance*:\n- **Image:** Ubuntu 24.04\n- **Shape:** VM.Standard.A1.Flex (Ampere), 4 OCPU / 24 GB RAM. This is covered by *Always Free*.\n- **Boot volume:** 100 GB or more\n\nThen pick **one** of these:\n\n**Option A, no terminal at all:** before clicking Create, open *Show advanced options → Management → Initialization script → Paste cloud-init script*. Paste the contents of [`deploy/oracle-cloud-init.sh`](deploy/oracle-cloud-init.sh) with your three values filled in at the top. The server installs everything by itself on first boot, which takes about 15 minutes.\n\n**Option B, one command:** create the server, connect with *Cloud Shell* or SSH, and run:\n```bash\ncurl -fsSL https://raw.githubusercontent.com/Travis700/Stream-bot/claude/clip-and-rater-bots/deploy/install.sh | bash\n```\nIt asks for your three values, then installs Docker, downloads the bots, writes the settings, opens the firewall and starts everything. At the end it prints the bot invite links.\n\n> **Private GitHub repo?** Both options need to download the code. Either make the repo public (*GitHub → repo Settings → Danger Zone → Change visibility*; no secrets are stored in it), or create a read-only token (*GitHub → Settings → Developer settings → Fine-grained tokens*, access to this repo, *Contents: Read-only*). For Option A, put the token in `GITHUB_TOKEN=\"\"`. For Option B, run:\n> `export GITHUB_TOKEN=<token>; curl -fsSL -H \"Authorization: token $GITHUB_TOKEN\" https://raw.githubusercontent.com/Travis700/Stream-bot/claude/clip-and-rater-bots/deploy/install.sh | bash`\n\n### 3. Invite the bots and start (2 min)\n1. Open each invite link and pick your server. Option B prints the links. For Option A, the link is `https://discord.com/oauth2/authorize?client_id=<Application ID>&scope=bot%20applications.comman",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      "Dockerfile",
      "README.md",
      "clipper",
      "clipper/__init__.py",
      "clipper/__main__.py",
      "clipper/bot.py",
      "clipper/censor.py",
      "clipper/facecam.py",
      "clipper/fileserver.py",
      "clipper/highlights.py",
      "clipper/pipeline.py",
      "clipper/posting.py",
      "clipper/render.py",
      "clipper/selftest.py",
      "clipper/stats.py",
      "clipper/subtitles.py",
      "clipper/tighten.py",
      "deploy",
      "deploy/entrypoint.sh",
      "deploy/install.sh",
      "deploy/oracle-cloud-init.sh",
      "docker-compose.yml",
      "rater",
      "rater/__init__.py",
      "rater/__main__.py",
      "rater/bot.py",
      "rater/learner.py",
      "rater/scorer.py",
      "requirements.txt",
      "shared",
      "shared/__init__.py",
      "shared/chat.py",
      "shared/config.py",
      "shared/db.py",
      "shared/health.py",
      "shared/llm.py",
      "shared/locks.py",
      "shared/media.py",
      "shared/patterns.py",
      "shared/permissions.py",
      "shared/platforms.py",
      "shared/transcribe.py",
      "tests",
      "tests/__init__.py",
      "tests/test_core.py",
      "tests/test_features.py",
      "tests/test_llm.py",
      "tests/test_reliability.py",
      "tests/test_signals.py",
      "tests/test_tracking_stats.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "sariel360/tp13-mascota-tkinter",
    "search_description": "",
    "created_at": "2026-10-03T20:05:48Z",
    "id": "R_kgDOU6ksZg",
    "meta": {
      "id": 1403595878,
      "node_id": "R_kgDOU6ksZg",
      "name": "tp13-mascota-tkinter",
      "full_name": "sariel360/tp13-mascota-tkinter",
      "private": false,
      "owner": {
        "login": "sariel360",
        "id": 267668097,
        "node_id": "U_kgDOD_RKgQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/267668097?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/sariel360",
        "html_url": "https://github.com/sariel360",
        "followers_url": "https://api.github.com/users/sariel360/followers",
        "following_url": "https://api.github.com/users/sariel360/following{/other_user}",
        "gists_url": "https://api.github.com/users/sariel360/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/sariel360/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/sariel360/subscriptions",
        "organizations_url": "https://api.github.com/users/sariel360/orgs",
        "repos_url": "https://api.github.com/users/sariel360/repos",
        "events_url": "https://api.github.com/users/sariel360/events{/privacy}",
        "received_events_url": "https://api.github.com/users/sariel360/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/sariel360/tp13-mascota-tkinter",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter",
      "forks_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/forks",
      "keys_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/teams",
      "hooks_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/hooks",
      "issue_events_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/issues/events{/number}",
      "events_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/events",
      "assignees_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/assignees{/user}",
      "branches_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/branches{/branch}",
      "tags_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/tags",
      "blobs_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/languages",
      "stargazers_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/stargazers",
      "contributors_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/contributors",
      "subscribers_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/subscribers",
      "subscription_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/subscription",
      "commits_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/contents/{+path}",
      "compare_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/merges",
      "archive_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/downloads",
      "issues_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/issues{/number}",
      "pulls_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/labels{/name}",
      "releases_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/releases{/id}",
      "deployments_url": "https://api.github.com/repos/sariel360/tp13-mascota-tkinter/deployments",
      "created_at": "2026-10-03T20:05:48Z",
      "updated_at": "2026-10-03T20:20:30Z",
      "pushed_at": "2026-10-03T20:20:26Z",
      "git_url": "git://github.com/sariel360/tp13-mascota-tkinter.git",
      "ssh_url": "[email protected]:sariel360/tp13-mascota-tkinter.git",
      "clone_url": "https://github.com/sariel360/tp13-mascota-tkinter.git",
      "svn_url": "https://github.com/sariel360/tp13-mascota-tkinter",
      "homepage": null,
      "size": 200,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# TP N° 13 – Mascota Virtual con Tkinter\n\n**Laboratorio de Aplicaciones II – 6° G**\n**IPET N° 249 \"Nicolás Copérnico\"**\n\n## 1. Datos del alumno\n\n| | |\n| --- | --- |\n| **Nombre** | `jonas` |\n| **Apellido** | `sarria` |\n| **Curso** | 6° G |\n| **Materia** | Laboratorio de Aplicaciones II |\n| **Fecha de entrega** | 15-09-2026 |\n\n## 2. Opción seleccionada y descripción funcional\n\n**Opción 4: Mascota Virtual (Tamagotchi).** Simulación de cuidado de una mascota digital dibujada con el widget `Canvas`, cuya expresión cambia según su estado de ánimo (feliz, hambrienta, cansada, triste o fuera de juego).\n\n### Indicadores (0 a 100)\n\n| Indicador | Evolución con el tiempo | Condición crítica |\n| --- | --- | --- |\n| **Hambre** | Sube 4 puntos cada 3 s | Llega a 100 (saciedad 0) → *Game Over* |\n| **Energía** | Baja 3 puntos cada 3 s | Llega a 0 → *Game Over* |\n| **Felicidad** | Baja 3 puntos cada 3 s | Llega a 0 → *Game Over* |\n\n> Como el Hambre *aumenta*, se interpretó que \"llega a 0\" equivale a que la saciedad se agote (Hambre = 100).\n\n### Acciones\n\n| Botón | Atajo | Hambre | Energía | Felicidad |\n| --- | --- | :-: | :-: | :-: |\n| **Alimentar** | `F1` | −25 | −5 | – |\n| **Jugar** | `F2` | – | −10 | +20 |\n| **Dormir** | `F3` | +10 | +30 | −10 |\n\n- Las barras (`ttk.Progressbar`) se ponen **rojas** cuando un indicador entra en zona crítica.\n- El tiempo avanza con `after()` cada **3 segundos**.\n- Al producirse el **Game Over** se bloquean las tres acciones y se habilita **Reiniciar Mascota**, que devuelve los tres indicadores a **50 puntos**.\n- Se puede ponerle **nombre** a la mascota (campo `Entry`; `Enter` o botón *Guardar*), validado con excepciones.\n\n## 3. Cumplimiento de los requisitos\n\n| Requisito | Dónde se cumple en `main.py` |\n| --- | --- |\n| Ventana 800x600, título y fondo institucional | `main()` → `geometry`, `title`, `configure(bg=COLOR_FONDO)` |\n| Identidad IPET 249 (colores + emblema `.png`) | Paleta `COLOR_*` y `cargar_emblema()` (`assets/emblema.png`) |\n| Combinación de `pack()` y `grid()` justificada | Docstring de `construir_interfaz()` |\n| Al menos 3 eventos distintos | `<Return>` (teclado), `<Enter>`/`<Leave>` (mouse), `<F1>`–`<F3>` (teclado global), `WM_DELETE_WINDOW` (ventana), clic en botones |\n| Mínimo 3 `Label` dinámicas | `lbl_nombre`, `lbl_estado`, `lbl_edad`, `lbl_mensaje`, porcentajes de cada indicador |\n| Mínimo 3 `Button` independientes | Alimentar, Jugar, Dormir, Reiniciar (+ Guardar) |\n| Al menos 1 `Entry` | `entry_nombre` |\n| Al menos 2 componentes `ttk` | `ttk.Progressbar` (×3), `ttk.Separator` (×2), `ttk.Button` |\n| Código identado, comentado y en funciones | Todo el archivo |\n| Manejo de excepciones | `validar_nombre()` + `confirmar_nombre()` (vacío, demasiado largo, solo números), `cargar_emblema()` (`TclError`) |\n| `after()` cada 3 s | `tick()` |\n| *Game Over* + reinicio a 50 | `game_over()` y `reiniciar()` |\n\n## 4. Instalación y ejecución\n\n**Requisitos:** Python 3.8 o superior. Tkinter viene incluido en Python para Windows y macOS.\n\n```bash\n# 1. Clonar el repositorio (reemplazar por tu usuario y nombre del repo)\ngit clone https://github.com/<usuario>/tp13-tkinter-<nombre-apellido>.git\ncd tp13-tkinter-<nombre-apellido>\n\n# 2. (Solo Linux/Debian/Ubuntu) instalar Tkinter si no está disponible\nsudo apt install python3-tk\n\n# 3. Ejecutar\npython main.py        # En algunos sistemas: python3 main.py\n```\n\nNo requiere instalar librerías externas: usa solo la biblioteca estándar (`tkinter`, `os`).\n\n### Estructura del repositorio\n\n```\ntp13-tkinter-[nombre-apellido]/\n├── assets/\n│   ├── emblema.png          # Emblema del IPET 249\n│   └── captura_*.png        # Capturas de pantalla del README\n├── main.py                  # Código fuente de la aplicación\n└── README.md                # Este documento\n```\n\n## 5. Capturas de pantalla\n\n**Inicio de la partida**\n\n![Inicio](assets/captura_1_inicio.png)\n\n**Después de interactuar (Jugar / Alimentar)**\n\n![Acciones](assets/captura_2_acciones.png)\n\n**Zona crítica: hambre alta (barra roja y mascota hambrienta)**\n\n![Hambre](assets/captura_3_hambre.png)\n\n**Game Over (acciones bloqueadas, reinicio habilitado)**\n\n![Game Over](assets/captura_4_game_over.png)\n\n## 6. Declaración sobre Inteligencia Artificial\n\n### Herramientas utilizadas\n\n- **Claude Sonnet 5.5 (Anthropic)**, mediante la interfaz de chat, con nivel de esfuerzo de razonamiento **alto/extra** y **medio**.\n- Usos: planificación de la estructura del código, dibujo de la mascota con `Canvas`, estilos `ttk`, eventos, validación con excepciones, depuración, redacción del `README.md`, incorporación del logo del colegio y generación de las capturas de pantalla.\n\n### Prompts de consulta (resumen de las consultas principales)\n\n**1. Planificación inicial de la estructura**\n> \"Estoy haciendo el TP13 de Laboratorio de Aplicaciones II (IPET 249). Elegí la Opción 4: Mascota Virtual (Tamagotchi) con Tkinter. Necesito que me ayudes a planificar la estructura del código: constantes, diccionario de estado, funciones de lógica (alimentar, jugar, dormir, tick con after), manejo de Game Over y cómo combinar pack() y grid() sin mezclarlos en el mismo contenedor. Quiero que el código quede modular y con comentarios.\"\n\n**2. Dibujo de la mascota en Canvas**\n> \"Ayudame a dibujar una mascota tipo osito con Canvas de Tkinter. Tiene que cambiar de color y expresión según el ánimo: feliz (verde, sonrisa), hambrienta (amarilla, boca abierta), cansada (azulada, ojos cerrados + zZ), triste y muerta (ojos en X + texto GAME OVER). Usá ovals y arcs. El canvas mide 270x260.\"\n\n**3. Barras de progreso con estilo personalizado (ttk)**\n> \"Cómo hago para que las Progressbar de ttk cambien de color según el valor? Quiero una estilo 'Ok' (verde oscuro) y otra 'Peligro' (rojo) cuando el indicador está en zona crítica. Usá el tema 'clam' porque permite personalizar colores.\"\n\n**4. Eventos y atajos de teclado**\n> \"Necesito implementar al menos 3 eventos distintos: `<Enter>` y `<Leave>` en los botones de acción para cambiar color y mostrar ayuda contextual; evento de teclado F1, F2 y F3 para Alimentar, Jugar y Dormir; protocolo WM_DELETE_WINDOW para confirmar antes de cerrar la ventana. Mostrame cómo hacerlo sin que se pisen los after().\"\n\n**5. Validación del nombre y manejo de excepciones**\n> \"Quiero validar el nombre de la mascota: no puede estar vacío, máximo 12 caracteres y no puede ser solo números. Si falla, mostrar un messagebox de warning y devolver el foco al Entry. Usá try/except con ValueError.\"\n\n**6. Depuración y ajustes finales**\n> \"El after() se me está duplicando cuando reinicio la mascota. Cómo cancelo correctamente el job pendiente con after_cancel antes de volver a programar el tick? También revisá que los botones de acción se deshabiliten en Game Over y que el de Reiniciar solo se active cuando la mascota está muerta.\"\n\n**7. Integración final (consigna completa y logo)**\n> Se adjuntó el documento de la consigna y se pidió: \"completa todo lo indicado en este documento a excepcion del apartado de uso de ia\". Luego se adjuntó el logo del colegio (\"este es el logo de la escuela\") para incorporarlo como emblema y adaptar la paleta de colores.\n\n### Porcentaje de código propio vs. asistido\n\n|                        | Porcentaje |\n| ---------------------- | ---------- |\n| Código asistido por IA | 55 %       |\n| Código propio          | 45 %       |\n\n### Justificación del aporte propio\n\nUtilicé Claude Sonnet principalmente para generar la estructura base del código, el dibujo de la mascota en el `Canvas`, los estilos de las barras de progreso (`ttk.Progressbar`) y la organización de las funciones.\n\nMi aporte propio consistió en:\n- Adaptar y modificar la lógica de los indicadores (valores de deterioro y de las acciones Alimentar, Jugar y Dormir).\n- Definir y ajustar la condición de Game Over y el sistema de reinicio.\n- Elegir y aplicar la paleta de colores institucional del IPET 249.\n- Escribir y corregir todos los textos de la interfaz y los mensajes de estado.\n- Implementar y probar los eventos (`<Enter>`, `<Leave>`, atajos F1-F3 y cierre de ventana).\n- Corregir el manejo del `after()` para que no se duplique al reiniciar.\n- Probar exhaustivamente el funcionamiento general de la aplicación.\n\nAunque gran parte de la estructura inicial fue generada con ayuda de la IA, revisé, modifiqué y comprendí el código.\n",
    "tree_paths": [
      "README.md",
      "assets",
      "assets/captura_1_inicio.png",
      "assets/captura_2_acciones.png",
      "assets/captura_3_hambre.png",
      "assets/captura_4_game_over.png",
      "assets/emblema.png",
      "main.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "MozartofCode/Shark-Tank-Game",
    "search_description": "",
    "created_at": "2026-10-03T16:44:58Z",
    "id": "R_kgDOU6aKew",
    "meta": {
      "id": 1403423355,
      "node_id": "R_kgDOU6aKew",
      "name": "Shark-Tank-Game",
      "full_name": "MozartofCode/Shark-Tank-Game",
      "private": false,
      "owner": {
        "login": "MozartofCode",
        "id": 76100859,
        "node_id": "MDQ6VXNlcjc2MTAwODU5",
        "avatar_url": "https://avatars.githubusercontent.com/u/76100859?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/MozartofCode",
        "html_url": "https://github.com/MozartofCode",
        "followers_url": "https://api.github.com/users/MozartofCode/followers",
        "following_url": "https://api.github.com/users/MozartofCode/following{/other_user}",
        "gists_url": "https://api.github.com/users/MozartofCode/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/MozartofCode/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/MozartofCode/subscriptions",
        "organizations_url": "https://api.github.com/users/MozartofCode/orgs",
        "repos_url": "https://api.github.com/users/MozartofCode/repos",
        "events_url": "https://api.github.com/users/MozartofCode/events{/privacy}",
        "received_events_url": "https://api.github.com/users/MozartofCode/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/MozartofCode/Shark-Tank-Game",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game",
      "forks_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/forks",
      "keys_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/teams",
      "hooks_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/hooks",
      "issue_events_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/issues/events{/number}",
      "events_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/events",
      "assignees_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/assignees{/user}",
      "branches_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/branches{/branch}",
      "tags_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/tags",
      "blobs_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/languages",
      "stargazers_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/stargazers",
      "contributors_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/contributors",
      "subscribers_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/subscribers",
      "subscription_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/subscription",
      "commits_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/contents/{+path}",
      "compare_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/merges",
      "archive_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/downloads",
      "issues_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/issues{/number}",
      "pulls_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/labels{/name}",
      "releases_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/releases{/id}",
      "deployments_url": "https://api.github.com/repos/MozartofCode/Shark-Tank-Game/deployments",
      "created_at": "2026-10-03T16:44:58Z",
      "updated_at": "2026-10-03T18:34:53Z",
      "pushed_at": "2026-10-03T18:34:49Z",
      "git_url": "git://github.com/MozartofCode/Shark-Tank-Game.git",
      "ssh_url": "[email protected]:MozartofCode/Shark-Tank-Game.git",
      "clone_url": "https://github.com/MozartofCode/Shark-Tank-Game.git",
      "svn_url": "https://github.com/MozartofCode/Shark-Tank-Game",
      "homepage": null,
      "size": 547,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Tank Day 🦈\n\nTake a seat on the panel. Every day you get **$1M** and **five real startup pitches**. Watch each pitch, question the founder, compete with four AI sharks for the deal, then fast-forward years later and see what really happened to every company and what your slice is worth. Every day adds to your lifetime **portfolio**.\n\nIt's built to teach (including teenagers) how startup investing works: valuation, equity, dilution, exits, survivorship bias, and why investors spread their bets. The wording is deliberately plain, with a \"money words\" glossary and a short lesson after every company.\n\n## Quick start\n\nRequirements: [uv](https://docs.astral.sh/uv/) (Python 3.12) and Node 20+.\n\n```bash\nmake install\ncp .env.example .env    # optional: add ANTHROPIC_API_KEY for the live AI founder\nmake dev                # API on :8000, web app on http://localhost:5173\n```\n\nThe game works without an API key. A built-in offline founder answers questions from the pitch facts.\n\n### Accounts & leaderboards (Supabase)\n\nThe Supabase project **tank-day** (`uulpajrparfidqyntdop`) already has the schema from `supabase/migrations/`. To turn on saved runs and leaderboards:\n\n1. Supabase Dashboard → **Project Settings → API Keys** → copy a **secret key** into `.env` as `SUPABASE_SECRET_KEY`. It's server-only, so never commit it or put it in the frontend.\n2. Dashboard → **Authentication → URL Configuration**: set **Site URL** to your app URL and add `http://localhost:5173` to **Redirect URLs** so magic links land back in the game.\n3. Restart the backend. `/api/health` should report `\"accounts\": true, \"leaderboards\": true`.\n\nOptional: run `cd backend && uv run python ../scripts/sync_pitches.py`, then set `PITCH_SOURCE=supabase` to serve pitches from the database instead of the `pitches/` folder.\n\nSupabase's built-in email sender is rate-limited. Configure custom SMTP before a public launch.\n\n| Command | What it does |\n|---|---|\n| `make dev` | Run backend and frontend together |\n| `make test` | Backend test suite (pytest) |\n| `make lint` | ruff + oxlint |\n| `make validate` | Check every pitch in `pitches/` |\n| `make build` | Production build of the web app |\n\n## How a day works\n\nEach day starts with **$1M** and picks 5 of the 23 pitches. Every day includes **2–3 companies that really went out of business**, mixed with survivors and shuffled. (Simulated over 2,000 days, \"buy everything at the asking price\" loses money on about 16% of days.)\n\n1. **Pitch**: the real clip, cut before the deal so there are no spoilers.\n2. **Ask**: up to 3 questions to an AI founder who only knows pitch-day facts.\n3. **Invest**: the four sharks go in or out. Offer money for a slice (optionally with a **royalty**), say *why* (team / product / price / gut), or pass. The founder takes the offer that values the company highest (sharks get a bonus when they can help; royalties count 25% less), counters once if it's close, or walks.\n4. **Find out**: what really happened, what your slice is worth now, a lesson, how you did against the sharks, an index-fund comparison, and a **Share** button (🟩🟥⬜…).\n\nAfter each deal you win there's a quick **valuation check**.\n\n**Portfolio.** Every finished day adds to your portfolio: profit, every company you own, which reasons paid off, **achievements** and your daily-challenge **streak**. Guests' portfolios live in the browser; signed-in players' are saved in Supabase.\n\n**Learn.** A searchable glossary of ~25 money words; key terms in the game are tappable.\n\n**Classroom.** A teacher creates a class and gets a 6-letter code. Students join with the code and their first name, and everyone plays the same five companies. The teacher's dashboard shows live results, how the class invested in each company, and discussion prompts generated from the class's choices.\n\n## Architecture (MVC)\n\n```\nbackend/ (FastAPI)\n  app/models/         Pydantic domain + API schemas (Pitch, PublicPitch, GameState, views)\n  app/repositories/   Data access: Local/SupabasePitchRepository, SharkRepository (YAML), InMemoryGameStore, SupabaseRunRepository\n  app/services/       Business logic: game_engine, founder (accept/counter/walk), scoring, deal_math, founder_chat (Claude)\n  app/controllers/    Thin HTTP layer: /api/games…, /api/health, /api/sharks, /media\n  app/content/        sharks.yaml (fictional personas), lessons.py\nfrontend/ (React + Vite + TS + Tailwind)\n  src/api/            HTTP + SSE client (model access)\n  src/store/          Zustand game store (controller)\n  src/views/          Home, Game, Reveal screens (views)\n  src/components/     SharkPanel, FounderChat, OfferSlip, DecisionBanner, VideoPlayer…\npitches/<slug>/       pitch.json (+ hidden outcome) and reactions.json\nscripts/              new_pitch, validate_pitches, generate_shark_reactions, sync_pitches, trim_clip\nsupabase/migrations/  Database schema + RLS policies\n```\n\n**Server-authoritative.** The browser never receives `outcome`, `real_deal` or `founder_prefs` until the reveal (`PublicPitch` omits them). `/media` only serves whitelisted media files. Both rules are enforced by tests.\n\n**Deterministic money, AI flavour.** All deal math and founder decisions are plain Python (`services/founder.py`, `services/scoring.py`). Claude only writes dialogue: live founder answers (Claude Haiku 4.5, streamed over SSE) and offline shark reactions (Claude Sonnet 5.5, `scripts/generate_shark_reactions.py`).\n\n### API\n\n| Method | Path | Purpose |\n|---|---|---|\n| POST | `/api/games` | Start a day (5 random pitches) |\n| GET | `/api/games/{id}` | Resume |\n| POST | `/api/games/{id}/rounds/{i}/questions` | Ask the founder (SSE: `delta`…, `done`) |\n| POST | `/api/games/{id}/rounds/{i}/offer` | `{amount, equity}` or `{pass: true}` |\n| POST | `/api/games/{id}/rounds/{i}/counter` | `{accept: bool}` |\n| POST | `/api/games/{id}/reveal` | Results (only once every round is closed); saves the run for signed-in players |\n| POST | `/api/games/{id}/claim` | Attach a guest game to the signed-in account |\n| GET | `/api/leaderboard?scope=daily\\|all` | Daily challenge / all-time leaderboard |\n| GET | `/api/me/runs` | Signed-in player's run history |\n| GET | `/api/me/portfolio` | Every finished day and the companies the player owns |\n| POST | `/api/classes` | Create a class → `{code, teacher_token}` |\n| GET | `/api/classes/{code}` | Class name (for students joining) |\n| GET | `/api/classes/{code}/dashboard` | Teacher dashboard (`X-Teacher-Token` header) |\n\n`POST /api/games` takes `{\"mode\": \"class\", \"class_code\", \"student\"}` to join a class, or `{\"mode\": \"daily\"}` for the daily challenge: everyone gets the same 5 pitches each UTC day, and only your first daily run is ranked. Requests may carry `Authorization: Bearer <supabase access token>`. The backend verifies it against the project's JWKS (ES256).\n\n**Storage.** Game sessions and classrooms live in SQL via `DATABASE_URL` (SQLite locally, Supabase Postgres in production), so games survive restarts and scale across instances. Per-IP rate limits and a daily cap on paid AI calls (`AI_DAILY_CALL_CAP`) protect costs.\n\n**Security model.** Scores are written only by the backend with the secret key; the tables have no insert policies, so players can't post fake scores. `pitches` (hidden outcomes) has RLS with no policies, so it's service-role only. Games owned by an account can only be used by that account.\n\n## Adding a pitch\n\n```bash\npython3 scripts/new_pitch.py my-company       # scaffolds pitches/my-company/pitch.json\n# fill in pitch.json (facts = pitch-day knowledge only; outcome with sources)\ncd backend && uv run python ../scripts/generate_shark_reactions.py my-company   # or write reactions.json by hand\nmake validate\n```\n\nRead [docs/CONTENT_AND_COPYRIGHT.md](docs/CONTENT_AND_COPYRIGHT.md) before adding clips.\n\n## Deploying\n\nSee [docs/DEPLOY.md](docs/DEPLOY.md): Supabase dashboard steps, environment variables, Fly.io/Render for the API (root `Dockerfile`), Vercel for the web app. CI (GitHub Actions) runs lint, tests, content validation, the frontend build and a Docker smoke test on every push; a weekly job checks every YouTube clip is still embeddable (`make embeds`).\n\n## Roadmap\n\nSee [docs/PLAN.md](docs/PLAN.md). Ideas: more pitches, TTS shark voices, loan deals, an admin page for adding pitches.\n\n*Educational game, not financial advice. Not affiliated with Shark Tank, ABC or Sony Pictures Television.*\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".dockerignore",
      ".env.example",
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".github/workflows/embeds.yml",
      ".gitignore",
      "Dockerfile",
      "Makefile",
      "README.md",
      "backend",
      "backend/.python-version",
      "backend/app",
      "backend/app/__init__.py",
      "backend/app/config.py",
      "backend/app/content",
      "backend/app/content/__init__.py",
      "backend/app/content/lessons.py",
      "backend/app/content/sharks.yaml",
      "backend/app/controllers",
      "backend/app/controllers/__init__.py",
      "backend/app/controllers/account.py",
      "backend/app/controllers/classrooms.py",
      "backend/app/controllers/games.py",
      "backend/app/controllers/media.py",
      "backend/app/controllers/meta.py",
      "backend/app/db.py",
      "backend/app/dependencies.py",
      "backend/app/main.py",
      "backend/app/models",
      "backend/app/models/__init__.py",
      "backend/app/models/game.py",
      "backend/app/models/pitch.py",
      "backend/app/models/shark.py",
      "backend/app/repositories",
      "backend/app/repositories/__init__.py",
      "backend/app/repositories/classroom_repository.py",
      "backend/app/repositories/game_store.py",
      "backend/app/repositories/pitch_repository.py",
      "backend/app/repositories/run_repository.py",
      "backend/app/repositories/shark_repository.py",
      "backend/app/repositories/supabase_rest.py",
      "backend/app/services",
      "backend/app/services/__init__.py",
      "backend/app/services/auth.py",
      "backend/app/services/deal_math.py",
      "backend/app/services/founder.py",
      "backend/app/services/founder_chat.py",
      "backend/app/services/game_engine.py",
      "backend/app/services/rate_limit.py",
      "backend/app/services/scoring.py",
      "backend/pyproject.toml",
      "backend/tests",
      "backend/tests/__init__.py",
      "backend/tests/conftest.py",
      "backend/tests/test_accounts.py",
      "backend/tests/test_api.py",
      "backend/tests/test_classrooms.py",
      "backend/tests/test_deal_math.py",
      "backend/tests/test_engine.py",
      "backend/tests/test_founder.py",
      "backend/tests/test_rate_limit.py",
      "backend/uv.lock",
      "docs",
      "docs/CONTENT_AND_COPYRIGHT.md",
      "docs/DEPLOY.md",
      "docs/PLAN.md",
      "fly.toml",
      "frontend",
      "frontend/.gitignore",
      "frontend/.oxlintrc.json",
      "frontend/index.html",
      "frontend/package-lock.json",
      "frontend/package.json",
      "frontend/public",
      "frontend/public/favicon.svg",
      "frontend/src",
      "frontend/src/App.tsx",
      "frontend/src/api",
      "frontend/src/api/client.ts",
      "frontend/src/components",
      "frontend/src/components/AccountPanel.tsx",
      "frontend/src/components/DecisionBanner.tsx",
      "frontend/src/components/FounderChat.tsx",
      "frontend/src/components/Leaderboard.tsx",
      "frontend/src/components/Nav.tsx",
      "frontend/src/components/OfferSlip.tsx",
      "frontend/src/components/SharkPanel.tsx",
      "frontend/src/components/Sheets.tsx",
      "frontend/src/components/Term.tsx",
      "frontend/src/components/ValuationQuiz.tsx",
      "frontend/src/components/VideoPlayer.tsx",
      "frontend/src/components/ui.tsx",
      "frontend/src/index.css",
      "frontend/src/lib",
      "frontend/src/lib/achievements.ts",
      "frontend/src/lib/classrooms.ts",
      "frontend/src/lib/format.ts",
      "frontend/src/lib/glossary.ts",
      "frontend/src/lib/portfolio.ts",
      "frontend/src/lib/progress.ts",
      "frontend/src/lib/reasons.ts",
      "frontend/src/lib/share.ts",
      "frontend/src/lib/status.ts",
      "frontend/src/main.tsx",
      "frontend/src/store",
      "frontend/src/store/authStore.ts",
      "frontend/src/store/gameStore.ts",
      "frontend/src/types.ts",
      "frontend/src/views",
      "frontend/src/views/ClassroomView.tsx",
      "frontend/src/views/GameView.tsx",
      "frontend/src/views/HomeView.tsx",
      "frontend/src/views/LearnView.tsx",
      "frontend/src/views/LegalView.tsx",
      "frontend/src/views/PortfolioView.tsx",
      "frontend/src/views/RevealView.tsx",
      "frontend/src/views/TeacherView.tsx",
      "frontend/tsconfig.app.json",
      "frontend/tsconfig.json",
      "frontend/tsconfig.node.json",
      "frontend/vercel.json",
      "frontend/vite.config.ts",
      "pitches",
      "pitches/bantam-bagels",
      "pitches/bantam-bagels/pitch.json",
      "pitches/bantam-bagels/reactions.json",
      "pitches/beulr",
      "pitches/beulr/pitch.json",
      "pitches/beulr/reactions.json",
      "pitches/bombas",
      "pitches/bombas/pitch.json",
      "pitches/bombas/reactions.json",
      "pitches/breathometer",
      "pitches/breathometer/pitch.json",
      "pitches/breathometer/reactions.json",
      "pitches/coffee-meets-bagel",
      "pitches/coffee-meets-bagel/pitch.json",
      "pitches/coffee-meets-bagel/reactions.json",
      "pitches/cousins-maine-lobster",
      "pitches/cousins-maine-lobster/pitch.json",
      "pitches/cousins-maine-lobster/reactions.json",
      "pitches/cycloramic",
      "pitches/cycloramic/pitch.json",
      "pitches/cycloramic/reactions.json",
      "pitches/doorbot",
      "pitches/doorbot/pitch.json",
      "pitches/doorbot/reactions.json",
      "pitches/go-oats",
      "pitches/go-oats/pitch.json",
      "pitches/go-oats/reactions.json",
      "pitches/groovebook",
      "pitches/groovebook/pitch.json",
      "pitches/groovebook/reactions.json",
      "pitches/kisstixx",
      "pitches/kisstixx/pitch.json",
      "pitches/kisstixx/reactions.json",
      "pitches/kodiak-cakes",
      "pitches/kodiak-cakes/pitch.json",
      "pitches/kodiak-cakes/reactions.json",
      "pitches/oatmeals",
      "pitches/oatmeals/pitch.json",
      "pitches/oatmeals/reactions.json",
      "pitches/qball",
      "pitches/qball/pitch.json",
      "pitches/qball/reactions.json",
      "pitches/rolodoc",
      "pitches/rolodoc/pitch.json",
      "pitches/rolodoc/reactions.json",
      "pitches/scrub-daddy",
      "pitches/scrub-daddy/pitch.json",
      "pitches/scrub-daddy/reactions.json",
      "pitches/showno",
      "pitches/showno/pitch.json",
      "pitches/showno/reactions.json",
      "pitches/squatty-potty",
      "pitches/squatty-potty/pitch.json",
      "pitches/squatty-potty/reactions.json"
    ],
    "tree_truncated": false
  },
  {
    "repo": "Scouteure/maxime-alban",
    "search_description": "",
    "created_at": "2026-10-03T11:44:18Z",
    "id": "R_kgDOU6FmMw",
    "meta": {
      "id": 1403086387,
      "node_id": "R_kgDOU6FmMw",
      "name": "maxime-alban",
      "full_name": "Scouteure/maxime-alban",
      "private": false,
      "owner": {
        "login": "Scouteure",
        "id": 171706606,
        "node_id": "U_kgDOCjwI7g",
        "avatar_url": "https://avatars.githubusercontent.com/u/171706606?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/Scouteure",
        "html_url": "https://github.com/Scouteure",
        "followers_url": "https://api.github.com/users/Scouteure/followers",
        "following_url": "https://api.github.com/users/Scouteure/following{/other_user}",
        "gists_url": "https://api.github.com/users/Scouteure/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/Scouteure/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/Scouteure/subscriptions",
        "organizations_url": "https://api.github.com/users/Scouteure/orgs",
        "repos_url": "https://api.github.com/users/Scouteure/repos",
        "events_url": "https://api.github.com/users/Scouteure/events{/privacy}",
        "received_events_url": "https://api.github.com/users/Scouteure/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/Scouteure/maxime-alban",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/Scouteure/maxime-alban",
      "forks_url": "https://api.github.com/repos/Scouteure/maxime-alban/forks",
      "keys_url": "https://api.github.com/repos/Scouteure/maxime-alban/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/Scouteure/maxime-alban/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/Scouteure/maxime-alban/teams",
      "hooks_url": "https://api.github.com/repos/Scouteure/maxime-alban/hooks",
      "issue_events_url": "https://api.github.com/repos/Scouteure/maxime-alban/issues/events{/number}",
      "events_url": "https://api.github.com/repos/Scouteure/maxime-alban/events",
      "assignees_url": "https://api.github.com/repos/Scouteure/maxime-alban/assignees{/user}",
      "branches_url": "https://api.github.com/repos/Scouteure/maxime-alban/branches{/branch}",
      "tags_url": "https://api.github.com/repos/Scouteure/maxime-alban/tags",
      "blobs_url": "https://api.github.com/repos/Scouteure/maxime-alban/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/Scouteure/maxime-alban/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/Scouteure/maxime-alban/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/Scouteure/maxime-alban/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/Scouteure/maxime-alban/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/Scouteure/maxime-alban/languages",
      "stargazers_url": "https://api.github.com/repos/Scouteure/maxime-alban/stargazers",
      "contributors_url": "https://api.github.com/repos/Scouteure/maxime-alban/contributors",
      "subscribers_url": "https://api.github.com/repos/Scouteure/maxime-alban/subscribers",
      "subscription_url": "https://api.github.com/repos/Scouteure/maxime-alban/subscription",
      "commits_url": "https://api.github.com/repos/Scouteure/maxime-alban/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/Scouteure/maxime-alban/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/Scouteure/maxime-alban/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/Scouteure/maxime-alban/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/Scouteure/maxime-alban/contents/{+path}",
      "compare_url": "https://api.github.com/repos/Scouteure/maxime-alban/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/Scouteure/maxime-alban/merges",
      "archive_url": "https://api.github.com/repos/Scouteure/maxime-alban/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/Scouteure/maxime-alban/downloads",
      "issues_url": "https://api.github.com/repos/Scouteure/maxime-alban/issues{/number}",
      "pulls_url": "https://api.github.com/repos/Scouteure/maxime-alban/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/Scouteure/maxime-alban/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/Scouteure/maxime-alban/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/Scouteure/maxime-alban/labels{/name}",
      "releases_url": "https://api.github.com/repos/Scouteure/maxime-alban/releases{/id}",
      "deployments_url": "https://api.github.com/repos/Scouteure/maxime-alban/deployments",
      "created_at": "2026-10-03T11:44:18Z",
      "updated_at": "2026-10-03T12:04:20Z",
      "pushed_at": "2026-10-03T12:04:16Z",
      "git_url": "git://github.com/Scouteure/maxime-alban.git",
      "ssh_url": "[email protected]:Scouteure/maxime-alban.git",
      "clone_url": "https://github.com/Scouteure/maxime-alban.git",
      "svn_url": "https://github.com/Scouteure/maxime-alban",
      "homepage": null,
      "size": 59,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "claude/sweet-davinci-44ud78",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# 🐉 La Taverne du Dragon\n\nUn jeu de rôle narratif dans l'esprit de **Donjons & Dragons**, joué **au tour par tour** à plusieurs, chacun sur son ordinateur, avec un **Maître du Jeu IA** (Claude) qui raconte l'histoire.\n\n> *« La pluie martèle les volets de la taverne quand la porte s'ouvre sur vous… Que faites-vous ? »*\n\n## Ce que fait le jeu\n\n- **Narrateur IA** : Claude raconte, incarne les PNJ, arbitre les règles et réagit à tout ce que vous écrivez, librement.\n- **Multijoueur en temps réel** : chacun joue depuis son navigateur ; quand c'est votre tour, un petit carillon sonne. Le texte du narrateur s'affiche au fur et à mesure qu'il l'écrit.\n- **Tour par tour** : un joueur agit, le narrateur raconte la suite et passe la main au joueur suivant.\n- **Personnages façon D&D** : 6 races, 6 classes, caractéristiques (FOR, DEX, CON, INT, SAG, CHA), jets de dés 4d6 ou répartition standard.\n- **Jets de d20** : le serveur lance le dé, le narrateur choisit la caractéristique et la difficulté ; l'interface affiche le résultat (réussites et échecs critiques compris).\n- **Progression** : points de vie, XP et niveaux, or, inventaire, états (empoisonné, à terre…), tout mis à jour automatiquement par le narrateur.\n- **Visuels légers** : une petite illustration SVG est dessinée par l'IA à chaque nouveau lieu, plus des émojis d'ambiance et les ennemis présents.\n- **Panneau latéral** : fiche du personnage, sac (inventaire), groupe, journal des quêtes et indices, chat hors-jeu entre joueurs.\n- **Sauvegarde automatique** : les parties sont enregistrées sur le disque ; on peut fermer le navigateur et reprendre plus tard avec le code.\n- **Mode démo** sans clé API, pour tester l'interface et le multijoueur.\n\n## Démarrage rapide\n\nIl faut [Node.js](https://nodejs.org) version 20.12 ou plus récente.\n\n```bash\nnpm install\ncp .env.example .env      # puis mettez votre clé ANTHROPIC_API_KEY dans .env\nnpm start\n```\n\nOuvrez ensuite <http://localhost:3000>, entrez votre prénom et cliquez sur **Créer une partie**.\nCréez votre personnage, puis cliquez sur **Copier le lien d'invitation** et envoyez-le à votre ami.\n\nPas encore de clé API ? `npm run demo` lance le jeu avec un narrateur simulé (les réponses sont toutes faites, mais tout le reste fonctionne).\n\nLa clé API se crée sur <https://platform.claude.com> (rubrique *API Keys*). L'utilisation est facturée à l'usage : voir [Combien ça coûte ?](#combien-ça-coûte-).\n\n## Jouer à deux sur des ordinateurs différents\n\nLe jeu tourne sur **un seul** ordinateur (celui qui lance `npm start`) ; les autres joueurs s'y connectent avec leur navigateur.\n\n**Sur le même réseau (même Wi-Fi)** : au démarrage, le serveur affiche une adresse « Sur le réseau local », par exemple `http://192.168.1.20:3000`. Votre ami ouvre cette adresse (ou le lien d'invitation en remplaçant `localhost` par cette adresse). Si ça ne passe pas, autorisez Node.js dans le pare-feu.\n\n**À distance (chacun chez soi)**, trois options :\n\n1. **Un tunnel** (le plus simple) : il donne une adresse publique temporaire à votre jeu.\n   - [cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/) (gratuit, sans compte) : `cloudflared tunnel --url http://localhost:3000`\n   - ou [ngrok](https://ngrok.com) : `ngrok http 3000`\n\n   Ouvrez vous-même le jeu via l'adresse affichée par le tunnel, puis copiez le lien d'invitation : il contiendra la bonne adresse.\n2. **Un réseau privé** comme [Tailscale](https://tailscale.com) : installé sur les deux ordinateurs, il vous met sur le « même réseau » où que vous soyez.\n3. **Un hébergement en ligne** (Render, Railway, Fly.io…) : créez un service web Node.js, commande de démarrage `npm start`, et ajoutez `ANTHROPIC_API_KEY` dans les variables d'environnement. Attention : sur les offres gratuites, le disque est souvent effacé au redémarrage (les parties sauvegardées seraient perdues).\n\n## Comment on joue\n\n1. **Créer ou rejoindre** une partie (code de 4 lettres ou lien d'invitation).\n2. **Créer son personnage** : nom, race, classe, caractéristiques et, si vous voulez, une petite histoire que le narrateur utilisera.\n3. Dans le **salon**, réglez l'univers, le ton et la situation de départ (par défaut : une taverne un soir d'orage), puis **Commencer l'aventure**.\n4. À votre tour, écrivez librement ce que fait votre personnage (« Je m'approche du barde et lui demande s'il connaît la légende du dragon »), ou cliquez sur une suggestion. Vous pouvez préparer votre action pendant le tour des autres.\n5. Le narrateur raconte la suite, lance les dés si nécessaire, applique les dégâts, l'XP, l'or et les objets, puis passe la main.\n\nAstuces :\n\n- Bouton **Utiliser** dans le sac pour pré-remplir une action avec un objet.\n- **Passer** son tour ; si un joueur est déconnecté, les autres peuvent passer son tour à sa place.\n- Le **chat** sert à discuter entre joueurs sans que le narrateur le lise.\n- Un ami peut rejoindre une partie déjà commencée : son personnage arrive en cours de route.\n- En rechargeant la page, vous retrouvez automatiquement votre personnage (le navigateur garde un jeton secret).\n\n## Combien ça coûte ?\n\nChaque tour fait un appel à l'API Anthropic. Ordre de grandeur avec le modèle par défaut (`claude-opus-5-5`, 4 $ par million de jetons en entrée et 20 $ en sortie) :\n\n- un tour de jeu : environ **3 à 6 centimes** (le contexte grandit un peu avec l'histoire) ;\n- une illustration de lieu : environ **5 à 8 centimes** ;\n- une soirée de 2 heures (une centaine de tours) : environ **4 à 7 €**.\n\nPour réduire la facture : `NARRATOR_MODEL=claude-sonnet-5-5` (environ deux fois moins cher) et/ou `ILLUSTRATIONS=non` dans `.env`. Pensez aussi à fixer une limite de dépense mensuelle dans la console Anthropic.\n\n## Configuration (`.env`)\n\n| Variable | Rôle | Défaut |\n|---|---|---|\n| `ANTHROPIC_API_KEY` | Clé API Anthropic. Sans clé : mode démo. | — |\n| `NARRATOR_MODEL` | Modèle du narrateur. | `claude-opus-5-5` |\n| `NARRATOR_EFFORT` | Temps de réflexion : `low` (rapide), `medium`, `high`. | `low` |\n| `ILLUSTRATIONS` | Illustrations SVG des lieux : `oui` ou `non`. | `oui` |\n| `ILLUSTRATOR_MODEL` | Modèle de l'illustrateur. | celui du narrateur |\n| `NARRATEUR` | `auto`, `claude` ou `demo`. | `auto` |\n| `PORT` | Port du serveur web. | `3000` |\n| `DATA_DIR` | Dossier des sauvegardes. | `data/parties` |\n\n## Organisation du code\n\n```\nserver/\n  index.js            Point d'entrée (npm start) : lit .env, lance le serveur\n  app.js              Serveur web + temps réel (Socket.IO) : connexions, tours, narration\n  game.js             État d'une partie : joueurs, ordre des tours, journal, application des effets\n  rules.js            Règles : races, classes, caractéristiques, dés, XP et niveaux\n  store.js            Sauvegarde des parties en JSON (data/parties/CODE.json)\n  narrator/\n    prompts.js        Consignes du Maître du Jeu et contexte envoyé à chaque tour\n    schema.js         Format JSON imposé aux réponses (narration, jet, effets, lieu…)\n    claude.js         Appels à l'API Claude (narration en streaming + illustrations)\n    demo.js           Narrateur simulé, sans IA\n    partialJson.js    Lecture de la narration pendant qu'elle s'écrit\npublic/\n  index.html          Les écrans : accueil, création, salon, jeu\n  style.css           L'apparence\n  app.js              Toute la logique de l'interface (sans framework)\ntests/                Tests automatiques (npm test)\n```\n\n### Comment fonctionne un tour\n\n1. Le joueur envoie son action ; le serveur vérifie que c'est bien son tour et lance un d20.\n2. `narrator/prompts.js` assemble le contexte : univers, fiches des personnages, journal, 30 derniers événements, l'action et le résultat du dé pour chaque caractéristique.\n3. Claude répond dans un format JSON strict (`narrator/schema.js`) : narration, jet utilisé, effets sur les personnages, lieu, ambiance, ennemis, notes de journal, suggestions.\n4. Le serveur applique les effets (`Game.applyEffects`) en bornant les valeurs, passe au joueur suivant et envoie le nouvel état à tous les navigateurs.\n5. Si le groupe arrive dans un nouveau lieu, une illustration SVG est demandée en arrière-plan.\n\n### Ajouter des fonctionnalités\n\n- **Nouvelle race ou classe** : ajoutez-la dans `server/rules.js`, l'interface la proposera automatiquement.\n- **Nouvelle information renvoyée par le narrateur** (par exemple une météo, une réputation…) : ajoutez le champ dans `narrator/schema.js`, expliquez-le dans `SYSTEM_PROMPT` (`narrator/prompts.js`), utilisez-le dans `applyNarration` (`server/app.js`) puis affichez-le dans `public/app.js`.\n- **Changer le style du narrateur** : modifiez `SYSTEM_PROMPT`, ou simplement l'univers et le ton dans le salon.\n\nQuelques idées pour la suite : combats plus tactiques avec PV des ennemis, carte du monde, sons d'ambiance, montée de niveau avec choix de nouvelles capacités, équipement porté (armes/armures) séparé du sac, export de l'histoire en livre, MJ humain qui peut corriger le narrateur…\n\n## Tests\n\n```bash\nnpm test\n```\n\nLes tests couvrent les règles, l'application des effets, une partie complète à deux joueurs (avec le narrateur de démo) et le narrateur Claude face à une fausse API (aucun appel réel, aucun coût).\n",
    "tree_paths": [
      ".env.example",
      ".gitignore",
      ".prettierrc",
      "README.md",
      "package-lock.json",
      "package.json",
      "public",
      "public/app.js",
      "public/index.html",
      "public/style.css",
      "server",
      "server/app.js",
      "server/game.js",
      "server/index.js",
      "server/narrator",
      "server/narrator/claude.js",
      "server/narrator/demo.js",
      "server/narrator/index.js",
      "server/narrator/partialJson.js",
      "server/narrator/prompts.js",
      "server/narrator/schema.js",
      "server/rules.js",
      "server/store.js",
      "tests",
      "tests/game.test.js",
      "tests/multijoueur.test.js",
      "tests/narrateur-claude.test.js",
      "tests/rules.test.js"
    ],
    "tree_truncated": false
  },
  {
    "repo": "wguglielmo-28/hfl-nn",
    "search_description": "",
    "created_at": "2026-10-02T13:35:38Z",
    "id": "R_kgDOU42wTA",
    "meta": {
      "id": 1401794636,
      "node_id": "R_kgDOU42wTA",
      "name": "hfl-nn",
      "full_name": "wguglielmo-28/hfl-nn",
      "private": false,
      "owner": {
        "login": "wguglielmo-28",
        "id": 291635235,
        "node_id": "U_kgDOEWIAIw",
        "avatar_url": "https://avatars.githubusercontent.com/u/291635235?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/wguglielmo-28",
        "html_url": "https://github.com/wguglielmo-28",
        "followers_url": "https://api.github.com/users/wguglielmo-28/followers",
        "following_url": "https://api.github.com/users/wguglielmo-28/following{/other_user}",
        "gists_url": "https://api.github.com/users/wguglielmo-28/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/wguglielmo-28/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/wguglielmo-28/subscriptions",
        "organizations_url": "https://api.github.com/users/wguglielmo-28/orgs",
        "repos_url": "https://api.github.com/users/wguglielmo-28/repos",
        "events_url": "https://api.github.com/users/wguglielmo-28/events{/privacy}",
        "received_events_url": "https://api.github.com/users/wguglielmo-28/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/wguglielmo-28/hfl-nn",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/wguglielmo-28/hfl-nn",
      "forks_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/forks",
      "keys_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/teams",
      "hooks_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/hooks",
      "issue_events_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/issues/events{/number}",
      "events_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/events",
      "assignees_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/assignees{/user}",
      "branches_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/branches{/branch}",
      "tags_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/tags",
      "blobs_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/languages",
      "stargazers_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/stargazers",
      "contributors_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/contributors",
      "subscribers_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/subscribers",
      "subscription_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/subscription",
      "commits_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/contents/{+path}",
      "compare_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/merges",
      "archive_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/downloads",
      "issues_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/issues{/number}",
      "pulls_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/labels{/name}",
      "releases_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/releases{/id}",
      "deployments_url": "https://api.github.com/repos/wguglielmo-28/hfl-nn/deployments",
      "created_at": "2026-10-02T13:35:38Z",
      "updated_at": "2026-10-03T11:50:44Z",
      "pushed_at": "2026-10-03T11:50:40Z",
      "git_url": "git://github.com/wguglielmo-28/hfl-nn.git",
      "ssh_url": "[email protected]:wguglielmo-28/hfl-nn.git",
      "clone_url": "https://github.com/wguglielmo-28/hfl-nn.git",
      "svn_url": "https://github.com/wguglielmo-28/hfl-nn",
      "homepage": null,
      "size": 444,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# 📺 HFL-NN — the HFL News Network\n\n**Pixel-art AI anchors who report on the Hypnotical Football League.**\n\nHFL-NN turns the league's Madden 27 exports, the HFL Hub and the Crimson Chronicle into short,\nanimated, fully voiced news broadcasts. A weekly show goes up after each advance; breaking-news\nbulletins and offseason, draft, preseason and playoff specials go up as news happens. Five\nanchors with their own personalities (and one running feud) read every line aloud while their\npixel mouths flap in sync, with on-screen scoreboards, trade cards, standings and a ticker.\nEach new episode can be announced in Discord.\n\nIt's the idea behind [PNN](https://pnn.watch/), but built for one league and run on episodes\ninstead of a 24/7 stream.\n\n---\n\n## ⚡ Quick start\n\nYou need **Node.js 22 or newer** ([nodejs.org](https://nodejs.org), LTS).\n\n```bash\nnpm install\nnpm run demo        # builds a sample league and produces two voiced episodes\nnpm start           # http://localhost:3000  ·  control room: http://localhost:3000/control\n```\n\nOn Windows, double-click **`start.bat`**.\n\n`npm run demo` uses the sample league in `test/fixtures/madden`. The first voiced run downloads\nthe Kokoro voice model (~90 MB) once. Options:\n\n- `-- --writer template` skips Claude.\n- `-- --tts silent` skips voices, which makes it quick.\n- `-- --data ./somewhere` writes somewhere other than `./data`.\n\nDone with the sample? Press **Remove sample league** on the control room Dashboard before your\nreal league's first export. It clears the sample's league data, stories, episodes and show memory,\nand keeps your settings and export URL. **Settings → Start over** does the same for any league.\n\nThe control room password comes from `ADMIN_PASSWORD`. If that's not set, the server prints a\ntemporary password when it starts.\n\n---\n\n## 🔌 Connecting the HFL\n\n**HFL setup:** [`docs/hfl-setup.md`](docs/hfl-setup.md) connects HFL-NN to the league's own tools:\nthe daily `ea-exporter`, the Hub's Chronicle pages and the Hub feed. It includes copy-paste\ninstructions for the changes on the exporter and Hub side.\n\n### Madden 27 exports\nOpen the control room. The **Dashboard** shows your private export URL:\n\n```\nhttps://<your-hfl-nn>/ingest/<secret>\n```\n\nAnything that speaks the Madden Companion App export protocol can send to it:\n- **The HFL's `ea-exporter`** (recommended). It pulls straight from EA every day and includes\n  free agents. It needs one small change to send HFL-NN a copy (see the setup guide).\n- **Snallabot**: dashboard → export → add a custom export URL.\n- **The Madden Companion App's** export screen. It leaves out free agents.\n\nEach export arrives as a burst of requests. HFL-NN applies them as they land, waits 90 seconds\nafter the last one, and treats the burst as one **batch**. It compares each batch with the previous\none and writes up what changed:\n- **A week whose games are all final** (after the advance) gets the weekly show. With automation\n  on, it is drafted then, once per week.\n- **A mid-week export** (the daily exporter sends plenty) can produce a Breaking News bulletin when\n  something big changed since the day before.\n- **An export for a different league** (a new Madden year, or real data replacing the sample)\n  starts a fresh league. The old one is archived.\n\nYou can also upload export JSON files by hand (**Sources → Madden exports**).\n\n### The Crimson Chronicle\nIn **Settings**, enter the Hub's Chronicle page, `https://hfl-hub-5kc.pages.dev/chronicle`. HFL-NN\nreads each new issue as it is posted. It takes the headline from the Feature Story, the author\nfrom the byline, and a short summary of every section for the writers. An RSS or Atom feed (or\na site that advertises one) works too. New issues are picked up every 20 minutes.\n\nOn air, the anchors credit the Chronicle and the author by name, and the **Sources** panel under\nthe player links to the issue. Posts tagged \"Breaking\" can trigger a bulletin. You can also add a\nsingle article by URL or paste one in (**Sources**).\n\n### The HFL Hub\nThe Hub provides the official Game of the Week, coach names, announcements, power rankings, awards\nand league history through one small JSON document. HFL-NN either polls it at a URL or receives it\nas a push. The format is in [`docs/hub-feed.md`](docs/hub-feed.md).\n\nThe HFL never self-selects a Game of the Week. Until the Hub names one for the week, the show's\ntop game is called the **Spotlight Game**.\n\n### Discord\n**Settings → Discord**: paste a channel webhook and send a test message. Every published episode\nthen posts with a link to watch. The webhook is stored encrypted and is never shown again.\n\n---\n\n## 🎬 How an episode gets made\n\n```\nexport batch ──▶ story engine ──▶ rundown ──▶ script ──▶ voices + mix ──▶ review ──▶ publish\n```\n\n1. **Story engine** (`lib/stories.js`) compares this batch with the last one. It finds:\n   - upsets, blowouts and nail-biters\n   - big games and milestones\n   - streaks, division-lead changes, clinches and power-index moves\n   - trades, signings, releases, retirements and injuries\n   - dev-trait upgrades, rating jumps, rookie classes and owner changes\n\n   Every number is computed here, and each story gets a score and an on-screen card.\n2. **Rundown** (`lib/rundown.js`) picks the segments for the episode type and season phase and\n   decides who's in each one. Segments with nothing to say are dropped.\n3. **Script**: either **Claude** or the free **template writer** writes the lines. Claude\n   (Sonnet 5.5 by default, or Opus 5.5) is constrained to a JSON script format, told to use only\n   the supplied facts, and kept in character by the show bible. A validator then:\n   - checks speakers, cards and length\n   - flags any number that isn't in the facts\n   - blocks profanity\n\n   A failed check gets one automatic repair attempt.\n4. **Voices and mix**: **Kokoro** voices each line in a background thread. Chiptune stings go\n   between segments. Out comes one MP3 plus a timeline of who speaks when, which cards come up,\n   and how open each mouth is in every frame.\n5. **Review**: in the control room you can read every line and:\n   - edit a line, or change its speaker, emotion, gesture, camera shot or card\n   - rewrite one segment\n   - preview the episode, then publish it\n\nThe browser player uses the audio as its clock, so lips never drift from the voice.\n\n---\n\n## 🎙 The show\n\n| Anchor | Role | Schtick | Voice |\n|---|---|---|---|\n| **Hal Huxley** | Lead anchor | Smooth veteran host; signs off with \"Stay Hypnotical.\" | `am_michael` |\n| **Sasha Sterling** | League insider | \"My sources tell me…\": trades, signings, injuries | `af_bella` |\n| **Big Ray Mobley** | Ex-lineman analyst | Old-school hot takes and desk slams | `am_onyx` |\n| **Nate \"The Numbers\" Okafor** | Analytics desk | Precise, dry, feuds with Ray | `bm_george` |\n| **Gus Grimley** | Conspiracy Corner | \"The sim is rigged\" (for laughs) | `am_puck` |\n\nNames, voices and speed are editable in **Settings**. Looks, bios, styles and catchphrases live\nin `config/personas.json`.\n\n| Episode | When | Length |\n|---|---|---|\n| **HFL-NN Tonight** (weekly) | After each preseason or regular-season advance | 5–9 min |\n| **Breaking News** | Big trades or signings, an X-Factor upgrade, owner changes, a Chronicle \"breaking\" post, or a commissioner announcement | under 1.5 min |\n| **Playoff / Championship** | Wild Card through the title game (weeks 19–23) | 5–9 min |\n| **Offseason / Draft / Free Agency / Preseason specials** | Set the phase in Settings, then produce a special | 4–8 min |\n| **Custom** | Pick any segments and add notes | any |\n\nSegments: Cold Open, Around the League, Game of the Week (the Spotlight Game until the Hub names\none), Players of the Week, Standings and Playoff Race, The Wire (transactions), Injury Report,\nFrom the Chronicle, League Office, Hot Take Hotline, Conspiracy Corner, Up Next, Power Rankings,\nBold Predictions, Draft Desk, Free Agency Frenzy, The Bracket, Season in Review, and the sign-off.\nThey're defined in `config/show.json`.\n\n**Show memory** (`memory.json`) carries persona moods, feuds, on-air predictions, running\nstorylines and recent episodes from show to show. When a prediction comes true or falls flat,\ngrade it in **Show Memory** and the anchors will bring it up.\n\n---\n\n## 🧠 Claude or the template writer\n\n| | Claude | Template writer |\n|---|---|---|\n| Setup | `ANTHROPIC_API_KEY` from [console.anthropic.com](https://console.anthropic.com), billed per use, separate from a Claude subscription | Nothing |\n| Quality | Real banter, callbacks, arguments and jokes | Plain but accurate |\n| Cost | Sonnet 5.5: roughly $0.10–0.20 per weekly show and a cent or two per bulletin. Opus 5.5: about twice that (prompt cached either way) | Free |\n\n**Settings → Claude model** picks the model:\n- **Claude Sonnet 5.5** (the default): $2 / $10 per million input/output tokens. Full shows run at\n  effort `medium`, bulletins at `low`.\n- **Claude Opus 5.5**: $4 / $20, for the strongest writing. Full shows run at `high`, bulletins at\n  `medium`.\n\nWith `writer: auto` (the default), Claude is used when a key is set. If Sonnet 5.5 declines a\nscript, Opus 5.5 gets one try; if Claude still fails or declines, the template writer takes over\nso the show still goes out. Requests also use server-side refusal fallback\n(`fallbacks: \"default\"`). The control room shows the token count and cost of each script.\n\n## 🔊 Voices\n\n[Kokoro](https://huggingface.co/hexgrad/Kokoro-82M) (Apache-2.0) runs on the server, free:\n28 American and British English voices, about real time on a modern CPU. Voiced lines are\ncached, so editing one line and re-voicing only re-synthesizes that line.\n\n**Settings → Pronunciations** fixes names the voices get wrong (`Ja'Marr = Juh Mar`).\n\nA premium provider such as OpenAI or ElevenLabs can be added in `lib/tts/index.js`. All it needs\nis a `synth(text, voice, speed)` function.\n\n---\n\n## ⚙️ Configuration\n\n| Variable | Default | |\n|---|---|---|\n| `ADMIN_PASSWORD` | random per run | Control room password. **Set it.** |\n| `ANTHROPIC_API_KEY` | — | Enables the Claude writer |\n| `HFLNN_MODEL` | `claude-sonnet-5-5` | Starting value for **Settings → Claude model** |\n| `INGEST_KEY` | generated, saved in `DATA_DIR` | The secret in the export URL |\n| `HUB_PUSH_KEY` | — | Bearer token the Hub uses for `POST /api/hub/push` |\n| `HUB_FEED_URL`, `CHRONICLE_FEED_URL`, `PUBLIC_URL` | — | Starting values for the same Settings fields |\n| `DATA_DIR` | `/data` if writable, else `./data` | Where everything is stored |\n| `SECRET_KEY` | derived per install | Encrypts the Discord webhook at rest |\n| `TTS_PROVIDER` | `auto` | `kokoro`, `silent` or `auto` |\n| `EXPORT_DEBOUNCE_SECONDS` | `90` | How long after the last export request a batch closes |\n| `FFMPEG_PATH` | auto | ffmpeg for MP3 output. Falls back to `ffmpeg-static`, then WAV |\n| `PORT` | `3000` | |\n\nSee [`DEPLOYMENT.md`](DEPLOYMENT.md) for hosting on Railway.\n\n## 🗂 Project layout\n\n```\nserver.js               Express app: channel, export receiver, control room API\nconfig/                 personas.json (the anchors), show.json (segments and rundowns)\nlib/league.js           normalized league model built from Madden exports\nlib/ingest/             madden.js (export receiver), hub.js, chronicle.js\nlib/stories.js          story engine (diffs → ranked stories with facts and cards)\nlib/rundown.js          segment selection per episode type and season phase\nlib/writer/             schema, validator, template writer, Claude writer, prompts\nlib/tts/, lib/audio/    Kokoro worker, text prep, jingles, mixer, MP3 encoding\nlib/producer.js         news wire, episodes, jobs and automation\npublic/                 channel page, control room, js/studio/ (pixel-art renderer)\ntools/                  demo.js, snap.js (screenshots), record.js (MP4 clips), make-fixtures.js\ntest/                   node --test suites + trimmed sample exports\n```\n\n```bash\nnpm test                 # all suites (no network, no API key needed)\nnode tools/snap.js       # sc",
    "tree_paths": [
      ".gitignore",
      "DEPLOYMENT.md",
      "README.md",
      "config",
      "config/personas.json",
      "config/show.json",
      "docs",
      "docs/hfl-setup.md",
      "docs/hub-feed.md",
      "lib",
      "lib/audio",
      "lib/audio/encode.js",
      "lib/audio/jingles.js",
      "lib/audio/mixer.js",
      "lib/audio/wav.js",
      "lib/auth.js",
      "lib/cards.js",
      "lib/demo.js",
      "lib/discord.js",
      "lib/ingest",
      "lib/ingest/chronicle.js",
      "lib/ingest/hub.js",
      "lib/ingest/madden.js",
      "lib/league.js",
      "lib/memory.js",
      "lib/net.js",
      "lib/producer.js",
      "lib/rundown.js",
      "lib/secrets.js",
      "lib/settings.js",
      "lib/store.js",
      "lib/stories.js",
      "lib/tts",
      "lib/tts/index.js",
      "lib/tts/kokoro-worker.js",
      "lib/tts/textprep.js",
      "lib/util.js",
      "lib/writer",
      "lib/writer/claude.js",
      "lib/writer/prompt.js",
      "lib/writer/schema.js",
      "lib/writer/template.js",
      "lib/writer/validate.js",
      "package-lock.json",
      "package.json",
      "public",
      "public/control.html",
      "public/css",
      "public/css/site.css",
      "public/img",
      "public/img/favicon.svg",
      "public/img/og.png",
      "public/index.html",
      "public/js",
      "public/js/channel.js",
      "public/js/control.js",
      "public/js/studio",
      "public/js/studio/anchors.js",
      "public/js/studio/cards.js",
      "public/js/studio/font.js",
      "public/js/studio/gfx.js",
      "public/js/studio/overlays.js",
      "public/js/studio/player.js",
      "public/js/studio/sets.js",
      "public/js/studio/show.js",
      "server.js",
      "start.bat",
      "test",
      "test/fixtures",
      "test/fixtures/madden",
      "test/fixtures/madden/README.md",
      "test/fixtures/madden/freeagents.json.gz",
      "test/fixtures/madden/leagueteams.json.gz",
      "test/fixtures/madden/rosters.json.gz",
      "test/fixtures/madden/standings.json.gz",
      "test/fixtures/madden/week-reg-1-defense.json.gz",
      "test/fixtures/madden/week-reg-1-kicking.json.gz",
      "test/fixtures/madden/week-reg-1-passing.json.gz",
      "test/fixtures/madden/week-reg-1-punting.json.gz",
      "test/fixtures/madden/week-reg-1-receiving.json.gz",
      "test/fixtures/madden/week-reg-1-rushing.json.gz",
      "test/fixtures/madden/week-reg-1-schedules.json.gz",
      "test/fixtures/madden/week-reg-1-teamstats.json.gz",
      "test/helpers.js",
      "test/ingest.test.js",
      "test/newsroom.test.js",
      "test/server.test.js",
      "test/voice.test.js",
      "tools",
      "tools/demo.js",
      "tools/make-fixtures.js",
      "tools/record.js",
      "tools/snap.js"
    ],
    "tree_truncated": false
  },
  {
    "repo": "krishnamnuwal/WVS",
    "search_description": "",
    "created_at": "2026-10-03T07:34:57Z",
    "id": "R_kgDOU51ubQ",
    "meta": {
      "id": 1402826349,
      "node_id": "R_kgDOU51ubQ",
      "name": "WVS",
      "full_name": "krishnamnuwal/WVS",
      "private": false,
      "owner": {
        "login": "krishnamnuwal",
        "id": 67596324,
        "node_id": "MDQ6VXNlcjY3NTk2MzI0",
        "avatar_url": "https://avatars.githubusercontent.com/u/67596324?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/krishnamnuwal",
        "html_url": "https://github.com/krishnamnuwal",
        "followers_url": "https://api.github.com/users/krishnamnuwal/followers",
        "following_url": "https://api.github.com/users/krishnamnuwal/following{/other_user}",
        "gists_url": "https://api.github.com/users/krishnamnuwal/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/krishnamnuwal/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/krishnamnuwal/subscriptions",
        "organizations_url": "https://api.github.com/users/krishnamnuwal/orgs",
        "repos_url": "https://api.github.com/users/krishnamnuwal/repos",
        "events_url": "https://api.github.com/users/krishnamnuwal/events{/privacy}",
        "received_events_url": "https://api.github.com/users/krishnamnuwal/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/krishnamnuwal/WVS",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/krishnamnuwal/WVS",
      "forks_url": "https://api.github.com/repos/krishnamnuwal/WVS/forks",
      "keys_url": "https://api.github.com/repos/krishnamnuwal/WVS/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/krishnamnuwal/WVS/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/krishnamnuwal/WVS/teams",
      "hooks_url": "https://api.github.com/repos/krishnamnuwal/WVS/hooks",
      "issue_events_url": "https://api.github.com/repos/krishnamnuwal/WVS/issues/events{/number}",
      "events_url": "https://api.github.com/repos/krishnamnuwal/WVS/events",
      "assignees_url": "https://api.github.com/repos/krishnamnuwal/WVS/assignees{/user}",
      "branches_url": "https://api.github.com/repos/krishnamnuwal/WVS/branches{/branch}",
      "tags_url": "https://api.github.com/repos/krishnamnuwal/WVS/tags",
      "blobs_url": "https://api.github.com/repos/krishnamnuwal/WVS/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/krishnamnuwal/WVS/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/krishnamnuwal/WVS/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/krishnamnuwal/WVS/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/krishnamnuwal/WVS/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/krishnamnuwal/WVS/languages",
      "stargazers_url": "https://api.github.com/repos/krishnamnuwal/WVS/stargazers",
      "contributors_url": "https://api.github.com/repos/krishnamnuwal/WVS/contributors",
      "subscribers_url": "https://api.github.com/repos/krishnamnuwal/WVS/subscribers",
      "subscription_url": "https://api.github.com/repos/krishnamnuwal/WVS/subscription",
      "commits_url": "https://api.github.com/repos/krishnamnuwal/WVS/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/krishnamnuwal/WVS/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/krishnamnuwal/WVS/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/krishnamnuwal/WVS/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/krishnamnuwal/WVS/contents/{+path}",
      "compare_url": "https://api.github.com/repos/krishnamnuwal/WVS/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/krishnamnuwal/WVS/merges",
      "archive_url": "https://api.github.com/repos/krishnamnuwal/WVS/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/krishnamnuwal/WVS/downloads",
      "issues_url": "https://api.github.com/repos/krishnamnuwal/WVS/issues{/number}",
      "pulls_url": "https://api.github.com/repos/krishnamnuwal/WVS/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/krishnamnuwal/WVS/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/krishnamnuwal/WVS/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/krishnamnuwal/WVS/labels{/name}",
      "releases_url": "https://api.github.com/repos/krishnamnuwal/WVS/releases{/id}",
      "deployments_url": "https://api.github.com/repos/krishnamnuwal/WVS/deployments",
      "created_at": "2026-10-03T07:34:57Z",
      "updated_at": "2026-10-03T07:40:25Z",
      "pushed_at": "2026-10-03T07:40:20Z",
      "git_url": "git://github.com/krishnamnuwal/WVS.git",
      "ssh_url": "[email protected]:krishnamnuwal/WVS.git",
      "clone_url": "https://github.com/krishnamnuwal/WVS.git",
      "svn_url": "https://github.com/krishnamnuwal/WVS",
      "homepage": null,
      "size": 558,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "master",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Virtual India: persona bots, batch 1 (100 bots)\n\nEach bot is one real WVS-6 India respondent, copied whole. No traits are mixed between people.\n\n0. Setup: `python3 -m venv .venv && .venv/bin/pip install anthropic python-dotenv pandas numpy matplotlib`,\n   then put `ANTHROPIC_API_KEY=...` in `.env` (git-ignored; `run_game.py` loads it, nothing else does).\n1. `python build_personas.py --csv WV6_Data_sav_v20201117.csv --n 100`  (use `--n 4078` for everyone)\n2. `python validate_heldout.py make`, then run each `games/heldout_*.txt` with `run_game.py`\n   under `--condition full`, `demo` and `none`, and score with `validate_heldout.py score`.\n3. `python run_game.py --game games/<experiment>.txt --condition full --repeats 5`\n4. `python run_all.py` does steps 2-3 for all six held-out questions (1 repeat) and `p_beauty` (5 repeats)\n   under all three conditions; `python analyze.py` then scores everything and draws `report/*.png`.\n\n- `codebook.py`: variable -> sentence and labels. Check labels against the official WVS-6 codebook before publishing.\n- `personas/bot_XXX.json`: full profile, demographics-only profile, held-out answers, and the untouched raw row (442 columns).\n- `personas/_representativeness.csv`: the 100 bots against all 4,078.\n- `games/`: paste original experiment instructions word for word. Nothing about strategy is added by the runner.\n- `run_game.py`: one fresh API call per bot and repeat. Resumable (skips bot/repeat pairs already in the output CSV,\n  failures included), retries rate-limit/server errors with backoff, logs every call to `results/usage_log.csv`,\n  and stops on `--max-cost` (USD) or `--max-fail-rate`. `--limit N` runs the first N bots into a separate `__smokeN` file.\n  `claude-sonnet-5-5` does not accept `temperature`, so it runs at the default (1.0).\n- `analyze.py`: counts every failed or unparseable reply instead of skipping it (`validate_heldout.py score` skips them).\n\nStatus: batch 1 has been run once on `claude-sonnet-5-5` (2 October 2026; 3,300 calls, 0 failed, 0 unparseable, $12.60).\nResults and limitations are in `report.md`. Still to do before publishing: verify `codebook.py` against the official\ncodebook (V100 and V76 take only some scale values in this sample), and replace `games/p_beauty.txt`, which is\nplaceholder wording, with the text of a real Indian experiment.\n",
    "tree_paths": [
      ".gitignore",
      "README.md",
      "analyze.py",
      "build_personas.py",
      "codebook.py",
      "games",
      "games/README.txt",
      "games/heldout_V100.txt",
      "games/heldout_V105.txt",
      "games/heldout_V202.txt",
      "games/heldout_V24.txt",
      "games/heldout_V56.txt",
      "games/heldout_V76.txt",
      "games/p_beauty.txt",
      "personas",
      "personas/_representativeness.csv",
      "personas/bot_001.json",
      "personas/bot_002.json",
      "personas/bot_003.json",
      "personas/bot_004.json",
      "personas/bot_005.json",
      "personas/bot_006.json",
      "personas/bot_007.json",
      "personas/bot_008.json",
      "personas/bot_009.json",
      "personas/bot_010.json",
      "personas/bot_011.json",
      "personas/bot_012.json",
      "personas/bot_013.json",
      "personas/bot_014.json",
      "personas/bot_015.json",
      "personas/bot_016.json",
      "personas/bot_017.json",
      "personas/bot_018.json",
      "personas/bot_019.json",
      "personas/bot_020.json",
      "personas/bot_021.json",
      "personas/bot_022.json",
      "personas/bot_023.json",
      "personas/bot_024.json",
      "personas/bot_025.json",
      "personas/bot_026.json",
      "personas/bot_027.json",
      "personas/bot_028.json",
      "personas/bot_029.json",
      "personas/bot_030.json",
      "personas/bot_031.json",
      "personas/bot_032.json",
      "personas/bot_033.json",
      "personas/bot_034.json",
      "personas/bot_035.json",
      "personas/bot_036.json",
      "personas/bot_037.json",
      "personas/bot_038.json",
      "personas/bot_039.json",
      "personas/bot_040.json",
      "personas/bot_041.json",
      "personas/bot_042.json",
      "personas/bot_043.json",
      "personas/bot_044.json",
      "personas/bot_045.json",
      "personas/bot_046.json",
      "personas/bot_047.json",
      "personas/bot_048.json",
      "personas/bot_049.json",
      "personas/bot_050.json",
      "personas/bot_051.json",
      "personas/bot_052.json",
      "personas/bot_053.json",
      "personas/bot_054.json",
      "personas/bot_055.json",
      "personas/bot_056.json",
      "personas/bot_057.json",
      "personas/bot_058.json",
      "personas/bot_059.json",
      "personas/bot_060.json",
      "personas/bot_061.json",
      "personas/bot_062.json",
      "personas/bot_063.json",
      "personas/bot_064.json",
      "personas/bot_065.json",
      "personas/bot_066.json",
      "personas/bot_067.json",
      "personas/bot_068.json",
      "personas/bot_069.json",
      "personas/bot_070.json",
      "personas/bot_071.json",
      "personas/bot_072.json",
      "personas/bot_073.json",
      "personas/bot_074.json",
      "personas/bot_075.json",
      "personas/bot_076.json",
      "personas/bot_077.json",
      "personas/bot_078.json",
      "personas/bot_079.json",
      "personas/bot_080.json",
      "personas/bot_081.json",
      "personas/bot_082.json",
      "personas/bot_083.json",
      "personas/bot_084.json",
      "personas/bot_085.json",
      "personas/bot_086.json",
      "personas/bot_087.json",
      "personas/bot_088.json",
      "personas/bot_089.json",
      "personas/bot_090.json",
      "personas/bot_091.json",
      "personas/bot_092.json",
      "personas/bot_093.json",
      "personas/bot_094.json",
      "personas/bot_095.json",
      "personas/bot_096.json",
      "personas/bot_097.json",
      "personas/bot_098.json",
      "personas/bot_099.json",
      "personas/bot_100.json",
      "report.md",
      "report",
      "report/heldout_mae.png",
      "report/heldout_means.png",
      "report/pbeauty_by_education.png",
      "report/pbeauty_by_trust.png",
      "report/pbeauty_hist.png",
      "report/stats.json",
      "run_all.py",
      "run_game.py",
      "validate_heldout.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "lbrh/Sure-Thing",
    "search_description": "",
    "created_at": "2026-10-02T11:14:52Z",
    "id": "R_kgDOU4oNEw",
    "meta": {
      "id": 1401556243,
      "node_id": "R_kgDOU4oNEw",
      "name": "Sure-Thing",
      "full_name": "lbrh/Sure-Thing",
      "private": false,
      "owner": {
        "login": "lbrh",
        "id": 143581761,
        "node_id": "U_kgDOCI7iQQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/143581761?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/lbrh",
        "html_url": "https://github.com/lbrh",
        "followers_url": "https://api.github.com/users/lbrh/followers",
        "following_url": "https://api.github.com/users/lbrh/following{/other_user}",
        "gists_url": "https://api.github.com/users/lbrh/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/lbrh/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/lbrh/subscriptions",
        "organizations_url": "https://api.github.com/users/lbrh/orgs",
        "repos_url": "https://api.github.com/users/lbrh/repos",
        "events_url": "https://api.github.com/users/lbrh/events{/privacy}",
        "received_events_url": "https://api.github.com/users/lbrh/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/lbrh/Sure-Thing",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/lbrh/Sure-Thing",
      "forks_url": "https://api.github.com/repos/lbrh/Sure-Thing/forks",
      "keys_url": "https://api.github.com/repos/lbrh/Sure-Thing/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/lbrh/Sure-Thing/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/lbrh/Sure-Thing/teams",
      "hooks_url": "https://api.github.com/repos/lbrh/Sure-Thing/hooks",
      "issue_events_url": "https://api.github.com/repos/lbrh/Sure-Thing/issues/events{/number}",
      "events_url": "https://api.github.com/repos/lbrh/Sure-Thing/events",
      "assignees_url": "https://api.github.com/repos/lbrh/Sure-Thing/assignees{/user}",
      "branches_url": "https://api.github.com/repos/lbrh/Sure-Thing/branches{/branch}",
      "tags_url": "https://api.github.com/repos/lbrh/Sure-Thing/tags",
      "blobs_url": "https://api.github.com/repos/lbrh/Sure-Thing/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/lbrh/Sure-Thing/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/lbrh/Sure-Thing/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/lbrh/Sure-Thing/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/lbrh/Sure-Thing/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/lbrh/Sure-Thing/languages",
      "stargazers_url": "https://api.github.com/repos/lbrh/Sure-Thing/stargazers",
      "contributors_url": "https://api.github.com/repos/lbrh/Sure-Thing/contributors",
      "subscribers_url": "https://api.github.com/repos/lbrh/Sure-Thing/subscribers",
      "subscription_url": "https://api.github.com/repos/lbrh/Sure-Thing/subscription",
      "commits_url": "https://api.github.com/repos/lbrh/Sure-Thing/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/lbrh/Sure-Thing/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/lbrh/Sure-Thing/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/lbrh/Sure-Thing/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/lbrh/Sure-Thing/contents/{+path}",
      "compare_url": "https://api.github.com/repos/lbrh/Sure-Thing/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/lbrh/Sure-Thing/merges",
      "archive_url": "https://api.github.com/repos/lbrh/Sure-Thing/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/lbrh/Sure-Thing/downloads",
      "issues_url": "https://api.github.com/repos/lbrh/Sure-Thing/issues{/number}",
      "pulls_url": "https://api.github.com/repos/lbrh/Sure-Thing/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/lbrh/Sure-Thing/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/lbrh/Sure-Thing/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/lbrh/Sure-Thing/labels{/name}",
      "releases_url": "https://api.github.com/repos/lbrh/Sure-Thing/releases{/id}",
      "deployments_url": "https://api.github.com/repos/lbrh/Sure-Thing/deployments",
      "created_at": "2026-10-02T11:14:52Z",
      "updated_at": "2026-10-03T04:33:18Z",
      "pushed_at": "2026-10-03T04:33:14Z",
      "git_url": "git://github.com/lbrh/Sure-Thing.git",
      "ssh_url": "[email protected]:lbrh/Sure-Thing.git",
      "clone_url": "https://github.com/lbrh/Sure-Thing.git",
      "svn_url": "https://github.com/lbrh/Sure-Thing",
      "homepage": "https://sure-thing-swart.vercel.app",
      "size": 308,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Sure Thing\n\nBet on what you know, and the board shows you what you don't. A revision game built on confidence betting, a plinko knowledge board and spaced retests. Plans and rationale live in [`docs/`](docs/01-overview.md).\n\n## Run\n\n```bash\nnpm install\nnpm run dev        # http://localhost:3000\nnpm test           # engine maths, golden path, minigames, economy tuning sim (45 tests)\nnpm run tune       # just the tuning sim\n```\n\nThree seeded units work fully offline: **Databases 101**, **Materials Chemistry** and **Soil Properties (Chemistry)** (12 concepts, 48 hand-checked questions each). A unit name that matches one of them never touches the network. Any other unit name calls the model; set `ANTHROPIC_API_KEY` in `.env.local` (see `.env.example`). If generation fails for any reason, the app falls back to Databases 101.\n\nWhat the build ships and how it differs from the plans: [`docs/09-build-status.md`](docs/09-build-status.md).\n\n## Map\n\n| Path | What |\n|---|---|\n| `lib/engine.ts` | Leitner mastery, draw priority, calibration, readiness, Readiness Odds, streak multiplier (pure functions) |\n| `lib/economy.ts` | Bet table and Ledger debt, calibration grade, skill share, shop prices, Ledger Pot, Peg Hands, Bingo, Keno, Mastery Marks, relics, Stakes (pure functions) |\n| `lib/board.ts` | Matter.js board: peg layout, shop pegs, 7 aimable chutes, seeded drops, Skip resolves the same sim instantly |\n| `lib/minigames.ts` | Prize Wheel, 21 Quiz, Pop Quiz speed bonus, proportional cheers (pure) |\n| `lib/store.ts` | Zustand store persisted to localStorage: the whole game loop, shop, resume mid-Shift |\n| `lib/loadUnit.ts` | Routes unit names to seeded banks, otherwise live generation with fallback |\n| `lib/ai.ts`, `app/api/*` | Live generation (`claude-sonnet-5-5`) plus independent solve check (`claude-haiku-4-5`), zod-validated, rate-limited |\n| `lib/copy.ts`, `lib/sound.ts` | The Collector's lines and Calm mode wording; synthesized sound effects |\n| `components/App.tsx` | Screens: Setup, Intro, Hub, Draw, Question and Bet, Reveal with Drop, Summary, Settings |\n| `components/Knowledge.tsx`, `Meta.tsx` | Concept Bingo, Calibration Keno, Go Deeper, Mystery Facts, scratch Report Card; Legacy Draft, Collector's journal, achievements |\n| `components/Shop.tsx`, `Mods.tsx`, `Report.tsx`, `Board.tsx` | Shop and skins; shop item copy and the Prize Wheel, 21 Quiz and Pop Quiz popups; Readiness Report; canvas board |\n| `components/Chaos.tsx`, `Seal.tsx`, `ui.tsx` | MAXIMUM CHAOS skin layer; seal mascot; Win95 window and counter primitives |\n| `data/*.json` | Seeded banks |\n\n## Crazy shop\n\nBoard pegs (permanent): **Prize Wheel** (spins after a catch, +1 to +8 chips, no zero, no stake), **21 Quiz** (hit or stand on questions worth 2 to 10), **Pop Quiz** (answer fast for up to x10), **Splitter**, **Black Hole**, **Bumper**. Next-Shift mods: **MEGA BUCKET** (centre x10), **Earthquake**, **Magnet**. Payouts that beat what the ball had get a cheer sized to the gain. Odds are shown before buying. In Calm mode the wheel pays its average instantly and nothing flashes or shakes.\n\n## Streaks and aiming\n\nCorrect answers in a row multiply that answer's drop chips (x1, x1.5, x2, x2.5, capped at x3). You aim every ball yourself by clicking one of 7 chutes or pressing 1 to 7.\n\n## Skins\n\n**Retro 95** (default, Windows 95 / early-web) and **MAXIMUM CHAOS** (pop-ups, confetti, fake media players, emoji buttons), switched for free in the Shop. Calm mode turns all of it off.\n\n## Mascot\n\nA low-poly seal (`components/Seal.tsx`, pure SVG + CSS) lives in the corner. It wobbles side to side, claps or slaps its belly every few seconds, claps when you're right, slaps its belly when a bomb lands, and squeaks \"GYUU!\" when you click it (synthesized, no audio files). Other code can cue it with `sealDo(\"clap\" | \"slap\" | \"gyuu\")`.\n\n## Next up\n\n- **Cookie Clicker style progression (requirement):** shop prices rise as you earn more chips, so there is always something to save for. See [`docs/10-progression-and-inspiration.md`](docs/10-progression-and-inspiration.md).\n- **Ideas from Peggle and casino games:** target pegs, a free-ball bucket, power pegs, Keno-style calibration bets and more, each checked against the guardrails. Same doc.\n- **Decided:** the Roulette and Blackjack pegs were reskinned as the Prize Wheel and 21 Quiz pegs ([`docs/08-risks-and-guardrails.md`](docs/08-risks-and-guardrails.md), section 1).\n\n## Demo path\n\nBuild the board, start a Shift, pick **NULL handling**, answer **A** with **Certain**: bomb planted. It comes back about 3 questions later for a retest with a different question. After the Shift, buy a Defuser or play on, then run Exam Day and open the Report.\n\nResearch behind the October 2026 economy and progression upgrade: [`docs/11-research-findings.md`](docs/11-research-findings.md).\n",
    "tree_paths": [
      ".claude",
      ".claude/launch.json",
      ".env.example",
      ".gitignore",
      ".idea",
      ".idea/.gitignore",
      ".idea/Sure-Thing.iml",
      ".idea/modules.xml",
      ".idea/vcs.xml",
      "README.md",
      "app",
      "app/api",
      "app/api/questions",
      "app/api/questions/route.ts",
      "app/api/unit",
      "app/api/unit/route.ts",
      "app/globals.css",
      "app/layout.tsx",
      "app/page.tsx",
      "components",
      "components/App.tsx",
      "components/Board.tsx",
      "components/Chaos.tsx",
      "components/Knowledge.tsx",
      "components/Meta.tsx",
      "components/Mods.tsx",
      "components/Report.tsx",
      "components/Seal.tsx",
      "components/Shop.tsx",
      "components/ui.tsx",
      "data",
      "data/databases-101.json",
      "data/materials-chemistry.json",
      "data/soil-chemistry.json",
      "docs",
      "docs/01-overview.md",
      "docs/02-mvp-plan.md",
      "docs/03-tech-spec.md",
      "docs/04-business-model-canvas.md",
      "docs/05-market-research.md",
      "docs/06-design.md",
      "docs/07-demo-script-and-rubric.md",
      "docs/08-risks-and-guardrails.md",
      "docs/09-build-status.md",
      "docs/10-progression-and-inspiration.md",
      "docs/11-research-findings.md",
      "lib",
      "lib/ai.ts",
      "lib/board.ts",
      "lib/copy.ts",
      "lib/economy.ts",
      "lib/engine.ts",
      "lib/loadUnit.ts",
      "lib/minigames.ts",
      "lib/sound.ts",
      "lib/store.ts",
      "package-lock.json",
      "package.json",
      "tests",
      "tests/engine.test.ts",
      "tests/golden.test.ts",
      "tests/minigames.test.ts",
      "tests/tuning.test.ts",
      "tsconfig.json",
      "vitest.config.mts"
    ],
    "tree_truncated": false
  },
  {
    "repo": "tbuettgen/rbxh",
    "search_description": "",
    "created_at": "2026-10-03T01:07:27Z",
    "id": "R_kgDOU5iTTQ",
    "meta": {
      "id": 1402508109,
      "node_id": "R_kgDOU5iTTQ",
      "name": "rbxh",
      "full_name": "tbuettgen/rbxh",
      "private": false,
      "owner": {
        "login": "tbuettgen",
        "id": 89266997,
        "node_id": "MDQ6VXNlcjg5MjY2OTk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/89266997?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/tbuettgen",
        "html_url": "https://github.com/tbuettgen",
        "followers_url": "https://api.github.com/users/tbuettgen/followers",
        "following_url": "https://api.github.com/users/tbuettgen/following{/other_user}",
        "gists_url": "https://api.github.com/users/tbuettgen/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/tbuettgen/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/tbuettgen/subscriptions",
        "organizations_url": "https://api.github.com/users/tbuettgen/orgs",
        "repos_url": "https://api.github.com/users/tbuettgen/repos",
        "events_url": "https://api.github.com/users/tbuettgen/events{/privacy}",
        "received_events_url": "https://api.github.com/users/tbuettgen/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/tbuettgen/rbxh",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/tbuettgen/rbxh",
      "forks_url": "https://api.github.com/repos/tbuettgen/rbxh/forks",
      "keys_url": "https://api.github.com/repos/tbuettgen/rbxh/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/tbuettgen/rbxh/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/tbuettgen/rbxh/teams",
      "hooks_url": "https://api.github.com/repos/tbuettgen/rbxh/hooks",
      "issue_events_url": "https://api.github.com/repos/tbuettgen/rbxh/issues/events{/number}",
      "events_url": "https://api.github.com/repos/tbuettgen/rbxh/events",
      "assignees_url": "https://api.github.com/repos/tbuettgen/rbxh/assignees{/user}",
      "branches_url": "https://api.github.com/repos/tbuettgen/rbxh/branches{/branch}",
      "tags_url": "https://api.github.com/repos/tbuettgen/rbxh/tags",
      "blobs_url": "https://api.github.com/repos/tbuettgen/rbxh/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/tbuettgen/rbxh/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/tbuettgen/rbxh/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/tbuettgen/rbxh/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/tbuettgen/rbxh/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/tbuettgen/rbxh/languages",
      "stargazers_url": "https://api.github.com/repos/tbuettgen/rbxh/stargazers",
      "contributors_url": "https://api.github.com/repos/tbuettgen/rbxh/contributors",
      "subscribers_url": "https://api.github.com/repos/tbuettgen/rbxh/subscribers",
      "subscription_url": "https://api.github.com/repos/tbuettgen/rbxh/subscription",
      "commits_url": "https://api.github.com/repos/tbuettgen/rbxh/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/tbuettgen/rbxh/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/tbuettgen/rbxh/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/tbuettgen/rbxh/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/tbuettgen/rbxh/contents/{+path}",
      "compare_url": "https://api.github.com/repos/tbuettgen/rbxh/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/tbuettgen/rbxh/merges",
      "archive_url": "https://api.github.com/repos/tbuettgen/rbxh/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/tbuettgen/rbxh/downloads",
      "issues_url": "https://api.github.com/repos/tbuettgen/rbxh/issues{/number}",
      "pulls_url": "https://api.github.com/repos/tbuettgen/rbxh/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/tbuettgen/rbxh/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/tbuettgen/rbxh/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/tbuettgen/rbxh/labels{/name}",
      "releases_url": "https://api.github.com/repos/tbuettgen/rbxh/releases{/id}",
      "deployments_url": "https://api.github.com/repos/tbuettgen/rbxh/deployments",
      "created_at": "2026-10-03T01:07:27Z",
      "updated_at": "2026-10-03T03:38:24Z",
      "pushed_at": "2026-10-03T03:29:38Z",
      "git_url": "git://github.com/tbuettgen/rbxh.git",
      "ssh_url": "[email protected]:tbuettgen/rbxh.git",
      "clone_url": "https://github.com/tbuettgen/rbxh.git",
      "svn_url": "https://github.com/tbuettgen/rbxh",
      "homepage": null,
      "size": 451,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": false,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# rbxh — Roblox Harness\n\n## Use it as a Claude Code plugin (recommended)\n\n**Setup guide:** https://tbuettgen.github.io/rbxh/ (also in [docs/index.html](docs/index.html)).\n\nrbxh is a Claude Code plugin, so Claude Code gives you the UI, effort, sessions, `/model`, `/resume` and your other plugins (Figma and so on). rbxh adds:\n\n- **An MCP server** with live Roblox Studio tools (tree, find, grep, read/write/edit scripts, run Luau, output, playtests with server probes), Blender tools (scene info, Python, FBX export), `blender_to_studio`, `run_skill_script`, and knowledge-vault search when one is configured. Claude Code starts it for you and asks before running anything.\n- **Skills:** `rbxh:blender-modeling`, `rbxh:roblox-building`, `rbxh:art-direction`, `rbxh:world-builder`, `rbxh:scene-architect`, `rbxh:studio-debug`, `rbxh:game-bootstrap`.\n- **Subagents:** `builder` (builds, never playtests), `verifier` (tests, never edits), `planner`, `modeler` (Blender), `artist` (palettes and lighting), `scout` (read-only).\n- **Commands:** `/rbxh:pair <goal>` (step-by-step build/verify loop), `/rbxh:setup`, `/rbxh:addons`, `/rbxh:blender`, `/rbxh:status`.\n- **Recommended add-ons, installed by default in `/rbxh:setup`:** Ponytail, Roblox Dev, the Roblox Studio skill, Superpowers, Skill Creator, five skills from the Roblox Claude Skills pack, Blender MCP and Graphify (the Roblox Studio MCP is optional). These are third-party projects; `/rbxh:addons` installs them alongside your setup without removing anything. Details are on the setup page.\n- **A status line:** `rbxh · Studio ● MyPlace · Blender ○`.\n\nInstall (Windows or macOS; needs Node 22.18+ on your PATH):\n\n```text\n/plugin marketplace add tbuettgen/rbxh\n/plugin install rbxh@rbxh\n/rbxh:setup\n```\n\n`/rbxh:setup` installs the Studio plugin. Restart Studio, allow HTTP requests to 127.0.0.1 when asked, and keep the **rbxh** toolbar button on. Several Claude Code sessions can be open at once: the first one owns the Studio link and the others share it.\n\nTo develop on it, run `claude --plugin-dir <this repo>`. After editing `agent-types/*.md`, run `node scripts/build-plugin.ts` to regenerate `agents/`.\n\n## The standalone CLI\n\nAn agent harness that works live in **Roblox Studio** and **Blender**. Bring your own model: **Claude Code on your Claude plan**, **Codex on your ChatGPT plan**, or an API key for Anthropic, OpenAI, Gemini, OpenRouter, Ollama or any OpenAI-compatible server. You can switch between them mid-conversation.\n\n- **Terminal UI.** A full-screen chat with streaming replies, compact tool lines, an agents sidebar, a slash-command palette, a model picker and approval prompts. The Studio panel talks to the same session.\n- **Background agents.** Start a builder, verifier, planner, modeler, artist or scout on any backend while you keep chatting. The main model can delegate to them too.\n- **Fast link to Studio.** A plugin keeps a push stream open to the CLI. Commands land in about 1–2 ms, and the plugin reconnects within a second whenever the CLI starts. If a Studio build can't stream, it falls back to long-polling automatically.\n- **Fast link to Blender.** An add-on runs a socket server inside Blender. It works in the UI or headless (`--background`) as a modelling worker.\n- **Blender → Studio in one call.** `blender_to_studio` streams mesh geometry, UVs and colour into a MeshPart through EditableMesh. There's no file dialog and no upload.\n- **Pair mode for big projects.** A *builder* only builds and a *verifier* only tests, one step at a time. The verifier's fix list goes back to the builder until the step passes.\n\n## Setup\n\nRequires Node 22.18+ (TypeScript runs natively, no build step).\n\n```bash\nnpm install                  # only dependency: the official Anthropic SDK\nnpm link                     # puts `rbxh` on your PATH (or use: node bin/rbxh.js)\nrbxh install studio          # writes RobloxHarness.rbxmx into Studio's Plugins folder\nrbxh install blender         # optional: installs the add-on (or just use `rbxh blender`)\nrbxh doctor                  # which models you can use, plus live Studio/Blender connections\n```\n\nThen pick how you pay for the model:\n\n- **Claude plan:** install [Claude Code](https://claude.com/claude-code) and log in once (`claude`). rbxh runs it headless, so usage counts against your plan, not an API key.\n- **ChatGPT plan:** install the Codex app or CLI and log in once. rbxh finds the Codex app's bundled CLI by itself (or set `rbxh config codexPath <codex.exe>`).\n- **API key:** `rbxh keys set anthropic` (or openai / gemini / openrouter; input is hidden). Keys live in `~/.rbxh/config.json`. Environment variables (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `OPENROUTER_API_KEY`) override them.\n\n`rbxh use claude` (or `codex`, `anthropic:claude-opus-5-5`, …) sets the default. Without one, rbxh uses your first API key, else Claude Code, else Codex.\n\nIn Studio, allow HTTP requests to `127.0.0.1` when the plugin first asks. The **rbxh** toolbar button turns the link on and off.\n\n## Terminal UI\n\n```bash\nrbxh                 # the terminal UI (falls back to plain line chat when not in a terminal)\nrbxh tui --demo      # try it on a scripted session: no models, no Studio\nrbxh chat --plain    # plain line-by-line chat on the same engine\n```\n\nThe header shows the model, Studio ●, Blender ●, the knowledge vault, skills and fast mode. Replies stream into the transcript with light markdown (bold, `code`, boxed code blocks, lists). Tool calls are one line each: name, arguments, ✓ or ✗ and how long they took. Each background agent gets its own colour. When the window is at least 110 columns wide, a sidebar lists the agents (status, backend, elapsed time) and `/pair` step progress.\n\n| Key | Does |\n|---|---|\n| Enter | send (while a reply is running, it queues the message) |\n| Ctrl+J (Ctrl+Enter on Windows) | new line, or end the line with `\\`. Shift+Enter works too in terminals that speak the kitty keyboard protocol; Windows consoles send it as plain Enter, so the status bar names the key that works in yours |\n| `/` | command palette: ↑↓ to pick, Tab to complete. It completes agent types after `/spawn` and models after `/model` and `/use` |\n| ↑ ↓ | history (or move between lines of a multi-line message) |\n| ← → Home End, Ctrl+A E W U K | line editing |\n| PgUp PgDn, mouse wheel | scroll. A **↓ new messages** badge shows when output arrives below. Ctrl+End jumps down |\n| Tab (empty input) | cycle the view: everything, the main chat, or one agent |\n| Esc | close a popup, or stop the running reply |\n| Ctrl+C | stop the running reply. Press it twice within 2 s to quit (it says so first when background agents would stop). Ctrl+D on an empty line quits at once when nothing is running |\n| Ctrl+O | show or hide tool output |\n| `?` or F1 | all shortcuts (↑↓ scroll them on a short terminal; typing closes the list and goes into the input) |\n\nChanges to your place or Blender scene open an approval box with the agent, the tool and the code: **y** allows it, **n** denies it, and **a** then **Enter** allows that agent for the rest of the session (or until a background agent ends). The keys only answer while the input box is empty and you haven't typed for a second; anything typed during the box goes into the input as usual, so a half-typed message can't approve anything and isn't lost. Typing `y`, `a` or `n` alone and pressing Enter also answers. A question that appears while you're typing leaves your text alone: Enter sends it as a message, ↓ sets it aside until you've answered. `-y` skips approvals.\n\nThe UI captures the mouse wheel for scrolling. Hold Shift while dragging to select text, or start with `--no-mouse` to leave the mouse to the terminal. ↑/↓ history is kept in `~/.rbxh/history.jsonl`. The classic Windows console (outside Windows Terminal) draws ZWJ emoji and flags one code point at a time, and the layout measures them the same way there; `RBXH_WIDTH=graphemes` or `codepoints` overrides the guess.\n\nThe terminal UI also serves the Studio panel on the same port, so you can chat from either place and both see the same conversation. If that port is busy (another rbxh is running), the UI still works and says so in the status bar.\n\n## Models and backends\n\nSwitch any time with `/model <spec>` (or `/use <spec>`). `/model` on its own opens a picker that shows which backends are ready. The conversation carries over: the new model gets a compact handoff of what was said and done so far.\n\n| Spec | Runs on |\n|---|---|\n| `claude`, `claude:opus`, `claude:sonnet`, `claude:haiku` (also `max`) | Claude Code, logged in with your Claude plan |\n| `codex`, `codex:<model>` (also `chatgpt`) | Codex CLI, logged in with your ChatGPT plan |\n| `anthropic:claude-opus-5-5`, `openai:gpt-5`, `gemini:gemini-2.5-pro`, `openrouter:<model>` | that provider's API with your key |\n| `ollama:qwen3-coder`, `custom:<model>` | a local or OpenAI-compatible server |\n\nClaude Code and Codex reach Studio and Blender through rbxh's own MCP server (`rbxh mcp`), so they get exactly the tools listed below, and write tools still ask for approval in rbxh. `--fast` and `/fast on` apply to Anthropic API models only.\n\n```text\nrbxh -m claude:sonnet            # start on Claude Code (your Claude plan)\n/model                           # picker: ✓ ready, ✗ not logged in / no key\n/use codex                       # carry on with Codex (your ChatGPT plan)\n/use claude:haiku                # or back to Claude, any time\n/spawn scout @codex how do coins get awarded?   # an agent on another backend\n```\n\n### Using your Claude and ChatGPT plans\n\n- **Log in once with each CLI**, the way you normally would: `claude` then `/login` for Claude Code, and the Codex app (or `codex login`) for Codex. `rbxh doctor`, `/model` and `/status` show whether each one is installed and logged in. rbxh never reads or stores those logins.\n- **Finding the CLIs.** Claude Code is found on `PATH` or in `~/.local/bin`. Codex is found on `PATH`, else inside the Codex desktop app on Windows (its install folder changes with every update, so rbxh looks it up each start). Set `rbxh config claudePath <exe>` or `rbxh config codexPath <exe>` to point at a specific one.\n- **Billing.** rbxh removes `ANTHROPIC_API_KEY` / `ANTHROPIC_AUTH_TOKEN` from Claude Code's environment and `OPENAI_API_KEY` / `CODEX_API_KEY` from Codex's, so turns count against your plan's usage limits, not an API account. Small models (`claude:haiku`) go easy on those limits. Claude Code's plan-limit warnings (e.g. 80% of the weekly limit used) and its automatic API retries show up as notices in the conversation.\n- **Only rbxh's tools.** Claude Code runs with its built-in file, shell, web and sub-agent tools off, without your Claude Code settings or other MCP servers. Codex runs in its read-only sandbox with its shell, web search, image generation and viewing, plugins, apps, computer and browser use, goals, hooks and your other MCP servers switched off for that run, and without your Codex skills list or any `AGENTS.md` from your project (your `~/.codex/config.toml` isn't touched). What Codex keeps: `apply_patch` (the read-only sandbox rejects every write), a clock, a `request_user_input` question a headless run can't answer, empty MCP-resource listings, and a `spawn_agent` tool that rbxh limits to zero free agent slots, so it fails. If Codex can't confirm that isolation (`codex mcp list` fails or hangs), rbxh refuses to start the Codex agent and says why. Every change to your place goes through rbxh, where you approve it.\n- **One conversation per agent.** Each turn is a headless `claude -p` or `codex exec` run that resumes the same session, in a scratch folder under `.rbxh/agents/<id>`. Stopping (Esc, `/stop`, `/kill`) ends the CLI and everything it started.\n- **Terms.** Using your own plan through your own installed, logged-in CLI is personal use. Anthropic's docs say third-party developers may not \"route requests through Free, Pro, or Max plan credential",
    "tree_paths": [
      ".claude-plugin",
      ".claude-plugin/marketplace.json",
      ".claude-plugin/plugin.json",
      ".gitignore",
      ".mcp.json",
      "README.md",
      "Start rbxh.cmd",
      "agent-types",
      "agent-types/artist.md",
      "agent-types/builder.md",
      "agent-types/modeler.md",
      "agent-types/planner.md",
      "agent-types/scout.md",
      "agent-types/verifier.md",
      "agents",
      "agents/artist.md",
      "agents/builder.md",
      "agents/modeler.md",
      "agents/planner.md",
      "agents/scout.md",
      "agents/verifier.md",
      "bin",
      "bin/rbxh.js",
      "blender-addon",
      "blender-addon/__pycache__",
      "blender-addon/__pycache__/rbx_harness.cpython-313.pyc",
      "blender-addon/rbx_harness.py",
      "commands",
      "commands/addons.md",
      "commands/blender.md",
      "commands/pair.md",
      "commands/setup.md",
      "commands/status.md",
      "docs",
      "docs/index.html",
      "hooks",
      "hooks/hooks.json",
      "hooks/register.ts",
      "package-lock.json",
      "package.json",
      "scripts",
      "scripts/build-plugin.ts",
      "selene.toml",
      "skills",
      "skills/art-direction",
      "skills/art-direction/SKILL.md",
      "skills/art-direction/assets",
      "skills/art-direction/assets/palettes.json",
      "skills/art-direction/reference",
      "skills/art-direction/reference/color-and-ui.md",
      "skills/art-direction/reference/lighting.md",
      "skills/art-direction/reference/styles.md",
      "skills/art-direction/scripts",
      "skills/art-direction/scripts/lighting.luau",
      "skills/art-direction/scripts/palette.py",
      "skills/art-direction/scripts/palette_audit.luau",
      "skills/blender-modeling",
      "skills/blender-modeling/SKILL.md",
      "skills/blender-modeling/reference",
      "skills/blender-modeling/reference/delivery.md",
      "skills/blender-modeling/reference/kit-api.md",
      "skills/blender-modeling/reference/recipes.md",
      "skills/blender-modeling/reference/style-guide.md",
      "skills/blender-modeling/scripts",
      "skills/blender-modeling/scripts/rbx_kit.py",
      "skills/game-bootstrap",
      "skills/game-bootstrap/SKILL.md",
      "skills/roblox-building",
      "skills/roblox-building/SKILL.md",
      "skills/roblox-building/reference",
      "skills/roblox-building/reference/examples.md",
      "skills/roblox-building/reference/kit-api.md",
      "skills/roblox-building/reference/materials.md",
      "skills/roblox-building/reference/performance.md",
      "skills/roblox-building/scripts",
      "skills/roblox-building/scripts/build_kit.luau",
      "skills/scene-architect",
      "skills/scene-architect/SKILL.md",
      "skills/studio-debug",
      "skills/studio-debug/SKILL.md",
      "skills/world-builder",
      "skills/world-builder/SKILL.md",
      "src",
      "src/agent-types.ts",
      "src/agent.ts",
      "src/bridge",
      "src/bridge/blender.ts",
      "src/bridge/studio.ts",
      "src/cli.ts",
      "src/config.ts",
      "src/hub.ts",
      "src/install.ts",
      "src/mcp",
      "src/mcp/server.ts",
      "src/mcp/standalone.ts",
      "src/pair.ts",
      "src/prompts.ts",
      "src/providers",
      "src/providers/anthropic.ts",
      "src/providers/gemini.ts",
      "src/providers/index.ts",
      "src/providers/openai.ts",
      "src/providers/types.ts",
      "src/runners",
      "src/runners/api.ts",
      "src/runners/claude-code.ts",
      "src/runners/codex.ts",
      "src/runners/index.ts",
      "src/runners/types.ts",
      "src/session.ts",
      "src/skills.ts",
      "src/toolhost.ts",
      "src/tools",
      "src/tools/blender.ts",
      "src/tools/kb.ts",
      "src/tools/pipeline.ts",
      "src/tools/registry.ts",
      "src/tools/skills.ts",
      "src/tools/studio.ts",
      "src/tui",
      "src/tui/app.ts",
      "src/tui/commands.ts",
      "src/tui/demo.ts",
      "src/tui/input.ts",
      "src/tui/keys.ts",
      "src/tui/markdown.ts",
      "src/tui/plain.ts",
      "src/tui/render.ts",
      "src/tui/screen.ts",
      "src/tui/state.ts",
      "src/tui/text.ts",
      "src/tui/theme.ts",
      "src/tui/types.ts",
      "src/ui.ts",
      "studio-plugin",
      "studio-plugin/RobloxHarness.server.luau",
      "test",
      "test/agent.test.ts",
      "test/bridge.test.ts",
      "test/fixtures",
      "test/fixtures/fake-claude.mjs",
      "test/fixtures/fake-cli-lib.mjs",
      "test/fixtures/fake-codex-noisy.mjs",
      "test/fixtures/fake-codex.mjs",
      "test/helpers.ts",
      "test/hub-frontend.test.ts",
      "test/hub-helpers.ts",
      "test/hub.test.ts",
      "test/install.test.ts",
      "test/kb.test.ts",
      "test/mcp.test.ts",
      "test/plugin.test.ts",
      "test/providers.test.ts",
      "test/runners.test.ts",
      "test/safety.test.ts",
      "test/session.test.ts",
      "test/skill-art.test.ts",
      "test/skill-blender.test.ts",
      "test/skill-roblox.test.ts",
      "test/skills.test.ts",
      "test/toolhost.test.ts",
      "test/tui-app.test.ts",
      "test/tui-helpers.ts",
      "test/tui-input.test.ts",
      "test/tui-keys.test.ts",
      "test/tui-render.test.ts",
      "test/tui-text.test.ts",
      "tsconfig.json"
    ],
    "tree_truncated": false
  },
  {
    "repo": "burahant/pokedex-xp",
    "search_description": "",
    "created_at": "2026-10-02T22:23:25Z",
    "id": "R_kgDOU5ci7A",
    "meta": {
      "id": 1402413804,
      "node_id": "R_kgDOU5ci7A",
      "name": "pokedex-xp",
      "full_name": "burahant/pokedex-xp",
      "private": false,
      "owner": {
        "login": "burahant",
        "id": 66241490,
        "node_id": "MDQ6VXNlcjY2MjQxNDkw",
        "avatar_url": "https://avatars.githubusercontent.com/u/66241490?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/burahant",
        "html_url": "https://github.com/burahant",
        "followers_url": "https://api.github.com/users/burahant/followers",
        "following_url": "https://api.github.com/users/burahant/following{/other_user}",
        "gists_url": "https://api.github.com/users/burahant/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/burahant/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/burahant/subscriptions",
        "organizations_url": "https://api.github.com/users/burahant/orgs",
        "repos_url": "https://api.github.com/users/burahant/repos",
        "events_url": "https://api.github.com/users/burahant/events{/privacy}",
        "received_events_url": "https://api.github.com/users/burahant/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/burahant/pokedex-xp",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/burahant/pokedex-xp",
      "forks_url": "https://api.github.com/repos/burahant/pokedex-xp/forks",
      "keys_url": "https://api.github.com/repos/burahant/pokedex-xp/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/burahant/pokedex-xp/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/burahant/pokedex-xp/teams",
      "hooks_url": "https://api.github.com/repos/burahant/pokedex-xp/hooks",
      "issue_events_url": "https://api.github.com/repos/burahant/pokedex-xp/issues/events{/number}",
      "events_url": "https://api.github.com/repos/burahant/pokedex-xp/events",
      "assignees_url": "https://api.github.com/repos/burahant/pokedex-xp/assignees{/user}",
      "branches_url": "https://api.github.com/repos/burahant/pokedex-xp/branches{/branch}",
      "tags_url": "https://api.github.com/repos/burahant/pokedex-xp/tags",
      "blobs_url": "https://api.github.com/repos/burahant/pokedex-xp/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/burahant/pokedex-xp/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/burahant/pokedex-xp/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/burahant/pokedex-xp/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/burahant/pokedex-xp/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/burahant/pokedex-xp/languages",
      "stargazers_url": "https://api.github.com/repos/burahant/pokedex-xp/stargazers",
      "contributors_url": "https://api.github.com/repos/burahant/pokedex-xp/contributors",
      "subscribers_url": "https://api.github.com/repos/burahant/pokedex-xp/subscribers",
      "subscription_url": "https://api.github.com/repos/burahant/pokedex-xp/subscription",
      "commits_url": "https://api.github.com/repos/burahant/pokedex-xp/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/burahant/pokedex-xp/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/burahant/pokedex-xp/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/burahant/pokedex-xp/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/burahant/pokedex-xp/contents/{+path}",
      "compare_url": "https://api.github.com/repos/burahant/pokedex-xp/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/burahant/pokedex-xp/merges",
      "archive_url": "https://api.github.com/repos/burahant/pokedex-xp/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/burahant/pokedex-xp/downloads",
      "issues_url": "https://api.github.com/repos/burahant/pokedex-xp/issues{/number}",
      "pulls_url": "https://api.github.com/repos/burahant/pokedex-xp/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/burahant/pokedex-xp/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/burahant/pokedex-xp/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/burahant/pokedex-xp/labels{/name}",
      "releases_url": "https://api.github.com/repos/burahant/pokedex-xp/releases{/id}",
      "deployments_url": "https://api.github.com/repos/burahant/pokedex-xp/deployments",
      "created_at": "2026-10-02T22:23:25Z",
      "updated_at": "2026-10-02T22:41:04Z",
      "pushed_at": "2026-10-02T22:31:10Z",
      "git_url": "git://github.com/burahant/pokedex-xp.git",
      "ssh_url": "[email protected]:burahant/pokedex-xp.git",
      "clone_url": "https://github.com/burahant/pokedex-xp.git",
      "svn_url": "https://github.com/burahant/pokedex-xp",
      "homepage": "https://burahant.github.io/pokedex-xp/",
      "size": 6150,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "CSS",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<div align=\"center\">\n\n<img src=\"https://burahant.github.io/pokedex_xp/img/ico/dex-48.png\" alt=\"\" width=\"48\" height=\"48\"> <img src=\"https://burahant.github.io/pokedex_xp/img/ico/guide-48.png\" alt=\"\" width=\"48\" height=\"48\"> <img src=\"https://burahant.github.io/pokedex_xp/img/ico/iv-48.png\" alt=\"\" width=\"48\" height=\"48\"> <img src=\"https://burahant.github.io/pokedex_xp/img/ico/types-48.png\" alt=\"\" width=\"48\" height=\"48\"> <img src=\"https://burahant.github.io/pokedex_xp/img/ico/about-48.png\" alt=\"\" width=\"48\" height=\"48\">\n\n# Pokedex XP\n\n**คู่มือสำหรับมือใหม่ในหน้าตา Windows XP / 98 · เวอร์ชันเกม: Pokémon Legends: Z-A (รวม Mega Dimension DLC)**\n\n![version](https://img.shields.io/badge/version-0.6.4%20Beta-f3b52b?style=flat-square)\n![pokemon](https://img.shields.io/badge/Pok%C3%A9mon-364-3b7de8?style=flat-square)\n![stack](https://img.shields.io/badge/HTML%20%2B%20CSS%20%2B%20JS-no%20build-2e9d4a?style=flat-square)\n![hosting](https://img.shields.io/badge/GitHub%20Pages-ready-0969da?style=flat-square)\n\n</div>\n\n---\n\n## เว็บนี้คืออะไร\n\n**Pokedex XP** เป็นเว็บคู่มือสำหรับคนที่เพิ่งเริ่มเล่น **Pokémon Legends: Z-A** (ชื่อโปรแกรมคือ Pokedex XP ส่วน Pokémon Legends: Z-A คือชื่อเวอร์ชันของเกม) ที่ตอบคำถามเดียวกันให้ทุกตัวในเกมว่า\n\n> \"ตัวนี้ควรจับนิสัยอะไร เพศอะไร ใช้ท่าอะไร วางไว้ปุ่มไหน แพ้อะไร แก้ทางยังไง แล้วจะเทรนยังไง\"\n\nเปิดมาเป็นหน้า Pokédex (หลัก 232 ตัว + Mega Dimension DLC 132 ตัว)ในหน้าต่างสไตล์ Windows XP กดโปเกมอนตัวไหนก็ได้ จะเด้งหน้าต่างรายละเอียดขึ้นมา พร้อมคำแนะนำที่ปรับตาม**สายการเล่น**ที่คุณเลือก\n\n---\n\n## ฟีเจอร์\n\n### 🔎 Pokédex (หน้าแรก)\n- แบ่งเป็น 2 section: **Pokédex หลัก (232 ตัว)** และ **Mega Dimension DLC (132 ตัว)** ต่อจากกัน มีปุ่มกระโดดไปแต่ละ section การค้นหา/กรอง/เรียงลำดับใช้กับทั้งสอง section\n- เลขลำดับ DLC เริ่มที่ `#001` ใหม่ (มีป้าย DLC กำกับ) ปุ่มก่อนหน้า/ถัดไปในหน้ารายละเอียดเดินตาม section ของตัวนั้น\n- แสดงเป็นการ์ดพร้อมสไปรต์พิกเซลและไอคอนธาตุ\n- ค้นหาได้ทั้งชื่อ **ญี่ปุ่น / อังกฤษ / โรมาจิ / เลขลำดับ** (เช่น `ピカチュウ`, `pika`, `25`)\n- กรองตามธาตุ, กรองตาม**สายการเล่นที่เหมาะ**, เรียงตามลำดับ Pokédex / ชื่อ / ค่าพลังรวม / ความเร็ว / ความเหมาะสมของสาย\n- ชื่อแสดงเป็น **ญี่ปุ่น (อังกฤษ)** พร้อมโรมาจิ\n\n### 🎯 4 สายการเล่นต่อโปเกมอนหนึ่งตัว\nโปเกมอนทุกตัวถูกจัดอันดับว่าเหมาะกับสายไหนมากที่สุด และรองลงมา\n\n| สาย | แนวคิด |\n|---|---|\n| **สายบุกเร็ว** | ตีแรงและเร็ว จบการต่อสู้ก่อนที่ศัตรูจะขยับ |\n| **สายอึดตีกลาง** | รับได้ ตีกลับได้ สมดุลระหว่างโจมตีกับความอึด |\n| **สายถึก ตั้งรับ** | ทนทาน ฟื้นฟู ถ่วงเวลา เหมาะกับมือใหม่ที่อยากเอาตัวรอด |\n| **สายซัพพอร์ต สถานะ** | ใช้ท่าสถานะ ลดพลังศัตรู วางกำแพง ช่วยทีม |\n\nหน้ารายละเอียดจะเปิดที่สายที่เหมาะที่สุดก่อน กดเลือกสายอื่นแล้วทุกอย่างด้านล่างเปลี่ยนตามสายนั้น:\n\n- **นิสัยที่ดีที่สุด** พร้อมเหตุผล และวิธีใช้ Mint ปรับผลของนิสัย\n- **ท่าที่ดีที่สุด 4 ท่า** (นับทุกประเภท) และ**ชุดสำรอง 4 ท่า** พร้อมจัดวางบนปุ่ม **A / B / X / Y** แบบเครื่อง Switch\n- **แผน IV / EV** และค่าที่ควรดันเป็น 31 ก่อน\n- **ธาตุที่ชุดท่านี้ตีแรงใส่**\n\nส่วนที่ไม่เปลี่ยนตามสาย: เพศที่ดีที่สุด, ธาตุแพ้/ชนะ และท่าที่ใช้สวนทาง\n\n### 🧬 วิวัฒนาการ\n- แท็บ **วิวัฒนาการ** ในหน้ารายละเอียด: แผนผังสายวิวัฒนาการ (เรียงแนวนอน สายที่แตกหลายร่างอย่าง Eevee ก็เรียงแบบเดียวกัน) รวม **Mega Evolution** ของตัวที่มี — กดที่ร่าง Mega เพื่อเปลี่ยนรูปใหญ่และดูค่าพลัง ธาตุ ความสามารถ และตารางแพ้/ชนะของร่าง Mega พร้อมเงื่อนไข (เลเวล, ไอเทม, ความสนิท, ช่วงเวลา, รู้ท่า, แลกเปลี่ยน ฯลฯ) และรายการ \"วิวัฒนาการมาจาก / ไปเป็น\"\n- รองรับร่างภูมิภาค (Alola / Galar / Hisui) เช่น Meowth → Persian (เลเวล 28) / Persian ร่าง Alola (ความสนิทสูง) / Perrserker (ร่าง Galar เลเวล 28)\n\n### 📚 ท่าที่เรียนได้ (Moves Learned)\n- แท็บ **ท่าที่เรียนได้** แยก **เรียนตามเลเวล** และ **เรียนจาก TM** เรียงจาก **ดีที่สุดไปน้อยที่สุด**\n- คะแนนปรับตามสายการเล่นที่เลือก ท่าที่อยู่ในชุดดีที่สุดมี ★ (บอกปุ่ม) ชุดสำรองมี ☆\n\n### ♥ รายการโปรด\n- กดปุ่มหัวใจพิกเซลที่การ์ดหรือในหน้ารายละเอียดเพื่อเก็บโปเกมอนที่ชอบ\n- เปิดดูรวมได้จากเมนู Start, ไอคอนบนเดสก์ท็อป หรือปุ่มหัวใจที่มุมขวาของ taskbar\n- เก็บในเบราว์เซอร์ (`localStorage`) รีโหลดแล้วไม่หาย แต่**ไม่ซิงก์ข้ามเครื่อง**\n\n### 📘 คู่มือและตาราง\n- **คู่มือสำหรับมือใหม่** วิธีใช้เว็บ ศัพท์ที่ควรรู้ ระบบต่อสู้เรียลไทม์ของ Z-A และหลักการจัดปุ่ม A/B/X/Y\n- **คู่มือ IV & EV** หา IV, Hyper Training, ฝึก EV, Mint (ที่ซื้อและวิธีใช้)\n- **ตารางธาตุ** แสดงผลการโจมตีครบทั้งตาราง\n\n### 🪟 หน้าตาแบบ Windows\n- หน้าต่างลากย้าย ปรับขนาด ย่อ ขยาย ปิดได้ มีปุ่มบน taskbar\n- ธีม **XP** สลับเป็น **98** ได้ที่ปุ่มมุมขวาของ taskbar (จำค่าที่เลือกไว้)\n- เมนู Start, นาฬิกา 24 ชั่วโมงพร้อมวันที่, ป้าย **Beta**, ตัวเลือกเวอร์ชันเกม (ตอนนี้มีข้อมูลเฉพาะ **Pokémon Legends: Z-A**)\n- หน้าบูตแบบโหลดพร้อมโปเกมอนสุ่ม 5 ตัว\n- ใช้งานบนมือถือได้ (หน้าต่างขยายเต็มจอ)\n\n---\n\n## วิธีคำนวณคำแนะนำ\n\n> ข้อมูลส่วนนี้เป็น **การวิเคราะห์ของเว็บนี้** ไม่ใช่กฎของเกม และยังไม่ได้ทดสอบในเกมจริง\n\n- **ท่า**: ให้คะแนนจากพลังท่า × ตัวคูณตามผลข้างเคียง (เช่น ต้องชาร์จ ลดค่าตัวเอง มีแรงสะท้อน) × STAB 1.5 × สัดส่วนค่าโจมตีที่ตัวนั้นใช้จริง แล้วเลือกท่าหลัก ท่าธาตุที่สอง ท่าครอบคลุมธาตุ และท่าเสริมตามบทบาทของสายนั้น\n- **ปุ่ม**: ท่าหลัก → **A**, ท่าตีตัวที่ 2 / ครอบคลุม → **X**, ท่าเสริมพลัง → **Y**, ท่าฟื้นฟู / สถานะ / กำแพง → **B**\n- **นิสัย**: ถ้าความเร็วสูง (Speed ≥ 75) จะเพิ่มความเร็ว เพราะใน Z-A ความเร็วช่วยลดคูลดาวน์ท่า ถ้าไม่ จะเพิ่มค่าโจมตีที่ใช้ตรง ๆ ส่วนสายถึกและซัพพอร์ตเพิ่มค่าป้องกันที่เด่นกว่า\n- **อันดับสาย**: คำนวณจากค่าพลังพื้นฐาน (โจมตี ความเร็ว ความอึด) และจำนวนท่าสถานะที่เรียนได้ แล้วเทียบเป็นเปอร์เซ็นต์\n\n---\n\n## ติดตั้งและใช้งาน\n\nเว็บนี้เป็นไฟล์สถิตล้วน **ไม่ต้องติดตั้งอะไร ไม่ต้อง build**\n\n### ทดสอบในเครื่อง\n```bash\npython3 -m http.server 8000\n# เปิด http://localhost:8000\n```\nเปิดไฟล์ `index.html` ตรง ๆ ในเบราว์เซอร์ก็ใช้ได้เช่นกัน\n\n### Deploy บน GitHub Pages\n1. อัปโหลดไฟล์ทั้งหมดในโฟลเดอร์นี้ขึ้น repository (จะวางที่รากของรีโป หรือใส่ในโฟลเดอร์ย่อยก็ได้)\n2. ไปที่ **Settings → Pages**\n3. ตั้ง Source เป็น **Deploy from a branch** เลือก branch `main` และโฟลเดอร์ `/ (root)` แล้วกด **Save**\n4. รอ 1–2 นาที แล้วเปิดลิงก์ตามโครงสร้างนี้\n\n| วางไฟล์ไว้ที่ | ลิงก์ที่ได้ |\n|---|---|\n| รากของรีโป `<user>.github.io` | `https://<user>.github.io/` |\n| โฟลเดอร์ `pokedex_xp/` ในรีโป `<user>.github.io` | `https://<user>.github.io/pokedex_xp/` |\n| รีโปชื่ออื่น เช่น `pokedex` | `https://<user>.github.io/pokedex/` |\n\nโค้ดใช้พาธแบบสัมพัทธ์ทั้งหมด จึงวางในโฟลเดอร์ย่อยได้โดยไม่ต้องแก้อะไร ถ้าอัปเดตแล้วยังเห็นหน้าเก่า ให้กด **Ctrl+Shift+R** หนึ่งครั้ง\n\n### ลิงก์ตรง\nเปิดหน้าที่ต้องการจาก URL ได้ เช่น `…/#/mon/153` (โปเกมอนลำดับที่ 153), `…/#/guide`, `…/#/iv`, `…/#/types`, `…/#/about`\n\n---\n\n## โครงสร้างโปรเจกต์\n\n```\n.\n├── index.html          โครงหน้าเว็บ (เดสก์ท็อป, Start menu, taskbar, หน้าบูต)\n├── css/style.css       ธีม XP / 98, หน้าต่าง, การ์ด, หัวใจพิกเซล, หน้าบูต\n├── js/app.js           ตัวจัดการหน้าต่าง, Pokédex, หน้ารายละเอียด, รายการโปรด, เมนู\n├── data/data.js        ข้อมูลทั้งหมด (window.ZA_DATA) สร้างจากสคริปต์วิเคราะห์\n└── img/\n    ├── mon/            artwork โปเกมอน 364 ตัว (WebP 256 px จัดกึ่งกลางแล้ว)\n    ├── mega/           artwork ร่าง Mega 48 ร่าง\n    ├── types/ cat/     ไอคอนธาตุและหมวดท่า\n    ├── ico/            ไอคอนเดสก์ท็อปและ Start menu\n    └── pokesprite-LICENSE.md\n```\n\nเลขเวอร์ชันและชื่อโปรแกรม/เวอร์ชันเกมแก้ได้ที่ `APP_VERSION`, `APP_STAGE`, `APP_NAME`, `GAME_NAME` ใน `js/app.js`\n\n### ข้อมูลที่เบราว์เซอร์เก็บไว้ (`localStorage`)\n| คีย์ | เก็บอะไร |\n|---|---|\n| `za_theme` | ธีมที่เลือก (`xp` / `98`) |\n| `za_fav` | รายการโปรด (เลขลำดับโปเกมอน) |\n| `za_welcome_seen` | ปิดกล่องต้อนรับแล้วหรือยัง |\n\n---\n\n## ที่มาข้อมูล และข้อควรระวัง\n\n- **รายชื่อโปเกมอนและท่าที่เรียนได้ (เลเวล / TM)**: [pokemondb.net](https://pokemondb.net/pokedex/game/legends-z-a) หน้า Legends Z-A และ [Mega Dimension](https://pokemondb.net/pokedex/game/legends-z-a/mega-dimension) · ข้อมูลเก็บมาผ่านตัวสรุปหน้าเว็บ จึงอาจมีคลาดเคลื่อนเล็กน้อย (เช่น Nacli ไม่มีหน้า Z-A จึงประมาณจากร่างวิวัฒนาการ, Munna/Igglybuff ไม่มีท่าตามเลเวลในข้อมูล)\n- **สายวิวัฒนาการและเงื่อนไข / ธาตุ ค่าพลังพื้นฐาน ชื่อญี่ปุ่น และอัตราส่วนเพศของ DLC**: [PokeAPI](https://pokeapi.co/) (อ้างอิงเกมหลัก ใน Z-A บางตัวอาจต่างออกไป)\n- **ชื่อญี่ปุ่น / โรมาจิ และค่าพลังพื้นฐานของ Pokédex หลัก**: เขียนจากความรู้ ไม่ได้ดึงจากเว็บ ควรตรวจกับ [Bulbapedia](https://bulbapedia.bulbagarden.net/) ถ้าต้องการความแน่นอน\n- **พลังของท่า**: เป็นค่าประมาณตามเกมหลัก Z-A ใช้ระบบคูลดาวน์แทน PP จึงอาจต่างกัน\n- **เพดาน EV 252 ต่อค่า / 510 รวม**: เป็นกฎของเกมหลัก Bulbapedia ไม่ได้ระบุเพดานของ Z-A จึงควรถือเป็นแนวทาง\n- **ท่า / นิสัย / เพศ / ปุ่ม / อันดับสาย**: มาจากสูตรวิเคราะห์ ไม่ใช่กฎของเกม ถ้าไม่ตรงกับที่คุณเจอในเกม ให้ยึดตามเกม\n\n## เครดิต\n\n- รูปโปเกมอน: artwork ของ Ken Sugimori (ชุด *Sugimori Pokémon Gen1-9 DLC3* ที่เจ้าของโปรเจกต์รวบรวมไว้) ตัดขอบโปร่งใส จัดกึ่งกลางและย่อเป็น WebP 256 px เก็บใน `img/mon/` (364 ตัว) และ `img/mega/` (97 ร่าง) · ร่าง Mega ที่ไม่มีในชุดดังกล่าว (Z-A ใหม่) ใช้ official artwork จาก PokeAPI/sprites แล้วตัดขอบ จัดกึ่งกลาง ย่อเป็น WebP 256 px แบบเดียวกัน · ภาพเป็นลิขสิทธิ์ของ Nintendo / Creatures / Game Freak / The Pokémon Company\n- ไอคอนธาตุและหมวดท่า: [msikma/pokesprite](https://github.com/msikma/pokesprite) (MIT, ดู `img/pokesprite-LICENSE.md`)\n- ข้อมูลท่า: pokemondb.net · วิวัฒนาการ: PokeAPI · ข้อมูลทั่วไป: Bulbapedia\n\n## สร้างด้วย AI\n\nโปรเจกต์นี้**สร้างโดย AI** ผ่าน **Claude (โมเดล Claude Sonnet 5.5)** ของ [Anthropic](https://www.anthropic.com/) ครอบคลุมทั้งโค้ดเว็บ การดึงและจัดข้อมูล สูตรวิเคราะห์ท่า/นิสัย/สายการเล่น และการออกแบบหน้าตา โดยมีผู้พัฒนาเป็นผู้กำหนดความต้องการและตรวจรับในแต่ละรอบ\n\nเนื้อหาที่ AI สร้างอาจมีข้อผิดพลาด โดยเฉพาะชื่อญี่ปุ่น ค่าพลังพื้นฐาน และคำแนะนำท่า/นิสัย ควรตรวจกับเกมหรือแหล่งข้อมูลทางการก่อนใช้ตัดสินใจ\n\n## ลิขสิทธิ์\n\nเป็นโปรเจกต์แฟนเมด **ไม่เกี่ยวข้องกับ** Nintendo / Creatures / Game Freak / The Pokémon Company ชื่อและภาพโปเกมอนเป็นลิขสิทธิ์ของเจ้าของเดิม\n\n### v0.6.2\n- ภาพ Mega ทั้ง 97 ร่างเก็บในเครื่อง ตัดขอบ จัดกึ่งกลาง เห็นเต็มตัว และขยายกล่องภาพในหน้ารายละเอียดให้เห็นดีเทลมากขึ้น (เลิกโหลดจาก pokemondb และเลิกใช้ tools/fetch_art.py)\n\n### v0.6.3\n- ปรับรูปหน้ารายละเอียดให้เต็มช่อง (ยกเลิกใน v0.6.4)\n\n### v0.6.4\n- รูปหน้ารายละเอียดใช้สัดส่วนเดียวกับหน้า Pokédex (ตัวละ 84% ของช่อง ไม่ครอป ขนาดสมดุลสม่ำเสมอ)\n",
    "tree_paths": [
      "README.md",
      "css",
      "css/style.css",
      "data",
      "data/data.js",
      "img",
      "img/cat",
      "img/cat/physical.svg",
      "img/cat/special.svg",
      "img/cat/status.svg",
      "img/ico",
      "img/ico/about-32.png",
      "img/ico/about-48.png",
      "img/ico/dex-32.png",
      "img/ico/dex-48.png",
      "img/ico/favs-32.png",
      "img/ico/favs-48.png",
      "img/ico/guide-32.png",
      "img/ico/guide-48.png",
      "img/ico/iv-32.png",
      "img/ico/iv-48.png",
      "img/ico/types-32.png",
      "img/ico/types-48.png",
      "img/ico_pokedex.png",
      "img/mega",
      "img/mega/abomasnow-mega.webp",
      "img/mega/absol-mega-z.webp",
      "img/mega/absol-mega.webp",
      "img/mega/aerodactyl-mega.webp",
      "img/mega/aggron-mega.webp",
      "img/mega/alakazam-mega.webp",
      "img/mega/altaria-mega.webp",
      "img/mega/ampharos-mega.webp",
      "img/mega/audino-mega.webp",
      "img/mega/banette-mega.webp",
      "img/mega/barbaracle-mega.webp",
      "img/mega/baxcalibur-mega.webp",
      "img/mega/beedrill-mega.webp",
      "img/mega/blastoise-mega.webp",
      "img/mega/blaziken-mega.webp",
      "img/mega/camerupt-mega.webp",
      "img/mega/chandelure-mega.webp",
      "img/mega/charizard-mega-x.webp",
      "img/mega/charizard-mega-y.webp",
      "img/mega/chesnaught-mega.webp",
      "img/mega/chimecho-mega.webp",
      "img/mega/clefable-mega.webp",
      "img/mega/crabominable-mega.webp",
      "img/mega/darkrai-mega.webp",
      "img/mega/delphox-mega.webp",
      "img/mega/diancie-mega.webp",
      "img/mega/dragalge-mega.webp",
      "img/mega/dragonite-mega.webp",
      "img/mega/drampa-mega.webp",
      "img/mega/eelektross-mega.webp",
      "img/mega/emboar-mega.webp",
      "img/mega/excadrill-mega.webp",
      "img/mega/falinks-mega.webp",
      "img/mega/feraligatr-mega.webp",
      "img/mega/floette-mega.webp",
      "img/mega/froslass-mega.webp",
      "img/mega/gallade-mega.webp",
      "img/mega/garchomp-mega-z.webp",
      "img/mega/garchomp-mega.webp",
      "img/mega/gardevoir-mega.webp",
      "img/mega/gengar-mega.webp",
      "img/mega/glalie-mega.webp",
      "img/mega/glimmora-mega.webp",
      "img/mega/golisopod-mega.webp",
      "img/mega/golurk-mega.webp",
      "img/mega/greninja-mega.webp",
      "img/mega/gyarados-mega.webp",
      "img/mega/hawlucha-mega.webp",
      "img/mega/heatran-mega.webp",
      "img/mega/heracross-mega.webp",
      "img/mega/houndoom-mega.webp",
      "img/mega/kangaskhan-mega.webp",
      "img/mega/latias-mega.webp",
      "img/mega/latios-mega.webp",
      "img/mega/lopunny-mega.webp",
      "img/mega/lucario-mega-z.webp",
      "img/mega/lucario-mega.webp",
      "img/mega/magearna-mega.webp",
      "img/mega/magearna-original-mega.webp",
      "img/mega/malamar-mega.webp",
      "img/mega/manectric-mega.webp",
      "img/mega/mawile-mega.webp",
      "img/mega/medicham-mega.webp",
      "img/mega/meganium-mega.webp",
      "img/mega/meowstic-female-mega.webp",
      "img/mega/meowstic-male-mega.webp",
      "img/mega/metagross-mega.webp",
      "img/mega/mewtwo-mega-x.webp",
      "img/mega/mewtwo-mega-y.webp",
      "img/mega/pidgeot-mega.webp",
      "img/mega/pinsir-mega.webp",
      "img/mega/pyroar-mega.webp",
      "img/mega/raichu-mega-x.webp",
      "img/mega/raichu-mega-y.webp",
      "img/mega/rayquaza-mega.webp",
      "img/mega/sableye-mega.webp",
      "img/mega/salamence-mega.webp",
      "img/mega/sceptile-mega.webp",
      "img/mega/scizor-mega.webp",
      "img/mega/scolipede-mega.webp",
      "img/mega/scovillain-mega.webp",
      "img/mega/scrafty-mega.webp",
      "img/mega/sharpedo-mega.webp",
      "img/mega/skarmory-mega.webp",
      "img/mega/slowbro-mega.webp",
      "img/mega/staraptor-mega.webp",
      "img/mega/starmie-mega.webp",
      "img/mega/steelix-mega.webp",
      "img/mega/swampert-mega.webp",
      "img/mega/tatsugiri-curly-mega.webp",
      "img/mega/tatsugiri-droopy-mega.webp",
      "img/mega/tatsugiri-stretchy-mega.webp",
      "img/mega/tyranitar-mega.webp",
      "img/mega/venusaur-mega.webp",
      "img/mega/victreebel-mega.webp",
      "img/mega/zeraora-mega.webp",
      "img/mega/zygarde-mega.webp",
      "img/mon",
      "img/mon/abomasnow.webp",
      "img/mon/abra.webp",
      "img/mon/absol.webp",
      "img/mon/aegislash.webp",
      "img/mon/aerodactyl.webp",
      "img/mon/aggron.webp",
      "img/mon/alakazam.webp",
      "img/mon/altaria.webp",
      "img/mon/amaura.webp",
      "img/mon/amoonguss.webp",
      "img/mon/ampharos.webp",
      "img/mon/annihilape.webp",
      "img/mon/arbok.webp",
      "img/mon/arctibax.webp",
      "img/mon/ariados.webp",
      "img/mon/armarouge.webp",
      "img/mon/aromatisse.webp",
      "img/mon/aron.webp",
      "img/mon/audino.webp",
      "img/mon/aurorus.webp",
      "img/mon/avalugg.webp",
      "img/mon/bagon.webp",
      "img/mon/banette.webp",
      "img/mon/barbaracle.webp",
      "img/mon/baxcalibur.webp",
      "img/mon/bayleef.webp",
      "img/mon/beedrill.webp",
      "img/mon/beldum.webp",
      "img/mon/bellsprout.webp",
      "img/mon/bergmite.webp",
      "img/mon/binacle.webp",
      "img/mon/blastoise.webp",
      "img/mon/blaziken.webp",
      "img/mon/braixen.webp",
      "img/mon/budew.webp",
      "img/mon/bulbasaur.webp",
      "img/mon/buneary.webp",
      "img/mon/bunnelby.webp",
      "img/mon/camerupt.webp",
      "img/mon/capsakid.webp",
      "img/mon/carbink.webp",
      "img/mon/carvanha.webp",
      "img/mon/ceruledge.webp",
      "img/mon/chandelure.webp",
      "img/mon/charcadet.webp",
      "img/mon/charizard.webp",
      "img/mon/charmander.webp",
      "img/mon/charmeleon.webp",
      "img/mon/chesnaught.webp",
      "img/mon/chespin.webp",
      "img/mon/chikorita.webp",
      "img/mon/chimecho.webp",
      "img/mon/chingling.webp",
      "img/mon/clauncher.webp",
      "img/mon/clawitzer.webp",
      "img/mon/clefable.webp",
      "img/mon/clefairy.webp"
    ],
    "tree_truncated": false
  },
  {
    "repo": "The-LJAW/head-judge-arbiter",
    "search_description": "An app that can answer all of your mtg rules questions. ",
    "created_at": "2026-10-02T18:29:31Z",
    "id": "R_kgDOU5PwDg",
    "meta": {
      "id": 1402204174,
      "node_id": "R_kgDOU5PwDg",
      "name": "head-judge-arbiter",
      "full_name": "The-LJAW/head-judge-arbiter",
      "private": false,
      "owner": {
        "login": "The-LJAW",
        "id": 332610752,
        "node_id": "U_kgDOE9M8wA",
        "avatar_url": "https://avatars.githubusercontent.com/u/332610752?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/The-LJAW",
        "html_url": "https://github.com/The-LJAW",
        "followers_url": "https://api.github.com/users/The-LJAW/followers",
        "following_url": "https://api.github.com/users/The-LJAW/following{/other_user}",
        "gists_url": "https://api.github.com/users/The-LJAW/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/The-LJAW/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/The-LJAW/subscriptions",
        "organizations_url": "https://api.github.com/users/The-LJAW/orgs",
        "repos_url": "https://api.github.com/users/The-LJAW/repos",
        "events_url": "https://api.github.com/users/The-LJAW/events{/privacy}",
        "received_events_url": "https://api.github.com/users/The-LJAW/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/The-LJAW/head-judge-arbiter",
      "description": "An app that can answer all of your mtg rules questions. ",
      "fork": false,
      "url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter",
      "forks_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/forks",
      "keys_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/teams",
      "hooks_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/hooks",
      "issue_events_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/issues/events{/number}",
      "events_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/events",
      "assignees_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/assignees{/user}",
      "branches_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/branches{/branch}",
      "tags_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/tags",
      "blobs_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/languages",
      "stargazers_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/stargazers",
      "contributors_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/contributors",
      "subscribers_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/subscribers",
      "subscription_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/subscription",
      "commits_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/contents/{+path}",
      "compare_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/merges",
      "archive_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/downloads",
      "issues_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/issues{/number}",
      "pulls_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/labels{/name}",
      "releases_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/releases{/id}",
      "deployments_url": "https://api.github.com/repos/The-LJAW/head-judge-arbiter/deployments",
      "created_at": "2026-10-02T18:29:31Z",
      "updated_at": "2026-10-02T20:02:59Z",
      "pushed_at": "2026-10-02T20:02:56Z",
      "git_url": "git://github.com/The-LJAW/head-judge-arbiter.git",
      "ssh_url": "[email protected]:The-LJAW/head-judge-arbiter.git",
      "clone_url": "https://github.com/The-LJAW/head-judge-arbiter.git",
      "svn_url": "https://github.com/The-LJAW/head-judge-arbiter",
      "homepage": null,
      "size": 1006,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Head Judge Arbiter\n\nA friendly Magic: The Gathering rules judge for the table. Ask a question mid-game and the judge looks up the current Oracle text and official rulings for every card you mention, checks the Comprehensive Rules, and then gives a plain-English ruling with the rule numbers it relied on.\n\n**Live app:** https://the-ljaw.github.io/head-judge-arbiter/\n\n## What it does\n\n- **Rulings grounded in real data.** Before answering, the judge reads each card's current Oracle text and rulings from Scryfall and searches a built-in copy of the Comprehensive Rules (currently effective September 25, 2026). It only cites rule numbers it actually looked up, so it doesn't quote numbers that were renumbered years ago.\n- **You can watch it work.** While it thinks you see each lookup (\"Reading Oracle text for Questing Beast\", \"Read rule 702.19 (Trample)\"). Afterward it shows the cards it read as a small fanned hand and the rules it cited as chips.\n- **Tap anything.** Card names open the full card with rulings (and flip double-faced cards). Rule numbers open the exact rule in the built-in rulebook.\n- **Card name autocomplete.** Type `[[` and start a card name.\n- **Rulebook.** Browse or search the full Comprehensive Rules and glossary. Works even before the AI is connected.\n- **Past rulings** are saved on your device. Copy or share any ruling to Discord or a text thread.\n- Built for phones at the table: big tap targets, one-handed composer, installable to the home screen.\n\n## How it's put together\n\n```\nPhone / browser (GitHub Pages, free)\n  ├─ Rulebook search runs locally (data/rules.json)\n  ├─ Card lookups go straight to Scryfall (free, no key)\n  └─ Questions go to ──> Cloudflare Worker (free) ──> Gemini or Claude\n                          holds the API key, the judge's instructions,\n                          rate limits, and the passcode\n```\n\nThe AI key lives only in the Worker as an encrypted secret. It never appears in this repo or in the browser. The Worker also fixes the judge's instructions on the server, so nobody can repurpose your key as a general chatbot.\n\n## Setup (about 15 minutes, no command line needed)\n\n### 1. Turn on GitHub Pages\n\nIn this repo: **Settings > Pages > Build and deployment**, set **Source** to \"Deploy from a branch\", branch **main**, folder **/ (root)**, and save. The site appears at `https://the-ljaw.github.io/head-judge-arbiter/` a minute later.\n\n### 2. Get a free Gemini API key\n\nGo to [Google AI Studio](https://aistudio.google.com/apikey), sign in, and click **Create API key**. Copy it.\n\n### 3. Create the Cloudflare Worker\n\n1. Sign up or log in at [dash.cloudflare.com](https://dash.cloudflare.com) (the free plan is fine).\n2. Go to **Workers & Pages > Create > Create Worker**. Name it `head-judge-arbiter` and click **Deploy**.\n3. Click **Edit code**, delete the sample code, paste in the full contents of [`worker/worker.js`](worker/worker.js), and click **Deploy**.\n4. Open the Worker's **Settings > Variables and Secrets** and add:\n\n   | Type | Name | Value |\n   |---|---|---|\n   | Secret | `GEMINI_API_KEY` | the key from step 2 |\n   | Text | `ALLOWED_ORIGINS` | `https://the-ljaw.github.io` |\n   | Secret (optional) | `ACCESS_CODE` | a passcode for your group, e.g. `cubecommonwealth` |\n\n5. Copy the Worker's URL (it looks like `https://head-judge-arbiter.<your-name>.workers.dev`). Open it in a browser and add `/health` to the end. You should see `\"ok\": true` and \"On duty.\"\n\n### 4. Connect the app to the Worker\n\nEdit [`config.js`](config.js) right on GitHub (pencil icon) and paste the Worker URL into `proxyUrl`:\n\n```js\nproxyUrl: 'https://head-judge-arbiter.your-name.workers.dev',\n```\n\nCommit. In a minute the badge at the top of the app turns green and says **On duty**.\n\n### 5. Share it\n\nPost the link in the Cube Commonwealth Discord. If you set an `ACCESS_CODE`, share it in a channel only members can see; people enter it once and their phone remembers it.\n\n## Choosing the AI\n\n| | Gemini 3.8 Flash (default) | Claude Sonnet 5.5 |\n|---|---|---|\n| Cost | Free tier | About 3 to 8 cents per question |\n| Ruling quality | Good | Best on tricky multi-card interactions |\n| Limits | Google sets per-project limits (see **Rate limit** in AI Studio); each question uses 2 to 4 requests | Effectively none for a friend group |\n| Privacy | Google may use free-tier prompts to improve its products | Not used for training |\n\nThe free tier is plenty for casual use, and two settings keep it quick and dependable:\n\n- **Speed.** The Worker asks Gemini to think at its `low` level. In testing that cut a typical ruling from about a minute (with Google's default, `medium`) to under 30 seconds.\n- **Backup model.** Google's newest model sometimes answers \"high demand\" during busy spells, either right away or partway through an answer. When that happens the Worker redoes that step on Gemini 3.7 Flash, which has its own free quota, and the app quietly drops any half-finished text.\n\nIf both models are busy you'll see \"The judge is swamped\"; waiting a minute usually fixes it. Turning on billing for the same Gemini key raises Google's limits and costs very little (Gemini 3.8 Flash is $0.75 per million input tokens through 2026).\n\nTo tune either, add a Text variable on the Worker (**Settings > Variables and Secrets**):\n\n| Name | Default | Options |\n|---|---|---|\n| `GEMINI_THINKING` | `low` | `medium` or `high` for more careful but slower rulings, `default` for Google's setting |\n| `GEMINI_FALLBACK_MODEL` | `gemini-3.7-flash` | any Gemini model name, or `none` to turn the backup off |\n| `GEMINI_MODEL` | `gemini-3.8-flash` | the main model |\n\n**To switch to Claude:** create a key at [platform.claude.com](https://platform.claude.com), set a monthly spend limit there (Settings > Limits) as your cost guardrail, then in the Worker add a secret `ANTHROPIC_API_KEY` and a text variable `PROVIDER` = `anthropic`. Optional variables: `ANTHROPIC_MODEL` (default `claude-sonnet-5-5`) and `ANTHROPIC_EFFORT` (`low`, `medium` default, or `high`; higher is more careful but slower and costs more).\n\n## Guardrails built in\n\n- Only your site can call the Worker (`ALLOWED_ORIGINS`).\n- Optional group passcode (`ACCESS_CODE`).\n- Per-visitor rate limit, 30 model calls a minute by default (`RATE_LIMIT_PER_MINUTE`).\n- Question length, conversation length, and lookup rounds are capped so one person can't run up a bill.\n- The judge's instructions and tools are fixed on the server; the browser can't change them.\n\n## Keeping the rules current\n\nWizards updates the Comprehensive Rules a few times a year. A GitHub Action ([`refresh-rules.yml`](.github/workflows/refresh-rules.yml)) checks every Monday, downloads the newest official rules file, and commits an updated `data/rules.json` only if the rules changed. It refuses to replace the rules with an older edition or a file that doesn't parse correctly. You can also run it by hand from the **Actions** tab (\"Refresh Comprehensive Rules\" > **Run workflow**).\n\nCard text and rulings are always live from Scryfall, so new sets work the day Scryfall adds them.\n\n## Working on it locally\n\nRequires Node 20 or newer. No packages to install.\n\n```bash\nnpm test        # rules search quality, rendering, and Worker tests against fake AI servers\nnpm run dev     # full local preview at http://127.0.0.1:8080 with a fake judge (no keys needed)\nnpm run rules   # rebuild data/rules.json from the newest official rules\n```\n\n`npm run dev -- gemini` previews with a Gemini-style fake instead. Add `GEMINI_MODEL=gemini-flaky` (fails partway through an answer) or `GEMINI_MODEL=gemini-overloaded` (fails right away) in front of it to watch the backup model take over.\n\nPrefer the command line for the Worker? `cd worker`, then `npx wrangler secret put GEMINI_API_KEY` and `npx wrangler deploy`. Settings live in [`worker/wrangler.toml`](worker/wrangler.toml).\n\n## Files\n\n```\nindex.html, styles.css, config.js   the app shell, look, and settings\njs/app.js         chat, streaming, rulebook, card views, history\njs/tools.js       runs the judge's lookups (cards and rules)\njs/rules.js       Comprehensive Rules search index\njs/scryfall.js    Scryfall client (paced to Scryfall's request guidelines)\njs/markdown.js    safe formatting for answers, card and rule links\nworker/worker.js  the key-holding proxy (Cloudflare Worker, single file)\ndata/rules.json   parsed Comprehensive Rules and glossary\nscripts/          rules builder and share-image source\ntests/            automated tests and the local preview server\n```\n\n## Fine print\n\nHead Judge Arbiter is unofficial Fan Content permitted under the Fan Content Policy. Not approved or endorsed by Wizards. Portions of the materials used are property of Wizards of the Coast. &copy; Wizards of the Coast LLC. Card data and images are provided by [Scryfall](https://scryfall.com). For competitive events, the event's head judge always has the final word.\n\nFonts: Cinzel and Crimson Pro, both under the SIL Open Font License (see `assets/fonts`).\n",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/refresh-rules.yml",
      ".github/workflows/tests.yml",
      ".gitignore",
      ".nojekyll",
      "README.md",
      "assets",
      "assets/fonts",
      "assets/fonts/OFL-Cinzel.txt",
      "assets/fonts/OFL-CrimsonPro.txt",
      "assets/fonts/cinzel.woff2",
      "assets/fonts/crimson-pro-italic.woff2",
      "assets/fonts/crimson-pro.woff2",
      "assets/icon-180.png",
      "assets/icon-192.png",
      "assets/icon-512.png",
      "assets/icon.svg",
      "assets/og.png",
      "config.js",
      "data",
      "data/rules.json",
      "index.html",
      "js",
      "js/app.js",
      "js/markdown.js",
      "js/rules.js",
      "js/scryfall.js",
      "js/tools.js",
      "manifest.webmanifest",
      "package.json",
      "scripts",
      "scripts/build-rules.mjs",
      "scripts/og.html",
      "styles.css",
      "tests",
      "tests/app-modules.test.mjs",
      "tests/dev-server.mjs",
      "tests/mock-upstream.mjs",
      "tests/rules-search.test.mjs",
      "tests/worker.test.mjs",
      "worker",
      "worker/worker.js",
      "worker/wrangler.toml"
    ],
    "tree_truncated": false
  },
  {
    "repo": "GitHub1511/-claude-companion-minecraft-1.20.1",
    "search_description": "",
    "created_at": "2026-10-02T14:36:46Z",
    "id": "R_kgDOU49iAQ",
    "meta": {
      "id": 1401905665,
      "node_id": "R_kgDOU49iAQ",
      "name": "-claude-companion-minecraft-1.20.1",
      "full_name": "GitHub1511/-claude-companion-minecraft-1.20.1",
      "private": false,
      "owner": {
        "login": "GitHub1511",
        "id": 47611459,
        "node_id": "MDQ6VXNlcjQ3NjExNDU5",
        "avatar_url": "https://avatars.githubusercontent.com/u/47611459?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/GitHub1511",
        "html_url": "https://github.com/GitHub1511",
        "followers_url": "https://api.github.com/users/GitHub1511/followers",
        "following_url": "https://api.github.com/users/GitHub1511/following{/other_user}",
        "gists_url": "https://api.github.com/users/GitHub1511/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/GitHub1511/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/GitHub1511/subscriptions",
        "organizations_url": "https://api.github.com/users/GitHub1511/orgs",
        "repos_url": "https://api.github.com/users/GitHub1511/repos",
        "events_url": "https://api.github.com/users/GitHub1511/events{/privacy}",
        "received_events_url": "https://api.github.com/users/GitHub1511/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/GitHub1511/-claude-companion-minecraft-1.20.1",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1",
      "forks_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/forks",
      "keys_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/teams",
      "hooks_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/hooks",
      "issue_events_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/issues/events{/number}",
      "events_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/events",
      "assignees_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/assignees{/user}",
      "branches_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/branches{/branch}",
      "tags_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/tags",
      "blobs_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/languages",
      "stargazers_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/stargazers",
      "contributors_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/contributors",
      "subscribers_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/subscribers",
      "subscription_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/subscription",
      "commits_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/contents/{+path}",
      "compare_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/merges",
      "archive_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/downloads",
      "issues_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/issues{/number}",
      "pulls_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/labels{/name}",
      "releases_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/releases{/id}",
      "deployments_url": "https://api.github.com/repos/GitHub1511/-claude-companion-minecraft-1.20.1/deployments",
      "created_at": "2026-10-02T14:36:46Z",
      "updated_at": "2026-10-02T15:42:33Z",
      "pushed_at": "2026-10-02T15:43:49Z",
      "git_url": "git://github.com/GitHub1511/-claude-companion-minecraft-1.20.1.git",
      "ssh_url": "[email protected]:GitHub1511/-claude-companion-minecraft-1.20.1.git",
      "clone_url": "https://github.com/GitHub1511/-claude-companion-minecraft-1.20.1.git",
      "svn_url": "https://github.com/GitHub1511/-claude-companion-minecraft-1.20.1",
      "homepage": null,
      "size": 614,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Java",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Claude Companion (Fabric, Minecraft 1.20.1)\n\nClaude as a person in your world. Talk to it out loud, it talks back, walks around with you, builds with any block (vanilla or modded), breaks blocks, fights mobs, hands you items, looks through your eyes, and can run any command. Powered by the Claude API.\n\nPlays fine alongside Sodium, Iris, Controlify, Kappa shaders and Patrix (it adds no mixins and touches no rendering or input code).\n\n## 1. Get the .jar\n\n**Easiest, no Java install needed (GitHub builds it for you)**\n1. Make a free GitHub account, click New repository, make it private, create it.\n2. Click \"uploading an existing file\" and drag in everything inside this folder (including the hidden `.github` folder; on a Mac press Cmd+Shift+. in Finder to see it). Commit.\n3. Open the Actions tab. The \"Build Claude Companion jar\" run takes about 5 minutes.\n4. Open the finished run, download `claude-companion-jar` at the bottom, unzip it. That's your `claude-companion-1.0.0.jar`.\n\n**Or build locally**\nInstall JDK 21 (Adoptium Temurin), open a terminal in this folder, run `./gradlew build` (Windows: `gradlew.bat build`). The jar appears in `build/libs/`.\n\n## 2. Install\nPut these in `.minecraft/mods` (Fabric Loader for 1.20.1):\n- `claude-companion-1.0.0.jar`\n- Fabric API for 1.20.1 (you likely already have it)\n\n## 2b. Voice setup (one-time)\nInstall **Python 3.12** from python.org (on Windows, tick \"Add python.exe to PATH\"). Everything else installs itself into `config/claudecompanion/` the first time you launch, with progress shown in chat.\n\n**Sesame CSM-1B (default voice).** This is the most natural voice. On top of Sesame's base model, the mod applies [Tachyeon/csm-1b-conversational-finetuned](https://huggingface.co/Tachyeon/csm-1b-conversational-finetuned), a fine-tune trained on a single warm, expressive female speaker (Expresso speaker ex04). It also grabs a real clip of that speaker from the [Expresso dataset](https://huggingface.co/datasets/ylacombe/expresso) (CC BY-NC 4.0, fine for personal use) as the voice prompt, so the voice stays consistent. If either step fails, it falls back to the bundled `warm` voice prompt on plain CSM-1B. Setup:\n1. Make a free account at huggingface.co, open huggingface.co/sesame/csm-1b and accept the terms.\n2. In Settings, Access Tokens, create a **Read** token and paste it into `\"huggingfaceToken\"` in `config/claudecompanion.json`.\n3. Restart Minecraft. The first run downloads PyTorch, the model and the fine-tune (several GB), so give it a while.\n\nSesame really wants an **NVIDIA GPU**. It uses roughly 4 to 5 GB of video memory, which competes with heavy shaders and 128x textures, and on CPU alone it lags. While Sesame installs or loads, or if it can't run, Claude speaks with **Kokoro (Emma)**. Kokoro is light (about 350 MB) and needs no account. Set `\"ttsEngine\": \"kokoro\"` to use only Kokoro.\n\nLogs: `config/claudecompanion/csm/server.log` and `config/claudecompanion/kokoro/server.log`.\n\n## 3. API key\nLaunch once, quit, open `.minecraft/config/claudecompanion.json` and paste your key from console.anthropic.com into `\"apiKey\"`. API usage is billed separately from a Claude.ai subscription. (Or set the `ANTHROPIC_API_KEY` environment variable.)\n\n## 4. Play\nOpen a singleplayer world and just talk. Claude appears beside you on your first sentence. The first launch downloads a 40 MB offline speech model automatically.\n\n- **K** mutes or unmutes the mic (rebindable in Controls, and bindable to a controller through Controlify)\n- Typing in chat also talks to Claude\n- `/claude summon`, `/claude dismiss`, `/claude follow`, `/claude stay`, `/claude reset` (clears memory), `/claude reload` (re-reads config), `/claude ask <message>`\n- Say \"stop\" or \"wait\" to interrupt whatever it's doing\n\n## Config (`config/claudecompanion.json`)\n| Setting | What it does |\n|---|---|\n| `model` | `claude-sonnet-5-5` default. `claude-haiku-4-5-20251001` is faster and cheaper, `claude-opus-5-5` is smarter and slower |\n| `requireWakeWord` | `true` makes Claude ignore speech that doesn't include \"Claude\" |\n| `respondToAllChat` | `false` makes Claude only answer chat that mentions \"Claude\" |\n| `ttsEngine` | `csm` (Sesame, default), `kokoro`, or `system` (your OS's built-in voice) |\n| `huggingfaceToken` | Needed for Sesame (see Voice setup) |\n| `csmFinetune` | Fine-tune applied to CSM-1B. Default `Tachyeon/csm-1b-conversational-finetuned`; blank for plain CSM-1B |\n| `csmVoicePrompt` | `ex04` (default, a clip of the fine-tune's own speaker), `warm` (original upbeat American female), `conversational_a` or `conversational_b` (Sesame's examples), or a path to your own clear 10 to 20 second WAV |\n| `csmVoicePromptText` | Exact transcript of your own WAV (only for a custom file) |\n| `csmDevice` | `auto`, `cuda` or `cpu` |\n| `kokoroVoice` | `bf_emma` (British) default. American: `af_heart`, `af_bella`, `af_nicole`, `af_sarah`, `am_michael`, `am_adam`, `am_eric`, `am_liam`, `am_onyx`, `am_puck`, `am_fenrir`. British: `bf_isabella`, `bm_george`, `bm_lewis`, `bm_daniel`, `bm_fable` |\n| `kokoroModel` | `kokoro-v1.0.onnx` (best, and faster on most PCs) or `kokoro-v1.0.int8.onnx` (smaller download, slower) |\n| `pythonCommand` | Leave blank to auto-detect. Set it if Python lives somewhere odd, for example `py -3.12` or `/opt/homebrew/bin/python3.12` |\n| `ttsSpeed` | 0.5 to 2 |\n| `ttsVoice` | Only for the system-voice fallback (Windows example `Microsoft Zira Desktop`, Mac example `Samantha`) |\n| `invulnerable` | Claude can't die (default true) |\n| `extraPersonality` | Anything extra you want Claude to be like |\n| `maxBlocksPerCall` | Cap on a single fill (default 32768) |\n\n## How it works\n- **Ears**: your mic, transcribed offline by Vosk. Only finished sentences get sent to Claude.\n- **Voice**: Sesame CSM-1B, with Kokoro as the fallback and then the OS voice. Each runs locally as a small background server the mod starts and stops with the game. It speaks sentence by sentence, preparing the next line while the current one plays.\n- **Eyes**: every message includes a live report (your position, facing, crosshair target, nearby mobs, recent events like blocks broken or damage taken), plus a `see_view` tool that screenshots your actual view, shaders and all.\n- **Body**: a player-shaped entity with pathfinding. Tools: look_around, scan_area, get_blocks, see_view, move_to, teleport_to, follow_player, stop, wait, place_blocks, fill, break_blocks, hold_item, give_item, attack, run_command.\n\n## Limits\n- Singleplayer only (or the computer hosting a LAN world). It's a client mod that reaches into your own integrated server.\n- Mac: allow Minecraft (or your launcher) microphone access in System Settings, Privacy and Security, Microphone.\n- Each spoken sentence is an API call, and big builds use many calls, so watch your usage.\n",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/build.yml",
      ".github/workflows/smoke.yml",
      ".gitignore",
      "README.md",
      "build.gradle",
      "ci",
      "ci/smoketest.py",
      "gradle.properties",
      "gradle",
      "gradle/wrapper",
      "gradle/wrapper/gradle-wrapper.jar",
      "gradle/wrapper/gradle-wrapper.properties",
      "gradlew",
      "gradlew.bat",
      "settings.gradle",
      "src",
      "src/main",
      "src/main/java",
      "src/main/java/com",
      "src/main/java/com/claudecompanion",
      "src/main/java/com/claudecompanion/ClaudeCompanion.java",
      "src/main/java/com/claudecompanion/ClaudeEntity.java",
      "src/main/java/com/claudecompanion/Config.java",
      "src/main/java/com/claudecompanion/agent",
      "src/main/java/com/claudecompanion/agent/ClaudeAgent.java",
      "src/main/java/com/claudecompanion/agent/Prompt.java",
      "src/main/java/com/claudecompanion/agent/Tools.java",
      "src/main/java/com/claudecompanion/agent/WorldEvents.java",
      "src/main/java/com/claudecompanion/client",
      "src/main/java/com/claudecompanion/client/ClaudeCompanionClient.java",
      "src/main/java/com/claudecompanion/client/ClaudeRenderer.java",
      "src/main/java/com/claudecompanion/client/Hud.java",
      "src/main/java/com/claudecompanion/client/NeuralVoice.java",
      "src/main/java/com/claudecompanion/client/SelfTest.java",
      "src/main/java/com/claudecompanion/client/Speech.java",
      "src/main/java/com/claudecompanion/client/Vision.java",
      "src/main/java/com/claudecompanion/client/VoiceInput.java",
      "src/main/resources",
      "src/main/resources/assets",
      "src/main/resources/assets/claudecompanion",
      "src/main/resources/assets/claudecompanion/lang",
      "src/main/resources/assets/claudecompanion/lang/en_us.json",
      "src/main/resources/assets/claudecompanion/textures",
      "src/main/resources/assets/claudecompanion/textures/entity",
      "src/main/resources/assets/claudecompanion/textures/entity/claude.png",
      "src/main/resources/claudecompanion",
      "src/main/resources/claudecompanion/csm_server.py",
      "src/main/resources/claudecompanion/kokoro_server.py",
      "src/main/resources/claudecompanion/voice_prompt_warm.wav",
      "src/main/resources/fabric.mod.json"
    ],
    "tree_truncated": false
  },
  {
    "repo": "PrabhudevG2/sonnet55-vs-sol61-test",
    "search_description": "Claude Sonnet 5.5 vs GPT-6.1 Sol: four jobs, three attempts each. Briefs, checks and every attempt, so you can test the apps yourself.",
    "created_at": "2026-10-02T14:06:05Z",
    "id": "R_kgDOU456Eg",
    "meta": {
      "id": 1401846290,
      "node_id": "R_kgDOU456Eg",
      "name": "sonnet55-vs-sol61-test",
      "full_name": "PrabhudevG2/sonnet55-vs-sol61-test",
      "private": false,
      "owner": {
        "login": "PrabhudevG2",
        "id": 75360911,
        "node_id": "MDQ6VXNlcjc1MzYwOTEx",
        "avatar_url": "https://avatars.githubusercontent.com/u/75360911?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/PrabhudevG2",
        "html_url": "https://github.com/PrabhudevG2",
        "followers_url": "https://api.github.com/users/PrabhudevG2/followers",
        "following_url": "https://api.github.com/users/PrabhudevG2/following{/other_user}",
        "gists_url": "https://api.github.com/users/PrabhudevG2/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/PrabhudevG2/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/PrabhudevG2/subscriptions",
        "organizations_url": "https://api.github.com/users/PrabhudevG2/orgs",
        "repos_url": "https://api.github.com/users/PrabhudevG2/repos",
        "events_url": "https://api.github.com/users/PrabhudevG2/events{/privacy}",
        "received_events_url": "https://api.github.com/users/PrabhudevG2/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/PrabhudevG2/sonnet55-vs-sol61-test",
      "description": "Claude Sonnet 5.5 vs GPT-6.1 Sol: four jobs, three attempts each. Briefs, checks and every attempt, so you can test the apps yourself.",
      "fork": false,
      "url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test",
      "forks_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/forks",
      "keys_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/teams",
      "hooks_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/hooks",
      "issue_events_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/issues/events{/number}",
      "events_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/events",
      "assignees_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/assignees{/user}",
      "branches_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/branches{/branch}",
      "tags_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/tags",
      "blobs_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/languages",
      "stargazers_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/stargazers",
      "contributors_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/contributors",
      "subscribers_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/subscribers",
      "subscription_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/subscription",
      "commits_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/contents/{+path}",
      "compare_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/merges",
      "archive_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/downloads",
      "issues_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/issues{/number}",
      "pulls_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/labels{/name}",
      "releases_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/releases{/id}",
      "deployments_url": "https://api.github.com/repos/PrabhudevG2/sonnet55-vs-sol61-test/deployments",
      "created_at": "2026-10-02T14:06:05Z",
      "updated_at": "2026-10-02T14:06:41Z",
      "pushed_at": "2026-10-02T14:06:33Z",
      "git_url": "git://github.com/PrabhudevG2/sonnet55-vs-sol61-test.git",
      "ssh_url": "[email protected]:PrabhudevG2/sonnet55-vs-sol61-test.git",
      "clone_url": "https://github.com/PrabhudevG2/sonnet55-vs-sol61-test.git",
      "svn_url": "https://github.com/PrabhudevG2/sonnet55-vs-sol61-test",
      "homepage": null,
      "size": 69030,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Claude Sonnet 5.5 vs GPT-6.1 Sol: four jobs, three attempts each\n\nEverything behind the video **\"I Gave Sonnet 5.5 and GPT-6.1 Sol 4 Jobs. One Cost 10x More\"**: the briefs, the starting files, the hidden checks, and **all 24 attempts exactly as the models left them**, so you can open every app and test it yourself.\n\nBoth models ran at max effort with a 45-minute limit and three fresh attempts per job. Sonnet 5.5 ran in Claude Code, GPT-6.1 Sol in Codex CLI. This is my own test of four jobs. It is not a benchmark.\n\n| Job | Sonnet 5.5 | GPT-6.1 Sol |\n|---|---|---|\n| 3D island | 2 of 3 draw and pass (all three stopped at the limit) | 3 of 3 (two ran past the limit because my runner failed) |\n| Hotel-booking page | 3 of 3 pass 14/14 (all three stopped at the limit) | 3 of 3 pass 14/14 |\n| Delivery route (12 stops) | 3 of 3 found the 111 km best route | 3 of 3 |\n| Racing-game bug fix | 3 of 3 pass 8/8 | 3 of 3 pass 8/8 |\n| **Cost of the 12 attempts** | **$69.66** | **$6.96** |\n\nFull numbers, per-attempt tables, the cost breakdown and the known limits are in [`bench/jobs/duel/RESULTS.md`](bench/jobs/duel/RESULTS.md).\n\n## Try the apps\n\nEach attempt is in `bench/jobs/duel/attempts/<job>/<model>-<n>/` (`sonnet-1` to `sonnet-3`, `sol-1` to `sol-3`).\n\n- **Booking page** and **racing game:** open `index.html` in a browser. Racing: arrow keys or WASD drive, `R` restarts.\n- **3D island:** it uses ES modules, so serve the folder:\n  ```bash\n  cd bench/jobs/duel/attempts/island/sol-1\n  python3 -m http.server 8000\n  ```\n  then open http://127.0.0.1:8000/. Click the page, then WASD or arrows walk, mouse looks, `Space` jumps, `R` restarts. `sonnet-1` shows an error message: its 3D view crashes on load.\n- **Route:** the answer is `answer.md` in each attempt folder.\n\n## Run the checks yourself\n\n```bash\nnpm install                                   # playwright-core\nnode bench/jobs/duel/racing/grade.mjs  bench/jobs/duel/attempts/racing/sol-1\nnode bench/jobs/duel/booking/grade.mjs bench/jobs/duel/attempts/booking/sonnet-2\nnode bench/jobs/duel/island/grade.mjs  bench/jobs/duel/attempts/island/sol-2\npython3 bench/jobs/duel/route/grade.py bench/jobs/duel/attempts/route/sol-3\n```\n\nThe `.mjs` graders drive Chrome and expect it at `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome` (macOS). Edit that path in the grader for another system. Each job folder has its own README with every check and how the checks were validated.\n\n## What is in the repository\n\n| Folder | What it holds |\n|---|---|\n| `bench/jobs/duel/<job>/PROMPT.txt` | the exact brief both models got |\n| `bench/jobs/duel/<job>/given/` | the files the models started from |\n| `bench/jobs/duel/<job>/reference/`, `hidden/` | my own answers and the solvers |\n| `bench/jobs/duel/<job>/validation/` | deliberately wrong answers that each check must reject |\n| `bench/jobs/duel/attempts/` | the 24 attempts and their run records |\n| `bench/jobs/duel/run.sh` | how one attempt was run (clean settings folders, empty environment) |\n| `bench/jobs/duel/RESULTS.md` | every measured number |\n\nBecause the checks and my answers are public, a model could now be tuned to this test. Treat new runs as a repeat of the method, not as a fresh blind test.\n\n## Notes\n\n- The session logs in `attempts/` have personal details removed: home-folder paths, the username, an email address and a company name in a skill description.\n- Codex listed 23 skill names to Sol in every session; none was read or used. Sonnet had skills disabled. See Known limits in `RESULTS.md`.\n- Video clips and the video itself are not in this repository.\n- My code is MIT licensed (see `LICENSE`). three.js keeps its own MIT licence in each `vendor/` folder. The attempts are what the models wrote.\n",
    "tree_paths": [
      ".gitignore",
      "LICENSE",
      "README.md",
      "bench",
      "bench/jobs",
      "bench/jobs/duel",
      "bench/jobs/duel/CLIPS-v2.md",
      "bench/jobs/duel/CLIPS.md",
      "bench/jobs/duel/README.md",
      "bench/jobs/duel/RESULTS.md",
      "bench/jobs/duel/attempts",
      "bench/jobs/duel/attempts/README.md",
      "bench/jobs/duel/attempts/booking",
      "bench/jobs/duel/attempts/booking/sol-1.log",
      "bench/jobs/duel/attempts/booking/sol-1.log.last.txt",
      "bench/jobs/duel/attempts/booking/sol-1.log.result.jsonl",
      "bench/jobs/duel/attempts/booking/sol-1.log.session.jsonl",
      "bench/jobs/duel/attempts/booking/sol-1.log.stderr",
      "bench/jobs/duel/attempts/booking/sol-1",
      "bench/jobs/duel/attempts/booking/sol-1/PRICING.md",
      "bench/jobs/duel/attempts/booking/sol-1/app.js",
      "bench/jobs/duel/attempts/booking/sol-1/hotels.js",
      "bench/jobs/duel/attempts/booking/sol-1/hotels.json",
      "bench/jobs/duel/attempts/booking/sol-1/images",
      "bench/jobs/duel/attempts/booking/sol-1/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sol-1/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sol-1/index.html",
      "bench/jobs/duel/attempts/booking/sol-1/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sol-1/reference-mobile.png",
      "bench/jobs/duel/attempts/booking/sol-1/styles.css",
      "bench/jobs/duel/attempts/booking/sol-2.log",
      "bench/jobs/duel/attempts/booking/sol-2.log.last.txt",
      "bench/jobs/duel/attempts/booking/sol-2.log.result.jsonl",
      "bench/jobs/duel/attempts/booking/sol-2.log.session.jsonl",
      "bench/jobs/duel/attempts/booking/sol-2.log.stderr",
      "bench/jobs/duel/attempts/booking/sol-2",
      "bench/jobs/duel/attempts/booking/sol-2/PRICING.md",
      "bench/jobs/duel/attempts/booking/sol-2/app.js",
      "bench/jobs/duel/attempts/booking/sol-2/hotels.js",
      "bench/jobs/duel/attempts/booking/sol-2/hotels.json",
      "bench/jobs/duel/attempts/booking/sol-2/images",
      "bench/jobs/duel/attempts/booking/sol-2/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sol-2/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sol-2/index.html",
      "bench/jobs/duel/attempts/booking/sol-2/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sol-2/reference-mobile.png",
      "bench/jobs/duel/attempts/booking/sol-2/styles.css",
      "bench/jobs/duel/attempts/booking/sol-3.log",
      "bench/jobs/duel/attempts/booking/sol-3.log.last.txt",
      "bench/jobs/duel/attempts/booking/sol-3.log.result.jsonl",
      "bench/jobs/duel/attempts/booking/sol-3.log.session.jsonl",
      "bench/jobs/duel/attempts/booking/sol-3.log.stderr",
      "bench/jobs/duel/attempts/booking/sol-3",
      "bench/jobs/duel/attempts/booking/sol-3/PRICING.md",
      "bench/jobs/duel/attempts/booking/sol-3/app.js",
      "bench/jobs/duel/attempts/booking/sol-3/hotels.js",
      "bench/jobs/duel/attempts/booking/sol-3/hotels.json",
      "bench/jobs/duel/attempts/booking/sol-3/images",
      "bench/jobs/duel/attempts/booking/sol-3/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sol-3/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sol-3/index.html",
      "bench/jobs/duel/attempts/booking/sol-3/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sol-3/reference-mobile.png",
      "bench/jobs/duel/attempts/booking/sol-3/styles.css",
      "bench/jobs/duel/attempts/booking/sonnet-1.log",
      "bench/jobs/duel/attempts/booking/sonnet-1.log.claude-session.jsonl",
      "bench/jobs/duel/attempts/booking/sonnet-1.log.result.json",
      "bench/jobs/duel/attempts/booking/sonnet-1.log.stderr",
      "bench/jobs/duel/attempts/booking/sonnet-1",
      "bench/jobs/duel/attempts/booking/sonnet-1/PRICING.md",
      "bench/jobs/duel/attempts/booking/sonnet-1/app.js",
      "bench/jobs/duel/attempts/booking/sonnet-1/hotels.js",
      "bench/jobs/duel/attempts/booking/sonnet-1/hotels.json",
      "bench/jobs/duel/attempts/booking/sonnet-1/images",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-1/index.html",
      "bench/jobs/duel/attempts/booking/sonnet-1/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sonnet-1/reference-mobile.png",
      "bench/jobs/duel/attempts/booking/sonnet-1/styles.css",
      "bench/jobs/duel/attempts/booking/sonnet-2.log",
      "bench/jobs/duel/attempts/booking/sonnet-2.log.claude-session.jsonl",
      "bench/jobs/duel/attempts/booking/sonnet-2.log.result.json",
      "bench/jobs/duel/attempts/booking/sonnet-2.log.stderr",
      "bench/jobs/duel/attempts/booking/sonnet-2",
      "bench/jobs/duel/attempts/booking/sonnet-2/PRICING.md",
      "bench/jobs/duel/attempts/booking/sonnet-2/hotels.js",
      "bench/jobs/duel/attempts/booking/sonnet-2/hotels.json",
      "bench/jobs/duel/attempts/booking/sonnet-2/images",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-2/index.html",
      "bench/jobs/duel/attempts/booking/sonnet-2/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sonnet-2/reference-mobile.png",
      "bench/jobs/duel/attempts/booking/sonnet-3.log",
      "bench/jobs/duel/attempts/booking/sonnet-3.log.claude-session.jsonl",
      "bench/jobs/duel/attempts/booking/sonnet-3.log.result.json",
      "bench/jobs/duel/attempts/booking/sonnet-3.log.stderr",
      "bench/jobs/duel/attempts/booking/sonnet-3",
      "bench/jobs/duel/attempts/booking/sonnet-3/PRICING.md",
      "bench/jobs/duel/attempts/booking/sonnet-3/hotels.js",
      "bench/jobs/duel/attempts/booking/sonnet-3/hotels.json",
      "bench/jobs/duel/attempts/booking/sonnet-3/images",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/ams-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/ams-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/ams-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/bcn-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/bcn-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/bcn-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/lis-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/lis-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/lis-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/vie-01.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/vie-02.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/images/vie-03.svg",
      "bench/jobs/duel/attempts/booking/sonnet-3/index.html",
      "bench/jobs/duel/attempts/booking/sonnet-3/reference-desktop.png",
      "bench/jobs/duel/attempts/booking/sonnet-3/reference-mobile.png",
      "bench/jobs/duel/attempts/island",
      "bench/jobs/duel/attempts/island/sol-1.log",
      "bench/jobs/duel/attempts/island/sol-1.log.last.txt",
      "bench/jobs/duel/attempts/island/sol-1.log.result.jsonl",
      "bench/jobs/duel/attempts/island/sol-1.log.session.jsonl",
      "bench/jobs/duel/attempts/island/sol-1.log.stderr",
      "bench/jobs/duel/attempts/island/sol-1",
      "bench/jobs/duel/attempts/island/sol-1/index.html",
      "bench/jobs/duel/attempts/island/sol-1/island.js",
      "bench/jobs/duel/attempts/island/sol-1/style.css",
      "bench/jobs/duel/attempts/island/sol-1/vendor",
      "bench/jobs/duel/attempts/island/sol-1/vendor/LICENSE"
    ],
    "tree_truncated": false
  },
  {
    "repo": "brendanciccone/osrs-ai-chat",
    "search_description": "RuneLite plugin to chat with Claude, ChatGPT, or local models.",
    "created_at": "2026-10-02T02:29:34Z",
    "id": "R_kgDOU4CoCQ",
    "meta": {
      "id": 1400940553,
      "node_id": "R_kgDOU4CoCQ",
      "name": "osrs-ai-chat",
      "full_name": "brendanciccone/osrs-ai-chat",
      "private": false,
      "owner": {
        "login": "brendanciccone",
        "id": 39386738,
        "node_id": "MDQ6VXNlcjM5Mzg2NzM4",
        "avatar_url": "https://avatars.githubusercontent.com/u/39386738?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/brendanciccone",
        "html_url": "https://github.com/brendanciccone",
        "followers_url": "https://api.github.com/users/brendanciccone/followers",
        "following_url": "https://api.github.com/users/brendanciccone/following{/other_user}",
        "gists_url": "https://api.github.com/users/brendanciccone/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/brendanciccone/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/brendanciccone/subscriptions",
        "organizations_url": "https://api.github.com/users/brendanciccone/orgs",
        "repos_url": "https://api.github.com/users/brendanciccone/repos",
        "events_url": "https://api.github.com/users/brendanciccone/events{/privacy}",
        "received_events_url": "https://api.github.com/users/brendanciccone/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/brendanciccone/osrs-ai-chat",
      "description": "RuneLite plugin to chat with Claude, ChatGPT, or local models.",
      "fork": false,
      "url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat",
      "forks_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/forks",
      "keys_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/teams",
      "hooks_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/hooks",
      "issue_events_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/issues/events{/number}",
      "events_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/events",
      "assignees_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/assignees{/user}",
      "branches_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/branches{/branch}",
      "tags_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/tags",
      "blobs_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/languages",
      "stargazers_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/stargazers",
      "contributors_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/contributors",
      "subscribers_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/subscribers",
      "subscription_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/subscription",
      "commits_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/contents/{+path}",
      "compare_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/merges",
      "archive_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/downloads",
      "issues_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/issues{/number}",
      "pulls_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/labels{/name}",
      "releases_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/releases{/id}",
      "deployments_url": "https://api.github.com/repos/brendanciccone/osrs-ai-chat/deployments",
      "created_at": "2026-10-02T02:29:34Z",
      "updated_at": "2026-10-02T04:00:27Z",
      "pushed_at": "2026-10-02T04:00:23Z",
      "git_url": "git://github.com/brendanciccone/osrs-ai-chat.git",
      "ssh_url": "[email protected]:brendanciccone/osrs-ai-chat.git",
      "clone_url": "https://github.com/brendanciccone/osrs-ai-chat.git",
      "svn_url": "https://github.com/brendanciccone/osrs-ai-chat",
      "homepage": "",
      "size": 1200,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Java",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "bsd-2-clause",
        "name": "BSD 2-Clause \"Simplified\" License",
        "spdx_id": "BSD-2-Clause",
        "url": "https://api.github.com/licenses/bsd-2-clause",
        "node_id": "MDc6TGljZW5zZTQ="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<img src=\"assets/logo.svg\" width=\"96\" alt=\"AI Chat logo: a rune stone with a speech bubble carved in\">\n\n# AI Chat\n\nChat with Claude, ChatGPT or any OpenAI-compatible model without leaving Old School RuneScape: ask from a side panel\nor the chatbox, keep playing, and get a game chat message and a notification when the answer is in. Uses your own API\nkey. Free and open source.\n\n![AI Chat in RuneLite: a conversation with Claude in the side panel, with the reply also shown in the game chatbox](assets/screenshot.png)\n\n## Features\n\n- A chat panel in the RuneLite sidebar, with several chats side by side\n- `::ai <message>` in the chatbox to ask without opening the panel (or `::ai` alone, or a hotkey you pick in the\n  settings, to open an \"Ask:\" box); the line is handled by the plugin and isn't sent to the game\n- Replies in the panel, echoed into the game chat, plus a RuneLite notification\n- Pick your provider: **Claude** (Anthropic), **ChatGPT** (OpenAI), or any service with an **OpenAI-compatible** API,\n  such as OpenRouter, Groq, or a free model running on your own computer with Ollama or LM Studio\n- Optional, off by default: share your character's name, levels and quest progress for answers that fit your account\n\n## Setup\n\n1. Get an API key from your provider:\n   - Claude: [console.anthropic.com](https://console.anthropic.com)\n   - ChatGPT: [platform.openai.com](https://platform.openai.com)\n   - OpenAI-compatible: from that service, or none for local ones like [Ollama](https://ollama.com) and\n     [LM Studio](https://lmstudio.ai)\n\n   API use is billed per message by the provider. A Claude or ChatGPT subscription doesn't include API access.\n2. In RuneLite's settings, open **AI Chat**, turn on **Enable AI requests** and choose the **AI provider**. Then open\n   that provider's section (Claude, ChatGPT or OpenAI-compatible) and paste your key. For an OpenAI-compatible\n   service, also set its URL (for example `http://localhost:11434/v1` for Ollama) and model.\n3. Open the AI Chat panel (the rune icon in the sidebar) and ask away.\n\n## Privacy\n\nNothing is sent until you turn on **Enable AI requests**. Then everything goes straight from RuneLite to the provider\nyou chose; there's no server in between.\n\n- **Sent with every message:** what you type, the earlier messages of that chat, short instructions about the plugin\n  (plus your own extra instructions, if you set any), and your IP address, as with any internet request. The chat so\n  far goes to whichever provider is selected when you send, so switching providers mid-chat sends it to the new one.\n- **Only while \"Send character info\" is on:** your character name, combat and total level, skill levels, quest\n  points, and which quests you've completed or started. Added to your first message in a chat and again when\n  something changed, and sent along with the rest of that chat; turning the setting off leaves it out again.\n- **Never sent:** your account or login details, your location, inventory or bank, or anything about other players.\n- **Your API key** is only sent to the provider it belongs to (never over plain `http://` to another computer on the\n  internet). RuneLite keeps it with your other settings, unencrypted on your computer, and on RuneLite's servers if\n  you use profile sync.\n- **Chats** are kept on this computer in `.runelite/plugin-data/osrs-ai-chat/chats.json` (the latest 200 messages\n  of each), so they're still there next time, including any character info that went with them. Clear and Delete remove them\n  from there too. Turn off **Remember chats** to keep chats only while RuneLite is open; that also deletes the saved\n  copy. API keys are never saved there. With several RuneLite windows open, the first one remembers its chats and the\n  others keep theirs only while open. Uninstalling AI Chat leaves the file: turn off **Remember chats** first, or\n  delete the `.runelite/plugin-data/osrs-ai-chat` folder afterwards.\n- **Notifications** say which assistant replied, not what you asked.\n\nThe provider's own privacy policy applies to what you send them.\n\n## Settings\n\nEach provider's settings are in its own section; only the one you picked is used.\n\n| Setting | Default | |\n|---|---|---|\n| Enable AI requests | off | Nothing is sent until this is on |\n| AI provider | Claude | Claude, ChatGPT, or OpenAI-compatible |\n| Extra instructions | | Added to what the assistant is told, for example \"I'm an ironman\" |\n| Claude API key / model | / `claude-opus-5-5` | Any Claude model, for example `claude-sonnet-5-5` or `claude-haiku-4-5` |\n| ChatGPT API key / model | / `gpt-6-luna` | Any OpenAI chat model, for example `gpt-6.1-sol` |\n| Compatible API URL / key / model | | The service's base URL (usually ending in `/v1`), key if it needs one, and model name |\n| Thinking (OpenAI-compatible) | Short (faster) | How long a reasoning model thinks first; *Model default* leaves it to the service |\n| Send character info | off | See Privacy above |\n| Notify on reply | on | RuneLite notification when a reply arrives (enable *send when focused* to get it while playing) |\n| Show replies in game chat | on | Echo replies into the chatbox |\n| Chat reply length | 500 | Longer replies are cut short in the chatbox; the panel has everything |\n| Ask hotkey | none | Opens an \"Ask:\" prompt in the chatbox |\n| Remember chats | on | Keep chats when RuneLite closes (saved on this computer) |\n\nWith a newer Claude model, if Anthropic's safety filter declines a request, Anthropic retries it on another Claude model\n(its server-side fallback) instead of refusing outright. ChatGPT and OpenAI-compatible models are asked to keep their\nreasoning short (reasoning effort \"low\"), which makes most thinking models answer much faster; a model that doesn't\nsupport that is asked normally. A few models that don't think by default will think a little; for those, set\n*Thinking* in the OpenAI-compatible section to *Model default*.\n\nIndependent project, not affiliated with or endorsed by Anthropic, OpenAI, Jagex or RuneLite. The assistant can't see\nor control the game. BSD-2-Clause.\n",
    "tree_paths": [
      ".github",
      ".github/workflows",
      ".github/workflows/build.yml",
      ".gitignore",
      "DEVELOPMENT.md",
      "LICENSE",
      "README.md",
      "assets",
      "assets/logo.svg",
      "assets/screenshot.png",
      "build.gradle",
      "gradle",
      "gradle/wrapper",
      "gradle/wrapper/gradle-wrapper.jar",
      "gradle/wrapper/gradle-wrapper.properties",
      "gradlew",
      "gradlew.bat",
      "icon.png",
      "runelite-plugin.properties",
      "settings.gradle",
      "src",
      "src/main",
      "src/main/java",
      "src/main/java/com",
      "src/main/java/com/aichat",
      "src/main/java/com/aichat/AiChatConfig.java",
      "src/main/java/com/aichat/AiChatPanel.java",
      "src/main/java/com/aichat/AiChatPlugin.java",
      "src/main/java/com/aichat/AnthropicApi.java",
      "src/main/java/com/aichat/CharacterInfo.java",
      "src/main/java/com/aichat/Chat.java",
      "src/main/java/com/aichat/ChatApi.java",
      "src/main/java/com/aichat/ChatFile.java",
      "src/main/java/com/aichat/ChatStore.java",
      "src/main/java/com/aichat/OpenAiApi.java",
      "src/main/java/com/aichat/StackLayout.java",
      "src/main/resources",
      "src/main/resources/com",
      "src/main/resources/com/aichat",
      "src/main/resources/com/aichat/icon.png",
      "src/test",
      "src/test/java",
      "src/test/java/com",
      "src/test/java/com/aichat",
      "src/test/java/com/aichat/AiChatPluginTest.java",
      "src/test/java/com/aichat/ChatApiTest.java",
      "src/test/java/com/aichat/ChatStoreTest.java",
      "src/test/java/com/aichat/PrefixTest.java",
      "src/test/resources",
      "src/test/resources/logback-test.xml"
    ],
    "tree_truncated": false
  },
  {
    "repo": "logue1114-maker/do-not-slop-project",
    "search_description": "Practical UI/UX and interface-copy correction guides, examples, and draft review tools for games, websites, and apps.",
    "created_at": "2026-10-04T08:23:08Z",
    "id": "R_kgDOU7Fjtw",
    "meta": {
      "id": 1404134327,
      "node_id": "R_kgDOU7Fjtw",
      "name": "do-not-slop-project",
      "full_name": "logue1114-maker/do-not-slop-project",
      "private": false,
      "owner": {
        "login": "logue1114-maker",
        "id": 277215998,
        "node_id": "U_kgDOEIX6_g",
        "avatar_url": "https://avatars.githubusercontent.com/u/277215998?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/logue1114-maker",
        "html_url": "https://github.com/logue1114-maker",
        "followers_url": "https://api.github.com/users/logue1114-maker/followers",
        "following_url": "https://api.github.com/users/logue1114-maker/following{/other_user}",
        "gists_url": "https://api.github.com/users/logue1114-maker/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/logue1114-maker/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/logue1114-maker/subscriptions",
        "organizations_url": "https://api.github.com/users/logue1114-maker/orgs",
        "repos_url": "https://api.github.com/users/logue1114-maker/repos",
        "events_url": "https://api.github.com/users/logue1114-maker/events{/privacy}",
        "received_events_url": "https://api.github.com/users/logue1114-maker/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/logue1114-maker/do-not-slop-project",
      "description": "Practical UI/UX and interface-copy correction guides, examples, and draft review tools for games, websites, and apps.",
      "fork": false,
      "url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project",
      "forks_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/forks",
      "keys_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/teams",
      "hooks_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/hooks",
      "issue_events_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/issues/events{/number}",
      "events_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/events",
      "assignees_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/assignees{/user}",
      "branches_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/branches{/branch}",
      "tags_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/tags",
      "blobs_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/languages",
      "stargazers_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/stargazers",
      "contributors_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/contributors",
      "subscribers_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/subscribers",
      "subscription_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/subscription",
      "commits_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/contents/{+path}",
      "compare_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/merges",
      "archive_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/downloads",
      "issues_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/issues{/number}",
      "pulls_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/labels{/name}",
      "releases_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/releases{/id}",
      "deployments_url": "https://api.github.com/repos/logue1114-maker/do-not-slop-project/deployments",
      "created_at": "2026-10-04T08:23:08Z",
      "updated_at": "2026-10-04T11:46:24Z",
      "pushed_at": "2026-10-04T11:46:20Z",
      "git_url": "git://github.com/logue1114-maker/do-not-slop-project.git",
      "ssh_url": "[email protected]:logue1114-maker/do-not-slop-project.git",
      "clone_url": "https://github.com/logue1114-maker/do-not-slop-project.git",
      "svn_url": "https://github.com/logue1114-maker/do-not-slop-project",
      "homepage": null,
      "size": 4061,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "HTML",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Do Not Slop Project\n\n## White-page button/color combinations by purpose\n\nSix original combinations applied to three actual synthetic interfaces. Each pair keeps the same layout, fixture and behavior; only role values change. Click an image for its unedited browser capture.\n\n### Work · charcoal or cobalt\n\n| Ink signal · charcoal + cool slate | Cobalt edge · deep cobalt + blue-gray |\n| :---: | :---: |\n| [![Actual work interface with Ink signal palette](research/white_surface_palettes_v1/screenshots/work-ink.jpg)](research/white_surface_palettes_v1/screenshots/work-ink.jpg) | [![Actual same work interface with Cobalt edge palette](research/white_surface_palettes_v1/screenshots/work-cobalt.jpg)](research/white_surface_palettes_v1/screenshots/work-cobalt.jpg) |\n\n### Order review · forest or terracotta\n\n| Forest receipt · deep forest + gray-green | Terracotta order · burnt clay + warm gray |\n| :---: | :---: |\n| [![Actual fictional order review with Forest receipt palette](research/white_surface_palettes_v1/screenshots/order-forest.jpg)](research/white_surface_palettes_v1/screenshots/order-forest.jpg) | [![Actual same fictional order review with Terracotta order palette](research/white_surface_palettes_v1/screenshots/order-terracotta.jpg)](research/white_surface_palettes_v1/screenshots/order-terracotta.jpg) |\n\n### Learning · plum or petrol\n\n| Plum margin · deep plum + violet-gray | Petrol chapter · petrol blue + slate |\n| :---: | :---: |\n| [![Actual learning interface with Plum margin palette](research/white_surface_palettes_v1/screenshots/learning-plum.jpg)](research/white_surface_palettes_v1/screenshots/learning-plum.jpg) | [![Actual same learning interface with Petrol chapter palette](research/white_surface_palettes_v1/screenshots/learning-petrol.jpg)](research/white_surface_palettes_v1/screenshots/learning-petrol.jpg) |\n\n[Runnable explorer source](research/white_surface_palettes_v1/index.html) · [Six exact role sets](research/white_surface_palettes_v1/palettes.json) · [Purpose-specific AI rules](research/white_surface_palettes_v1/ai-implementation-rules.md) · [Fixed fixtures](research/white_surface_palettes_v1/fixtures.json) · [Package guide](research/white_surface_palettes_v1/README.md)\n\nEach set specifies white surface, body/neutral text, grouping/control boundaries, primary/secondary actions, hover, focus and written semantic feedback. Green is an available action color; the earlier CP01 white/charcoal/blue choice is case-specific. [Six official examples](research/white_surface_palettes_v1/sources.html) separate observation, documented rules and version limits; the six palettes above are independent authored proposals, not copied or approved brand styles.\n\nThe six desktop captures are 1165 × 747 viewport frames. [Representative narrow order review](research/white_surface_palettes_v1/screenshots/order-narrow.jpg) is 390 × 844 with 375px document width. Captures show initial fixture states, not every interaction or full page. [Bounded browser checks](research/white_surface_palettes_v1/browser-observations.md) observed scheme-preserved state and local actions; full keyboard traversal, screen-reader, native-phone, 200% zoom and complete console audit remain unrun. [Untouched first pass and later changes](research/white_surface_palettes_v1/repair-log.md) remain separate. User design approval and measured usability are unestablished.\n\n## Latest screens: CP01 guided iteration with guide v2\n\nThe old English reference beside the actual final guided revision. Click either image for the full capture.\n\n| Old English reference | Actual guided iteration · v2 |\n| :---: | :---: |\n| [![Old English reference screen](research/instruction_trial_01/screenshots/reference-desktop.jpg)](research/instruction_trial_01/screenshots/reference-desktop.jpg) | [![Actual final CP01 guided iteration with guide v2](research/instruction_trial_02/screenshots/revision2-desktop.jpg)](research/instruction_trial_02/screenshots/revision2-desktop.jpg) |\n| [Runnable reference](research/instruction_trial_01/reference/reference-en.html) | [Runnable final source](research/instruction_trial_02/implementation/index.html) |\n\nV2 specifies a compact frame, white/charcoal surfaces, equal blue actions, natural card heights, and an initially visible local-demo boundary. Both authored copy specimens and the same document records remain intact. The palette is a case-specific project proposal responding to the reported design problem, not exact colors dictated by the user. [Reusable AI entrypoint](AGENTS.md), [guide v2](guides/cp01-task-first-v2.md), [portable task brief](research/instruction_trial_02/prompts/CP01-guided-iteration.txt) and [narrow capture](research/instruction_trial_02/screenshots/revision2-narrow.jpg) are included.\n\nThis is an additional guided iteration learned from the first pair, not a new controlled ordinary/guided experiment. The reference is an authored English reconstruction, not an ordinary-request model output. [First pass, sole 2px summary-padding repair and verification record](research/instruction_trial_02/README.md) are preserved. User approval and measured usability remain unestablished; native-phone, screen-reader and 200% zoom/reflow checks are unrun. The initial actual pair remains separate below.\n\n## Initial actual screens: English CP01 instruction trial 01\n\nA faithful English reference and two fresh model implementations of the same local copy-comparison task. Click any image for its original capture.\n\n### Shared English reference\n\n[![English reference: two authored copy specimens with the same recent documents](research/instruction_trial_01/screenshots/reference-desktop.jpg)](research/instruction_trial_01/screenshots/reference-desktop.jpg)\n\n### Actual ordinary-request and guided outputs\n\n| A · Ordinary request | B · Project-guided request |\n| :---: | :---: |\n| [![Actual ordinary-request first-pass screen](research/instruction_trial_01/screenshots/alpha-desktop.jpg)](research/instruction_trial_01/screenshots/alpha-desktop.jpg) | [![Actual guided first-pass screen](research/instruction_trial_01/screenshots/beta-desktop.jpg)](research/instruction_trial_01/screenshots/beta-desktop.jpg) |\n| [Runnable A source](research/instruction_trial_01/alpha/index.html) | [Runnable B source](research/instruction_trial_01/beta/index.html) |\n\nBoth requested `gpt-6.1-sol` with `xhigh` reasoning, used the same English starter and fixture, and made one first pass with no repair. B also received [exact archived v1 project AI instructions](research/instruction_trial_01/AGENTS.v1.md) and the [CP01 task-first guide](guides/cp01-task-first.md). The [exact public task briefs](research/instruction_trial_01/prompts/A-plain.txt) and [guided addition](research/instruction_trial_01/prompts/B-guided.txt), [checks](research/instruction_trial_01/checks/verification-checklist.md), [protocol and limits](research/instruction_trial_01/protocol/PROTOCOL.md), and [run record](research/instruction_trial_01/protocol/run-record.json) are included.\n\nThese are actual outputs, not a fabricated winning Before/After pair. The Before/After labels *inside each screen* refer to the authored copy specimens. Both outputs still use green actions and neutral backgrounds; the criticism is not established as fully resolved. A blinded artifact review recorded descriptive subtotals of 10/12 for A and 11/12 for B, with the difference tied to equal action emphasis, not a validated winner. [Review findings](research/instruction_trial_01/protocol/REVIEW_FINDINGS.md) also note more scrolling and a below-fold boundary in B. User approval is pending. No fixed time budget was enforced. One pair does not show measured usability or general effectiveness.\n\n[Narrow A capture](research/instruction_trial_01/screenshots/alpha-narrow.jpg) · [Narrow B capture](research/instruction_trial_01/screenshots/beta-narrow.jpg) · [Trial package](research/instruction_trial_01/README.md)\n\nResearch, operational rules and runnable synthetic comparisons for clearer interface layout, task flow and UI copy. Most manuals are written in Korean. Examples separate source observations, authored proposals and unknowns, and preserve content/state when comparing presentations.\n\nThe public source includes the English instruction trial and additional guided iteration above, six purpose-specific white-surface combinations, three earlier local demos, nine interactive UI-copy examples, original comparison boards and a bounded review-plugin draft. No reuse license has been selected. The plugin is not installed, adopted or officially approved; code checks do not establish measured usability improvement.\n\n## Read and explore\n\n- [Research overview](research/antislop_research.md), [series structure](research/series_architecture.md) and [index](research/series_index.json)\n- [Structured rules](research/rules_catalog.json) and [measurement checklist](research/measurement_checklist.json)\n- [Web layout manual](research/web_app_corrections_v2.md), [mobile layout manual](research/mobile_app_corrections_v1.md) and [shopping/information/learning observations](research/web_shopping_information_learning.md)\n- [Game controls manual](research/game_controls_corrections_v2.md), [RPG/card research](research/games_rpg_card_research.md) and [source-coverage boundaries](research/games_rpg_card_sourcecoverage.md)\n- [Fleet-command research](research/strategy_controls_oct4/strategy_controls_research.ko.md), [booking manual](research/booking_flows_oct4/booking_manual_ko.md) and [booking comparison contract](research/booking_flows_oct4/same_fixture_spec_ko.md)\n- [UI-copy manual](research/do_not_slop_copy/manual_ko.md), [nine operational rules](research/do_not_slop_copy/rules.json), [15 sources](research/do_not_slop_copy/sources.json) and [interactive examples](research/do_not_slop_copy/copy_examples.html)\n- [White-surface palette explorer](research/white_surface_palettes_v1/index.html), [six role sets](research/white_surface_palettes_v1/palettes.json), [purpose-specific AI rules](research/white_surface_palettes_v1/ai-implementation-rules.md) and [six official examples with limits](research/white_surface_palettes_v1/sources.html)\n- [Review-visible-design plugin draft.3](plugins/review-visible-design/README.md)\n\nOriginal boards are in [web visuals](research/web_app_v2/visuals/), [mobile boards](research/mobile_app_v1/boards/) and [booking visuals](research/booking_flows_oct4/visuals/). SVG originals and PNG renders are included. They are authored proposals using synthetic conditions, not redistributed product screenshots.\n\n## Run locally\n\nPython 3 and Node.js are enough. No build step, package install, login, API key or network service is needed.\n\nFrom the repository root:\n\n    python3 -m http.server 8765 --bind 127.0.0.1\n\nThen open:\n\n- English CP01 reference: http://127.0.0.1:8765/research/instruction_trial_01/reference/reference-en.html\n- Actual ordinary-request output: http://127.0.0.1:8765/research/instruction_trial_01/alpha/\n- Initial actual guided output: http://127.0.0.1:8765/research/instruction_trial_01/beta/\n- Guided iteration with guide v2: http://127.0.0.1:8765/research/instruction_trial_02/implementation/\n- White-surface palette explorer: http://127.0.0.1:8765/research/white_surface_palettes_v1/\n- Fleet command: http://127.0.0.1:8765/research/strategy_controls_oct4/demo/\n- Booking change: http://127.0.0.1:8765/research/booking_flows_oct4/demo/\n- Learning layout: http://127.0.0.1:8765/research/comparison_assets/learning_layout/same_fixture_learning.html\n- Nine UI-copy examples: http://127.0.0.1:8765/research/do_not_slop_copy/copy_examples.html\n\nThe white-surface palette explorer, learning and UI-copy HTML files also open directly in a browser. Fleet command loads its adjacent fixture over HTTP. Booking keeps its reviewed fixture one directory above demo/; keep that relationship when copying the source.\n\nAll actions are local demonstrations. They do not create actual bookings, accounts, payments, uploads or subscr",
    "tree_paths": [
      ".gitignore",
      "AGENTS.md",
      "FILES.sha256.json",
      "README.md",
      "docs",
      "docs/CHANGELOG.md",
      "docs/PRESERVED_INPUTS.sha256.json",
      "docs/PROVENANCE.json",
      "docs/RIGHTS_AND_SCOPE.md",
      "docs/VERIFICATION.md",
      "guides",
      "guides/cp01-task-first-v2.md",
      "guides/cp01-task-first.md",
      "plugins",
      "plugins/review-visible-design",
      "plugins/review-visible-design/DRAFT_STATUS.json",
      "plugins/review-visible-design/PROVENANCE.json",
      "plugins/review-visible-design/README.md",
      "plugins/review-visible-design/plugin.json",
      "plugins/review-visible-design/skills",
      "plugins/review-visible-design/skills/review-visible-design",
      "plugins/review-visible-design/skills/review-visible-design/SKILL.md",
      "plugins/review-visible-design/skills/review-visible-design/agents",
      "plugins/review-visible-design/skills/review-visible-design/agents/openai.yaml",
      "plugins/review-visible-design/skills/review-visible-design/references",
      "plugins/review-visible-design/skills/review-visible-design/references/evidence-contract.json",
      "plugins/review-visible-design/skills/review-visible-design/references/game-action-controls.md",
      "plugins/review-visible-design/skills/review-visible-design/references/game-card-execution.md",
      "plugins/review-visible-design/skills/review-visible-design/references/game-corrections.md",
      "plugins/review-visible-design/skills/review-visible-design/references/game-equipment.md",
      "plugins/review-visible-design/skills/review-visible-design/references/game-short-puzzle.md",
      "plugins/review-visible-design/skills/review-visible-design/references/routing.json",
      "plugins/review-visible-design/skills/review-visible-design/references/sources.json",
      "plugins/review-visible-design/skills/review-visible-design/references/web-corrections.md",
      "plugins/review-visible-design/skills/review-visible-design/references/web-information-reading.md",
      "plugins/review-visible-design/skills/review-visible-design/references/web-lesson-question.md",
      "plugins/review-visible-design/skills/review-visible-design/references/web-product-selection.md",
      "plugins/review-visible-design/skills/review-visible-design/scripts",
      "plugins/review-visible-design/skills/review-visible-design/scripts/review_contract.py",
      "plugins/review-visible-design/tests",
      "plugins/review-visible-design/tests/comparison_cases.json",
      "plugins/review-visible-design/tests/hash_cases.json",
      "plugins/review-visible-design/tests/hash_fixture.json",
      "plugins/review-visible-design/tests/hash_fixture_reformatted.json",
      "plugins/review-visible-design/tests/invalid_json_cases.json",
      "plugins/review-visible-design/tests/known_null_state_cases.json",
      "plugins/review-visible-design/tests/report_cases.json",
      "plugins/review-visible-design/tests/request_cases.json",
      "plugins/review-visible-design/tests/sample_action_request.json",
      "plugins/review-visible-design/tests/sample_comparison.json",
      "plugins/review-visible-design/tests/sample_known_null_comparison.json",
      "plugins/review-visible-design/tests/sample_report.json",
      "plugins/review-visible-design/tests/sample_request.json",
      "plugins/review-visible-design/validation",
      "plugins/review-visible-design/validation/results.json",
      "plugins/review-visible-design/validation/validate_package.py",
      "research",
      "research/antislop_research.json",
      "research/antislop_research.md",
      "research/booking_flows_oct4",
      "research/booking_flows_oct4/booking_flows.cases.json",
      "research/booking_flows_oct4/booking_manual_ko.md",
      "research/booking_flows_oct4/demo",
      "research/booking_flows_oct4/demo/README.md",
      "research/booking_flows_oct4/demo/app-wiring-test-results.json",
      "research/booking_flows_oct4/demo/app.js",
      "research/booking_flows_oct4/demo/fixture.js",
      "research/booking_flows_oct4/demo/index.html",
      "research/booking_flows_oct4/demo/model-test-results.json",
      "research/booking_flows_oct4/demo/model-test-results.md",
      "research/booking_flows_oct4/demo/model.js",
      "research/booking_flows_oct4/demo/styles.css",
      "research/booking_flows_oct4/demo/test-app-wiring.cjs",
      "research/booking_flows_oct4/demo/test-model.cjs",
      "research/booking_flows_oct4/fixture.json",
      "research/booking_flows_oct4/same_fixture_spec_ko.md",
      "research/booking_flows_oct4/visuals",
      "research/booking_flows_oct4/visuals/BKF4-01-selection.png",
      "research/booking_flows_oct4/visuals/BKF4-01-selection.svg",
      "research/booking_flows_oct4/visuals/BKF4-02-review.png",
      "research/booking_flows_oct4/visuals/BKF4-02-review.svg",
      "research/browser_games_apps.md",
      "research/comparison_assets",
      "research/comparison_assets/learning_layout",
      "research/comparison_assets/learning_layout/README.md",
      "research/comparison_assets/learning_layout/fixture.json",
      "research/comparison_assets/learning_layout/same_fixture_learning.html",
      "research/comparison_assets/learning_layout/tests",
      "research/comparison_assets/learning_layout/tests/source-test-results.json",
      "research/comparison_assets/learning_layout/tests/source-test-results.md",
      "research/comparison_assets/learning_layout/tests/state_checks.mjs",
      "research/comparison_assets/learning_layout/tests/test_source.py",
      "research/do_not_slop_copy",
      "research/do_not_slop_copy/README.md",
      "research/do_not_slop_copy/copy_examples.html",
      "research/do_not_slop_copy/manual_ko.md",
      "research/do_not_slop_copy/rules.json",
      "research/do_not_slop_copy/sources.json",
      "research/do_not_slop_copy/validate.py",
      "research/do_not_slop_copy/validation.json",
      "research/game_controls_corrections_v2.json",
      "research/game_controls_corrections_v2.md",
      "research/games_rpg_card_research.md",
      "research/games_rpg_card_sourcecoverage.json",
      "research/games_rpg_card_sourcecoverage.md",
      "research/instruction_trial_01",
      "research/instruction_trial_01/AGENTS.v1.md",
      "research/instruction_trial_01/README.md",
      "research/instruction_trial_01/alpha",
      "research/instruction_trial_01/alpha/index.html",
      "research/instruction_trial_01/beta",
      "research/instruction_trial_01/beta/index.html",
      "research/instruction_trial_01/checks",
      "research/instruction_trial_01/checks/BROWSER_OBSERVATIONS.md",
      "research/instruction_trial_01/checks/package-results.json",
      "research/instruction_trial_01/checks/validate_trial.py",
      "research/instruction_trial_01/checks/verification-checklist.md",
      "research/instruction_trial_01/fixture.json",
      "research/instruction_trial_01/prompts",
      "research/instruction_trial_01/prompts/A-plain.txt",
      "research/instruction_trial_01/prompts/B-guided.txt",
      "research/instruction_trial_01/protocol",
      "research/instruction_trial_01/protocol/PROTOCOL.md",
      "research/instruction_trial_01/protocol/REVIEW_FINDINGS.md",
      "research/instruction_trial_01/protocol/REVIEW_RUBRIC.md",
      "research/instruction_trial_01/protocol/run-record.json",
      "research/instruction_trial_01/reference",
      "research/instruction_trial_01/reference/reference-en.html",
      "research/instruction_trial_01/screenshots",
      "research/instruction_trial_01/screenshots/alpha-desktop.jpg",
      "research/instruction_trial_01/screenshots/alpha-narrow.jpg",
      "research/instruction_trial_01/screenshots/beta-desktop.jpg",
      "research/instruction_trial_01/screenshots/beta-narrow.jpg",
      "research/instruction_trial_01/screenshots/reference-desktop.jpg",
      "research/instruction_trial_02",
      "research/instruction_trial_02/README.md",
      "research/instruction_trial_02/checks",
      "research/instruction_trial_02/checks/source-results.json",
      "research/instruction_trial_02/checks/verify-source.mjs",
      "research/instruction_trial_02/fixture.json",
      "research/instruction_trial_02/implementation",
      "research/instruction_trial_02/implementation/first-pass",
      "research/instruction_trial_02/implementation/first-pass/index.html",
      "research/instruction_trial_02/implementation/index.html",
      "research/instruction_trial_02/prompts",
      "research/instruction_trial_02/prompts/CP01-guided-iteration.txt",
      "research/instruction_trial_02/run-record.json",
      "research/instruction_trial_02/screenshots",
      "research/instruction_trial_02/screenshots/revision2-desktop.jpg",
      "research/instruction_trial_02/screenshots/revision2-narrow.jpg",
      "research/measurement_checklist.json",
      "research/mobile_app_corrections_v1.cases.json",
      "research/mobile_app_corrections_v1.md",
      "research/mobile_app_v1",
      "research/mobile_app_v1/boards",
      "research/mobile_app_v1/boards/01_navigation_action.png",
      "research/mobile_app_v1/boards/01_navigation_action.svg",
      "research/mobile_app_v1/boards/02_dense_task_actions.png",
      "research/mobile_app_v1/boards/02_dense_task_actions.svg",
      "research/mobile_app_v1/boards/03_keyboard_sheet.png",
      "research/mobile_app_v1/boards/03_keyboard_sheet.svg",
      "research/rules_catalog.json",
      "research/series_architecture.md",
      "research/series_index.json",
      "research/strategy_controls_oct4",
      "research/strategy_controls_oct4/demo",
      "research/strategy_controls_oct4/demo/README.md",
      "research/strategy_controls_oct4/demo/app.mjs",
      "research/strategy_controls_oct4/demo/fixture.json",
      "research/strategy_controls_oct4/demo/focus.mjs",
      "research/strategy_controls_oct4/demo/index.html",
      "research/strategy_controls_oct4/demo/state.mjs",
      "research/strategy_controls_oct4/demo/style.css",
      "research/strategy_controls_oct4/demo/tests.mjs",
      "research/strategy_controls_oct4/strategy_controls_research.json",
      "research/strategy_controls_oct4/strategy_controls_research.ko.md",
      "research/visual_design_brief.md",
      "research/web_app_corrections_v2.cases.json",
      "research/web_app_corrections_v2.md",
      "research/web_app_v2"
    ],
    "tree_truncated": false
  },
  {
    "repo": "bhctsntrk/notia-gpt-based-turkce-ceviri",
    "search_description": "Noita için Türkçe çeviri ve yerel font hazırlama araçları GPT 6.1 Based",
    "created_at": "2026-10-04T10:06:17Z",
    "id": "R_kgDOU7LSsA",
    "meta": {
      "id": 1404228272,
      "node_id": "R_kgDOU7LSsA",
      "name": "notia-gpt-based-turkce-ceviri",
      "full_name": "bhctsntrk/notia-gpt-based-turkce-ceviri",
      "private": false,
      "owner": {
        "login": "bhctsntrk",
        "id": 22636672,
        "node_id": "MDQ6VXNlcjIyNjM2Njcy",
        "avatar_url": "https://avatars.githubusercontent.com/u/22636672?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/bhctsntrk",
        "html_url": "https://github.com/bhctsntrk",
        "followers_url": "https://api.github.com/users/bhctsntrk/followers",
        "following_url": "https://api.github.com/users/bhctsntrk/following{/other_user}",
        "gists_url": "https://api.github.com/users/bhctsntrk/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/bhctsntrk/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/bhctsntrk/subscriptions",
        "organizations_url": "https://api.github.com/users/bhctsntrk/orgs",
        "repos_url": "https://api.github.com/users/bhctsntrk/repos",
        "events_url": "https://api.github.com/users/bhctsntrk/events{/privacy}",
        "received_events_url": "https://api.github.com/users/bhctsntrk/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/bhctsntrk/notia-gpt-based-turkce-ceviri",
      "description": "Noita için Türkçe çeviri ve yerel font hazırlama araçları GPT 6.1 Based",
      "fork": false,
      "url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri",
      "forks_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/forks",
      "keys_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/teams",
      "hooks_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/hooks",
      "issue_events_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/issues/events{/number}",
      "events_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/events",
      "assignees_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/assignees{/user}",
      "branches_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/branches{/branch}",
      "tags_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/tags",
      "blobs_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/languages",
      "stargazers_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/stargazers",
      "contributors_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/contributors",
      "subscribers_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/subscribers",
      "subscription_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/subscription",
      "commits_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/contents/{+path}",
      "compare_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/merges",
      "archive_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/downloads",
      "issues_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/issues{/number}",
      "pulls_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/labels{/name}",
      "releases_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/releases{/id}",
      "deployments_url": "https://api.github.com/repos/bhctsntrk/notia-gpt-based-turkce-ceviri/deployments",
      "created_at": "2026-10-04T10:06:17Z",
      "updated_at": "2026-10-04T12:41:20Z",
      "pushed_at": "2026-10-04T12:41:23Z",
      "git_url": "git://github.com/bhctsntrk/notia-gpt-based-turkce-ceviri.git",
      "ssh_url": "[email protected]:bhctsntrk/notia-gpt-based-turkce-ceviri.git",
      "clone_url": "https://github.com/bhctsntrk/notia-gpt-based-turkce-ceviri.git",
      "svn_url": "https://github.com/bhctsntrk/notia-gpt-based-turkce-ceviri",
      "homepage": "",
      "size": 84,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": false,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [
        "gpt-6-1-sol"
      ],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "**GPT 6.1 Sol ile çevrildi.**\n\n# Noita — GPT Tabanlı Türkçe Çeviri\n\nÖlüm evrensel, otopsi yerel.\n\nNoita için kuru mizahlı, gayriresmî Türkçe dil paketi. Menüler, büyüler,\nyetenekler, durum etkileri, malzemeler, eşyalar, biyomlar, kitaplar ve yayın\nolayları için 3.610 benzersiz metin anahtarı içerir. Bulmaca ipuçları ve\nmekanik bilgiler korunur; espriler seçili açıklamalardadır.\n\n> Yanıyorsun. Su bul! Aydınlanmanın sırası değil.\n\n## Windows — EXE ile kurulum\n\n[NoitaTurkceSetup-0.1.0.exe indir](https://github.com/bhctsntrk/notia-gpt-based-turkce-ceviri/releases/download/v0.1.0/NoitaTurkceSetup-0.1.0.exe).\nWindows 10/11, 64 bit. Python, uv veya elle dosya kopyalama gerekmez.\n\n1. Noita'yı kapat ve EXE'yi çift tıklayarak aç.\n2. Steam kurulumu otomatik bulunur. Gerekirse **Klasör seç** ile `noita.exe`\n   dosyasının bulunduğu klasörü göster.\n3. Ana yama hazırdır. Kuruluysa Cheatgui ve Seed Changer eklerini de seçebilirsin.\n4. **Türkçe yamayı kur** düğmesine bas. Dil ayarı varsa Türkçe otomatik seçilir;\n   oyun henüz açılmadıysa oyun içinden **Options > Language > Türkçe** seç.\n\nKaldırmak için aynı EXE'de **Kaldır / geri yükle** düğmesini veya Windows'un\n**Yüklü uygulamalar > Noita Türkçe Çeviri > Kaldır** seçeneğini kullan.\nKurulumdan önceki dosyalar ve önceki dil geri gelir. Sonradan değiştirilen ses,\ngörüntü ve diğer ayarlar korunur; kayıt oyunlarına dokunulmaz. Önceden elle\nTürkçe yama kurduysan kaldırma o önceki yamayı geri getirir.\n\nPaketler EXE'nin içindedir; internet bağlantısı gerekmez. Özgün modlar ayrıca\nkurulu olmalı; araç onların yalnız çeviri eklerini uygular. Fontları kendi oyun\ndosyalarından otomatik hazırlar, elle arşiv açmak gerekmez.\n\nYedekler yerel `%LOCALAPPDATA%/NoitaTurkce/Installations` klasöründe tutulur.\nWindows kaldırma düğmesinin çalışması için kurulum aracı yerel olarak saklanır;\nyama kaldırıldıktan sonra tekrar kullanım için kalır. Değişmiş dosya veya bozuk\nyedek bulunursa mevcut dosyaları korumak için işlem durur.\n\nEXE kod imzası taşımaz; Windows indirme/güvenlik uyarısı gösterebilir. Yalnız\nbu projenin sürüm sayfasındaki dosyayı kullan; SHA-256 özeti sürüme eklenir.\nOyun klasörüne yazma izni gerekir. Kurulum aracı yönetici yetkisi istemez.\n\n## Kaynaktan hazırlama ve elle kurulum\n\nTam/satın alınmış Noita sürümü, Python, [uv](https://docs.astral.sh/uv/) ve\noyunun açılmış `data/fonts` dosyaları gerekir. Dosyalar açılmamışsa oyunun\n`tools_modding/READ_ME_FIRST.txt` yönergelerini izle.\n\n```powershell\nuv run --no-project --with pillow python tools/build.py --game-dir \"<Noita klasörü>\"\n```\n\n`dist/translation_tr_witty` klasörü oluşur. Bunu Noita'nın `mods` klasörüne\nkopyala; oyun içinden **Options > Language > Türkçe** seç.\nDil paketi `is_translation=\"1\"` mekanizmasını kullanır.\n\nFontlar kendi oyun kurulumundan hazırlanır. Depoda yalnız eksik `ğĞıİşŞ`\nharflerinin ek glifleri bulunur. Tam font atlasları ve özgün İngilizce metin\nsütunu dağıtım kaynaklarına eklenmemiştir.\n\nİngilizceye dönmek için oyun menüsünden English seç.\n\n## Seed Changer için isteğe bağlı ek\n\n[Evaisa'nın Seed Changer modunu](https://steamcommunity.com/sharedfiles/filedetails/?id=2284931352)\nayrıca edin. Ayar menüsünü Türkçeleştirmek için:\n\n```powershell\nuv run --no-project python tools/seed_changer.py --mod-dir \"<Seed Changer klasörü>\"\n```\n\nBaşlık **Kader Ayarı**, seçenekler **Dünya tohumu sabit** ve **Dünya tohumu**\nolur. Araç mevcut modun yalnız metin alanlarını değiştirir ve değiştirdiği\ndosyaları `dist/seed_changer_backup` altında yedekler. Atölye güncellemesi\nçeviriyi kaldırırsa aracı tekrar çalıştır. `--dry-run` yalnız uyumluluğu denetler.\n\nSeed Changer'ın kaynak kodu bu depoda dağıtılmaz. Bu ek, güncel modun\nyerleşik ayar menüsünü hedefler.\n\n## Cheatgui için isteğe bağlı ek\n\n[Cheatgui modunu](https://steamcommunity.com/sharedfiles/filedetails/?id=1984977713)\nayrıca edin ve önce Türkçe dil paketini seç. Cheatgui **1.5.0** arayüzünü\nTürkçeleştirmek için:\n\n```powershell\nuv run --no-project --with luaparser python tools/cheatgui.py --mod-dir \"<Cheatgui klasörü>\"\n```\n\n**Hile Tezgâhı**, asa atölyesi, ışınlanma, can/altın, mantar dönüşümü,\nbilgi çubuğu ve oyun içi konsol menüsündeki 112 metin örneğini çevirir.\nBüyü/eşya/malzeme listelerinde oyunun yerelleştirilmiş adlarını gösterir.\nTeknik eşya kimlikleri ve hile işlevleri korunur.\nMenü metinleri ve düğmeleri dil paketindeki Türkçe piksel fontuyla çizilir;\n`ğĞıİşŞ` harfleri de desteklenir. Daha önce çevrilmiş bir Cheatgui kopyasına\naracı tekrar uygulamak font düzeltmesini ekler.\n\nAraç Lua sözdizimini ve metin eşleşmelerini dosya yazmadan önce denetler.\n`--dry-run` uyumluluğu kontrol eder; orijinaller `dist/cheatgui_backup`\naltında saklanır. Kurulumdan sonra Noita'yı yeniden başlat. Atölye güncellemesi\nçeviriyi kaldırırsa aracı yeniden çalıştır. Modun tam kaynak kodu depoya\neklenmemiştir.\n\n## Durum ve gizlilik\n\nİlk metin kaynağı Noita Steam build `17130612`. 3.686 dolu kaynak satırındaki\nyinelenen anahtarlar son kayıtları esas alınarak 3.610 anahtara indirgenmiştir.\nSayılar, yer tutucular ve literal `\\n` işaretleri kaynakla karşılaştırılmıştır.\nTürkçe harfler için font önizlemesi incelenmiştir. Oyun içindeki tüm ekranlar\nhenüz görsel olarak doğrulanmamıştır.\n\nKaynaklar bilgisayar adı/yolu, kişisel kullanıcı adı, kayıt oyunları, kişisel\nayarlar, erişim anahtarları veya kullanıcı yedekleri içermez. Araçlar yolları\nkomut satırından alır; üretilen dosyalar ve yedekler Git dışında tutulur.\nOyun geliştiricilerinin kredi ve hak sahipliği bilgileri korunmuştur.\n\n## Windows aracını derleme ve doğrulama\n\nWindows üzerinde Python 3.12 ve uv ile:\n\n```powershell\nuv run --no-project --with-requirements installer/requirements-build.txt python -m installer.build_exe\nuv run --no-project --with-requirements installer/requirements-build.txt python -m installer.selftest dist/installer/test-report.json\n```\n\nEXE `dist/installer` altında oluşur. Testler geçici, sentetik bir oyun kurulumunda\nçalışır. Aynı kur/kaldır testlerini derlenmiş EXE'nin içinde çalıştırmak için:\n\n```powershell\ndist/installer/NoitaTurkceSetup-0.1.0.exe --self-test dist/installer/test-report.json\n```\n\nTestler yedek bütünlüğünü, ek modların byte düzeyinde geri yüklenmesini, farklı\nayarların korunmasını, WAK font okumasını, hata sonrası geri almayı, açık oyun\nkorumasını, işlem kilidini ve Windows kaldırma kaydını denetler. Gerçek oyun\nkurulumunda uçtan uca görsel test ayrıca yapılmalıdır.\n\n## Haklar\n\nNoita, Nolla Games Oy'a aittir. Bu proje Nolla Games tarafından onaylanmış\nresmî bir çeviri değildir. Modlama şartları ve paylaşım kapsamı için\n[RIGHTS.md](RIGHTS.md) dosyasına bak.\n",
    "tree_paths": [
      ".gitattributes",
      ".gitignore",
      "README.md",
      "RIGHTS.md",
      "installer",
      "installer/__init__.py",
      "installer/app.py",
      "installer/build_exe.py",
      "installer/core.py",
      "installer/requirements-build.txt",
      "installer/selftest.py",
      "installer/version_info.txt",
      "installer/windows.py",
      "legal",
      "legal/Noita-ModdingAgreement-v100.rtf",
      "optional",
      "optional/cheatgui_strings.json",
      "optional/seed_changer_strings.json",
      "src",
      "src/fonts",
      "src/fonts/turkish_glyphs.json",
      "src/mod.xml",
      "src/translation.csv",
      "src/translation.xml",
      "tools",
      "tools/build.py",
      "tools/cheatgui.py",
      "tools/cheatgui_font.lua",
      "tools/seed_changer.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "lordfelixmotosr/atlas",
    "search_description": "modmixer fork ai assistant rimworld mod maker",
    "created_at": "2026-10-03T06:34:57Z",
    "id": "R_kgDOU5yMvQ",
    "meta": {
      "id": 1402768573,
      "node_id": "R_kgDOU5yMvQ",
      "name": "atlas",
      "full_name": "lordfelixmotosr/atlas",
      "private": false,
      "owner": {
        "login": "lordfelixmotosr",
        "id": 301609549,
        "node_id": "U_kgDOEfoyTQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/301609549?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/lordfelixmotosr",
        "html_url": "https://github.com/lordfelixmotosr",
        "followers_url": "https://api.github.com/users/lordfelixmotosr/followers",
        "following_url": "https://api.github.com/users/lordfelixmotosr/following{/other_user}",
        "gists_url": "https://api.github.com/users/lordfelixmotosr/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/lordfelixmotosr/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/lordfelixmotosr/subscriptions",
        "organizations_url": "https://api.github.com/users/lordfelixmotosr/orgs",
        "repos_url": "https://api.github.com/users/lordfelixmotosr/repos",
        "events_url": "https://api.github.com/users/lordfelixmotosr/events{/privacy}",
        "received_events_url": "https://api.github.com/users/lordfelixmotosr/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/lordfelixmotosr/atlas",
      "description": "modmixer fork ai assistant rimworld mod maker",
      "fork": false,
      "url": "https://api.github.com/repos/lordfelixmotosr/atlas",
      "forks_url": "https://api.github.com/repos/lordfelixmotosr/atlas/forks",
      "keys_url": "https://api.github.com/repos/lordfelixmotosr/atlas/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/lordfelixmotosr/atlas/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/lordfelixmotosr/atlas/teams",
      "hooks_url": "https://api.github.com/repos/lordfelixmotosr/atlas/hooks",
      "issue_events_url": "https://api.github.com/repos/lordfelixmotosr/atlas/issues/events{/number}",
      "events_url": "https://api.github.com/repos/lordfelixmotosr/atlas/events",
      "assignees_url": "https://api.github.com/repos/lordfelixmotosr/atlas/assignees{/user}",
      "branches_url": "https://api.github.com/repos/lordfelixmotosr/atlas/branches{/branch}",
      "tags_url": "https://api.github.com/repos/lordfelixmotosr/atlas/tags",
      "blobs_url": "https://api.github.com/repos/lordfelixmotosr/atlas/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/lordfelixmotosr/atlas/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/lordfelixmotosr/atlas/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/lordfelixmotosr/atlas/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/lordfelixmotosr/atlas/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/lordfelixmotosr/atlas/languages",
      "stargazers_url": "https://api.github.com/repos/lordfelixmotosr/atlas/stargazers",
      "contributors_url": "https://api.github.com/repos/lordfelixmotosr/atlas/contributors",
      "subscribers_url": "https://api.github.com/repos/lordfelixmotosr/atlas/subscribers",
      "subscription_url": "https://api.github.com/repos/lordfelixmotosr/atlas/subscription",
      "commits_url": "https://api.github.com/repos/lordfelixmotosr/atlas/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/lordfelixmotosr/atlas/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/lordfelixmotosr/atlas/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/lordfelixmotosr/atlas/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/lordfelixmotosr/atlas/contents/{+path}",
      "compare_url": "https://api.github.com/repos/lordfelixmotosr/atlas/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/lordfelixmotosr/atlas/merges",
      "archive_url": "https://api.github.com/repos/lordfelixmotosr/atlas/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/lordfelixmotosr/atlas/downloads",
      "issues_url": "https://api.github.com/repos/lordfelixmotosr/atlas/issues{/number}",
      "pulls_url": "https://api.github.com/repos/lordfelixmotosr/atlas/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/lordfelixmotosr/atlas/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/lordfelixmotosr/atlas/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/lordfelixmotosr/atlas/labels{/name}",
      "releases_url": "https://api.github.com/repos/lordfelixmotosr/atlas/releases{/id}",
      "deployments_url": "https://api.github.com/repos/lordfelixmotosr/atlas/deployments",
      "created_at": "2026-10-03T06:34:57Z",
      "updated_at": "2026-10-04T07:57:01Z",
      "pushed_at": "2026-10-04T08:05:25Z",
      "git_url": "git://github.com/lordfelixmotosr/atlas.git",
      "ssh_url": "[email protected]:lordfelixmotosr/atlas.git",
      "clone_url": "https://github.com/lordfelixmotosr/atlas.git",
      "svn_url": "https://github.com/lordfelixmotosr/atlas",
      "homepage": null,
      "size": 5415,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "mit",
        "name": "MIT License",
        "spdx_id": "MIT",
        "url": "https://api.github.com/licenses/mit",
        "node_id": "MDc6TGljZW5zZTEz"
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Atlas 0.2.10 portable\n\n## 0.2.10 Atlas globe logo\n\nThe cream and forest-green A with a globe replaces the previous mark in the app and setup headers, window icon and Windows executable. Native builds generate all Windows icon sizes from the same transparent source image, and update packages carry both icon resources.\n\n## 0.2.9 Odyssey and chat layout fixes\n\nIsolated RimWorld tests preserve Odyssey when it is installed and enabled in the normal game profile. Official content detection and load priority include Odyssey after Anomaly. Installed DLCs that are disabled in the normal profile stay disabled unless explicitly required by the target mod. Normal saves and the normal active-mod list are retained.\n\nVisible chat rows flow naturally so growing replies, tool results and panel resizing cannot overlap neighboring messages. Long transcripts remain virtualized. Jump to latest stays available whenever you are away from the newest message, including idle chats. New replies keep your reading position until you jump back.\n\n## 0.2.8 feature descriptions and forest accents\n\nAtlas uses muted forest green accents for actions, selections, focus, and progress in both light and dark themes. Change tracking now has a feature overview, including named additions, removals, and recorded property changes. Small text files are captured in future baselines so descriptions can compare actual earlier and current source. Existing comparisons remain usable; missing earlier text is identified rather than reconstructed.\n\nIn **Changes**, choose **Write description with AI** to create player-facing release notes using the selected default model and normal account usage. You can cancel, edit, save, copy, or use the description as an update note. Descriptions are stored outside the mod and tied to the exact comparison; further edits invalidate them. Generating a description does not steer or interrupt the mod chat. Image file changes are reported without claiming unverified pixel changes. File details remain available below the overview.\n\n## 0.2.7 install and restart repair\n\nThe Windows updater now uses a separate launcher and waits for the installer to validate and stage the update before Atlas closes. Installer startup failures keep Atlas open and display an error. The helpers run from an independent copy, write diagnostics to `data/updates/installer.log`, and retain startup recovery. A complete real Electron install, exit and healthy restart was verified in an isolated portable copy.\n\nAtlas is a Windows x64 fork of ModMixer 0.10.5 maintained by Felix, with the Atlas globe logo, portable storage, and signed knowledge and skill updates. This release supports **RimWorld**. Minecraft is disabled in both game registries and its tools, grammar, bridge JAR and reference pack are excluded. Atlas's application and UI are now compiled from TypeScript/React source.\n\n## Run it\n\n1. Extract the complete portable ZIP to a writable folder, such as `D:\\Atlas`. Keep `Atlas.exe`, `resources`, `tools` and the other runtime files together.\n2. Run `Atlas.exe`. Complete setup, sign in to your chosen AI provider, and select RimWorld if it is not detected.\n3. Open **Knowledge & Skills** in the top toolbar to manage the library.\n\nNo installer or administrator access is required. The executable is a locally built, unsigned Windows app. It is separate from the original ModMixer installation. Use one app at a time when using the in-game monitoring or live bridge: those inherited bridges share local ports.\n\n## 0.2.6 application download progress\n\nApplication updates show actual percentage, downloaded MB / total MB, and average transfer speed, with **Downloading**, **Verifying** and **Ready to install** stages. Both manual and automatic downloads report progress while the Knowledge & Skills panel is open; reopening it shows the current status. Archives stream directly to a temporary file, reducing memory use. The total comes from the signed feed. Interrupted, oversized, incomplete or corrupted downloads never become installable, and temporary files are discarded before retrying.\n\nAfter verification, choose **Install and restart**. Atlas checks again that the downloaded archive is unchanged and refuses to restart while an agent, compaction or account operation is active. The existing update helper backs up application files and watches startup, retaining private data. There is no estimated finish time; download speed depends on the connection and GitHub.\n\n## 0.2.4 sign-in, workspace and responsiveness\n\nOpenAI account login now shares account-name validation with credential storage, fixing the missing-helper error when choosing **Sign in to OpenAI**. Both account slots and saved account names are preserved.\n\nChoose **Compact editor** in the workspace toolbar to reduce the middle panel to about 320 pixels and hide its file list. Drag the divider to shrink the middle panel further, down to 260 pixels on desktop layouts; arrow keys also resize it, and double-click resets the chat width. **Hide editor** gives chat the whole workspace, while **Show editor** restores it without discarding an unsaved draft. **Show files / Hide files** controls the file list separately. Layout choices are remembered locally; narrow windows keep the stacked layout.\n\nThe file list now renders only visible rows and can scroll beyond the former 300-row display limit. Search uses a cached filename index. Directory browsing runs asynchronously, avoids unused per-file size checks, and batches rapid file-change refreshes; hidden editor panels pause scans and refresh when reopened. Idle chats stop the three-second activity polling that repeatedly reloaded their transcript. Active task recovery and final status reconciliation remain enabled. These changes reduce UI work; they do not change provider response speed or token usage.\n\n## 0.2.3 task progress\n\nActive chat tasks show a thin animated progress bar below the current agent phase, elapsed time and last activity. It works during model thinking, tool execution, receiving a reply and context compaction. Provider retry waits pause the animation. The bar disappears when the task finishes or is stopped, and respects reduced-motion preferences. Model tasks have no known total, so the bar does not claim a percentage or estimate a finish time.\n\n## 0.2.2 additions\n\nOn **Home**, choose **Import ModMixer mods**. Atlas detects the old Windows ModMixer profile and shows a review list with every RimWorld project selected, including archived mods. **Choose folder** supports another profile, a portable ModMixer folder, its `workspace` folder or `workspace/Mods`. Search and deselect individual projects if needed, then choose **Import all**.\n\nClose ModMixer before copying so its files stay consistent. Atlas copies mod files, binary assets, source code, Workshop IDs, schematics and preferences into new Atlas project folders. Original files are not moved or changed. Copied `.modmixer` metadata becomes `.atlas`; existing Atlas metadata takes priority, with conflicting legacy files preserved under an `imported-legacy-*` folder. Build caches (`bin`, `obj`, `.vs`), Git internals and `node_modules` are excluded.\n\nRepeating an import from the same source workspace skips completed copies using per-project import receipts. Distinct projects with the same name or package ID remain separate. Minecraft, linked folders/files and projects missing RimWorld `About/About.xml` are reported as skipped or failed; the single **Import mod** option can handle unfinished mod folders. Chats, save history, account sign-ins and workspace-wide settings are not imported. The **Stop import** button keeps complete projects and discards the incomplete staged copy. Errors are shown per mod; scan again after resolving them to retry. Importing does not enable a mod in RimWorld or publish it.\n\n**Queued steering:** each pending instruction has a **Cancel** button, with **Cancel all** when several are queued. These buttons withdraw instructions before they are delivered to the agent, including their image attachments, without stopping the current request. An instruction already being applied cannot be recalled. **Stop** still interrupts the active request.\n\n**Mod changes:** Home tiles show whether a mod has changed since its last publication or marked update, along with the last content change detected. Open a mod and choose **Changes** next to **Launch in RimWorld** to see added, edited and removed files, definition names and labels, category summaries, saved release notes, and file-location buttons. Compare with the latest baseline, the last Workshop publication, or the last marked update. **Mark this version updated** saves a local comparison and optional description; it does not upload to Steam. Successful Workshop publications automatically save the actual staged upload as their comparison, so edits made during uploading remain unpublished changes.\n\nComparison records live in the workspace's `.atlas/mod-changes` folder, outside individual mod snapshots. Atlas cannot reconstruct changes made before its first saved comparison. Descriptions are based on file contents and named XML definitions, without a model request; they do not claim to infer gameplay effects. Cache files and Atlas preferences are excluded. Linked content is reported as unavailable rather than followed.\n\n## What's new in 0.2.0\n\n- **Workspace:** collapsible project navigation, source editor and asset preview in the center, and resizable or hideable chat. XML, C#, and text files can be edited with Ctrl+S. Conflicting external edits are detected before saving.\n- **Agent progress:** actual work phase, elapsed time, last activity, and waiting or retry explanations. Steering, resume, manual compaction, two OpenAI accounts, Fast speed, usage, and the saved sentence shortcut remain available.\n- **Assets:** direction and body variants are grouped together, with search, folder/status filters, compact view, pagination, thumbnails, and file location buttons. Select a group or a page for batch replacement. A preview shows exact path matches and affected references; existing files are backed up. Changed files invalidate the preview.\n- **Recovery:** signed update status shows its source and last check. After an updater installation, a separate watcher checks that the window and app API start successfully. A failed startup restores the previous application files while keeping private data.\n- **Future games:** a versioned adapter interface and starter template. The Knowledge & Skills panel displays local adapter manifests. A manifest alone cannot enable a game; its source adapter must be reviewed, implemented, and compiled.\n- **Consistent UI:** neutral charcoal and gray surfaces with soft blue accents, readable controls, coordinated spacing, focus states, and dialogs across workspace, setup, chat, assets, settings, and library.\n\nTo update an existing Atlas folder manually, close Atlas, keep a backup of that folder, and extract the **application-update ZIP's Atlas folder contents** into it. Keep your existing `data`, `custom`, `library`, and `updates` folders. The **portable ZIP** is for a fresh folder. Manual replacement does not run the startup recovery watcher; use Restart and install from a signed local feed for that recovery flow.\n\n## 0.2.1 corrections\n\nThe green surfaces have been replaced with neutral charcoal, gray borders, and restrained blue accents. New mod metadata uses `.atlas`: preferences, schematics, C# asset manifests, and placeholder records. The hidden folder is needed for Atlas's mod management; it is excluded from Workshop uploads.\n\nWhen Atlas opens metadata in an older project, it renames `.modmixer` to `.atlas` if the Atlas folder does not already exist. The whole directory is preserved, including unknown files. If both folders exist, Atlas prefers matching files in `.atlas` and keeps the legacy files without overwriting either folder. Old history saves remain readable.\n\n## What moves with",
    "tree_paths": [
      ".claude",
      ".claude/commands",
      ".claude/commands/analyze-chat.md",
      ".claude/commands/release.md",
      ".claude/commands/tester-build.md",
      ".eslintrc.json",
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".gitignore",
      ".gitmodules",
      "LICENSE",
      "NOTICE",
      "README-ATLAS.md",
      "README.md",
      "assets",
      "assets/atlas",
      "assets/atlas/logo-source.png",
      "assets/fonts",
      "assets/fonts/Inter-Bold.ttf",
      "assets/fonts/Inter-Regular.ttf",
      "assets/fonts/RimWordFont.ttf",
      "assets/games",
      "assets/games/minecraft.png",
      "assets/games/rimworld.png",
      "assets/icon.icns",
      "assets/icon.ico",
      "assets/icon.png",
      "assets/icon.svg",
      "assets/loading.gif",
      "assets/logo.svg",
      "assets/preview-templates",
      "assets/preview-templates/_shared.css",
      "assets/preview-templates/_shared.js",
      "assets/preview-templates/banner.html",
      "assets/preview-templates/classic.html",
      "assets/preview-templates/icon-left.html",
      "assets/screenshot.png",
      "atlas.project.json",
      "build-tools",
      "build-tools/native",
      "build-tools/native/package.json",
      "build-tools/native/pnpm-lock.yaml",
      "build-tools/package.json",
      "build-tools/pnpm-lock.yaml",
      "cookbook",
      "cookbook/ce-compat",
      "cookbook/ce-compat/apparel-and-materials.md",
      "cookbook/ce-compat/melee-weapons.md",
      "cookbook/ce-compat/overview.md",
      "cookbook/ce-compat/pawns-and-turrets.md",
      "cookbook/ce-compat/ranged-weapons.md",
      "cookbook/harmony",
      "cookbook/harmony/argument-injection.md",
      "cookbook/harmony/overview.md",
      "cookbook/harmony/prefix-postfix.md",
      "cookbook/harmony/transpiler.md",
      "docs",
      "docs/UPSTREAM-README.md",
      "docs/modmixer-live-v1.md",
      "docs/upstream-release-workflow.yml.txt",
      "forge.config.ts",
      "forge.env.d.ts",
      "index.html",
      "lore",
      "lore/animation.md",
      "lore/assets.md",
      "lore/build.md",
      "lore/compat.md",
      "lore/debugging.md",
      "lore/defs.md",
      "lore/factions.md",
      "lore/harmony.md",
      "lore/ideology.md",
      "lore/localization.md",
      "lore/minecraft",
      "lore/minecraft/build.md",
      "lore/minecraft/items.md",
      "lore/minecraft/recipes.md",
      "lore/minecraft/registries.md",
      "lore/minecraft/test-loop.md",
      "lore/misc.md",
      "lore/patches.md",
      "lore/pawns.md",
      "lore/performance.md",
      "lore/scribe-saving.md",
      "lore/sounds.md",
      "lore/test-loop.md",
      "lore/textures.md",
      "lore/things.md",
      "lore/ui.md",
      "lore/weather.md",
      "lore/world-incidents.md",
      "package-lock.json",
      "package.json",
      "packs",
      "packs/csharp-harmony",
      "packs/csharp-harmony/LICENSE",
      "packs/csharp-harmony/pack.meta.json",
      "packs/csharp-harmony/references",
      "packs/csharp-harmony/references/cookbook",
      "packs/csharp-harmony/references/cookbook/ce-compat",
      "packs/csharp-harmony/references/cookbook/ce-compat/apparel-and-materials.md",
      "packs/csharp-harmony/references/cookbook/ce-compat/melee-weapons.md",
      "packs/csharp-harmony/references/cookbook/ce-compat/overview.md",
      "packs/csharp-harmony/references/cookbook/ce-compat/pawns-and-turrets.md",
      "packs/csharp-harmony/references/cookbook/ce-compat/ranged-weapons.md",
      "packs/csharp-harmony/references/cookbook/harmony",
      "packs/csharp-harmony/references/cookbook/harmony/argument-injection.md",
      "packs/csharp-harmony/references/cookbook/harmony/overview.md",
      "packs/csharp-harmony/references/cookbook/harmony/prefix-postfix.md",
      "packs/csharp-harmony/references/cookbook/harmony/transpiler.md",
      "packs/csharp-harmony/skills",
      "packs/csharp-harmony/skills/csharp-harmony",
      "packs/csharp-harmony/skills/csharp-harmony/SKILL.md",
      "packs/rimworld-art",
      "packs/rimworld-art/LICENSE",
      "packs/rimworld-art/pack.meta.json",
      "packs/rimworld-art/references",
      "packs/rimworld-art/references/ART-PIPELINE.md",
      "packs/rimworld-art/skills",
      "packs/rimworld-art/skills/rimworld-art",
      "packs/rimworld-art/skills/rimworld-art/SKILL.md",
      "packs/rimworld-core",
      "packs/rimworld-core/LICENSE",
      "packs/rimworld-core/NOTICE",
      "packs/rimworld-core/pack.meta.json",
      "packs/rimworld-core/references",
      "packs/rimworld-core/references/lore",
      "packs/rimworld-core/references/lore/animation.md",
      "packs/rimworld-core/references/lore/assets.md",
      "packs/rimworld-core/references/lore/build.md",
      "packs/rimworld-core/references/lore/compat.md",
      "packs/rimworld-core/references/lore/debugging.md",
      "packs/rimworld-core/references/lore/defs.md",
      "packs/rimworld-core/references/lore/factions.md",
      "packs/rimworld-core/references/lore/harmony.md",
      "packs/rimworld-core/references/lore/ideology.md",
      "packs/rimworld-core/references/lore/localization.md",
      "packs/rimworld-core/references/lore/misc.md",
      "packs/rimworld-core/references/lore/patches.md",
      "packs/rimworld-core/references/lore/pawns.md",
      "packs/rimworld-core/references/lore/performance.md",
      "packs/rimworld-core/references/lore/scribe-saving.md",
      "packs/rimworld-core/references/lore/sounds.md",
      "packs/rimworld-core/references/lore/test-loop.md",
      "packs/rimworld-core/references/lore/textures.md",
      "packs/rimworld-core/references/lore/things.md",
      "packs/rimworld-core/references/lore/ui.md",
      "packs/rimworld-core/references/lore/weather.md",
      "packs/rimworld-core/references/lore/world-incidents.md",
      "packs/rimworld-core/skills",
      "packs/rimworld-core/skills/rimworld-core",
      "packs/rimworld-core/skills/rimworld-core/SKILL.md",
      "packs/rimworld-forge",
      "packs/rimworld-forge/LICENSE",
      "packs/rimworld-forge/pack.meta.json",
      "packs/rimworld-forge/references",
      "packs/rimworld-forge/references/docs",
      "packs/rimworld-forge/references/docs/AGENT-WORKFLOW.md",
      "packs/rimworld-forge/references/docs/ARCHITECTURE.md",
      "packs/rimworld-forge/references/docs/ART-PIPELINE.md",
      "packs/rimworld-forge/references/docs/CONTENT-RECIPES.md",
      "packs/rimworld-forge/references/docs/EXTENDING.md",
      "packs/rimworld-forge/references/docs/MODDING-GUIDE.md",
      "packs/rimworld-forge/references/docs/RUNTIME-HARNESS-DESIGN.md",
      "packs/rimworld-forge/references/docs/VALIDATION.md",
      "packs/rimworld-forge/references/examples",
      "packs/rimworld-forge/references/examples/art",
      "packs/rimworld-forge/references/examples/art/warden-concept.svg",
      "packs/rimworld-forge/references/examples/shark-xenotype.plan.json",
      "packs/rimworld-forge/references/examples/warden-mech.plan.json",
      "packs/rimworld-forge/references/knowledge",
      "packs/rimworld-forge/references/knowledge/SOURCES.md",
      "packs/rimworld-forge/references/schemas",
      "packs/rimworld-forge/references/schemas/project-plan.schema.json",
      "packs/rimworld-forge/references/source",
      "packs/rimworld-forge/references/source/__init__.py",
      "packs/rimworld-forge/references/source/assets.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "woodytwoshoes/crook-bench",
    "search_description": "",
    "created_at": "2026-10-04T03:45:00Z",
    "id": "R_kgDOU60hpQ",
    "meta": {
      "id": 1403855269,
      "node_id": "R_kgDOU60hpQ",
      "name": "crook-bench",
      "full_name": "woodytwoshoes/crook-bench",
      "private": false,
      "owner": {
        "login": "woodytwoshoes",
        "id": 48741810,
        "node_id": "MDQ6VXNlcjQ4NzQxODEw",
        "avatar_url": "https://avatars.githubusercontent.com/u/48741810?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/woodytwoshoes",
        "html_url": "https://github.com/woodytwoshoes",
        "followers_url": "https://api.github.com/users/woodytwoshoes/followers",
        "following_url": "https://api.github.com/users/woodytwoshoes/following{/other_user}",
        "gists_url": "https://api.github.com/users/woodytwoshoes/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/woodytwoshoes/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/woodytwoshoes/subscriptions",
        "organizations_url": "https://api.github.com/users/woodytwoshoes/orgs",
        "repos_url": "https://api.github.com/users/woodytwoshoes/repos",
        "events_url": "https://api.github.com/users/woodytwoshoes/events{/privacy}",
        "received_events_url": "https://api.github.com/users/woodytwoshoes/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/woodytwoshoes/crook-bench",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/woodytwoshoes/crook-bench",
      "forks_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/forks",
      "keys_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/teams",
      "hooks_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/hooks",
      "issue_events_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/issues/events{/number}",
      "events_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/events",
      "assignees_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/assignees{/user}",
      "branches_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/branches{/branch}",
      "tags_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/tags",
      "blobs_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/languages",
      "stargazers_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/stargazers",
      "contributors_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/contributors",
      "subscribers_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/subscribers",
      "subscription_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/subscription",
      "commits_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/contents/{+path}",
      "compare_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/merges",
      "archive_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/downloads",
      "issues_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/issues{/number}",
      "pulls_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/labels{/name}",
      "releases_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/releases{/id}",
      "deployments_url": "https://api.github.com/repos/woodytwoshoes/crook-bench/deployments",
      "created_at": "2026-10-04T03:45:00Z",
      "updated_at": "2026-10-04T06:03:24Z",
      "pushed_at": "2026-10-04T06:03:20Z",
      "git_url": "git://github.com/woodytwoshoes/crook-bench.git",
      "ssh_url": "[email protected]:woodytwoshoes/crook-bench.git",
      "clone_url": "https://github.com/woodytwoshoes/crook-bench.git",
      "svn_url": "https://github.com/woodytwoshoes/crook-bench",
      "homepage": null,
      "size": 3092,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "TypeScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": false,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION",
        "url": null,
        "node_id": "MDc6TGljZW5zZTA="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# crook-bench\n\nHow do AI models do as the doctor in a GP consultation game?\n\n*Crook* is a game in which you are a general practitioner (family doctor) in\nAustralia: you talk to a patient in your own words, examine them, order\ntests, prescribe or refer, and commit to a diagnosis. This repository lets a\nlanguage model sit in the doctor's chair and play the same consultations a\nhuman player does, scored by the game's own code.\n\nThis is a benchmark of a game, not of medical competence. A score here says\nhow a model plays *Crook*'s cases under *Crook*'s marking. It says nothing\nabout whether a model can or should practise medicine.\n\n## Results\n\n**Interactive charts:** https://woodytwoshoes.github.io/crook-bench/ (hover any model for its numbers).\n\n![Overall score by model, with one standard deviation either side](images/board.png)\n\n| Rank | Model | Consults | Score % (±sd) | History | Exam | Tests | Mgmt + dx | Red flags caught | Questions asked | Red flags per 10 questions | Top dx right | Harms per consult | Required care missed | Cost per consult |\n|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|\n| 1 | openai/gpt-6-astra | 15 (5 cases) | 83 (±11) | 81 | 76 | 88 | 92 | 88% | 27 | 2.7 | 100% | 0.00 | 0 | $0.21 |\n| 2 | openai/gpt-6.1-sol | 15 (5 cases) | 80 (±13) | 77 | 77 | 83 | 91 | 82% | 25 | 2.7 | 100% | 0.00 | 0 | $0.03 |\n| 3 | anthropic/claude-opus-5.5 | 15 (5 cases) | 77 (±12) | 67 | 84 | 85 | 93 | 67% | 16 | 3.4 | 100% | 0.00 | 0 | $0.37 |\n| 4 | anthropic/claude-fable-5.1 | 15 (5 cases) | 75 (±12) | 71 | 81 | 85 | 83 | 70% | 23 | 2.4 | 100% | 0.13 | 0 | $2.06 |\n| 5 | qwen/qwen3.8-max-0902 | 15 (5 cases) | 74 (±12) | 67 | 83 | 80 | 86 | 66% | 26 | 2.3 | 100% | 0.07 | 0 | $0.12 |\n| 6 | x-ai/grok-4.7 | 15 (5 cases) | 74 (±9) | 66 | 86 | 83 | 82 | 70% | 21 | 2.6 | 100% | 0.13 | 0 | $0.09 |\n| 7 | deepseek/deepseek-v4-pro-0813 | 15 (5 cases) | 71 (±13) | 65 | 79 | 86 | 78 | 72% | 18 | 3.7 | 100% | 0.20 | 0 | $0.09 |\n| 8 | moonshotai/kimi-k3 | 15 (5 cases) | 67 (±15) | 60 | 77 | 55 | 81 | 57% | 20 | 2.4 | 100% | 0.27 | 0 | $0.16 |\n| 9 | google/gemini-3.1-pro-preview | 15 (5 cases) | 63 (±9) | 52 | 82 | 78 | 75 | 55% | 14 | 3.0 | 100% | 0.13 | 0 | $0.17 |\n| 10 | z-ai/glm-5.3 | 15 (5 cases) | 62 (±16) | 57 | 74 | 77 | 67 | 58% | 19 | 2.5 | 100% | 0.27 | 0 | $0.04 |\n| 11 | mistralai/mistral-medium-3-5 | 15 (5 cases) | 60 (±7) | 59 | 68 | 56 | 62 | 58% | 20 | 2.6 | 100% | 0.20 | 0 | $0.17 |\n| 12 | qwen/qwen3.8-27b | 15 (5 cases) | 59 (±10) | 50 | 77 | 52 | 69 | 49% | 17 | 2.4 | 100% | 0.33 | 0 | $0.03 |\n| 13 | meta-llama/llama-4-maverick | 15 (5 cases) | 24 (±10) | 22 | 38 | 38 | 21 | 16% | 6 | 2.1 | 100% | 0.40 | 3 | $0.01 |\n\nScore is the mean share of each case's maximum. History, Exam, Tests and\nMgmt + dx are the bill's four parts, each out of its own maximum. Full\ntranscripts, bills and move logs for every consultation are in\n[`results/`](results/).\n\n![Score against cost per consultation, log scale](images/cost.png)\n\n![Red flags caught against questions asked](images/flags.png)\n\n![Mean score by model and case](images/heat.png)\n\n![How often each model walked into each case's trap](images/traps.png)\n\n**What stood out**\n\n- **Every model named the right diagnosis in all 195 consultations.** On\n  these five cases diagnosis doesn't separate the models; the process does:\n  red flags asked about, a safe prescription, and sending the patient to the\n  right place.\n- **Red flags followed questions.** The top two asked 25–27 questions a\n  consultation and caught 82–88% of the red flags; Gemini 3.1 Pro asked 14\n  and caught 55%. No model came near the 50-question budget.\n- **The traps worked.** A patient with a penicillin allergy that isn't on\n  the record was given amoxicillin in 18 of 39 consultations; the top three\n  never did it. A patient who took sildenafil (Viagra) the night before was\n  given GTN 7 times. Three consultations named ectopic pregnancy as the\n  can't-miss diagnosis for a man.\n- **Price and score are loosely related.** GPT-6.1 Sol scored 80% at about\n  US$0.03 a consultation; Claude Fable 5.1 scored 75% at about US$2.06.\n- Llama 4 Maverick asked about 6 questions a consultation and missed the\n  required care in 3 of 15.\n\n**Run:** 2026-10-04. 13 models × 5 cases × 3 consultations = 195, through\nOpenRouter at each provider's defaults (Llama 4 Maverick with\n`tool_choice: \"required\"`, below). Patient, classifier and judge: Qwen3 8B\n(FP8, vLLM) on the game's server. Budget: 50 questions. Total cost about\nUS$53. Five appendicitis consultations were rescored from their logs after\none case fix, with no model calls (`npm run bench -- rescore`; known issue B2).\n\n## Method\n\n**The doctor** is the model under test. It acts only through tools: `say`\n(talk to the patient), `list_exams` and `search` (find exams, tests, drugs,\nreferrals and diagnoses), `examine`, `order_test`, `prescribe`, `refer`,\n`diagnose` (most likely, a differential, and a can't-miss diagnosis) and\n`end_consult`. It sees what a player sees: the patient's name, age and\nbooking, the clinic record, its own findings and results. It never sees the\ncase file or the points.\n\n**The patient** is the game's own patient model, Qwen3 8B, on the game's\nserver, the same one human players talk to. It plays a person from a\nprivate chart and does not know its diagnosis. A separate classifier call\n(same model) decides which history items each question asked about, and only\nthose facts are released to the patient. A question it misses gets a denial,\nas it would for a human player.\n\n**The score** is decided by code against a hand-written key, exactly as for\na human player: red flags asked about, key history, indicated exams and\ntests, a safe plan, and a defensible diagnosis. Process, not outcome: the\nquestion is whether the consultation was safe and well targeted given what\nthe doctor had found when they committed. Unnecessary tests cost points\n(more for each further one); harmful actions cost a lot. Spoken advice and\nthe plan are judged at the end from the doctor's own words, by the patient\nmodel quoting what was said, with code checking the quote was really said.\n\n**The time budget** is 50 questions per consultation. Each question counts,\nincluding several in one message. Explanations, the plan and safety-netting\nare free, as are examining, tests, prescribing, referring and diagnosing.\nAsking questions is never penalised in itself: the budget only stops a model\nfrom asking everything.\n\n**Efficiency columns.** *Questions asked* is the mean per consultation.\n*Red flags per 10 questions* is red flags elicited ÷ questions asked × 10,\naveraged over consultations that asked any.\n\n**Runs.** Five cases (the game's free cases), three consultations each per\nmodel, through OpenRouter with each provider's default settings. Llama 4\nMaverick wrote its tool calls as plain text under `tool_choice: \"auto\"`, so\nit ran with `tool_choice: \"required\"`; every other model ran with `auto`.\n\n## Caveats\n\n- **All cases are drafts** (`status: draft`), written with AI help from\n  standard references and still under review by the game's author, a GP\n  registrar. Management follows Australian practice (eTG, PBS), which may\n  differ from where you are.\n- **The patient and the marker are an 8B model.** It misses some questions\n  (the classifier's held-out recall is about 90%) and the end-of-consult\n  judge sometimes credits or misses a spoken item. Every model faces the same\n  patient, but the noise is real: see known issues.\n- **Three runs per case is a small sample.** The ± column is the standard\n  deviation across a model's consultations.\n- The developer wrote the cases, so no human baseline is given.\n\n## Known issues\n\n- B1 chest_pain_stemi: \"Stay with the patient with a defibrillator available\" is judged inconsistently: credited for \"The ambulance crew will stay with you the whole way\" (DeepSeek, pilot), not for \"I'll stay with you and keep the heart monitor on\" (Opus, pilot).\n- B2 abdo_pain_appendicitis: the required ED item accepts only the ambulance or self-present referral. Phoning ED for a handover and telling the patient to go now by taxi (Grok rep 3) loses 30 and gets the missed-red-flag story (\"looked like a stomach bug\") though appendicitis was diagnosed. Fixed 2026-10-04 (developer's decision): the item accepts phone_ed_handover; the five affected consults (DeepSeek, Grok, GLM ×2, Qwen3.8 27B) rescored from their logs, +45 each.\n- B3 back_pain_mechanical: the spoken-plan judge gave −30 for \"Bed rest\" to advice against it: \"the worst thing for this is lying on the couch all day\" and \"Bed rest slows recovery.\" Open.\n- B4 abdo_pain_appendicitis: −30 for \"Pain relief and home without a diagnosis\" on \"I'll give you some paracetamol now to take the edge off the pain on the way\" (to hospital). Open.\n- B5 cough_pneumonia: \"Any allergies to medicines?\" can go to the generic `other_allergies` decoy instead of `antibiotic_allergy`, so the patient denies his penicillin allergy; the doctor then prescribes amoxicillin and takes −30. 2 of 39 consults (Gemini 3.1 Pro #3, Grok 4.7 #2); 23 of the 26 consults that asked were answered correctly. Suggested fix: `covers: [other_allergies]` on `antibiotic_allergy`, checked with `eval:sweep`. Open.\n- B6 all: the question budget counts sentences ending in \"?\" and \"tell me…\" requests, so a question worded as a statement (\"I'd like to know whether…\") is free. Not exploited: 1 of 227 point-earning turns counted as no question (checked mid-run). Open.\n- B7 all: talking is free, so a model could list every plausible piece of advice and collect the plan items; harmful ones still cost 30. Not checked systematically. Open.\n\n## Running it\n\n```sh\nnpm ci\nexport OPENROUTER_API_KEY=...            # the doctor models\nexport PATIENT_URL=http://localhost:1234/v1   # any OpenAI-compatible server running qwen/qwen3-8b\nnpm run bench -- run <openrouter-model-id> --cases free --reps 3\nnpm run bench -- report                  # writes bench-results/LEADERBOARD.md\nnpm run bench -- rescore                 # rescore saved consults against the current cases, no model calls\n```\n\nOptions: `--questions 50` (the budget), `--concurrency 2`, `--out\nbench-results`. `DOCTOR_URL` and `DOCTOR_KEY` point at any other\nOpenAI-compatible API; `DOCTOR_EXTRA` merges JSON into each request (e.g.\n`{\"tool_choice\":\"required\"}`). Tests: `npx vitest run`.\n\n## Licence and contact\n\nThe code (`packages/`) is MIT. The case files and catalogue are all rights reserved, published so results can be checked and reproduced: see `cases/LICENSE`.\n\nThe game: https://doctorfoo.ai\n",
    "tree_paths": [
      ".gitignore",
      "LICENSE",
      "README.md",
      "cases",
      "cases/LICENSE",
      "cases/abdo_pain_appendicitis.yaml",
      "cases/back_pain_mechanical.yaml",
      "cases/chest_pain_stemi.yaml",
      "cases/cough_pneumonia.yaml",
      "cases/dysuria_cystitis.yaml",
      "catalogue",
      "catalogue/diagnoses.yaml",
      "catalogue/examinations.yaml",
      "catalogue/formulary.yaml",
      "catalogue/investigations.yaml",
      "catalogue/referrals.yaml",
      "catalogue/safety.yaml",
      "docs",
      "docs/index.html",
      "images",
      "images/board.png",
      "images/cost.png",
      "images/flags.png",
      "images/heat.png",
      "images/traps.png",
      "package-lock.json",
      "package.json",
      "packages",
      "packages/core",
      "packages/core/package.json",
      "packages/core/scripts",
      "packages/core/scripts/bench.ts",
      "packages/core/scripts/bench",
      "packages/core/scripts/bench/doctor.ts",
      "packages/core/scripts/bench/engine.ts",
      "packages/core/src",
      "packages/core/src/achievements.ts",
      "packages/core/src/body.ts",
      "packages/core/src/catalogue.ts",
      "packages/core/src/consult.ts",
      "packages/core/src/decoys.ts",
      "packages/core/src/diagnosis.ts",
      "packages/core/src/glossary.ts",
      "packages/core/src/index.ts",
      "packages/core/src/jargon.ts",
      "packages/core/src/loadCase.ts",
      "packages/core/src/normals.ts",
      "packages/core/src/note.ts",
      "packages/core/src/points.ts",
      "packages/core/src/prompts.ts",
      "packages/core/src/safety.ts",
      "packages/core/src/schema.ts",
      "packages/core/src/scoring.ts",
      "packages/core/test",
      "packages/core/test/bench.test.ts",
      "packages/core/tsconfig.json",
      "packages/core/tsconfig.test.json",
      "results",
      "results/LEADERBOARD.md",
      "results/anthropic_claude-fable-5.1",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-1.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-1.log.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-1.md",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-2.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-2.log.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-2.md",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-3.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-3.log.json",
      "results/anthropic_claude-fable-5.1/abdo_pain_appendicitis-3.md",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-1.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-1.log.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-1.md",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-2.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-2.log.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-2.md",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-3.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-3.log.json",
      "results/anthropic_claude-fable-5.1/back_pain_mechanical-3.md",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-1.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-1.log.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-1.md",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-2.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-2.log.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-2.md",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-3.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-3.log.json",
      "results/anthropic_claude-fable-5.1/chest_pain_stemi-3.md",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-1.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-1.log.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-1.md",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-2.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-2.log.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-2.md",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-3.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-3.log.json",
      "results/anthropic_claude-fable-5.1/cough_pneumonia-3.md",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-1.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-1.log.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-1.md",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-2.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-2.log.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-2.md",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-3.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-3.log.json",
      "results/anthropic_claude-fable-5.1/dysuria_cystitis-3.md",
      "results/anthropic_claude-opus-5.5",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-1.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-1.log.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-1.md",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-2.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-2.log.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-2.md",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-3.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-3.log.json",
      "results/anthropic_claude-opus-5.5/abdo_pain_appendicitis-3.md",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-1.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-1.log.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-1.md",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-2.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-2.log.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-2.md",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-3.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-3.log.json",
      "results/anthropic_claude-opus-5.5/back_pain_mechanical-3.md",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-1.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-1.log.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-1.md",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-2.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-2.log.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-2.md",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-3.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-3.log.json",
      "results/anthropic_claude-opus-5.5/chest_pain_stemi-3.md",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-1.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-1.log.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-1.md",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-2.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-2.log.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-2.md",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-3.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-3.log.json",
      "results/anthropic_claude-opus-5.5/cough_pneumonia-3.md",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-1.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-1.log.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-1.md",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-2.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-2.log.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-2.md",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-3.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-3.log.json",
      "results/anthropic_claude-opus-5.5/dysuria_cystitis-3.md",
      "results/deepseek_deepseek-v4-pro-0813",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-1.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-1.log.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-1.md",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-2.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-2.log.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-2.md",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-3.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-3.log.json",
      "results/deepseek_deepseek-v4-pro-0813/abdo_pain_appendicitis-3.md",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-1.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-1.log.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-1.md",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-2.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-2.log.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-2.md",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-3.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-3.log.json",
      "results/deepseek_deepseek-v4-pro-0813/back_pain_mechanical-3.md",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-1.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-1.log.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-1.md",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-2.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-2.log.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-2.md",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-3.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-3.log.json",
      "results/deepseek_deepseek-v4-pro-0813/chest_pain_stemi-3.md",
      "results/deepseek_deepseek-v4-pro-0813/cough_pneumonia-1.json"
    ],
    "tree_truncated": false
  },
  {
    "repo": "WhiteRobe/My-Paopaotang",
    "search_description": "A bombman-like game, made by GPT 6.1 sol",
    "created_at": "2026-10-03T08:02:03Z",
    "id": "R_kgDOU53qHw",
    "meta": {
      "id": 1402858015,
      "node_id": "R_kgDOU53qHw",
      "name": "My-Paopaotang",
      "full_name": "WhiteRobe/My-Paopaotang",
      "private": false,
      "owner": {
        "login": "WhiteRobe",
        "id": 29495817,
        "node_id": "MDQ6VXNlcjI5NDk1ODE3",
        "avatar_url": "https://avatars.githubusercontent.com/u/29495817?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/WhiteRobe",
        "html_url": "https://github.com/WhiteRobe",
        "followers_url": "https://api.github.com/users/WhiteRobe/followers",
        "following_url": "https://api.github.com/users/WhiteRobe/following{/other_user}",
        "gists_url": "https://api.github.com/users/WhiteRobe/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/WhiteRobe/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/WhiteRobe/subscriptions",
        "organizations_url": "https://api.github.com/users/WhiteRobe/orgs",
        "repos_url": "https://api.github.com/users/WhiteRobe/repos",
        "events_url": "https://api.github.com/users/WhiteRobe/events{/privacy}",
        "received_events_url": "https://api.github.com/users/WhiteRobe/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/WhiteRobe/My-Paopaotang",
      "description": "A bombman-like game, made by GPT 6.1 sol",
      "fork": false,
      "url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang",
      "forks_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/forks",
      "keys_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/teams",
      "hooks_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/hooks",
      "issue_events_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/issues/events{/number}",
      "events_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/events",
      "assignees_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/assignees{/user}",
      "branches_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/branches{/branch}",
      "tags_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/tags",
      "blobs_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/languages",
      "stargazers_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/stargazers",
      "contributors_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/contributors",
      "subscribers_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/subscribers",
      "subscription_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/subscription",
      "commits_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/contents/{+path}",
      "compare_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/merges",
      "archive_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/downloads",
      "issues_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/issues{/number}",
      "pulls_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/labels{/name}",
      "releases_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/releases{/id}",
      "deployments_url": "https://api.github.com/repos/WhiteRobe/My-Paopaotang/deployments",
      "created_at": "2026-10-03T08:02:03Z",
      "updated_at": "2026-10-04T03:01:42Z",
      "pushed_at": "2026-10-04T03:01:38Z",
      "git_url": "git://github.com/WhiteRobe/My-Paopaotang.git",
      "ssh_url": "[email protected]:WhiteRobe/My-Paopaotang.git",
      "clone_url": "https://github.com/WhiteRobe/My-Paopaotang.git",
      "svn_url": "https://github.com/WhiteRobe/My-Paopaotang",
      "homepage": null,
      "size": 251748,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "GDScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "<div align=\"center\">\n\n# 🫧 泡泡糖\n\n### 像素群岛大冒险\n\n**放一颗泡泡,救一位伙伴,找回群岛失去的光。**\n\n![Godot](https://img.shields.io/badge/Godot-4.x-478CBF?logo=godotengine&logoColor=white)\n![中文](https://img.shields.io/badge/界面-简体中文-F0B6D2)\n![同屏](https://img.shields.io/badge/本机同屏-1~4人-82D8BC)\n![分辨率](https://img.shields.io/badge/分辨率-1920×1080-AFA0E8)\n\n[开始游戏](#start) · [四种玩法](#modes) · [剧情冒险](#story) · [操作说明](#controls) · [菜单与大厅](docs/菜单与大厅设计.md) · [完整手册](docs/玩法说明.md)\n\n<img src=\"docs/screenshots/readme-v462-teams.png\" alt=\"v4.6.2 海港八席位组队对战实机画面\" width=\"100%\">\n\n</div>\n\n> 以下展示画面均重新截取自 v4.6.2;静态截图为 1920×1080,动画来自实际对局。\n\n用 Godot 制作的中文像素泡泡对战游戏。从两个人共用一块键盘开始,也可以带上电脑队友,探索五章群岛故事,或者来一场八人混战。\n\nv4.6 为现有六种怪物与五个 Boss 增加逐帧待机、左右移动、攻击、受击和倒地动作,共 396 帧。攻击蓄力与实际伤害时机同步,冰冻和暂停会停住相应动画,图鉴也显示动态待机。\n\nv4.5 将地图扩大到 27×19 格,对战支持最多八人,其中真人最多四人,空位由电脑补齐;组队支持 2v2、3v3、4v4。开局统一一颗泡泡、一格射程,普通地图保持白昼,指定地图才有昼夜或迷雾。角色缩小并补充困泡、破泡、倒地贴图;队友和敌人的触碰救援、击杀均即时生效,被困窗口为八秒。主菜单、八席位大厅与局内信息栏重新整理。\n\n圆滚滚的泡泡会连锁爆炸;同伴被困时,碰到他就能救援。捡成长道具、抢坐骑、利用地图机关,还要留意倒计时:时间一到,地图会逐圈向内坍塌。\n\n| 🗺️ 地图 | 🎒 道具 | 🧑 人物 | 🐣 坐骑 | 🎵 音乐 |\n| :---: | :---: | :---: | :---: | :---: |\n| 44 张机关地图 | 26 种常规道具 | 8 位可解锁角色 | 鸭、龟、兔 | 14 首主题 BGM |\n\n游戏画面渲染为 1080p。十四个主题使用正交地图与清晰的地面、墙和箱体层次。地图、方块、装饰、背景,十一种怪物与 Boss,全部道具、泡泡、坐骑和任务物件均接入新生成的精细像素素材。八位人物拥有四方向共 408 张独立行走帧,并补充正面放置与受击帧。美术使用内置 imagegen 制作,音乐和音效由项目制作;字体授权说明见文末。\n\n<a id=\"start\"></a>\n## 🚀 开始游戏\n\n```sh\ngit clone [email protected]:WhiteRobe/My-Paopaotang.git\ncd My-Paopaotang\n```\n\n安装 **Godot 4.x**,在项目管理器中导入根目录的 `project.godot`,打开工程后按 **F5**。项目使用 Compatibility 渲染器,无需额外插件;已在 Godot 4.7.2 上检查导入与启动。\n\n如果 Godot 已加入命令行路径,也可以直接运行:\n\n```sh\ngodot --path .\n```\n\n> 仓库提供源码和运行所需的图片、音频、字体。Godot 运行时、可执行程序、安装包与导出缓存不提交到 Git。\n\n<details>\n<summary><b>macOS:自行打包为可双击的应用</b></summary>\n\n准备 Python 3、Pillow 和 Xcode Command Line Tools,然后执行:\n\n```sh\npython3 -m pip install Pillow\nmkdir -p dist\npython3 tools/build_macos.py /Applications/Godot.app/Contents/MacOS/Godot\n```\n\n脚本生成 `dist/泡泡糖.app` 与 `dist/泡泡糖-macOS.zip`,包含运行时和游戏资源。启动器支持 Apple Silicon 与 Intel;引擎架构取决于传入的 Godot 程序。打包后可双击应用或 `启动游戏.command`。\n\n应用使用本地签名,未做 Apple 公证。其他桌面平台可通过 Godot 安装对应导出模板后自行导出。\n\n</details>\n\n<a id=\"modes\"></a>\n## 🎮 四种玩法\n\n| 模式 | 适合怎么玩 |\n| --- | --- |\n| **剧情冒险 PVE** | 一到四名真人,可由 Bot 补足队伍。五章二十节,完成收集、救援、点灯、护送、守点与波次战,挑战五位 Boss |\n| **单人闯关** | 二十关逐步增加难度。可以带电脑队友,也可以独自挑战多名敌人 |\n| **自由混战** | 两到八个席位,最多四名真人与 Bot 混合,各自为战,先赢两局夺冠 |\n| **组队对战** | 支持 2v2、3v3、4v4,连续或交叉分组,协作救援、包围对手 |\n\n对战可指定地图,也可随机选图,每局重新抽取。全部地图都能在地图图鉴中浏览。\n\n传送环、滑冰、水流、弹床、激光、陨星、列车、棱镜、漩涡、浮桥和瞄准炮台会改变局势。机关先给出危险提示,再发动攻击。对战倒计时为 150~210 秒,剧情关卡为 270~300 秒;归零后,每五秒向内坍塌一圈。\n\n<a id=\"story\"></a>\n## 🌙 归航之光\n\n潮汐核心失窃,群岛正在下沉。蓝莓和伙伴沿着墨色脚印出发,救回被控制的居民与守护者,寻找让王城灯塔重新亮起的方法。\n\n| 章节 | 旅途 | 关底 Boss |\n| --- | --- | --- |\n| **第一章 · 萤灯沼泽** | 从浅滩走向毒蕈小径,穿过旋叶营地 | 苔冠树王 |\n| **第二章 · 回声遗迹** | 解开棱镜、尖刺与回声石阵 | 砂钟守卫 |\n| **第三章 · 珊瑚深庭** | 在潮流与漩涡之间营救居民 | 铁钳蟹将 |\n| **第四章 · 风帆空港** | 护送车辆,跨越断桥,迎击空中威胁 | 雷翼飞艇 |\n| **第五章 · 墨潮王城** | 点亮暗灯街区,夺回潮汐核心 | 墨潮大王 |\n\n每节包含对白和任务目标,全部支持中、英、日、法、德五种语言。收集物需运回检查点,营救需持续靠近一秒,灯柱需依次点亮,护送途中需补充能量。每节另有两处支线目标,完成后获得属性充能、护盾和存档奖章。怪物与 Boss 有生命值,Boss 在半血后加快攻击。完成任务后,真人进入发光出口才能过关;章节进度独立保存,可以重玩已经解锁的关卡。\n\n<table>\n<tr>\n<td width=\"50%\"><img src=\"docs/screenshots/readme-v462-story.png\" alt=\"中文剧情对白\"></td>\n<td width=\"50%\"><img src=\"docs/screenshots/readme-v462-boss.png\" alt=\"王城冒险实机画面\"></td>\n</tr>\n<tr><td align=\"center\">旅途从一段中文对白开始</td><td align=\"center\">机关、任务与 Boss 同场登场</td></tr>\n</table>\n\n## 🎒 成长、坐骑与救援\n\n扩容、延伸水柱、跑鞋和泡泡强化提升本局能力。飞踢靴能踢走泡泡,遥控器能提前引爆,闪现珠帮你脱离包围。地上的主动道具会与手持道具交换,成长道具和坐骑蛋则直接生效。\n\n泡泡鸭擅长奔跑,甲壳龟能承受更多伤害,跳跳兔可以跨越箱子。坐骑有四方向四帧动画,骑手随步伐起伏,坐骑先替角色承受水柱,骑术成长还能提高速度与耐久。\n\n队友被困时,触碰即可救援;自己也能用脱困针或护盾脱身。剧情模式还有每关共享的复苏次数。**角色当前采用被困、救援和复苏规则;生命值系统用于怪物与 Boss。**\n\n<img src=\"docs/screenshots/readme-v462-items.png\" alt=\"原创像素道具图鉴\" width=\"100%\">\n\n蓝莓、桃桃、薄荷、柚子、雪球、星芽、机仔和火苗有各自的外观与初始能力。随着闯关解锁更多伙伴,人物选择会随存档保留。\n\n<img src=\"docs/screenshots/readme-v462-characters.png\" alt=\"八位不同造型的像素角色\" width=\"100%\">\n\n## 🔦 昼夜、迷雾与洞窟\n\n普通地图保持白昼,配置了昼夜机制的地图每 90 秒经历白天、黄昏、夜晚和黎明。夜里主要依靠角色周围约三格的视野;墙与箱子会遮光,泡泡在爆炸前的最后 1.2 秒逐渐变亮,连环爆炸也会照亮水柱附近。\n\n新增四张常夜洞窟地图:火炬岩窟、迷雾矿道、地下暗河、蝠影回音厅。每局随机生成六处固定火把,位置整局保持不变,持续照亮附近地形。洞窟有岩晶、蘑菇、钟乳石与飞过的蝙蝠,并使用独立的洞窟回声音乐。\n\n迷雾按 60 秒周期生成随机漂移的雾团,再由风吹散。夜晚和迷雾中可拾取两个新道具,用原有道具键使用:**照明弹**让全图明亮八秒;**火把**让自身视野扩大到约六格,持续二十秒。两种道具也能用于灯塔熄灭期间。\n\n海港与空港有海鸥,森林与沼泽有蝴蝶,深海有鱼群,工厂有蒸汽,星空有流星,其他主题也有对应的环境动画。\n\n<img src=\"docs/screenshots/readme-v462-cave.png\" alt=\"常夜洞窟、固定火把与角色视野\" width=\"100%\">\n\n## 📦 箱子也有脾气\n\n包含普通箱、可推箱、需要两次命中的装甲箱,以及占据 **2×2 格、需要八次命中** 的宝库箱。箱子随地图主题更换像素造型,受损后出现裂纹;宝库箱有独立的大尺寸像素画与耐久条,一次爆炸无论覆盖几格都只扣一点耐久。破坏后掉落四至六件奖励,包含坐骑、属性核心和成长道具;加固箱有两枚耐久指示,轮箱带车轮并可连续推动。十四个地图主题各有对应的箱体配色,受损分阶段显示裂纹。\n\n六种属性核心让泡泡改变颜色与效果:冰晶冻结、烈焰扩大中心冲击、雷鸣跳跃电弧、藤蔓留下减速区、净化救援与保护、穿透越过第一只箱子。使用核心可充能二十秒,同时改变已放置的己方泡泡。新增核心使用原有道具键,玩家一 Q、玩家二 /。已检查箱体推动、两次与八次命中、六件奖励保留、六种核心使用,以及 44 张地图和 20 节剧情的对局结算。\n\n<img src=\"docs/screenshots/readme-v462-crates.png\" alt=\"v4.6.2 方块图鉴与宝库箱说明\" width=\"100%\">\n\n<a id=\"controls\"></a>\n## ⌨️ 一起开玩\n\n| 操作 | 玩家一 | 玩家二 | 玩家三 | 玩家四 |\n| --- | :---: | :---: | :---: | :---: |\n| 移动 | WASD | 方向键 | IJKL | TFGH |\n| 放泡泡 | 空格 | 回车 | U | R |\n| **使用道具** | **Q** | **/** | **O** | **Y** |\n\n- **大厅**:上下选择设置,左右调整,回车开始;支持鼠标操作。\n- **C / B / V / F1**:人物、统计、地图图鉴、道具与操作说明。\n- **F2**:完整图鉴,167 个条目涵盖道具、人物、坐骑、怪物、方块、机关、地图和任务;左右切分类、上下选条目。\n- **F3**:选择中文、English、日本語、Français、Deutsch,界面、剧情和图鉴立即切换。\n- **TAB / R**:对战大厅顺序换图 / 随机选图。\n- **ESC / P**:暂停,可继续、返回大厅或保存后退出。\n- **M**:切换声音;**Shift + 道具键**:手动交换脚下主动道具。\n- **剧情对白**:回车或空格继续,ESC 跳过,P 暂停。\n\n玩家二也支持数字键盘回车和除号。游戏采用本机同屏,真人和 Bot 可以混合配置。\n\n## 💾 保存你的冒险\n\n自动保存剧情与经典闯关进度、人物解锁、角色选择、声音、语言设置、支线奖章和局外统计。统计包含胜负、泡泡、炸箱、拾取、救援、骑乘、怪物与 Boss 击败数量等。\n\nmacOS 存档位置:\n\n```text\n~/Library/Application Support/paopaotang/profile.json\n```\n\n其他平台可在 Godot 的 `user://` 目录找到 `profile.json`。中途返回大厅会保留已保存的关卡进度,下次从当前关卡重新开始。\n\n## 🛠️ 项目结构\n\n```text\n.\n├── project.godot          # Godot 工程入口\n├── main.tscn             # 主场景\n├── game.gd               # 对战、输入、Bot、菜单与存档\n├── adventure.gd          # 剧情任务、怪物与 Boss\n├── map_mechanisms.gd     # 地图机关\n├── crates.gd             # 箱体、推动、耐久与奖励\n├── bubble_effects.gd     # 属性泡泡与水柱效果\n├── world_effects.gd      # 环境装饰与特效\n├── weather.gd            # 昼夜、迷雾、风、火把与照明弹\n├── dynamic_lighting.gd   # 光源、阴影和迷雾着色器\n├── hd_art.gd             # HD 图集索引与动作帧\n├── hero_palette.gd       # 人物配色与头像缓存\n├── menu_ui.gd            # 菜单、大厅、设置与存档管理\n├── encyclopedia.gd       # 完整图鉴\n├── i18n.gd               # Godot 翻译注册与语言切换\n├── locales/              # 五种语言的离线译文\n├── data/                 # 地图、人物、道具与中文剧情\n├── assets/               # 原创像素图片、音频和中文字体\n├── tools/                # 美术、音乐生成与 macOS 打包脚本\n├── docs/                 # 玩法手册与精选实机截图\n└── licenses/             # 第三方授权声明\n```\n\n<details>\n<summary><b>重新制作素材与音乐</b></summary>\n\n工程中的资源可以直接运行。当前 HD 图集的来源与更新方法见 [资源制作](docs/资源制作.md),更新原图后运行 `python3 tools/index_hd_atlases.py`。下面的旧素材生成器供维护参考,会覆盖目标文件,按需执行;音乐压缩需要 ffmpeg。\n\n```sh\npython3 -m pip install Pillow numpy\npython3 tools/draw_pixel_art.py\npython3 tools/create_adventure_art.py\npython3 tools/create_effect_art.py\npython3 tools/create_crate_art.py\npython3 tools/create_detailed_world.py\npython3 tools/create_detailed_crates.py\npython3 tools/create_mount_animation.py\npython3 tools/create_weather_art.py\npython3 tools/create_hero_art.py\npython3 tools/create_creature_art.py\npython3 tools/index_premium_atlases.py\npython3 tools/create_assets.py\npython3 tools/compose_themes.py\n```\n\n`assets/audio/themes/catalog.json` 记录主题音乐名称、节拍和时长。十四个音乐主题覆盖海港、森林、冰雪、沙漠、火山、工厂、糖果、星空、沼泽、遗迹、深海、空港、王城和洞窟,每首约两到三分钟。\n\n</details>\n\n本轮人物、动作与战斗画面的改动见 [美术升级计划](docs/美术升级计划.md)。\n\n<img src=\"docs/screenshots/readme-v462-gameplay.gif\" alt=\"v4.6.2 实机移动、困泡与连锁爆炸\" width=\"100%\">\n\n更多规则、道具效果与地图机关,请查看 [完整玩法说明](docs/玩法说明.md)。\n\n开发与 AI 协作请从 [AGENTS.md](AGENTS.md) 和 [开发文档](docs/README.md) 开始。统一检查入口为 `python3 tools/harness.py check`,环境、运行与构建说明见 [harness 使用说明](docs/harness.md)。`.uid`、导入缓存、素材和临时文件的处理见 [文件与资源管理](docs/文件与资源管理.md)。\n\n## 🌱 后续方向\n\n- 打磨属性核心对泡泡、水柱、敌人与机关的联动。\n- 完善剧情角色生命值、受伤反馈与倒地救援。\n- 继续打磨箱体互动与剧情关卡平衡。\n\n## 🎨 素材与授权\n\n游戏美术、音乐和音效由本项目制作;精细人物与任务图集的提示词见 [制作记录](assets/hd/GENERATION.md)。中文字体使用开源的 [缝合像素字体](https://github.com/TakWolf/fusion-pixel-font),字体组件声明与 Godot 授权文件保存在 [licenses](licenses/) 中。\n\n<div align=\"center\">\n\n<img src=\"docs/screenshots/readme-v462-menu.png\" alt=\"v4.6.2 泡泡糖主菜单\" width=\"85%\">\n\n**下一颗泡泡,记得给队友留条路。**\n\n</div>\n\n\nv4.6:自由移动与尺寸修正\n\n角色可以斜向移动、随时转向,松键停在格子内任意位置,保留短促加速与制动。脚底碰撞体与墙箱、泡泡及其他角色交互,泡泡仍就近放在格子上,触碰救援与击杀保持即时生效。\n\n地图道具缩至 12×12 逻辑像素,保留原图纵横比;HUD 为 13×13、背包为 22×22,不再让拾取物跨越一格。人物菜单整帧改为等比例显示,正面图集重新排列为 4×2,扩大透明间隔;脚底与阴影统一锚点,站立去掉整体上下浮动。八席位各有服装主题色,五官与主要造型保留,HUD 和局内编号显示个人颜色,组队地面环保持队伍颜色。\n\n修正后的 [道具画面](docs/screenshots/readme-v462-items.png)、[人物与坐骑](docs/screenshots/readme-v462-characters.png)、[模式菜单](docs/screenshots/readme-v462-modes.png) 与 [Boss 实机画面](docs/screenshots/readme-v462-boss.png)。\n\n\nv4.6.1:局内通知移到地图外的左侧信息栏,三秒后消退并恢复道具说明。通知在五种语言下限制换行和宽度,地图上不再出现横幅。[实机画面](docs/screenshots/readme-v462-pve.png)。\n\n\nv4.6.2:运行与操作优化(2026-10-04)\n\n实机场景复现并修复了冰冻怪物仍在滑动、怪物在抵达角色前触发接触伤害、冰冻角色跳过水柱伤害、水流和阵风推力间歇中断、跳跃坐骑落地后继续执行旧位移,以及关门判定忽略格内脚底位置的问题。切出游戏窗口会进入暂停,需要手动继续。\n\n界面长说明限制行数,过长单词与标签不会越界。剧情侧栏显示支线目标、支线进度和复苏次数,数字留有独立位置;同步五语言。冰冻覆盖层降低不透明度,角色本体更清楚。[中文画面](docs/screenshots/readme-v462-pve.png)、[德文布局](docs/screenshots/readme-v462-pve-de.png)。\n",
    "tree_paths": [
      ".gitattributes",
      ".gitignore",
      "AGENTS.md",
      "README.md",
      "adventure.gd",
      "adventure.gd.uid",
      "assets",
      "assets/audio",
      "assets/audio/boardwalk.ogg",
      "assets/audio/boardwalk.wav",
      "assets/audio/item.wav",
      "assets/audio/pickup.wav",
      "assets/audio/place.wav",
      "assets/audio/splash.wav",
      "assets/audio/themes",
      "assets/audio/themes/candy.ogg",
      "assets/audio/themes/catalog.json",
      "assets/audio/themes/cave.ogg",
      "assets/audio/themes/citadel.ogg",
      "assets/audio/themes/cosmos.ogg",
      "assets/audio/themes/desert.ogg",
      "assets/audio/themes/factory.ogg",
      "assets/audio/themes/forest.ogg",
      "assets/audio/themes/frost.ogg",
      "assets/audio/themes/harbor.ogg",
      "assets/audio/themes/reef.ogg",
      "assets/audio/themes/ruins.ogg",
      "assets/audio/themes/sky.ogg",
      "assets/audio/themes/swamp.ogg",
      "assets/audio/themes/volcano.ogg",
      "assets/audio/trap.wav",
      "assets/audio/win.wav",
      "assets/background-candy.png",
      "assets/background-citadel.png",
      "assets/background-cosmos.png",
      "assets/background-desert.png",
      "assets/background-detailed-candy.png",
      "assets/background-detailed-cave.png",
      "assets/background-detailed-citadel.png",
      "assets/background-detailed-cosmos.png",
      "assets/background-detailed-desert.png",
      "assets/background-detailed-factory.png",
      "assets/background-detailed-forest.png",
      "assets/background-detailed-frost.png",
      "assets/background-detailed-harbor.png",
      "assets/background-detailed-reef.png",
      "assets/background-detailed-ruins.png",
      "assets/background-detailed-sky.png",
      "assets/background-detailed-swamp.png",
      "assets/background-detailed-volcano.png",
      "assets/background-factory.png",
      "assets/background-forest.png",
      "assets/background-frost.png",
      "assets/background-harbor.png",
      "assets/background-reef.png",
      "assets/background-ruins.png",
      "assets/background-sky.png",
      "assets/background-swamp.png",
      "assets/background-volcano.png",
      "assets/characters.png",
      "assets/crates-detailed.png",
      "assets/crates.png",
      "assets/creatures-detailed.png",
      "assets/decorations-detailed.png",
      "assets/decorations.png",
      "assets/enemies.png",
      "assets/fonts",
      "assets/fonts/LICENSES",
      "assets/fonts/LICENSES/ark-pixel",
      "assets/fonts/LICENSES/ark-pixel/OFL.txt",
      "assets/fonts/LICENSES/cubic-11",
      "assets/fonts/LICENSES/cubic-11/OFL.txt",
      "assets/fonts/LICENSES/galmuri",
      "assets/fonts/LICENSES/galmuri/LICENSE.txt",
      "assets/fonts/OFL.txt",
      "assets/fonts/fusion-pixel.otf",
      "assets/fonts/pixel_font.tres",
      "assets/hd",
      "assets/hd/GENERATION.md",
      "assets/hd/bubble-break-v5.png",
      "assets/hd/bubbles-hd.png",
      "assets/hd/creatures-hd.png",
      "assets/hd/fauna-hd.png",
      "assets/hd/hero-actions-hd.png",
      "assets/hd/hero-death-v5.png",
      "assets/hd/hero-front-clean-prompt.txt",
      "assets/hd/hero-trapped-v5.png",
      "assets/hd/heroes-back-hd.png",
      "assets/hd/heroes-front-hd.png",
      "assets/hd/heroes-left-hd.png",
      "assets/hd/heroes-right-hd.png",
      "assets/hd/impacts-hd.png",
      "assets/hd/items-hd.png",
      "assets/hd/landscape-candy-hd.png",
      "assets/hd/landscape-cave-hd.png",
      "assets/hd/landscape-citadel-hd.png",
      "assets/hd/landscape-cosmos-hd.png",
      "assets/hd/landscape-desert-hd.png",
      "assets/hd/landscape-factory-hd.png",
      "assets/hd/landscape-forest-hd.png",
      "assets/hd/landscape-frost-hd.png",
      "assets/hd/landscape-harbor-hd.png",
      "assets/hd/landscape-reef-hd.png",
      "assets/hd/landscape-ruins-hd.png",
      "assets/hd/landscape-sky-hd.png",
      "assets/hd/landscape-swamp-hd.png",
      "assets/hd/landscape-volcano-hd.png",
      "assets/hd/mechanisms-v5.png",
      "assets/hd/missions-hd.png",
      "assets/hd/monster-00-anim.png",
      "assets/hd/monster-01-anim.png",
      "assets/hd/monster-02-anim.png",
      "assets/hd/monster-03-anim.png",
      "assets/hd/monster-04-anim.png",
      "assets/hd/monster-05-anim.png",
      "assets/hd/monster-06-anim.png",
      "assets/hd/monster-07-anim.png",
      "assets/hd/monster-08-anim.png",
      "assets/hd/monster-09-anim.png",
      "assets/hd/monster-10-anim.png",
      "assets/hd/monster-animation-prompts.json",
      "assets/hd/mounts-hd.png",
      "assets/hd/playfield-candy-hd.png",
      "assets/hd/playfield-cave-hd.png",
      "assets/hd/playfield-citadel-hd.png",
      "assets/hd/playfield-cosmos-hd.png",
      "assets/hd/playfield-desert-hd.png",
      "assets/hd/playfield-factory-hd.png",
      "assets/hd/playfield-forest-hd.png",
      "assets/hd/playfield-frost-hd.png",
      "assets/hd/playfield-harbor-hd.png",
      "assets/hd/playfield-prompts.json",
      "assets/hd/playfield-reef-hd.png",
      "assets/hd/playfield-ruins-hd.png",
      "assets/hd/playfield-sky-hd.png",
      "assets/hd/playfield-swamp-hd.png",
      "assets/hd/playfield-volcano-hd.png",
      "assets/hd/regions.json",
      "assets/hd/remote-hd.png",
      "assets/hd/source-files.json",
      "assets/hd/theme-candy-hd.png",
      "assets/hd/theme-cave-hd.png",
      "assets/hd/theme-citadel-hd.png",
      "assets/hd/theme-cosmos-hd.png",
      "assets/hd/theme-desert-hd.png",
      "assets/hd/theme-factory-hd.png",
      "assets/hd/theme-forest-hd.png",
      "assets/hd/theme-frost-hd.png",
      "assets/hd/theme-harbor-hd.png",
      "assets/hd/theme-reef-hd.png",
      "assets/hd/theme-ruins-hd.png",
      "assets/hd/theme-sky-hd.png",
      "assets/hd/theme-swamp-hd.png",
      "assets/hd/theme-volcano-hd.png",
      "assets/hd/v5-prompts.json",
      "assets/hd/walk-bear-hd.png",
      "assets/hd/walk-bunny-hd.png",
      "assets/hd/walk-flame-hd.png",
      "assets/hd/walk-fox-hd.png",
      "assets/hd/walk-frog-hd.png",
      "assets/hd/walk-robot-hd.png",
      "assets/hd/walk-sailor-hd.png",
      "assets/hd/walk-witch-hd.png",
      "assets/hero-portraits.png",
      "assets/heroes-detailed.png",
      "assets/icon-v2.png",
      "assets/icon.png",
      "assets/impact-effects.png",
      "assets/items.png",
      "assets/mission-objects.png",
      "assets/mount-animation.png",
      "assets/mounts.png",
      "assets/premium",
      "assets/premium/GENERATION.md",
      "assets/premium/atlas-regions.json",
      "assets/premium/heroes-v1.png",
      "assets/premium/missions-v1.png",
      "assets/shaders",
      "assets/shaders/dynamic_lighting.gdshader",
      "assets/shaders/dynamic_lighting.gdshader.uid"
    ],
    "tree_truncated": false
  },
  {
    "repo": "michaelcrosato/gpt61sol3dge",
    "search_description": "Offline, headless-first native 3D engine: specification and implementation plan.",
    "created_at": "2026-10-04T01:59:33Z",
    "id": "R_kgDOU6wRjA",
    "meta": {
      "id": 1403785612,
      "node_id": "R_kgDOU6wRjA",
      "name": "gpt61sol3dge",
      "full_name": "michaelcrosato/gpt61sol3dge",
      "private": false,
      "owner": {
        "login": "michaelcrosato",
        "id": 58404198,
        "node_id": "MDQ6VXNlcjU4NDA0MTk4",
        "avatar_url": "https://avatars.githubusercontent.com/u/58404198?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/michaelcrosato",
        "html_url": "https://github.com/michaelcrosato",
        "followers_url": "https://api.github.com/users/michaelcrosato/followers",
        "following_url": "https://api.github.com/users/michaelcrosato/following{/other_user}",
        "gists_url": "https://api.github.com/users/michaelcrosato/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/michaelcrosato/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/michaelcrosato/subscriptions",
        "organizations_url": "https://api.github.com/users/michaelcrosato/orgs",
        "repos_url": "https://api.github.com/users/michaelcrosato/repos",
        "events_url": "https://api.github.com/users/michaelcrosato/events{/privacy}",
        "received_events_url": "https://api.github.com/users/michaelcrosato/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/michaelcrosato/gpt61sol3dge",
      "description": "Offline, headless-first native 3D engine: specification and implementation plan.",
      "fork": false,
      "url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge",
      "forks_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/forks",
      "keys_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/teams",
      "hooks_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/hooks",
      "issue_events_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/issues/events{/number}",
      "events_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/events",
      "assignees_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/assignees{/user}",
      "branches_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/branches{/branch}",
      "tags_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/tags",
      "blobs_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/languages",
      "stargazers_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/stargazers",
      "contributors_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/contributors",
      "subscribers_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/subscribers",
      "subscription_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/subscription",
      "commits_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/contents/{+path}",
      "compare_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/merges",
      "archive_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/downloads",
      "issues_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/issues{/number}",
      "pulls_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/labels{/name}",
      "releases_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/releases{/id}",
      "deployments_url": "https://api.github.com/repos/michaelcrosato/gpt61sol3dge/deployments",
      "created_at": "2026-10-04T01:59:33Z",
      "updated_at": "2026-10-04T02:50:08Z",
      "pushed_at": "2026-10-04T02:50:00Z",
      "git_url": "git://github.com/michaelcrosato/gpt61sol3dge.git",
      "ssh_url": "[email protected]:michaelcrosato/gpt61sol3dge.git",
      "clone_url": "https://github.com/michaelcrosato/gpt61sol3dge.git",
      "svn_url": "https://github.com/michaelcrosato/gpt61sol3dge",
      "homepage": "https://gpt61sol3dge.vercel.app",
      "size": 41,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# gpt61sol3dge\n\nA planned native C++20 3D engine for small stylized games, with a CPU triangle renderer,\nfixed-step simulation, offline builds, and a display-free runtime shared with a desktop player.\n\n**Status:** specification reviewed; engine implementation has not started. There is no engine binary,\nengine build system, vendored engine dependency set, or measured engine performance in this repository yet.\n\n## Read in this order\n\n1. [3D Engine Specification](3D_Engine_Specification.md) — reviewed v0.2 implementation contract.\n2. [Plan Review](PLAN_REVIEW.md) — findings, changes, retained decisions, and remaining risks.\n3. [Implementation Plan](IMPLEMENTATION_PLAN.md) — milestones, acceptance mapping, and a handoff prompt.\n4. [Project State](PROJECT_STATE.md) — current evidence and next work.\n5. [Agent Instructions](AGENTS.md) — repository conventions for implementation.\n\nThe intended implementation handoff is to GPT-6.1 Sol with the user's requested extra reasoning\nstrength. This repository prepares that handoff; it does not change the client's model settings.\n\n## Design boundaries\n\n- Real 3D geometry, depth testing, skeletal animation, physics, and multi-level navigation.\n- C++20, CMake, Ninja, and CTest; third-party sources must be pinned and included before use.\n- Headless simulation, CPU rendering, capture, audio mixing, and JSON Lines automation.\n- An optional-to-build SDL3 desktop player that is required for the complete first release.\n- One complete original sample plus a second game module demonstrating engine reuse.\n- All six specification gates remain required; intermediate milestones are not release completion.\n\nThe current [environment record](evidence/environment_review.json) verifies workstation tools only.\nThe original v0.1 specification is preserved in the initial Git commit.\n\n## Documentation checks\n\nWith `markdownlint` installed:\n\n```sh\nmarkdownlint ./*.md\ngit diff --check\n```\n\nEngine build and run commands will become available during implementation. Examples in the\nspecification and implementation plan describe future commands, not existing executables.\n\n## Documentation website\n\nPublished documentation: [gpt61sol3dge.vercel.app](https://gpt61sol3dge.vercel.app).\n\nThe repository Markdown also builds into a static documentation site for Vercel. Pages include\nthe complete specification, review, milestones, current state, and agent instructions, with\nsection links and downloads of the original Markdown. The environment evidence is available as JSON.\n\nUsing Node.js 24:\n\n```sh\nnpm ci\nnpm run build\nnpm run preview\n```\n\nThe preview serves `dist/` at `http://127.0.0.1:4173`; set `PORT` to use a different port.\nThese commands build the documentation website. The C++ engine remains a separate implementation.\nWebsite dependencies are pinned in `package-lock.json`; they are not engine runtime dependencies.\n\n`vercel.json` configures `npm ci`, `npm run build`, and static output from `dist/`.\nThe Vercel project is connected to this GitHub repository, with `main` as the production branch.\nTo publish from a linked checkout, run `vercel deploy --prod`. Local Vercel metadata and\nenvironment files are excluded from Git and deployment uploads.\n",
    "tree_paths": [
      ".gitignore",
      ".markdownlint.json",
      ".vercelignore",
      "3D_Engine_Specification.md",
      "AGENTS.md",
      "IMPLEMENTATION_PLAN.md",
      "PLAN_REVIEW.md",
      "PROJECT_STATE.md",
      "README.md",
      "evidence",
      "evidence/environment_review.json",
      "package-lock.json",
      "package.json",
      "scripts",
      "scripts/build-docs.mjs",
      "scripts/serve-docs.mjs",
      "vercel.json",
      "web",
      "web/favicon.svg",
      "web/styles.css"
    ],
    "tree_truncated": false
  },
  {
    "repo": "spencerawlson/AI_Agents_Ecosystem",
    "search_description": "AI agents working toward one goal, making the owner money",
    "created_at": "2026-10-03T16:10:12Z",
    "id": "R_kgDOU6X5Xg",
    "meta": {
      "id": 1403386206,
      "node_id": "R_kgDOU6X5Xg",
      "name": "AI_Agents_Ecosystem",
      "full_name": "spencerawlson/AI_Agents_Ecosystem",
      "private": false,
      "owner": {
        "login": "spencerawlson",
        "id": 189366949,
        "node_id": "U_kgDOC0mCpQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/189366949?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/spencerawlson",
        "html_url": "https://github.com/spencerawlson",
        "followers_url": "https://api.github.com/users/spencerawlson/followers",
        "following_url": "https://api.github.com/users/spencerawlson/following{/other_user}",
        "gists_url": "https://api.github.com/users/spencerawlson/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/spencerawlson/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/spencerawlson/subscriptions",
        "organizations_url": "https://api.github.com/users/spencerawlson/orgs",
        "repos_url": "https://api.github.com/users/spencerawlson/repos",
        "events_url": "https://api.github.com/users/spencerawlson/events{/privacy}",
        "received_events_url": "https://api.github.com/users/spencerawlson/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/spencerawlson/AI_Agents_Ecosystem",
      "description": "AI agents working toward one goal, making the owner money",
      "fork": false,
      "url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem",
      "forks_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/forks",
      "keys_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/teams",
      "hooks_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/hooks",
      "issue_events_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/issues/events{/number}",
      "events_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/events",
      "assignees_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/assignees{/user}",
      "branches_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/branches{/branch}",
      "tags_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/tags",
      "blobs_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/languages",
      "stargazers_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/stargazers",
      "contributors_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/contributors",
      "subscribers_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/subscribers",
      "subscription_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/subscription",
      "commits_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/contents/{+path}",
      "compare_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/merges",
      "archive_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/downloads",
      "issues_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/issues{/number}",
      "pulls_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/labels{/name}",
      "releases_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/releases{/id}",
      "deployments_url": "https://api.github.com/repos/spencerawlson/AI_Agents_Ecosystem/deployments",
      "created_at": "2026-10-03T16:10:12Z",
      "updated_at": "2026-10-04T02:40:44Z",
      "pushed_at": "2026-10-04T02:40:38Z",
      "git_url": "git://github.com/spencerawlson/AI_Agents_Ecosystem.git",
      "ssh_url": "[email protected]:spencerawlson/AI_Agents_Ecosystem.git",
      "clone_url": "https://github.com/spencerawlson/AI_Agents_Ecosystem.git",
      "svn_url": "https://github.com/spencerawlson/AI_Agents_Ecosystem",
      "homepage": null,
      "size": 415,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Python",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# AI Autonomous Micro-Business Ecosystem\n\nA multi-agent software platform that researches, creates, launches, advertises, operates, monitors, and optimizes a portfolio of small online businesses — an AI-powered business factory, not a single automated store.\n\n## Objective\n\nBuild a diversified portfolio generating **$60,000+ USD/month in sustainable net profit**, working backward from that target and reporting progress against it.\n\nThe system runs a continuous lifecycle across many business models (e-commerce, print-on-demand, digital products, micro-SaaS, affiliate/content, B2B services, and others discovered by research):\n\n```\nDiscover → Research → Validate → Build → Launch → Market →\nOperate → Measure → Optimize → Scale or Shut Down → Reinvest\n```\n\n## First milestone\n\nNot $60K. The first engineering/business milestone is:\n\n> Use the platform to identify, create, launch, operate, and optimize **one legitimate business** that generates its **first $1,000 in real customer revenue** with **positive unit economics**.\n\nThen prove it is repeatable.\n\n```\n$0 → First customer → $100 → $1,000 → Positive unit economics →\nSecond business → $1K/mo profit → $5K → $10K → $25K → $60K+\n```\n\n## Watch it work — Simulation Game\n\nA game-like live simulation: launch it and watch the agents work as characters — discovering opportunities, researching, launching businesses, running marketing campaigns, handling support tickets, and reacting to incidents in real time.\n\nOpen the **Simulation Game** artifact to play it.\n\n## Architecture\n\nHierarchical multi-agent system. A central orchestrator coordinates specialized agents. Humans control consequential decisions and capital.\n\n```\n                     HUMAN OWNER\n                          │\n                          ▼\n                 CONTROL / APPROVAL\n                          │\n                          ▼\n                 ORCHESTRATOR (DJINN)\n                          │\n       ┌──────────────────┼──────────────────┐\n       │                  │                  │\n       ▼                  ▼                  ▼\n   DISCOVERY          OPERATIONS          FINANCE\n    AGENTS              AGENTS             AGENTS\n       │                  │                  │\n       └──────────────────┼──────────────────┘\n                          │\n                          ▼\n                 BUSINESS PORTFOLIO\n```\n\nThe orchestrator is an internal privileged decision layer. Stores, customers, and public-facing apps never get direct access to it.\n\n**Core principle:** AI automates execution. Data determines recommendations. Humans control consequential decisions and capital.\n\n## Repository layout\n\n```\n├── orchestrator/     Central decision and coordination engine\n│                     (models, registry, engine, approvals)\n├── agents/           Specialized agents:\n│                       discovery, research, marketing, creative,\n│                       support, operations (+ base framework)\n├── core/             Shared systems:\n│                       registry, ledger, experiments, scoring,\n│                       audit, analytics, reporting, allocation,\n│                       portfolio, memory, predictive, optimization,\n│                       intelligence, integrations, shutdown\n├── dashboard/        Portfolio dashboard (FastAPI + HTML)\n├── infra/            Docker Compose (PostgreSQL 16, Redis 7),\n│                     SQLAlchemy models, Postgres task store\n├── docs/             Architecture, roadmap\n├── examples/         End-to-end pipeline demos\n└── tests/            36 tests, all passing\n```\n\n## Development phases\n\n| Phase | Focus | Status | What's built |\n|-------|-------|--------|--------------|\n| 1 | Business Factory MVP | ✅ Scaffolded + hardened | Orchestrator, agent framework, registry, experiments, ledger, approvals, dashboard, audit, PostgreSQL layer, XSS fix, structured logging, budget enforcement, `pyproject.toml` |\n| 2 | Operations | ✅ Built | Marketing (budget-capped campaigns), support (triage + escalation), creative (versioned assets), operations (incidents), analytics (funnels, cohorts), reporting (P&L, cash flow), integrations (commerce adapter) |\n| 3 | Portfolio Management | ✅ Built | Capital allocator (efficiency-ranked, beats equal-split), cross-business benchmarks, portfolio experiments (global cap), shutdown workflows |\n| 4 | Advanced Intelligence | ✅ Built | Agent memory, predictive opportunity ranking, dynamic pricing, ROAS reallocation, anomaly detection, model routing/cost optimization |\n| 5 | Scale | ⬜ Not started | Infrastructure scale-out only when demand requires it |\n\nSee [docs/roadmap.md](docs/roadmap.md) for the detailed build plan.\n\n## Business lifecycle\n\nEvery business follows a measurable state machine:\n\n```\nDISCOVERED → RESEARCHING → VALIDATED → APPROVED → BUILDING →\nTESTING → LAUNCHED → OPERATING → OPTIMIZING → SCALING / PAUSED →\nMATURE (or TERMINATED)\n```\n\nFailed experiments are documented and terminated; their data stays available so future agents learn from them.\n\n## Key invariants\n\n- **Revenue alone never determines success.** Contribution profit and unit economics decide.\n- **New businesses start as experiments** with fixed budgets, durations, and stop-loss conditions.\n- **Consequential actions require human approval** (spending increases, contracts, fund movements, business deletion).\n- **AI inference is a tracked cost** — an agent spending $1K/mo on a $500/mo business gets flagged.\n- **Every agent action is auditable** — what it did, why, with what data, at what cost, to what effect.\n\n## Quick start\n\n```bash\npip install -e .\npython -m pytest tests/ -q                # 39/39 passing\npython launch.py                          # dashboard → http://0.0.0.0:8000\npython launch.py worker                   # headless agent tick loop\npython launch.py all                      # dashboard + worker together\n```\n\nOpen **http://0.0.0.0:8000/game** for the live game view: agent stations,\nevent feed, portfolio HUD, speed controls (1×/2×/4×), pause, and reset —\nevery tick runs the real orchestrator, agents, ledger, and state machine\nvia the dashboard's JSON API (`/api/snapshot`, `/api/tick`, `/api/reset`).\nNo simulation, no mocks.\n\n`launch.py` commands: `dashboard` (default), `worker`, `all`, `initdb`.\nWorker flags go after `--`: `python launch.py worker -- --ticks 5 --interval 30`.\nAdd `--use-postgres` (with `DATABASE_URL` set) to persist tasks in Postgres\ninstead of the in-memory store.\n\n### Run on a Fedora VM (Proxmox)\n\n```bash\nsudo dnf install -y python3.12 python3-pip git\ngit clone https://github.com/spencerawlson/AI_Agents_Ecosystem.git\ncd AI_Agents_Ecosystem\npython3 -m venv .venv && source .venv/bin/activate\npip install -e . \"uvicorn[standard]\" pytest\npython launch.py all                      # dashboard + worker\n```\n\nThen open `http://<vm-ip>:8000` from your laptop — no desktop needed on the VM.\n\nTo survive reboots, install the systemd user service:\n\n```bash\nmkdir -p ~/.config/systemd/user\ncp deploy/ecosystem.service ~/.config/systemd/user/\n# edit paths in the unit if your checkout lives elsewhere\nsystemctl --user daemon-reload\nsystemctl --user enable --now ecosystem.service\nsudo loginctl enable-linger $USER        # keep running after logout\njournalctl --user -u ecosystem.service -f # logs\n```\n\n### Postgres + Redis (optional)\n\nThe in-memory store is the default. For durable task history:\n\n```bash\ndocker compose -f infra/docker-compose.yml up -d\nexport DATABASE_URL=postgresql://ecosystem:ecosystem@localhost:5432/ecosystem\npython launch.py initdb\npython launch.py all --use-postgres\n```\n\n### Experiment 001 monitor (Etsy)\n\nThe worker automatically checks the live Etsy shop against the experiment\ncharter ($1,000 / 60 days, 84+ orders, stop-loss triggers) every 10 ticks:\n\n```bash\npython launch.py worker -- --monitor-every 5   # check every 5 ticks\npython launch.py worker -- --monitor-once      # single check, then exit\npython launch.py worker -- --monitor-every 0   # disable\n```\n\nStatus is also live at `http://<vm-ip>:8000/experiment-001` on the dashboard.\nOAuth tokens auto-refresh; credentials resolve from `ETSY_*` env vars or\n`~/.config/evergreen-etsy/`. Ad/fee spend isn't visible via the Etsy API —\nrecord it with:\n\n```bash\npython -c \"from ecosystem.etsy_monitor import EtsyMonitor;\nprint(EtsyMonitor.record_spend(10.0, 'Etsy Ads top-up'))\"\n```\n\n### Real LLM inference\n\nAgents run on heuristics by default. With an API key, discovery and\nresearch use real LLM inference (cheap tier), and capital allocation\ngets smart-tier rationales — all fallback-safe (any LLM failure\ndegrades to heuristics, never crashes a tick):\n\n```bash\n# 1. Key: OpenAI dashboard (https://platform.openai.com/api-keys) → Create key\n# 2. On the VM:\nexport OPENAI_API_KEY=\"sk-...\"         # also in ~/.bashrc or the systemd unit\npip install -r requirements.txt      # pulls litellm\npython launch.py worker -- --llm     # force LLM mode\npython launch.py worker -- --no-llm  # force heuristics (default when no key)\n```\n\nEnv overrides: `ECOSYSTEM_CHEAP_MODEL` (default `gpt-6-luna`),\n`ECOSYSTEM_SMART_MODEL` (default `gpt-6.1-sol`).\n`GEMINI_API_KEY` / `ANTHROPIC_API_KEY` also work — the model strings are\nlitellm names, so any provider can be swapped in.\n\nRouting: tier 1–2 tasks (discovery, research) → cheap model; tier 3\n(capital allocation rationales) → smart model. Real token usage and\ncost (via `litellm.completion_cost`) flow through the same budget\nenforcement and Ledger accounting as before — expect **cents per\nhundred ticks** (real inference is ~50–100x cheaper than the old\nheuristic cost rates).\n\n### Real market data\n\nWhen LLM mode is on, prompts are grounded in live market numbers —\nEtsy listing counts + price bands and 12-month Google Trends direction —\nso `why_now` and competitor evidence cite real data instead of guesses:\n\n```bash\npython launch.py worker -- --no-market  # disable (default: ON with LLM)\n```\n\n- **Sources:** Etsy `listings/active` search (reuses the shop's existing\n  OAuth token — no new key; token auto-refreshes on 401) and Google\n  Trends via `pytrends` (keyless).\n- **Discovery** sees a `LIVE MARKET DATA` block for watchlist niches and\n  is instructed to prefer rising trends + healthy price bands.\n- **Research** gets the niche's real competitor count and price band and\n  must use them for `competitor_count` / `price_range_usd`.\n- **Rate limits:** snapshots are TTL-cached per keyword set (1h default),\n  so repeated ticks don't hammer the APIs. If one source fails, the\n  prompt still goes out with the other's data (`partial`); only if both\n  fail does the prompt go data-free. A data failure never crashes a tick.\n\n## Status\n\nPhases 1–4 scaffolded and tested (36/36 passing). Next: pick the first real experiment — one low-capital business, defined budget, KPIs, duration, stop-loss — and run it toward the $1,000 revenue / positive-unit-economics milestone. See [docs/roadmap.md](docs/roadmap.md).\n",
    "tree_paths": [
      ".gitignore",
      "README.md",
      "agents",
      "agents/__init__.py",
      "agents/base.py",
      "agents/creation",
      "agents/creation/__init__.py",
      "agents/creative",
      "agents/creative/__init__.py",
      "agents/creative/agent.py",
      "agents/discovery",
      "agents/discovery/__init__.py",
      "agents/discovery/agent.py",
      "agents/discovery/llm_source.py",
      "agents/finance",
      "agents/finance/__init__.py",
      "agents/marketing",
      "agents/marketing/__init__.py",
      "agents/marketing/agent.py",
      "agents/operations",
      "agents/operations/__init__.py",
      "agents/operations/agent.py",
      "agents/planning",
      "agents/planning/__init__.py",
      "agents/research",
      "agents/research/__init__.py",
      "agents/research/agent.py",
      "agents/research/llm_source.py",
      "agents/review",
      "agents/review/__init__.py",
      "agents/review/agent.py",
      "agents/support",
      "agents/support/__init__.py",
      "agents/support/agent.py",
      "core",
      "core/__init__.py",
      "core/allocation.py",
      "core/analytics.py",
      "core/audit.py",
      "core/etsy_adapter.py",
      "core/experiments.py",
      "core/integrations.py",
      "core/intelligence.py",
      "core/ledger.py",
      "core/llm.py",
      "core/logging.py",
      "core/market_data.py",
      "core/memory.py",
      "core/models.py",
      "core/optimization.py",
      "core/portfolio.py",
      "core/portfolio_experiments.py",
      "core/predictive.py",
      "core/quality.py",
      "core/registry.py",
      "core/reporting.py",
      "core/scoring.py",
      "core/shutdown.py",
      "dashboard",
      "dashboard/app.py",
      "dashboard/static",
      "dashboard/static/game.html",
      "deploy",
      "deploy/ecosystem.service",
      "docs",
      "docs/architecture.md",
      "docs/experiments",
      "docs/experiments/001-etsy-digital-downloads.md",
      "docs/experiments/001-listing-pack.md",
      "docs/first-experiment-charter.md",
      "docs/roadmap.md",
      "ecosystem",
      "ecosystem/__init__.py",
      "ecosystem/etsy_monitor.py",
      "ecosystem/runtime.py",
      "ecosystem/worker.py",
      "examples",
      "examples/discovery_pipeline.py",
      "examples/launch_experiment_001.py",
      "examples/opportunity_pipeline.py",
      "infra",
      "infra/db_models.py",
      "infra/docker-compose.yml",
      "infra/init_db.py",
      "infra/pg_store.py",
      "launch.py",
      "orchestrator",
      "orchestrator/__init__.py",
      "orchestrator/approvals.py",
      "orchestrator/engine.py",
      "orchestrator/models.py",
      "orchestrator/registry.py",
      "pyproject.toml",
      "requirements.txt",
      "tests",
      "tests/test_business.py",
      "tests/test_dashboard.py",
      "tests/test_etsy_monitor.py",
      "tests/test_hardening.py",
      "tests/test_launch.py",
      "tests/test_llm.py",
      "tests/test_market_data.py",
      "tests/test_orchestrator.py",
      "tests/test_phase2.py",
      "tests/test_phase2b.py",
      "tests/test_phase3.py",
      "tests/test_phase4.py",
      "tests/test_quality.py",
      "tests/test_research.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "vannorman/space_attack",
    "search_description": "",
    "created_at": "2026-10-03T02:51:01Z",
    "id": "R_kgDOU5mprw",
    "meta": {
      "id": 1402579375,
      "node_id": "R_kgDOU5mprw",
      "name": "space_attack",
      "full_name": "vannorman/space_attack",
      "private": false,
      "owner": {
        "login": "vannorman",
        "id": 544601,
        "node_id": "MDQ6VXNlcjU0NDYwMQ==",
        "avatar_url": "https://avatars.githubusercontent.com/u/544601?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/vannorman",
        "html_url": "https://github.com/vannorman",
        "followers_url": "https://api.github.com/users/vannorman/followers",
        "following_url": "https://api.github.com/users/vannorman/following{/other_user}",
        "gists_url": "https://api.github.com/users/vannorman/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/vannorman/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/vannorman/subscriptions",
        "organizations_url": "https://api.github.com/users/vannorman/orgs",
        "repos_url": "https://api.github.com/users/vannorman/repos",
        "events_url": "https://api.github.com/users/vannorman/events{/privacy}",
        "received_events_url": "https://api.github.com/users/vannorman/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/vannorman/space_attack",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/vannorman/space_attack",
      "forks_url": "https://api.github.com/repos/vannorman/space_attack/forks",
      "keys_url": "https://api.github.com/repos/vannorman/space_attack/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/vannorman/space_attack/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/vannorman/space_attack/teams",
      "hooks_url": "https://api.github.com/repos/vannorman/space_attack/hooks",
      "issue_events_url": "https://api.github.com/repos/vannorman/space_attack/issues/events{/number}",
      "events_url": "https://api.github.com/repos/vannorman/space_attack/events",
      "assignees_url": "https://api.github.com/repos/vannorman/space_attack/assignees{/user}",
      "branches_url": "https://api.github.com/repos/vannorman/space_attack/branches{/branch}",
      "tags_url": "https://api.github.com/repos/vannorman/space_attack/tags",
      "blobs_url": "https://api.github.com/repos/vannorman/space_attack/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/vannorman/space_attack/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/vannorman/space_attack/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/vannorman/space_attack/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/vannorman/space_attack/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/vannorman/space_attack/languages",
      "stargazers_url": "https://api.github.com/repos/vannorman/space_attack/stargazers",
      "contributors_url": "https://api.github.com/repos/vannorman/space_attack/contributors",
      "subscribers_url": "https://api.github.com/repos/vannorman/space_attack/subscribers",
      "subscription_url": "https://api.github.com/repos/vannorman/space_attack/subscription",
      "commits_url": "https://api.github.com/repos/vannorman/space_attack/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/vannorman/space_attack/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/vannorman/space_attack/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/vannorman/space_attack/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/vannorman/space_attack/contents/{+path}",
      "compare_url": "https://api.github.com/repos/vannorman/space_attack/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/vannorman/space_attack/merges",
      "archive_url": "https://api.github.com/repos/vannorman/space_attack/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/vannorman/space_attack/downloads",
      "issues_url": "https://api.github.com/repos/vannorman/space_attack/issues{/number}",
      "pulls_url": "https://api.github.com/repos/vannorman/space_attack/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/vannorman/space_attack/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/vannorman/space_attack/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/vannorman/space_attack/labels{/name}",
      "releases_url": "https://api.github.com/repos/vannorman/space_attack/releases{/id}",
      "deployments_url": "https://api.github.com/repos/vannorman/space_attack/deployments",
      "created_at": "2026-10-03T02:51:01Z",
      "updated_at": "2026-10-03T21:07:52Z",
      "pushed_at": "2026-10-03T21:07:49Z",
      "git_url": "git://github.com/vannorman/space_attack.git",
      "ssh_url": "[email protected]:vannorman/space_attack.git",
      "clone_url": "https://github.com/vannorman/space_attack.git",
      "svn_url": "https://github.com/vannorman/space_attack",
      "homepage": null,
      "size": 5517,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": true,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": null,
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Space Attack \nThis project was built in about 1.5 hours using Codex GPT-6.1 Sol Light in VSCode. All assets, code, game logic, etc. was built using AI and no manual tweaks were made other than prompts.\n\nHere is a playable demo: [Space Attack](https://vannorman.github.io/space_attack/)\n\n## Methodology\nAs a veteran game developer I found it most productive to dump a stream of consciousness into a single large prompt to get the project started, which I felt would cover all the basics like intro screen, player control, collision detection, levels/waves, weapons and bullets, difficulty curve, etc. I've found that with modern AI (as of Oct 2026) it does a great job of building a typical simple project with a large prompt like this. I set everything to be rendered on a canvas so that drawing and updating the game could be done in the most straightforward way (no divs or css to keep track of).\n\nMy plan was to start here, add a lot of variables to tweak, then possibly even add a tweak editing interface to the game itself so that I could change things like speed, enemy count, behaviors etc in real time so I could converge on an ideal game experience / game loop. However, due to restricted time I skipped this and simply played the game myself, took notes, fed those notes back into the model, and I did this 3 times in total to get the end result. \n\n## Opinion of AI quality\nI was blown away by how effective GPT 6.1 Sol Light (its lowest setting) was at creating this html/javascript space shooter, including png graphics, particles, and \n\nMost impressive of all was it harnessing the built-in window.AudioContext for creating synth sounds like sine, saw, etc, then combining those for music. I've actually got the game music stuck in my head as I write this!\n\nAs the AI built the app it move outside the boundary of the happy path a few times; things like \"n to mute\", \"click to hear title music\" which I didn't want; enemies that were too easy, moved too much, and other small tweaks; ship tilted the wrong way during moving; virtual doors closing between levels was much too fast; etc. But these were extremely minor and honestly, any game development project requires a ton of iteration on dozens or hundreds of tiny tweaks like these.\n\nOverall this project has underscored my confidence in my prompting/AI gen/iteration cycle. At 1.5 hours some of the biggest barriers to production became my literal typing speed (approx 70 wpm) and the thinking speed of the model (each of my 3 prompts took between 3 - 7 minutes to complete). \n\nWe're getting close to being able to move at the speed of thought, which is, quite frankly, insane, and pretty awesome.\n\n## What I'd change about this game next\nI'd use ES6/import module architecture, then I'd abstract and import all the components including consts, Synth, Player (collect/fire/damage/health/etc), Particles, and Game management into their own classes. \n\nThe end result should be a master game.js file which imports everything and organizes up the high level setup/execution of the game for easy parsing/maintainability.\n\n## Prompts\nHere are the prompts I used.\n\n### Prompt 1\nOverall game architecture and prototype.\n```\nbuild a 3-page app including html, js and css. it will be a 2d top down shooting game where the player controls a ship with wasd and arrow keys. ship starts at the bottom, and enemies come from the top. the background is procedurally generated space with 3 sets of parallax white or white-gray stars with the occasional planet scrolling down from the top. before the game starts, a title page appears with the name in large letter and the instructions. Press wasd or arrow key or space to start. Everything, including text, is rendered via html canvas which renders in 9:5 aspect ratio in the full browser page. once started, lives are represented at the top left with an icon of a blocky red, gray and blue ship, where gray is the dominant color. the ship has two cannons represented by vertical bars on the edge of the ship. firing results in a bullet fired from each cannon traveling upwards at a modest speed. hodling the fire button (space) fires at a constant rate determined by the player's current upgrade level, starting at 0 with a delay of 0.3s between each shot. as enemies appear from the top they appear in a grid and emerge from the top of the screen, starting completely off screen. enemies and the player are both about 10% page height in scale. as enemies come down from the top in a grid, the grid is sparsely populated in a 6 x 3 offset hexagonal grid. enemy ships are procedurally generated per wave out of circles, boxes, and triangles in the colors red, green, purple, and light blue. as the game progresses, a level difficulty meter ticks up over the course of each wave. Once a wave is completed, the difficulty meter ticks up as a float, starting at 0.0 where enmies move slowly and do not fire. difficulty ticks up at 0.1 per wave until the boss level, and each level is comprised of 3 waves + math.floor difficulty. after each wave, a virtual metal door closes from the bottom and top of the screen and once closed, text appears showing your stats. press any key to continue, then the doors open and the wave advances by 1 and difficulty by 0.1. After the number of waves is completed for this level, the final wave is a boss ship which will be a single ship of size 20% + 5% + difficulty floor. the boos ship moves mores slowly and does not appear from the top, but is already on screen when the wave starts. regular enemies have hit points of 10 + floor difficulty x 3, and each bullet does 1 damage. explosions are rendered procedurally and appear as particles; the game will have a particle system which can render particles after player rockets (when acquired) and after enemy rockets fire as a smoke trail, and for explosions. smoke is mostly gray fading to black and growing larger as a smoke trail, and explosions are dominantly red and white which fade to black as the particles grow. make sure all constants determining things like wave progression, difficulty progression, ship size, particle definitions, enemy ship definitions, etc are consts at the top of the file for easy visibility and tweaking. we will also be using procedurally generated sounds in the html window; sounds can be 8-bit sounding and should inculde simple music, bullet firing sounds, bullet impact sounds, explosions. soudns will also include music, which will have various themes of long funky bass lines, slow tempo pop drums, and arpaggios and occasional synth style solos. the player may control their ship all across the screen and when they contact an enemy bullet they lose 1 + difficulty mod health, and if player collides with an enemy ship or boss ship health takes a 10 * difficulty modifier hit. ship hit points start at 100 and are represented by a thin pale white circular shield around the ship which turns orange and red when health dips below 50% and 10%. When player dies the virtual doors close and the wave restarts and ship life counter ticks down. it starts at 3 and when it reaches -1 the doors close with game over message and press any key to restart. the game also has pickups which are spawned randomly and float down from the top, randomly from enemies + some difficulty modifier chance, and bosses always spawn 3 + difficulty + random chance items. items include missiles, bombs, weapon upgrades, shields, and extra life. missiles, when acquired, give the player the ability to push m to fire missiles, which do 10 damage each. missile packs are acquired when the palyer touches them and a sound is played. missile packs contain 1 -3 missiles. bombs may also be acquired, when acquired player can press b to drop a bomb which moves slowly to the center of the screen until it explodes, causing explosion particles across the entire map and 5 damage per every 10% width square of the page. This means that boss ships which take up more area are more affected by bombs and will take more damage. All ships, including player, enemy, and boss smoke once they reach 50% and 15% health, with more smoke appearing with more damage. when shield items are picked up by player, their health circle bar is replenished by 50%. If health is full, shield pickups allow for up to 300% health; each successive 100% is represented by an additional concentric ring outside the original ring. weapon upgrade pickups add an addiitonal vertical gun to the side of the player's ship, and player can have a maximum of 3 guns on each side. Each gun fires bullets the same way. there is also a different style weapon upgrade pickup which increases the rate of fire. all pickups, incluidng bombs, weapon upgrade, missles, and rate of fire upgrade are represented with icons and a large number next to the icon representing count along the top of the screen. Ask clarifying questions before creating the entire game.\n\nCodex: Before I build it, please clarify:\n1. Does “3-page app” mean three files (index.html, style.css, game.js) or three separate HTML pages? I suggest three files with all screens rendered in the canvas.\n2. What title and visual style would you like? Default: Starfall, with crisp pixel-style ships.\n3. Are these difficulty formulas suitable?\n   - Bullet damage: 1 + floor(difficulty)\n   - Collision damage: 10 × (1 + difficulty)\n   - Boss height: 25% + 5% × floor(difficulty), capped at 60%\n\nMe: 3 files, html, css, and js.\nvisual style, sure let's go with starfall.\nyes, defaults acceptable.\n\n```\n\n### Prompt 2\nSignificant tweaks to features, game progression, and assets.\n``` \nI played the game and everything is working as expected. I noted the following tweaks that need to be made. review each one and consider if implementing them is straightforward. If it is, go ahead and do it. If not, ask any clarifying questions needed before implementing it.\nHere are all the tweaks you're to make:\nship designs are too geometrical and boring. generate pngs for the player ship, enemy ships, and boss ships, and use those instead of the shapes that are currently used. don't delete the shapes code, but comment it out with a note \"moved to pngs\". Include 5 pngs total for the player ship to include left/right animation.\ntop bar is too boring. use generated stylized Starfall pngs for each icon.\nbackground is too boring. include more variety in the planets, space stations, satellites, and other space objects. they should remain sparse as they are.\nboulders/asteroids should fall from the top of the screen sometimes randomly according to difficulty (none on first 3 waves). boulders damage for 50.\nthere are 4 different music tracks. the existing track is perfect. Add a new track for the beginning of the game; more anthem, more trumpet sounding, more pre-war. Add a new track for the doors closing, music should change during door close animation; downtempo lower tones. Finally, add a track for game over, a sad, slightly whiney downtempo low defeat sound that doesn't loop but runs for 10 seconds before ending.\nm - missiles needs to change; use f for missiles instead.\nenemy bullets don't hurt enough. start out with a higher damage to player ship per bullet\nenemy attacks should evolve over time, with a different color/style per attack type. none, straight bullets, angled bullets, homing bullets, missiles, burst of bullets, double bullets, faster bullets. mix and match different enemy weapon types. enemy weapon type progression with wave/level are randomized according to a seed. There should be 10+ in total and each wave they have a different one. They can repeat, and the same enemy weapon can appear with stronger upgrades.\nincrease player ship damage when colliding\nspace to resume, not ESC\npickup sound should be more hype\nneed sound for impact with another ship/damage\nmore enemies, smaller enemies,\nenemies dance (move/jerk up, down, left, right in time with music)\n- different enemies have differnet dance patterns\n- enemies should be animated like they have ",
    "tree_paths": [
      ".DS_Store",
      "README.md",
      "assets",
      "assets/boss-1.png",
      "assets/boss-2.png",
      "assets/boss-3.png",
      "assets/boss-4.png",
      "assets/boss.png",
      "assets/enemy-0.png",
      "assets/enemy-1.png",
      "assets/enemy-2.png",
      "assets/enemy-3.png",
      "assets/icon-bomb.png",
      "assets/icon-guns.png",
      "assets/icon-life.png",
      "assets/icon-missile.png",
      "assets/icon-rate.png",
      "assets/icon-shield.png",
      "assets/player-0.png",
      "assets/player-1.png",
      "assets/player-2.png",
      "assets/player-3.png",
      "assets/player-4.png",
      "assets/prompts.json",
      "game.js",
      "index.html",
      "notes.txt",
      "screenshots",
      "screenshots/Screenshot 2026-10-03 at 10.05.56 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.06.10 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.06.19 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.06.29 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.06.34 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.06.40 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.07.10 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.07.11 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.07.25 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.07.32 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.08.25 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.08.30 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.08.38 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.08.45 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.08.53 AM_converted.jpg",
      "screenshots/Screenshot 2026-10-03 at 10.09.00 AM_converted.jpg",
      "style.css"
    ],
    "tree_truncated": false
  },
  {
    "repo": "7324136828/3d-pinball-rebuild",
    "search_description": "An NPM Version of 3D PinBall with customized map creator (build with Space Bunny Alpha and GPT-6.1 Sol)",
    "created_at": "2026-10-03T16:06:29Z",
    "id": "R_kgDOU6Xp7g",
    "meta": {
      "id": 1403382254,
      "node_id": "R_kgDOU6Xp7g",
      "name": "3d-pinball-rebuild",
      "full_name": "7324136828/3d-pinball-rebuild",
      "private": false,
      "owner": {
        "login": "7324136828",
        "id": 135540271,
        "node_id": "U_kgDOCBQuLw",
        "avatar_url": "https://avatars.githubusercontent.com/u/135540271?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/7324136828",
        "html_url": "https://github.com/7324136828",
        "followers_url": "https://api.github.com/users/7324136828/followers",
        "following_url": "https://api.github.com/users/7324136828/following{/other_user}",
        "gists_url": "https://api.github.com/users/7324136828/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/7324136828/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/7324136828/subscriptions",
        "organizations_url": "https://api.github.com/users/7324136828/orgs",
        "repos_url": "https://api.github.com/users/7324136828/repos",
        "events_url": "https://api.github.com/users/7324136828/events{/privacy}",
        "received_events_url": "https://api.github.com/users/7324136828/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/7324136828/3d-pinball-rebuild",
      "description": "An NPM Version of 3D PinBall with customized map creator (build with Space Bunny Alpha and GPT-6.1 Sol)",
      "fork": false,
      "url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild",
      "forks_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/forks",
      "keys_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/teams",
      "hooks_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/hooks",
      "issue_events_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/issues/events{/number}",
      "events_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/events",
      "assignees_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/assignees{/user}",
      "branches_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/branches{/branch}",
      "tags_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/tags",
      "blobs_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/languages",
      "stargazers_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/stargazers",
      "contributors_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/contributors",
      "subscribers_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/subscribers",
      "subscription_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/subscription",
      "commits_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/contents/{+path}",
      "compare_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/merges",
      "archive_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/downloads",
      "issues_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/issues{/number}",
      "pulls_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/labels{/name}",
      "releases_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/releases{/id}",
      "deployments_url": "https://api.github.com/repos/7324136828/3d-pinball-rebuild/deployments",
      "created_at": "2026-10-03T16:06:29Z",
      "updated_at": "2026-10-04T02:08:33Z",
      "pushed_at": "2026-10-03T17:55:38Z",
      "git_url": "git://github.com/7324136828/3d-pinball-rebuild.git",
      "ssh_url": "[email protected]:7324136828/3d-pinball-rebuild.git",
      "clone_url": "https://github.com/7324136828/3d-pinball-rebuild.git",
      "svn_url": "https://github.com/7324136828/3d-pinball-rebuild",
      "homepage": "",
      "size": 1443,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "JavaScript",
      "has_issues": true,
      "has_projects": true,
      "has_downloads": false,
      "has_wiki": true,
      "has_pages": false,
      "has_discussions": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 0,
      "license": {
        "key": "apache-2.0",
        "name": "Apache License 2.0",
        "spdx_id": "Apache-2.0",
        "url": "https://api.github.com/licenses/apache-2.0",
        "node_id": "MDc6TGljZW5zZTI="
      },
      "allow_forking": true,
      "is_template": false,
      "web_commit_signoff_required": false,
      "has_pull_requests": true,
      "pull_request_creation_policy": "all",
      "topics": [],
      "visibility": "public",
      "forks": 0,
      "open_issues": 0,
      "watchers": 0,
      "default_branch": "main",
      "permissions": {
        "admin": false,
        "maintain": false,
        "push": false,
        "triage": false,
        "pull": true
      },
      "temp_clone_token": "",
      "network_count": 0,
      "subscribers_count": 0
    },
    "readme": "# Modern 3D Pinball\n\nA playable React application using the preserved Space Cadet JavaScript engine,\nwith a Python FastAPI service and persistent SQLite rankings. The frontend owns\nthe simulation, Three.js table, keyboard/touch input, sound, and game lifecycle.\nPython serves the original readable table data, creates game sessions, and saves\nthe final scores when all players finish their game.\n\n`original-project/` is preserved as the reference implementation. It contains\nJavaScript rather than Python; the new Python backend adapts its table data and\nadds the ranking service rather than duplicating the physics in another language.\n\nRuntime table data lives in `assets/table.json` at the repository root. The backend\nserves this standalone copy through `/api/table`; running the app does not require\nreading assets from `original-project/`.\n\n## Screenshots\n\nDesktop gameplay:\n\n![Modern 3D Pinball desktop gameplay](screenshot/desktop-gameplay.png)\n\nPersistent score rankings:\n\n![Modern 3D Pinball rankings](screenshot/rankings.png)\n\nMobile gameplay with touch controls:\n\n<img src=\"screenshot/mobile-gameplay.png\" alt=\"Modern 3D Pinball mobile gameplay\" width=\"320\" />\n\nThese screenshots show the running application. Ranking entries are sample\nscores created in an isolated temporary database for the captures.\nAfter setup, regenerate the images with `python tools/capture_screenshots.py`.\n\n## Quick start\n\nWindows:\n\n```powershell\n.\\setup.bat\n.\\run.bat\n```\n\nLinux/macOS:\n\n```bash\nbash setup.sh\nbash run.sh\n```\n\nInstall Python 3.10+, Node.js 20.19+, and npm 10+ (Node.js 24 is used in CI). Setup creates\nand reuses this repository's `.venv`, installs the Python dependencies, and uses\nthe npm lockfiles to install frontend and browser-test dependencies. It creates\n`.env` from `.env.example` only if `.env` does not already exist. No activation\ncommand is needed, even if another Python environment is active.\n\nOpen the frontend URL printed by the runner, enter player names, and start a\ngame. The table supports one to four players taking turns. Finish all balls to\nsave the scores and receive your leaderboard positions. Closing the browser or\nrestarting a game abandons that game without publishing a partial score.\n\nThe default backend and frontend ports are `8000` and `5173`. The runner checks\nboth ports before launch and advances to the next available port when needed.\nIt prints the actual URLs selected for the session. Press Ctrl+C in the runner\nterminal to stop both services and their child processes.\n\n| Action | Keyboard |\n| --- | --- |\n| Left flipper | Z or Left arrow |\n| Right flipper | Slash or Right arrow |\n| Launch | Hold Space, then release |\n| Nudge | X, period, or Up arrow |\n| Pause/resume | P or Escape |\n| New game | N or F2 |\n\nOn-screen hold/release buttons work on touch devices. Sound and camera controls\nare available beside the table. Leaving the window pauses the game.\n\n## Built application\n\n```powershell\n.\\run.bat --production\n```\n\n```bash\nbash run.sh --production\n```\n\nThis builds `frontend/dist/` and starts one FastAPI service that serves both the\nbuilt React app and `/api` on the backend port, with reload disabled. Vite's\ndevelopment server is used only by the development runner. See the official\n[Vite deployment guide](https://vite.dev/guide/static-deploy.html) for the build\noutput and [FastAPI static files guide](https://fastapi.tiangolo.com/tutorial/static-files/)\nfor serving static assets.\n\nFor a server with an existing build, set `PINBALL_STATIC_DIR=frontend/dist` and\nrun the virtual environment's Python with:\n\n```bash\npython -m uvicorn backend.app.main:app --host 127.0.0.1 --port 8000\n```\n\nPlace a public deployment behind your HTTPS reverse proxy, and keep the database\non persistent local storage. Back up SQLite using its backup API or stop the\nservice before copying its database and WAL files. There is no login system:\nnames identify entries rather than verified accounts. Scores are reported by\nthe browser; validation and idempotent submissions prevent malformed or duplicate\nrecords, but this is a casual leaderboard, not an authoritative anti-cheat service.\n\n## Configuration\n\nCopy `.env.example` to `.env` to customize the preferred ports, bind address,\nor database path. Environment variables already defined in the terminal take\nprecedence over values in `.env`.\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `BACKEND_PORT` | `8000` | First backend port to try |\n| `FRONTEND_PORT` | `5173` | First frontend port to try |\n| `BACKEND_HOST` | `127.0.0.1` | Backend bind address |\n| `PINBALL_DB_PATH` | `data/pinball.db` | Persistent SQLite database; relative to repository root |\n| `CORS_ORIGINS` | Local frontend origins | Comma-separated permitted browser origins |\n| `PINBALL_STATIC_DIR` | Unset | Serve a prebuilt frontend directory; set by production runner |\n| `PINBALL_SESSION_TTL_SECONDS` | `86400` | Active-session lifetime; configurable from 60 seconds to seven days |\n\nThe development runner sets the Vite API proxy to the actual selected backend\nport. To launch Vite separately, set `BACKEND_URL` to the Python service URL.\nLocal `.env` files, `.venv`, npm dependencies, build artifacts, and runtime\ndatabases are ignored by Git. No external API keys are required.\n\n## API\n\n| Method | Path | Behavior |\n| --- | --- | --- |\n| `GET` | `/api/health` | Backend health check |\n| `GET` | `/api/table` | Read the original table geometry and gameplay attributes |\n| `POST` | `/api/games` | Start a session with `{\"player_names\":[\"Cadet\"]}` |\n| `POST` | `/api/games/{id}/complete` | Save `{\"scores\":[12000],\"duration_ms\":60000}` |\n| `GET` | `/api/leaderboard?limit=10&offset=0` | Read scores, competition ranks, and total entry count |\n\nTied scores share a rank (for example 1, 1, 3), with deterministic ordering inside\na tie. SQLite transactions atomically save every player in a game. Retrying an\nidentical completed submission returns the existing result; changing its scores\nreturns a conflict. Rankings survive application restarts. Active sessions expire\nafter 24 hours by default; completed results remain available.\n\nInteractive API documentation is available at the backend `/docs` URL.\n\n## Tests and build\n\n```powershell\n.venv\\Scripts\\python.exe -m unittest discover -s backend\\tests -v\n.venv\\Scripts\\python.exe -m unittest discover -s tests -v\nnode --test original-project/tests/*.test.mjs\npython tools/check_secrets.py\ncd frontend\nnpm run typecheck\nnpm test\nnpm run build\ncd ..\\e2e\nnpm run typecheck\nnpm test\n```\n\nOn Unix, use `.venv/bin/python` for the Python checks. The Playwright suite starts\nFastAPI and Vite automatically and uses an isolated system-temp SQLite database,\nthen deletes it. It exercises gameplay controls, game-over submission, persistence,\nretries, multiplayer, and mobile layout. Tests use Microsoft Edge locally on\nWindows/Linux when available, and WebKit on macOS. For bundled Chromium instead,\nrun `npm run install:chromium` in `e2e` and set `PLAYWRIGHT_BROWSER=chromium`.\n\nOn a fresh macOS checkout, install the WebKit browser once before running the\ntests:\n\n```bash\ncd e2e\nnpm run install:webkit\n```\n\n## Project layout\n\n```text\noriginal-project/         Preserved JavaScript engine, table data, and regression tests\nassets/                   Standalone runtime table data served by the backend\nbackend/app/              FastAPI routes, configuration, schemas, table adapter, SQLite store\nbackend/tests/            API, ranking, concurrency, and persistence checks\nfrontend/src/             React shell, API client, game lifecycle and controls\nfrontend/src/pinball/      Adapted engine, Three.js renderer, and synthesized sound\ne2e/                      Playwright checks with an isolated temporary database\ntests/                    Cross-platform setup and process orchestration checks\ndata/                     Default persistent ranking database location (database ignored)\ntools/check_secrets.py    Credential pattern audit that prints locations only\nsetup.py / setup.*        Project virtual environment and dependency installation\nrun.py / run.*            Development and built-application runners\n```\n\nThe frontend adapter tests also exercise real multiplayer ball drains through\nthe original engine's game-over timers. Browser control hooks are enabled only\nin development with `VITE_ENABLE_TEST_HOOKS=1`; production builds omit them.\n\nThe local productionization standard's PDF uploads, conversion ZIPs, and scratch\njob directories are specific to converters. This game has no upload/conversion\npipeline. Durable ranking data belongs in SQLite; temporary test databases use\nthe operating system temp folder. A repeatable source credential audit is in\n`secrets.md`. The CI workflow runs on Ubuntu.\n\nSee [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) and the preserved source's\n[provenance](original-project/PROVENANCE.md) for engine and table attribution.\n",
    "tree_paths": [
      ".env.example",
      ".gitattributes",
      ".github",
      ".github/workflows",
      ".github/workflows/ci.yml",
      ".gitignore",
      ".prompt",
      ".prompt/prompt.md",
      "LICENSE",
      "README.md",
      "THIRD_PARTY_NOTICES.md",
      "assets",
      "assets/README.md",
      "assets/table.json",
      "backend",
      "backend/__init__.py",
      "backend/app",
      "backend/app/__init__.py",
      "backend/app/config.py",
      "backend/app/main.py",
      "backend/app/schemas",
      "backend/app/schemas/__init__.py",
      "backend/app/schemas/game.py",
      "backend/app/services",
      "backend/app/services/__init__.py",
      "backend/app/services/original_project.py",
      "backend/app/store.py",
      "backend/requirements.txt",
      "backend/tests",
      "backend/tests/__init__.py",
      "backend/tests/test_pinball.py",
      "data",
      "data/.gitkeep",
      "e2e",
      "e2e/capture-screenshots.mjs",
      "e2e/package-lock.json",
      "e2e/package.json",
      "e2e/playwright.config.ts",
      "e2e/teardown.ts",
      "e2e/tests",
      "e2e/tests/pinball.spec.ts",
      "e2e/tsconfig.json",
      "frontend",
      "frontend/index.html",
      "frontend/package-lock.json",
      "frontend/package.json",
      "frontend/public",
      "frontend/public/attribution.html",
      "frontend/public/licenses",
      "frontend/public/licenses/PROVENANCE.md",
      "frontend/public/licenses/React-MIT.txt",
      "frontend/public/licenses/ReactDOM-MIT.txt",
      "frontend/public/licenses/SpaceCadet-MIT.txt",
      "frontend/public/licenses/Three-MIT.txt",
      "frontend/src",
      "frontend/src/App.tsx",
      "frontend/src/components",
      "frontend/src/components/Leaderboard.tsx",
      "frontend/src/components/Playfield.tsx",
      "frontend/src/main.tsx",
      "frontend/src/pinball",
      "frontend/src/pinball/LICENSE",
      "frontend/src/pinball/PROVENANCE.md",
      "frontend/src/pinball/audio.d.ts",
      "frontend/src/pinball/audio.js",
      "frontend/src/pinball/engine.d.ts",
      "frontend/src/pinball/engine.js",
      "frontend/src/pinball/game",
      "frontend/src/pinball/game/components.js",
      "frontend/src/pinball/game/control.js",
      "frontend/src/pinball/game/loader.js",
      "frontend/src/pinball/game/math.js",
      "frontend/src/pinball/game/nudge.js",
      "frontend/src/pinball/game/physics.js",
      "frontend/src/pinball/game/strings.js",
      "frontend/src/pinball/game/table.js",
      "frontend/src/pinball/game/timers.js",
      "frontend/src/pinball/renderer.d.ts",
      "frontend/src/pinball/renderer.js",
      "frontend/src/services",
      "frontend/src/services/api.ts",
      "frontend/src/styles.css",
      "frontend/src/vite-env.d.ts",
      "frontend/tests",
      "frontend/tests/adapter.test.mjs",
      "frontend/tsconfig.app.json",
      "frontend/tsconfig.json",
      "frontend/tsconfig.node.json",
      "frontend/vite.config.ts",
      "run.bat",
      "run.py",
      "run.sh",
      "screenshot",
      "screenshot/desktop-gameplay.png",
      "screenshot/mobile-gameplay.png",
      "screenshot/rankings.png",
      "secrets.md",
      "setup.bat",
      "setup.py",
      "setup.sh",
      "skill",
      "skill/.gitignore",
      "skill/productionization",
      "skill/productionization/SKILL.md",
      "skill/productionization/skills.md",
      "tests",
      "tests/test_launchers.py",
      "tools",
      "tools/capture_screenshots.py",
      "tools/check_secrets.py"
    ],
    "tree_truncated": false
  },
  {
    "repo": "aurora-03/game_studio",
    "search_description": "",
    "created_at": "2026-10-03T13:19:48Z",
    "id": "R_kgDOU6MJVg",
    "meta": {
      "id": 1403193686,
      "node_id": "R_kgDOU6MJVg",
      "name": "game_studio",
      "full_name": "aurora-03/game_studio",
      "private": false,
      "owner": {
        "login": "aurora-03",
        "id": 174860215,
        "node_id": "U_kgDOCmwntw",
        "avatar_url": "https://avatars.githubusercontent.com/u/174860215?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/aurora-03",
        "html_url": "https://github.com/aurora-03",
        "followers_url": "https://api.github.com/users/aurora-03/followers",
        "following_url": "https://api.github.com/users/aurora-03/following{/other_user}",
        "gists_url": "https://api.github.com/users/aurora-03/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/aurora-03/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/aurora-03/subscriptions",
        "organizations_url": "https://api.github.com/users/aurora-03/orgs",
        "repos_url": "https://api.github.com/users/aurora-03/repos",
        "events_url": "https://api.github.com/users/aurora-03/events{/privacy}",
        "received_events_url": "https://api.github.com/users/aurora-03/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "html_url": "https://github.com/aurora-03/game_studio",
      "description": null,
      "fork": false,
      "url": "https://api.github.com/repos/aurora-03/game_studio",
      "forks_url": "https://api.github.com/repos/aurora-03/game_studio/forks",
      "keys_url": "https://api.github.com/repos/aurora-03/game_studio/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/aurora-03/game_studio/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/aurora-03/game_studio/teams",
      "hooks_url": "https://api.github.com/repos/aurora-03/game_studio/hooks",
      "issue_events_url": "https://api.github.com/repos/aurora-03/game_studio/issues/events{/number}",
      "events_url": "https://api.github.com/repos/aurora-03/game_studio/events",
      "assignees_url": "https://api.github.com/repos/aurora-03/game_studio/assignees{/user}",
      "branches_url": "https://api.github.com/repos/aurora-03/game_studio/branches{/branch}",
      "tags_url": "https://api.github.com/repos/aurora-03/game_studio/tags",
      "blobs_url": "https://api.github.com/repos/aurora-03/game_studio/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/aurora-03/game_studio/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/aurora-03/game_studio/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/aurora-03/game_studio/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/aurora-03/game_studio/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/aurora-03/game_studio/languages",
      "stargazers_url": "https://api.github.com/repos/aurora-03/game_studio/stargazers",
      "contributors_url": "https://api.github.com/repos/aurora-03/game_studio/contributors",
      "subscribers_url": "https://api.github.com/repos/aurora-03/game_studio/subscribers",
      "subscription_url": "https://api.github.com/repos/aurora-03/game_studio/subscription",
      "commits_url": "https://api.github.com/repos/aurora-03/game_studio/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/aurora-03/game_studio/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/aurora-03/game_studio/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/aurora-03/game_studio/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/aurora-03/game_studio/contents/{+path}",
      "compare_url": "https://api.github.com/repos/aurora-03/game_studio/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/aurora-03/game_studio/merges",
      "archive_url": "https://api.github.com/repos/aurora-03/game_studio/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/aurora-03/game_studio/downloads",
      "issues_url": "https://api.github.com/repos/aurora-03/game_studio/issues{/number}",
      "pulls_url": "https://api.github.com/repos/aurora-03/game_studio/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/aurora-03/game_studio/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/aurora-03/game_studio/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/aurora-03/game_studio/labels{/name}",
      "releases_url": "https://api.github.com/repos/aurora-03/game_studio/releases{/id}",
      "deployments_url": "https://api.github.com/repos/aurora-03/game_studio/deployments",
      "crea

File truncated at 1 MB.