Skip to content

forge-sdlc/forge

Repository files navigation

Forge Logo

CI Docs Python 3.11+ License MIT

Jira Ticket AI Planning Containerized Code GitHub PR CI Repair Human Review

Forge

Forge turns Jira tickets into reviewed GitHub pull requests.

It plans work, asks for human approval, implements changes in isolated containers, opens PRs, fixes CI failures, and pauses for review before anything is merged. Forge is built for teams that want AI to participate in the software delivery lifecycle without bypassing the controls that make engineering work trustworthy.

Forge is for work that cannot be handled by a single prompt: cross-repo changes, approval gates, CI failures, review feedback, audit trails, and project-level visibility.

🎫 Jira ticket β†’ 🧭 Human-gated plan β†’ πŸ“¦ Repo-scoped implementation β†’ πŸ”€ GitHub PRs β†’ πŸ› οΈ CI repair β†’ πŸ‘€ Human review β†’ πŸ“Š Summary + dashboards

What Forge Does

Forge connects Jira, GitHub, and AI coding agents into one event-driven workflow:

  • Turns product intent into implementation plans: Generate PRDs, behavioral specs, epics, tasks, RCA reports, and concrete fix plans from Jira issues.
  • Plans across repositories: Decompose features and bugs across the repositories configured for a Jira project, then create repo-scoped epics, tasks, implementation passes, and PRs.
  • Keeps humans in the loop: Pause at approval gates, answer reviewer questions, regenerate artifacts from feedback, and require human PR review before merge.
  • Implements code in controlled environments: Run implementation inside ephemeral Podman containers with repository access scoped to the task.
  • Handles the PR lifecycle: Create fork-based PRs, write PR descriptions, respond to review feedback, rebase when needed, and keep Jira updated.
  • Repairs failing CI: Analyze failing checks, apply fixes, push updates, and retry until the workflow is ready for review or blocked with a clear reason.
  • Adapts to each project: Use skills to customize how Forge writes plans, implements code, reasons about CI, and follows team conventions.

Model Backends

Forge is built on Deep Agents and passes agents a LangChain chat model instance.

The built-in model factory supports direct Anthropic API credentials and Google Vertex AI-backed models. Because the agent layer is model-object based, Forge can be extended to any LangChain-compatible chat model by adding it to the model factory.

Where Forge Is Different

Forge is not just an agent with a large prompt or a folder of skills. It is a stateful delivery workflow that decides what should happen next, when to pause, which artifact needs review, which repository should be changed, and how to recover when something fails.

  • Workflow first, agents second: LangGraph coordinates the lifecycle from ticket intake to PR review. Agents perform bounded stage work; the workflow owns routing, checkpoints, retries, approvals, and handoffs.
  • Cross-repo by design: Forge can plan features and bugs across services, clients, infrastructure, and documentation repos, then split the work into repo-scoped units that can be implemented and reviewed independently.
  • Controlled write boundaries: Agents do not directly mutate Jira, GitHub, or production repositories. Implementation agents write only inside their local/container workspace; Forge's integration layer performs external updates such as Jira comments, labels, branch pushes, and PR creation at explicit workflow steps.
  • Native engineering loop: Forge works through Jira tickets, Jira comments, Jira labels, GitHub PRs, GitHub reviews, and CI webhooks instead of forcing teams into a separate agent UI.
  • Traceable by default: Work is reflected back into Jira and GitHub as comments, labels, PRs, review updates, CI decisions, and post-merge summaries, so teams can follow why the workflow moved or paused.
  • Project visibility: Prometheus metrics, Langfuse traces, and Grafana dashboards expose workflow throughput, step latency, ticket execution cost, model usage, CI behavior, and observability health by project, ticket type, workflow step, and Jira issue.
  • Evidence-backed bug fixing: Bug workflows include triage, codebase investigation, RCA validation, fix-option selection, plan approval, implementation, qualitative review, and post-merge summaries.
  • Bounded autonomy: Forge can move quickly, but approval gates, review gates, retry budgets, blocked states, and audit comments keep the system inspectable.

Why Forge

Most AI coding tools start at the editor. Forge starts at the ticket.

That changes the shape of the work. Instead of asking a coding agent to make an isolated change, Forge manages the path from request to reviewed pull request:

  1. Understand the issue.
  2. Produce the right planning artifact.
  3. Ask for approval or clarification.
  4. Decompose the work into repo-scoped executable tasks.
  5. Implement and review the code.
  6. Open a pull request.
  7. Watch CI and fix failures.
  8. Wait for human review.
  9. Report the outcome back to Jira.

