Imported from CaptainPhantasy/MEGAFLOYD (
AGENTS.md). Install upstream withnpx skills add CaptainPhantasy/MEGAFLOYD. Copyright stays with the author.
MegaFloyd — root agent guide
Two halves in one repo; there is no root manifest. Run TS commands in floyd-code/ (pnpm) and Go commands in floyd-go/ (go/task). Follow the nearest subdirectory AGENTS.md for half-specific rules (floyd-code/AGENTS.md, floyd-go/AGENTS.md, floyd-go/internal/ui/AGENTS.md).
Isolation and secrets
- Never point this project at
~/.floyd7,~/.floyd-ff,~/.floyd-code, or~/.floyd-10x; merged home is~/.megafloyd. - Do not copy credential files from any existing install.
.env*,credentials,*.db*are gitignored. - Do not push secrets or generated release/install products. The intentional
committed web runtime includes
floyd-code/apps/floyd-code/dist-webplus the existingdist/main.mjsanddist/search-worker.mjsin that same app. Keep these runtime files and their source changes together so a fresh clone can start the web interface.
Prompt pack (one source of truth)
- Canonical:
docs/prompt-pack/templates/(+docs/prompt-pack/prompt.go.reference). - Derived copy:
floyd-go/internal/agent/templates/andfloyd-go/internal/agent/prompt/prompt.go— never edit directly; regenerate withnode scripts/verify-prompt-pack.mjs --sync. - Verify with
node scripts/verify-prompt-pack.mjsbefore claiming template changes.
Web UI bundle
- Source is not in this repo;
floyd-code/apps/floyd-code/dist-webis a committed prebuilt bundle. - Sync from code-app with
FLOYD_CODE_REPO=<checkout> pnpm run sync:web(run infloyd-code/), committing bundle changes together. - Dev against it:
pnpm dev:serverhere +FLOYD_SERVER_URLin code-app'spnpm dev:web.
Build and verification
- Go:
scripts/build-megafloyd.sh(CGO_ENABLED=0, GOEXPERIMENT=greenteagc) orcd floyd-go && go build ./.... First build may fetch Go 1.26 toolchain; setGOTOOLCHAIN=localto fail fast. - TS:
cd floyd-code && pnpm install && pnpm -r run build. Node>=24.15.0, pnpm10.33.0(engine-strict). - Root checks:
node scripts/verify-prompt-pack.mjs,node scripts/verify-ship-manifest.mjs. - Generated code:
task sqlc,task schema,task swag,task hyper(infloyd-go/); update goldens withgo test ./... -update. - TS comment-free zones (
packages/agent-core-v2,packages/kap-server,packages/transcript) enforced bypnpm lint.
Planning
- Master plan in
task_plan.md; live memory inprogress.md/findings.md; decisions indocs/DECISIONS.md. Work the next unfinished phase; do not invent work outside it.
