@cojacklabs/autoforge
v0.25.2
Published
AutoForge is a project-intelligence and orchestration framework for continuous AI-assisted software development. It turns brainstorming, research, planning, design, implementation, validation, and handoff into durable project state that humans and differe
Downloads
7,322
Readme
AutoForge
AutoForge is a project-intelligence and orchestration framework for continuous AI-assisted software development. It turns brainstorming, research, planning, design, implementation, validation, and handoff into durable project state that humans and different coding agents can share.
AutoForge does not replace Codex, Claude Code, Cursor, Gemini, Grok, or another agent. The Core CLI gives every agent the same scoped work, decisions, governance, evidence, and next action instead of making each conversation start from scratch.
This repository contains the v0.25 release candidate. Until v0.25 is published, the globally installed npm release may still report v0.24. Always begin with
autoforge versionand use explicit Core subcommands in automation.
What v0.25 Provides
| Layer | Package | Responsibility |
| -------- | -------------------------------- | ---------------------------------------------------------------------------------------------- |
| Protocol | @cojacklabs/autoforge-protocol | Versioned contracts, capabilities, launch negotiation, and handoffs |
| Core | @cojacklabs/autoforge-core | Deterministic, model-independent project intelligence |
| SDK | @cojacklabs/autoforge-sdk | Supported programmatic facade with injected filesystem, Git, clock, and storage effects |
| Core CLI | @cojacklabs/autoforge | Project lifecycle, memory, governance, orchestration, validation, and optional Agent launching |
| Agent | @cojacklabs/autoforge-agent | Experimental interactive model runtime; separately approved and installed |
Core remains usable without an account, model provider, hosted service, or Agent installation. Production Web, hosted Service, billing, cloud sync, and multi-provider autonomy are later platform milestones.
Install and Attach a Project
Use one global installation so projects share a workspace registry and update path:
npm install --global @cojacklabs/autoforge
# or: pnpm add --global @cojacklabs/autoforge
# or: yarn global add @cojacklabs/autoforge
autoforge version
autoforge attach "$PWD"
autoforge --project "$PWD" doctor
autoforge projects listattach initializes local .autoforge/ state and registers the Git repository
root globally. A nested path still attaches the whole repository. Use
autoforge init only for an intentionally local-only environment such as a
disposable CI container.
For a local dependency instead, prefix commands with npx:
npm install --save-dev @cojacklabs/autoforge
npx autoforge init
npx autoforge doctorUpgrading from v0.24? Read the v0.25 migration guide.
The Continuous AutoForge Loop
AutoForge is most effective when it stays involved throughout the product lifecycle, not only when code is written.
| Stage | Human or agent activity | AutoForge capability |
| ---------- | -------------------------------------------------------------------- | -------------------------------------------------- |
| Brainstorm | Capture an idea without prematurely coding it | intent assess, intent register |
| Research | Preserve findings and provenance | research register, knowledge |
| Govern | Check standing rules and domain invariants | constitution, domain, doctrine |
| Design | Validate screens, components, flows, states, and relationships | design validate, design import, design check |
| Plan | Turn intent into features, phases, tasks, issues, or workflows | planning, workflow, add |
| Prioritize | Explain why work is now, next, later, or backlog | strategy assess |
| Execute | Open a scoped session and resolve the relevant context | start, context --explain, check |
| Validate | Run retained quality/security checks and preserve evidence | gate check, evidence |
| Remember | Record why a choice was made and what it changes | decide, why, changelog |
| Handoff | Transfer structured state between agents without transcripts | recap, Protocol handoffs, orchestrate handoff |
| Learn | Connect hypotheses, experiments, and observations to later decisions | learning |
| Reorganize | Reassess dependencies, priority, impact, and project location | orchestrate, trace, twin, projects |
Start every session by asking what is already true:
autoforge --project "$PWD" doctor
autoforge --project "$PWD" recap
autoforge --project "$PWD" status --view nextWhen work is active, resolve the bounded execution packet before editing:
autoforge --project "$PWD" context --explainFrom an Idea to Validated Work
Before creating structured JSON, inspect the installed schema rather than guessing its shape:
autoforge schemas list
autoforge intent assess --schemaThen assess the idea, create scoped work, and complete it with durable rationale:
autoforge intent assess product-idea.json --kind planning
autoforge add feature --name "Customer onboarding" --description "Guide new customers to first value"
autoforge add phase --feature <feature-id> --name "First-run flow" --description "Design and implement onboarding"
autoforge add task --phase <phase-id> --name "Build first-run flow" --description "Implement the approved design" --include "src/**" --include "test/**"
autoforge start task <task-id>
autoforge context --explain
autoforge check --path src/onboarding.ts
autoforge gate check
autoforge decide --statement "..." --reasoning "..." --consequence "..." --scope onboarding --keyword first-run --work <task-id> --kind feature-note
autoforge donedone requires a decision linked with --work so completed work leaves an
explanation, not merely a changed Git tree. For genuinely trivial work, use
autoforge done --no-decision "<reason>"; the bypass remains auditable.
For a new application idea that needs formal discovery, architecture, design, data, and security approval, follow the bootstrap pipeline.
Give This Prompt to Any Coding Agent
Use this at project onboarding, after an AutoForge update, or when switching between Claude, Codex, Cursor, Gemini, Grok, and another repository-aware agent:
Use the globally installed AutoForge CLI for this repository. Review `README.md` and follow the current documentation walkthrough in `docs/README.md` to use AutoForge continuously throughout brainstorming, planning, documentation, design, bootstrapping, development, validation, decision-making, and handoff; follow every applicable `AGENTS.md` and summarize the project's current AutoForge state before making changes.The complete procedure is in the Agent Setup Guide, and behavioral guidance is in the Agentic AI Guide.
Humans and Agents Share One Source of Truth
Durable project truth includes work, decisions, doctrines, governance, domain knowledge, specifications, traceability, approved evidence, and structured handoffs. Reproducible context packets, leases, provider caches, logs, credentials, and raw transcripts are operational state and should not become portable project memory.
Useful continuity commands:
autoforge recap
autoforge why --query "checkout"
autoforge evidence summary
autoforge twin generate
autoforge twin query --type decisionSee Cross-Agent Handoffs and Governance and Memory.
Parallel Agent Work
Do not run multiple writing agents against the same checkout. Build a dependency-aware orchestration plan, then let AutoForge assign isolated worktrees and reject overlapping write scopes:
autoforge orchestrate plan orchestration-plan.json
autoforge orchestrate ready
autoforge orchestrate claim <work-id> --agent codex --role backend
autoforge orchestrate explain <work-id>
autoforge orchestrate status
autoforge orchestrate handoff <assignment-id> handoff.json
autoforge orchestrate release <assignment-id>If orchestrate explain reports stale or unavailable context, stop, release the
claim, and reclaim it before editing.
Core CLI and Experimental Agent
Explicit subcommands are deterministic. Automation should use commands such as
autoforge status --json, autoforge recap, and autoforge gate check --json.
After the separately versioned Agent is approved and installed, bare
autoforge can launch it in an eligible interactive terminal. CI, pipes,
redirected output, AUTOFORGE_NO_AGENT=1, recursion, and missing or incompatible
Agent installations retain deterministic status behavior. The old interactive
Core TUI is deprecated; autoforge tui is temporarily a read-only status alias.
Provider credentials remain in the operating-system credential store:
autoforge credentials set openai
autoforge credentials status openai
autoforge credentials delete openaiSee Local Provider Credentials.
Documentation Map
Start with docs/README.md. It identifies current operational guides, v0.25 release material, specialist references, and historical documents. The installed command remains the final authority for syntax:
autoforge help
autoforge schemas listDevelopment and Release Validation
This repository uses pnpm 11 and Turborepo. From a clean checkout:
pnpm install --frozen-lockfile
pnpm workspace:check
pnpm exec turbo run build typecheck test format:check
pnpm release:statusThe release sequence and outstanding approval gates are documented in v0.25 Release Readiness. Nothing in this README authorizes tagging or publication.
Released under the MIT License.