The goal is not to remove engineering judgment. The goal is to give engineering teams an automated delivery loop where judgment is applied at explicit checkpoints.

Forge also makes the delivery loop observable. Teams can inspect individual ticket execution in Jira, GitHub, Langfuse, and Grafana, while project dashboards show where work is flowing, where it is blocked, how much CI repair is happening, and which workflow stages cost the most time or model budget.

Workflows

Feature Workflow

Forge can take a Jira Feature from idea to one or more pull requests:

Feature Ticket
  -> PRD
  -> Behavioral Spec
  -> Cross-repo Epics
  -> Repo-scoped Implementation Tasks
  -> Containerized Implementation
  -> Local AI Review
  -> GitHub PRs
  -> CI Fix Loop
  -> AI Review
  -> Human Review

At each planning stage, reviewers can approve, request revisions, or ask questions without advancing the workflow.

Bug Workflow

Forge can take a Jira Bug through diagnosis, planning, implementation, and post-merge reporting:

Bug Ticket
  -> Triage
  -> Root Cause Analysis
  -> Fix Options
  -> Plan Approval
  -> Repo-scoped Implementation Tasks
  -> Fix PRs
  -> CI + Review
  -> Post-merge Summary

For bugs, Forge investigates the codebase, proposes concrete fix options, waits for an option selection, implements the chosen approach across the affected repos, and posts a summary after merge.

Human Control

Forge is designed around approval gates, auditability, and recoverability:

  • Approval gates before major planning transitions.
  • Q&A mode for asking questions about generated artifacts before approving.
  • Revision requests for regenerating artifacts with human feedback.
  • Containerized implementation so coding work happens in isolated task environments.
  • Controlled external writes so agents work locally while Forge performs Jira/GitHub mutations through explicit workflow steps.
  • Local review before PR creation to catch obvious issues before reviewers see them.
  • CI repair loop with bounded retry attempts and clear blocked states.
  • Human PR review before merge, even when autonomous mode is enabled.
  • Resumable workflows that checkpoint state and resume from the failed node.
  • Operational dashboards for tracking workflow health, ticket execution, model usage, and project-level delivery trends.

Forge can run with more automation when a ticket is trusted, but the final code review gate remains a human checkpoint.

Customization

Forge uses skills to adapt agent behavior to your project.

Skills are Markdown instruction files that define how Forge should produce PRDs, specs, implementation plans, code changes, CI analysis, and review feedback. They customize stages inside the workflow; they do not replace the workflow itself. Teams can keep shared defaults while overriding only the parts that are specific to a stack, repository, or Jira project.

This lets Forge follow local engineering conventions without forking the orchestrator.

Architecture

Forge is event-driven:

Jira + GitHub Webhooks
  -> FastAPI Gateway
  -> Redis Streams Queue
  -> LangGraph Workflow
  -> Host Orchestrator Agent
  -> Container Agent for Implementation
  -> Jira + GitHub Updates

Jira and GitHub send webhooks to Forge. Forge queues events, resumes the right workflow state, runs the next node, and posts the result back to Jira or GitHub. Planning runs through the host orchestrator. Code implementation runs in short-lived containers. Agents generate artifacts and local code changes; Forge's workflow and integration layer decide when those outputs become Jira updates, branch pushes, or pull requests.

Quick Start

To run Forge locally you need:

  • Python 3.11+
  • Redis Stack
  • Podman
  • Jira Cloud API access
  • GitHub access
  • LLM backend access through a direct model provider API or Google Vertex AI

Then:

git clone https://github.com/Forge-sdlc/forge.git
cd forge
uv sync
cp .env.example .env
podman build -t forge-dev:latest -f containers/Containerfile containers/
docker compose up redis -d
uv run uvicorn forge.main:app --reload --port 8000 --host 0.0.0.0
uv run forge worker

See Getting Started for the full setup path, including environment variables, webhooks, and local development options.

Documentation

Contributing

The most useful way to extend Forge is to teach it how your team works.

Contributions can improve the orchestrator, workflow stages, integrations, or default skills. Teams can also publish project-specific skill sets that customize planning, implementation, CI behavior, and review conventions.

See Contributing for the full guide.

About

An intelligent orchestration system that automates the software development lifecycle from Feature ideation through code delivery using AI-powered planning and execution.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages