Autonomous Forge is a Next.js, Prisma, Clerk, and git-runtime prototype. Contributions should preserve that direction: ship useful features, keep the repo runnable on Vercel, and avoid breaking the real git-backed repo actions.
- Frontend: Next.js App Router, React 19, TypeScript.
- Auth: Clerk.
- Database: Neon Postgres through
DATABASE_URL. - Persistence fallback: local JSON store for non-database development.
- Git runtime:
simple-gitwriting repositories under the forge storage root.
- Install dependencies with
npm install. - Copy
.env.exampleto.env. - Set
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYandCLERK_SECRET_KEYif you want to exercise authenticated flows locally. - Create a Neon database or run local Postgres and set
DATABASE_URL. - Generate Prisma client with
npm run db:generate. - Push the schema with
npm run db:push. - Start the app with
npm run dev.
Before opening a pull request, run:
npm run typecheck
npm run lint
npm run buildDo not open a PR with failing checks unless the PR is explicitly marked as draft and the breakage is documented.
- Keep changes focused. Avoid mixing refactors with feature work unless the refactor is required for the feature.
- Preserve real git behavior. Repository creation, branch writes, commit recording, and merge behavior must stay functional.
- Do not reintroduce custom password auth. Authentication is Clerk-based.
- Treat Neon Postgres as the primary production database target.
- Keep local fallback mode working when
DATABASE_URLis not configured. - Prefer adding tests or validation coverage when touching auth, API routes, or git runtime behavior.
- Update docs when adding new env vars, workflows, or public API behavior.
- Include a short problem statement.
- Describe the user-facing or maintainer-facing change.
- List any new environment variables.
- Mention whether the change affects Vercel deployment, Clerk setup, Neon setup, or git runtime behavior.
- Include screenshots or short recordings for UI changes when practical.
- Durable background workers for git execution.
- Better repo detail pages and diff visualization.
- Governance controls and repo-level policy overrides.
- Streaming improvements beyond in-memory SSE.
- Better contributor-facing test coverage.
- Never commit real Clerk keys, Neon credentials, or Vercel tokens.
- Use placeholder values in docs and workflow examples.
- Prefer GitHub Actions secrets and Vercel project environment variables for deployment.