Skip to content

About

[16/16 · Flutter Studio] 🤖 Zero-secret bootstrap kit: any AI agent clones this and connects to GitHub in one step (OAuth device flow).

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

agent-bootstrap

Zero-secret GitHub App connector (OAuth Device Flow + shared non-expiring fleet vault) and fast, minimal tooling + prompts for Single Agent, Captain, and Workers working on Keshab1997 repositories.

  • Account: Keshab1997
  • GitHub App: keshab-flutter-assistant (client_id: Iv23lieh6Kastc59yOsf)
  • Zero dependencies: Python 3 stdlib only, zero secrets in this repo.

Repo layout

File Purpose
gh_app.py GitHub App Device Flow connector + shared fleet vault + workspace secrets mirror
device_pair.py Poll a saved device code + auto-sync fleet vault & .pem in one shot
fast.py 1-command repo clone/repair (fast.py repo) + secret-guarded auto-retry rebase/push (fast.py push)
ci_dispatch.py In-process GitHub Actions CI dispatch (--watch --logs) and quick latest-run check (--last --logs)
app-meta.json Public GitHub App metadata (client_id, app_id, installation_id, endpoints)
setup.sh One-shot shell bootstrap (--with-flutter optional)
selftest.py Offline regression suite (fake tokens + local bare git fixtures)
AGENT_PROMPT.md Paste-ready prompt for a single fast agent
CAPTAIN_PROMPT.md Paste-ready prompt for the Captain (splits by file, pipelines workers, owns CI)
WORKER_PROMPT.md Paste-ready prompt for each Worker (Device Flow, owns assigned files, verifies, pushes main)

Quick start

1) Single agent (fastest for one-person tasks)

Paste AGENT_PROMPT.md into a chat and give the task.

2) Captain + Workers (parallel, zero bureaucracy)

  1. Open one Captain chat → paste CAPTAIN_PROMPT.md.
  2. Open 1–3 Worker chats → paste WORKER_PROMPT.md in each.
  3. Every agent pairs via Device Flow (gh_app.py connect --show-only → device_pair.py poll 60) and automatically joins the shared non-expiring fleet vault (Keshab1997/agent-bootstrap-vault).
  4. Tell the Captain the goal → Captain splits by disjoint files and gives you one short paste block per worker.
  5. Paste each block into its Worker chat → Workers verify locally and run fast.py push (secret guard + preflight + auto-retry rebase/push to main).
  6. Paste each short DONE reply back to Captain → Captain immediately feeds that worker its next task, integrates glue, and runs one CI check via ci_dispatch.py.

Everyday commands

# Auth & fleet vault
python3 gh_app.py connect --show-only          # reuse -> refresh -> fleet recover -> code only if needed
python3 device_pair.py poll 60                 # approve -> saves token + auto-joins fleet vault & .pem
python3 gh_app.py status                       # health check (never starts a device flow)
python3 gh_app.py fleet status                 # verify shared fleet vault link

# Fast repo sync & race-safe push to main
python3 fast.py repo <repo>                    # fast clone / auto-repair .git/config / pull latest main
python3 fast.py push <repo> -m "feat(x): ..." -- path/a.dart test/a_test.dart

# CI (Captain / standalone agent; workers never run CI)
python3 ci_dispatch.py Keshab1997/<repo> --watch 900 --logs
python3 ci_dispatch.py Keshab1997/<repo> --last --logs
  • Never use --force or copy secrets/ manually — tokens and the App .pem key sync automatically via /home/user/workspace/captain_secrets and the private fleet vault (Keshab1997/agent-bootstrap-vault).

Offline selftest

python3 selftest.py

About

[16/16 · Flutter Studio] 🤖 Zero-secret bootstrap kit: any AI agent clones this and connects to GitHub in one step (OAuth device flow).

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages