A CLI wrapper that scaffolds new projects using AI coding tools with your conventions baked in.
Project description
ProjectForge
Run projectforge --name atlas --stack fastapi --description "Customer support API" --verify and get a
working starter repository shaped by your conventions—not just a pile of generated files.
ProjectForge scaffolds Python and TypeScript projects through Claude Code, Google Antigravity CLI,
or Codex CLI, then installs, checks, and verifies the result.
A live scaffold usually takes minutes rather than seconds because providers write code and Forge
runs the generated project's checks. Duration varies by stack and provider; forge --dry-run
previews the complete plan instantly and makes no provider call.
The result includes the project, its development commands, and local evidence showing what was requested, which conventions and providers were used, and whether verification actually passed.
Command name: current source installs
projectforgeas the preferred command and keepsforgeas a compatibility alias. Useprojectforgeif Foundry's Ethereumforgeis already on your PATH; shell command names cannot disambiguate the two tools.
Release status: this README documents ProjectForge v0.7.2. Use the documentation bundled with an immutable release for that release's exact behavior.
What you get
- Interactive and flag-driven scaffolding for seven Python and TypeScript stacks.
- Metadata-aware install, lint, type-check, build, test, and health verification.
- A generated README, development setup, and stack-specific starter structure.
- Zero-provider-call prompt previews with
--dry-run. - Failure recovery with
--resumeinstead of paying to rerun completed phases.
Why trust the output
- Forge shows the complete prompt before execution and uses bounded provider workspaces by default.
forge doctorchecks installation and authentication without a model call or credential output.- Provider-default models remain in control unless you deliberately request an override.
- Convention layers are deterministic and recorded with source hashes.
- Blanket provider bypass requires two explicit unsafe flags.
- Atomic progress, failure classification, and resume contracts preserve partial work safely.
- Provider and local-tool failures are converted into bounded, privacy-safe recovery guidance instead of echoing untrusted output, stack traces, or machine paths.
.forge/records distinguish “provider finished” from “generated project verified.”
Supported stacks
| Stack | Identifier | Aliases |
|---|---|---|
| Next.js + React | nextjs |
next, react |
| FastAPI | fastapi |
api |
| FastAPI + AI/LLM | fastapi-ai |
ai, llm |
| Next.js + FastAPI monorepo | both |
fullstack, monorepo |
| Python CLI | python-cli |
cli, typer |
| TypeScript package | ts-package |
npm-package, library |
| Python worker | python-worker |
worker, service |
See the stack guide for generated structures and commands.
Requirements
- Python 3.12 or 3.13. CI covers both versions on Ubuntu and macOS.
uvfor the GitHub install route.- At least one installed and authenticated provider CLI for live generation. Preview does not need a provider.
Use the current source
The v0.7.2 behavior documented below is available from the current repository checkout:
git clone https://github.com/Schramm2/projectforge.git
cd projectforge
uv sync --dev
./forge --version
./forge --help
Run ./forge from the checkout anywhere this guide shows forge.
Install the latest published release
Install the PyPI distribution with uv or pipx:
uv tool install matt-projectforge
# or
pipx install matt-projectforge
projectforge --version
projectforge --help
Or install from the supported Homebrew tap:
brew install schramm2/tap/projectforge
projectforge --version
ProjectForge is the product, repository, Python package, and Homebrew formula name. PyPI required
the distinct matt-projectforge distribution name because projectforge was too similar to an
existing project. projectforge is the preferred command, while forge remains a short
compatibility alias.
Install and authenticate a provider
Provider credentials stay inside the provider's own CLI. Forge does not install a provider, collect a token, or print account identity.
| Provider | Official setup | Provider-owned login | Forge readiness |
|---|---|---|---|
| Claude Code | Install | claude auth login |
Deterministic status check |
| Codex CLI | Install | codex login |
Deterministic status check |
| Google Antigravity CLI | Install (source) | Run agy; follow the official usage and sign-in flow in the browser or over SSH |
agy models check; no model prompt or quota usage |
After provider login, run:
forge doctor
forge doctor --json
A live scaffold requires one provider reported as ready. Missing optional providers do not block
the run. For Antigravity, Forge checks agy --version and agy models. The latter verifies the
saved Google session without sending a prompt or printing account identity. If sign-in is needed,
run agy, complete the provider-owned browser flow, exit with /exit, and rerun forge doctor.
Remote SSH sessions display an authorization URL and code flow instead of opening a browser.
Antigravity's print mode cannot answer an Ask permission prompt, so a safe headless write would
otherwise be auto-denied. For the duration of a safe-mode run, Forge adds a narrow
write_file(<project>) rule scoped to the current project in ~/.gemini/antigravity-cli/settings.json
(merging with any existing settings), then restores the file to its prior state when the run ends.
If a write is still denied, Forge turns the provider's exit-0 permission denial into a failed phase.
Preview first
This command creates no project, starts no provider process, and makes no model call:
forge --dry-run \
--name atlas \
--stack fastapi \
--description "Customer support API" \
--no-docker \
--no-open
Review the target, phase routing, provider-default versus overridden models, approval mode,
convention-source summary, and prompt content. Add --verbose to display full source paths and
hashes. An exported prompt can contain private conventions; treat it as sensitive.
Run safely
Use the same requirements for the live run:
forge \
--name atlas \
--stack fastapi \
--description "Customer support API" \
--no-docker \
--approval-mode safe \
--no-open \
--verify
safe is the default. Before the first call, Forge shows the workspace, providers, model behavior,
remaining provider CLI invocations, a numeric duration range, the last measured duration for the
same stack, per-provider quota context, a rough cost range, execution strategy, and demo and
verification limits. Live execution sends the assembled brief,
conventions, and selected context to the provider. The provider may edit the target workspace,
install dependencies, run commands, use allowed network access, and consume quota.
--approval-mode plan uses a read-only provider mode but still makes provider calls.
--approval-mode unsafe --allow-unsafe disables provider approval or sandbox boundaries and should
only be used inside an external isolation boundary you control.
For Antigravity specifically, safe mode binds the target with --add-dir and uses headless
--print, accept-edits, and its terminal sandbox. Its permission engine is separate from the
sandbox: safe headless file writes require a narrow write_file(<workspace>) allow rule, which
Forge grants temporarily and scoped to the workspace, then removes when the run ends; unapproved
commands may still be denied. Forge uses --dangerously-skip-permissions only for the explicitly
consented unsafe mode.
Forge also uses Claude's official --safe-mode to prevent ambient hooks/plugins/MCP/memory from
changing a scaffold, and Codex's official --ephemeral --ignore-user-config so provider session
artifacts and ambient user exec rules do not become part of a run. Codex also runs with
--skip-git-repo-check because Forge scaffolds into a fresh directory and only runs git init
afterward, so codex exec would otherwise refuse to start.
Demo mode is enabled by default so generated startup should not require real service credentials. It does not remove the provider CLI's own authentication requirement.
Verify the result
Forge writes these project-local records:
| File | Evidence |
|---|---|
.forge/progress.json |
Prompt hashes, attempts, durations, failure category, and resume state |
.forge/scaffold.json |
Requested facts, routing, models, approval mode, and convention hashes |
.forge/conventions-snapshot.md |
Exact convention replay input; potentially private |
.forge/context-snapshot.md |
User-approved project brief and selected nearby context; potentially private |
.forge/verification.json |
Redacted commands, working directories, timeouts, exits, endpoints, and remediation |
The dashboard reports Project Ready only when required verification passes. Python verification
also checks required handoff files, tracked uv.lock behavior, and generated console entry points.
If verification was disabled or skipped, the honest result is Project Created; a failed check
requires attention. For high-confidence delivery, rerun the generated project's recorded commands
independently.
A generated Python project can declare bounded health settings:
[tool.forge.verification]
health_endpoints = ["/healthz", "/readyz"]
health_startup_timeout = 20
health_request_timeout = 4
Health paths remain localhost-only and timeout values are bounded by Forge.
Resume a failed scaffold
Do not delete partial output or blindly restart. Fix the provider problem, then repeat the original
command with --resume:
forge \
--name atlas \
--stack fastapi \
--description "Customer support API" \
--no-docker \
--approval-mode safe \
--no-open \
--verify \
--resume
Forge checks the original name, stack, routing, prompt hashes, and approval mode. It preserves completed phases and retries incomplete ones. Contract drift is rejected rather than silently mixing two scaffolds.
Teach Forge how you work
First-run setup asks how Forge should handle conventions. You can start with the bundled defaults,
import nearby AGENTS.md, CLAUDE.md, or Copilot instructions, or answer a short interview that
creates and selects a reusable profile. Rerunning setup preserves the selected profile unless you
choose another option.
Each interactive scaffold gathers project context separately. The short project brief covers the intended users, first useful outcome, and constraints. Forge can also show a bounded list of nearby Markdown files; no file content is included unless you select it. Selected files are secret-scanned before being added to the provider prompt.
Effective convention precedence is bundled defaults, selected user profile,
~/.forge/conventions.md, then project-local .forge/conventions.md. Later layers have higher
precedence.
forge conventions init team
forge conventions import ./AGENTS.md --name imported-team
forge conventions list
forge conventions select team
forge conventions inspect --stack fastapi --json
forge conventions preview --stack fastapi
forge conventions validate --stack fastapi
forge conventions edit team
Imports must be Markdown, are size-bounded, and reject credential-shaped content. Repository
maintainers use the separate forge admin conventions command for bundled convention sources.
Other commands
forge # Interactive scaffold
forge doctor # Readiness diagnostics, no model call
forge stats # Local scaffold analytics
forge stats --repair # Quarantine recognizable legacy pytest artifacts
forge check # Read-only convention audit
forge check --fix # Add supported missing convention files
forge evolve auth --dry-run # Preview an existing-project change
forge evolve auth # Apply it in safe mode
forge replay --dry-run # Preview from recorded manifest/snapshot
forge replay --diff # Replay and compare in safe mode
Run root or subcommand --help immediately before scripting a command; live help is the runtime
contract.
Agent skill
The release archive includes skills/forge-scaffold/SKILL.md; the wheel installs the same files
under projectforge/skills/forge-scaffold/. The skill teaches agents to discover live Forge
behavior, preview with zero calls, preserve safe approval boundaries, and verify durable evidence
without hard-coded release or model catalogs. Its behavioral evidence is in
the maintainer record.
Security, privacy, and support
Read Security and Privacy before using private conventions or unsafe mode. Report vulnerabilities through SECURITY.md; use GitHub Issues for ordinary bugs.
Upgrade or uninstall
See the 0.4.1 migration guide before upgrading.
uv tool upgrade matt-projectforge
# or
brew upgrade schramm2/tap/projectforge
Uninstall the application with the matching package manager:
uv tool uninstall matt-projectforge
# or
brew uninstall projectforge
User-owned config, profiles, snapshots, and local history under ~/.forge/ are not removed. Back
them up or move that directory separately if you no longer need them.
Documentation
- Getting Started
- Product and user-flow diagrams
- Configuration
- Stacks
- Troubleshooting
- Provider compatibility evidence
- PyPI release runbook
- Documentation map
Development
uv sync --dev
uv run python scripts/scan_safety.py
uv run python scripts/check_docs.py
uv run ruff check src/projectforge tests
uv run pytest
uv build
The canonical Python import namespace in current source is projectforge; ubundiforge was the
v0.6.0-and-earlier source namespace and is not present on main. See AGENTS.md and
the maintainer docs before changing release behavior.
License
MIT — see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matt_projectforge-0.7.2.tar.gz.
File metadata
- Download URL: matt_projectforge-0.7.2.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
545de09f284d391d580d4c2c6c81cc7f36c54dfa93c532d46f36ebb05334323a
|
|
| MD5 |
beebc5dbdb21f2ed17ff5ce254b642dd
|
|
| BLAKE2b-256 |
1fb1e2b73d588359e5d9b9f67516dd023153d9ac6ca51177dfee4995d2b009f1
|
Provenance
The following attestation bundles were made for matt_projectforge-0.7.2.tar.gz:
Publisher:
release-homebrew.yml on Schramm2/projectforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matt_projectforge-0.7.2.tar.gz -
Subject digest:
545de09f284d391d580d4c2c6c81cc7f36c54dfa93c532d46f36ebb05334323a - Sigstore transparency entry: 2201293611
- Sigstore integration time:
-
Permalink:
Schramm2/projectforge@21de3e533e3b3ac3adf0615e4dfc713cddbee359 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Schramm2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-homebrew.yml@21de3e533e3b3ac3adf0615e4dfc713cddbee359 -
Trigger Event:
push
-
Statement type:
File details
Details for the file matt_projectforge-0.7.2-py3-none-any.whl.
File metadata
- Download URL: matt_projectforge-0.7.2-py3-none-any.whl
- Upload date:
- Size: 192.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd321f9960cf8abbfc7fdef1329dae8f29197b6cb71755c4132d39d2e24c5fd
|
|
| MD5 |
718129830ceea14c6f33adc5a9e532b2
|
|
| BLAKE2b-256 |
9abf3abaed3abc32a7b451809c58954472595dd8c043862c0ef6d5d173b85704
|
Provenance
The following attestation bundles were made for matt_projectforge-0.7.2-py3-none-any.whl:
Publisher:
release-homebrew.yml on Schramm2/projectforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matt_projectforge-0.7.2-py3-none-any.whl -
Subject digest:
acd321f9960cf8abbfc7fdef1329dae8f29197b6cb71755c4132d39d2e24c5fd - Sigstore transparency entry: 2201293776
- Sigstore integration time:
-
Permalink:
Schramm2/projectforge@21de3e533e3b3ac3adf0615e4dfc713cddbee359 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Schramm2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-homebrew.yml@21de3e533e3b3ac3adf0615e4dfc713cddbee359 -
Trigger Event:
push
-
Statement type: