forgedock 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -0
- package/bin/forgedock.mjs +537 -5627
- package/bin/init-detect.mjs +1 -1
- package/bin/init-enrich-api.mjs +20 -2
- package/bin/tui.mjs +60 -43
- package/commands/forgedock-init.md +498 -317
- package/commands/work-on.md +19 -0
- package/docs/CONFIG.md +37 -0
- package/docs/FORGE-PROTOCOL.md +740 -0
- package/docs/anthropic-devrel-outreach.md +197 -0
- package/docs/articles/devto-how-i-built-an-ai-agent-that-never-forgets.md +165 -0
- package/docs/demo.tape +113 -0
- package/docs/distribution-submissions.md +181 -0
- package/docs/launch/reddit-r-claudeai.md +83 -0
- package/docs/launch/reddit-r-devops.md +80 -0
- package/docs/launch/reddit-r-localllama.md +86 -0
- package/docs/launch/reddit-r-programming.md +81 -0
- package/docs/launch/reddit-r-sideproject.md +84 -0
- package/docs/launch/show-hn.md +84 -0
- package/docs/site/command-reference.md +423 -0
- package/docs/site/forge-annotation-protocol.md +266 -0
- package/docs/site/getting-started.md +168 -0
- package/docs/site/how-it-works.md +191 -0
- package/docs/site/index.md +59 -0
- package/docs/site/vs-manual-workflows.md +167 -0
- package/docs/twitter-launch-thread.md +303 -0
- package/docs/youtube-demo-script.md +297 -0
- package/package.json +1 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Getting Started with ForgeDock in 5 Minutes"
|
|
3
|
+
description: "Install ForgeDock and run your first autonomous Claude Code pipeline in under 5 minutes. Complete tutorial: install, configure, and ship your first issue."
|
|
4
|
+
keywords: ["claude code commands setup", "forgedock install", "claude code pipeline", "ai agent setup"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Getting Started with ForgeDock in 5 Minutes
|
|
8
|
+
|
|
9
|
+
ForgeDock turns GitHub issues into shipped code — automatically. You open an issue, type one command, and an AI agent investigates it, writes the fix, runs a quality gate, opens a PR, reviews it, and merges it.
|
|
10
|
+
|
|
11
|
+
This tutorial gets you from zero to your first autonomous pipeline run in under 5 minutes.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Prerequisites
|
|
16
|
+
|
|
17
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed and authenticated
|
|
18
|
+
- Git and GitHub CLI (`gh`) installed and authenticated (`gh auth login`)
|
|
19
|
+
- Node.js 18 or higher
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1: Install ForgeDock
|
|
24
|
+
|
|
25
|
+
Run the installer with `npx`:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx forgedock
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
This symlinks all 25+ ForgeDock command specs into `~/.claude/commands/` — making them available as slash commands in every Claude Code session.
|
|
32
|
+
|
|
33
|
+
**Verify the install:**
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
ls ~/.claude/commands/ | grep -E "work-on|review-pr|quality-gate"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
You should see `work-on.md`, `review-pr.md`, and `quality-gate.md`.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Step 2: Configure Your Repository
|
|
44
|
+
|
|
45
|
+
In your project root, initialize a `forge.yaml` config file:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cd /path/to/your/project
|
|
49
|
+
# Open Claude Code in this directory, then run:
|
|
50
|
+
/forgedock-init
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The `/forgedock-init` command scans your repo and generates a `forge.yaml` with:
|
|
54
|
+
|
|
55
|
+
- Your GitHub repo owner and name
|
|
56
|
+
- Worktree base path
|
|
57
|
+
- Branch strategy (staging vs. feature lanes)
|
|
58
|
+
- Project board connection (optional)
|
|
59
|
+
|
|
60
|
+
**Minimal `forge.yaml` example:**
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
project:
|
|
64
|
+
name: "My App"
|
|
65
|
+
owner: "my-github-org"
|
|
66
|
+
repo: "my-app"
|
|
67
|
+
|
|
68
|
+
paths:
|
|
69
|
+
root: "/path/to/my-app"
|
|
70
|
+
worktree_base: "/path/to/my-app/.claude/worktrees"
|
|
71
|
+
|
|
72
|
+
branches:
|
|
73
|
+
staging: "staging"
|
|
74
|
+
default: "staging"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Step 3: Open an Issue
|
|
80
|
+
|
|
81
|
+
Create a GitHub issue for something real in your repo — a bug, a feature, a refactor. ForgeDock works best with issues that have:
|
|
82
|
+
|
|
83
|
+
- A clear problem description
|
|
84
|
+
- Expected behavior
|
|
85
|
+
- Acceptance criteria
|
|
86
|
+
|
|
87
|
+
You can create one manually on GitHub, or use:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
/issue "The login button is misaligned on mobile Safari"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Note the issue number — let's say it's `#42`.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Step 4: Run Your First Pipeline
|
|
98
|
+
|
|
99
|
+
Open Claude Code in your project directory and run:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
/work-on 42
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
That's it. ForgeDock now:
|
|
106
|
+
|
|
107
|
+
1. **Investigates** — reads the issue, traces the code, identifies the root cause
|
|
108
|
+
2. **Architects** — plans the implementation order, identifies all affected files
|
|
109
|
+
3. **Builds** — implements the fix in an isolated git worktree
|
|
110
|
+
4. **Quality gates** — checks for 14+ categories of common defects
|
|
111
|
+
5. **Reviews** — runs 9 domain-specific review agents (security, logic, UX, etc.)
|
|
112
|
+
6. **Merges** — opens a PR and merges it when review passes
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Step 5: See the Result
|
|
117
|
+
|
|
118
|
+
While the pipeline runs, you can watch it in real time on the GitHub issue. ForgeDock writes structured comments at every stage:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
<!-- FORGE:INVESTIGATOR --> ← What it found
|
|
122
|
+
<!-- FORGE:CONTRACT --> ← What it will build
|
|
123
|
+
<!-- FORGE:ARCHITECT --> ← Implementation plan
|
|
124
|
+
<!-- FORGE:BUILDER --> ← What was built
|
|
125
|
+
<!-- FORGE:TRAJECTORY --> ← Full audit trail
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
When it's done, you'll have a merged PR, a closed issue, and a complete audit trail in GitHub.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## What Just Happened?
|
|
133
|
+
|
|
134
|
+
ForgeDock uses **GitHub as a knowledge graph**. Every stage writes structured data that the next stage reads. This means:
|
|
135
|
+
|
|
136
|
+
- A new agent session can pick up exactly where the last one left off
|
|
137
|
+
- Review agents can see the full investigation context, not just the diff
|
|
138
|
+
- Future issues touching the same code can learn from what was found here
|
|
139
|
+
|
|
140
|
+
For a deep dive into how this works, read [How ForgeDock's Knowledge Graph Works](./how-it-works.md).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Next Steps
|
|
145
|
+
|
|
146
|
+
- [How ForgeDock's Knowledge Graph Works](./how-it-works.md) — understand the architecture
|
|
147
|
+
- [ForgeDock vs. Manual Claude Code Workflows](./vs-manual-workflows.md) — why this beats ad-hoc prompting
|
|
148
|
+
- [Complete Command Reference](./command-reference.md) — all 25 commands with examples
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Troubleshooting
|
|
153
|
+
|
|
154
|
+
**`/work-on` not found in Claude Code**
|
|
155
|
+
|
|
156
|
+
The symlink wasn't created. Re-run `npx forgedock` and check `ls ~/.claude/commands/`.
|
|
157
|
+
|
|
158
|
+
**`forge.yaml` not found**
|
|
159
|
+
|
|
160
|
+
Run `/forgedock-init` in your project directory inside Claude Code, or copy `forge.yaml.example` from the ForgeDock repo and edit it.
|
|
161
|
+
|
|
162
|
+
**`gh` auth errors**
|
|
163
|
+
|
|
164
|
+
Run `gh auth login` and complete the OAuth flow. ForgeDock uses `gh` for all GitHub operations.
|
|
165
|
+
|
|
166
|
+
**Pipeline stops at investigation**
|
|
167
|
+
|
|
168
|
+
The issue may have been marked `workflow:invalid`. Check the issue comments for the investigation report — it will explain why.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "How ForgeDock's Knowledge Graph Works"
|
|
3
|
+
description: "Deep dive into how ForgeDock uses GitHub as a persistent AI agent memory system. FORGE annotations, context passing, and cross-issue knowledge explained."
|
|
4
|
+
keywords: ["ai agent memory", "ai agent knowledge graph", "forge annotations", "claude code memory", "ai agent context"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# How ForgeDock's Knowledge Graph Works
|
|
8
|
+
|
|
9
|
+
Every AI coding agent faces the same fundamental problem: **it forgets everything between sessions.**
|
|
10
|
+
|
|
11
|
+
When a conversation ends or context compacts, the agent loses all the context it gathered — why the code looks the way it does, which approaches were already tried, which files are connected. The next session starts from scratch.
|
|
12
|
+
|
|
13
|
+
ForgeDock solves this by treating GitHub as a persistent, structured memory system that every agent can read and write.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## The Core Insight: GitHub Is Already a Knowledge Graph
|
|
18
|
+
|
|
19
|
+
Your repository already contains everything an agent needs to know:
|
|
20
|
+
|
|
21
|
+
- **Issues** — what problems were reported and why
|
|
22
|
+
- **Pull requests** — what was changed and the reasoning behind it
|
|
23
|
+
- **Commits** — the exact changes, with references back to issues
|
|
24
|
+
- **Comments** — investigator notes, architectural decisions, review findings
|
|
25
|
+
- **Labels** — current workflow state at a glance
|
|
26
|
+
- **Blame** — who changed each line and when, tracing back to the originating issue
|
|
27
|
+
|
|
28
|
+
These aren't just records for humans. They're **queryable, structured data** that an agent can use as memory.
|
|
29
|
+
|
|
30
|
+
ForgeDock adds the coordination layer that makes agents use this data systematically.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## FORGE Annotations: Machine-Readable Comments
|
|
35
|
+
|
|
36
|
+
The key mechanism is **FORGE annotations** — structured HTML comment blocks posted to GitHub issues and PRs at every pipeline stage.
|
|
37
|
+
|
|
38
|
+
Each annotation has a type that identifies which pipeline agent wrote it and what it contains:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
<!-- FORGE:INVESTIGATOR --> Root cause, affected files, confidence level
|
|
42
|
+
<!-- FORGE:CONTRACT --> What will be built — deliverables, acceptance criteria
|
|
43
|
+
<!-- FORGE:ARCHITECT --> Implementation plan — file order, consistency checks, risks
|
|
44
|
+
<!-- FORGE:CONTEXT --> Historical pitfalls, past bugs, patterns to avoid
|
|
45
|
+
<!-- FORGE:BUILDER --> What was built — commits, files changed, criteria status
|
|
46
|
+
<!-- FORGE:REVIEWER --> Review findings — severity, pattern, prevention rule
|
|
47
|
+
<!-- FORGE:TRAJECTORY --> Full audit trail — every phase, every decision
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Every downstream agent reads these before starting work. The builder reads the investigator's root cause analysis. The reviewer reads the builder's implementation notes. The architect reads the context agent's historical findings.
|
|
51
|
+
|
|
52
|
+
**The result**: agents that follow structured data, not guesses.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## The Pipeline: A Relay Race
|
|
57
|
+
|
|
58
|
+
When you run `/work-on 42`, ForgeDock runs a sequential pipeline where each stage hands off structured context to the next:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
┌─────────────────────────────────────────────────────────────────────┐
|
|
62
|
+
│ GITHUB (Knowledge Graph) │
|
|
63
|
+
│ │
|
|
64
|
+
│ Issues: FORGE:INVESTIGATOR → FORGE:CONTRACT → FORGE:ARCHITECT │
|
|
65
|
+
│ → FORGE:CONTEXT → FORGE:BUILDER → FORGE:TRAJECTORY │
|
|
66
|
+
│ │
|
|
67
|
+
│ PRs: FORGE:REVIEWER (9 domain agents) │
|
|
68
|
+
│ │
|
|
69
|
+
│ Labels: workflow:investigating → workflow:building → │
|
|
70
|
+
│ workflow:in-review → workflow:merged │
|
|
71
|
+
│ │
|
|
72
|
+
│ Every agent reads this. Every agent writes to it. │
|
|
73
|
+
│ Nothing is lost between conversations. │
|
|
74
|
+
└─────────────────────────────────────────────────────────────────────┘
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Stage 1: Investigation
|
|
78
|
+
|
|
79
|
+
The investigator agent reads the issue, explores the relevant code files, traces git blame, and searches for related issues. It posts a `<!-- FORGE:INVESTIGATOR -->` comment containing:
|
|
80
|
+
|
|
81
|
+
- **Verdict**: CONFIRMED, PARTIAL, or INVALID
|
|
82
|
+
- **Root Cause**: specific file:line references
|
|
83
|
+
- **Affected Files**: complete list of what needs to change
|
|
84
|
+
- **Evidence**: function names, behavior observed
|
|
85
|
+
- **Decomposition Assessment**: whether to split into sub-issues
|
|
86
|
+
|
|
87
|
+
### Stage 2: Architecture
|
|
88
|
+
|
|
89
|
+
Before writing any code, the architect agent traces all affected code paths, identifies data flow, and checks for consistency invariants. This prevents the most common build failures — missing callers, type mismatches, broken imports.
|
|
90
|
+
|
|
91
|
+
The `<!-- FORGE:ARCHITECT -->` comment contains an ordered implementation plan. The builder follows this exactly.
|
|
92
|
+
|
|
93
|
+
### Stage 3: Context Gathering
|
|
94
|
+
|
|
95
|
+
The context agent surfaces **institutional memory** — past review findings on the same files, historical bugs in the same module, patterns that have caused bugs before. This is the agent equivalent of asking a senior engineer "what should I know before touching this?"
|
|
96
|
+
|
|
97
|
+
### Stage 4: Build
|
|
98
|
+
|
|
99
|
+
The builder reads the architecture plan and implements in the specified order. It works in an isolated git worktree (not the main repo checkout) to avoid interfering with other in-flight work.
|
|
100
|
+
|
|
101
|
+
### Stage 5: Quality Gate
|
|
102
|
+
|
|
103
|
+
Before committing, the quality gate runs 14+ checks covering: security, SQL safety, auth model, env var completeness, frontend proxy wiring, deployment config, and more. The builder iterates until the gate passes (max 3 iterations).
|
|
104
|
+
|
|
105
|
+
### Stage 6: Review
|
|
106
|
+
|
|
107
|
+
Nine specialized review agents examine the PR simultaneously: security, business logic, frontend, backend, database, infrastructure, documentation, test coverage, and dependency audit. Each finding becomes a separate GitHub issue that flows through the same pipeline.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Compaction Resilience: The Agent Can Always Resume
|
|
112
|
+
|
|
113
|
+
Claude Code sessions have context limits. When a session compacts, the in-memory state is lost. ForgeDock is designed for this.
|
|
114
|
+
|
|
115
|
+
**The rule**: Write state to GitHub after every significant step. Re-read GitHub state at the start of every phase.
|
|
116
|
+
|
|
117
|
+
When a new session runs `/work-on 42`, it:
|
|
118
|
+
|
|
119
|
+
1. Reads the issue body and all comments
|
|
120
|
+
2. Checks existing FORGE annotations to determine the current phase
|
|
121
|
+
3. Reads the workflow label (`workflow:investigating`, `workflow:building`, etc.)
|
|
122
|
+
4. Picks up exactly where the last session left off
|
|
123
|
+
|
|
124
|
+
A new agent session running `/work-on 42` should always know what to do next by reading GitHub state alone — with no reliance on any in-memory context from previous sessions.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Labels as State Machine
|
|
129
|
+
|
|
130
|
+
GitHub labels track the workflow state of every issue:
|
|
131
|
+
|
|
132
|
+
| Label | Meaning |
|
|
133
|
+
|-------|---------|
|
|
134
|
+
| `workflow:investigating` | Investigator agent is running |
|
|
135
|
+
| `workflow:ready-to-build` | Investigation complete, queued for build |
|
|
136
|
+
| `workflow:building` | Builder agent is running |
|
|
137
|
+
| `workflow:in-review` | PR created, review agents running |
|
|
138
|
+
| `workflow:merged` | PR merged, issue closed |
|
|
139
|
+
| `workflow:invalid` | Issue was not a real problem |
|
|
140
|
+
| `workflow:decomposed` | Split into sub-issues |
|
|
141
|
+
|
|
142
|
+
The pipeline reads these labels to determine what to do next. A human can also manually set a label to nudge the pipeline or override its routing.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Cross-Issue Knowledge: How History Informs the Present
|
|
147
|
+
|
|
148
|
+
When the context agent runs for a new issue, it searches for:
|
|
149
|
+
|
|
150
|
+
1. **Past review findings on the same files** — issues labeled `review-finding` that mention the affected filenames
|
|
151
|
+
2. **Past bugs in the same module** — closed bug issues found by mining `git log` references on the affected files
|
|
152
|
+
3. **Related code paths** — callers and importers of the functions being changed
|
|
153
|
+
|
|
154
|
+
This means that every bug that gets fixed, and every review finding that gets filed, makes the pipeline smarter for future work on the same codebase.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## forge.yaml: The Configuration Layer
|
|
159
|
+
|
|
160
|
+
The `forge.yaml` file in your repo root tells ForgeDock how your project is structured:
|
|
161
|
+
|
|
162
|
+
```yaml
|
|
163
|
+
project:
|
|
164
|
+
name: "My App"
|
|
165
|
+
owner: "my-github-org"
|
|
166
|
+
repo: "my-app"
|
|
167
|
+
|
|
168
|
+
paths:
|
|
169
|
+
root: "/path/to/repo"
|
|
170
|
+
worktree_base: "/path/to/worktrees"
|
|
171
|
+
|
|
172
|
+
branches:
|
|
173
|
+
staging: "staging" # Fast-lane PR target
|
|
174
|
+
default: "staging"
|
|
175
|
+
feature_pattern: "milestone/{slug}" # Milestone-gated feature lane
|
|
176
|
+
|
|
177
|
+
project_board:
|
|
178
|
+
owner: "my-github-org"
|
|
179
|
+
project_number: 1
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
ForgeDock resolves this once at the start of every pipeline run. Every `gh` command uses the correct repo. Every branch creation targets the correct base.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Next Steps
|
|
187
|
+
|
|
188
|
+
- [Getting Started with ForgeDock in 5 Minutes](./getting-started.md) — run your first pipeline
|
|
189
|
+
- [ForgeDock vs. Manual Claude Code Workflows](./vs-manual-workflows.md) — why this beats ad-hoc prompting
|
|
190
|
+
- [The FORGE Annotation Protocol](./forge-annotation-protocol.md) — technical spec for FORGE annotations
|
|
191
|
+
- [Complete Command Reference](./command-reference.md) — all 25 commands
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ForgeDock Documentation"
|
|
3
|
+
description: "Official documentation for ForgeDock — the autonomous AI development pipeline that uses GitHub as a structured knowledge graph for Claude Code agents."
|
|
4
|
+
keywords: ["forgedock docs", "claude code pipeline", "ai agent documentation", "forgedock guide"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ForgeDock Documentation
|
|
8
|
+
|
|
9
|
+
ForgeDock is an autonomous development pipeline for Claude Code. You open a GitHub issue, type `/work-on`, and an AI agent investigates the problem, architects a solution, builds it, runs quality checks, reviews it with 9 specialized agents, and merges the PR.
|
|
10
|
+
|
|
11
|
+
No more coordinating between agent sessions. No more lost context. No more starting from scratch.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Get Started
|
|
16
|
+
|
|
17
|
+
**New to ForgeDock?** Start here:
|
|
18
|
+
|
|
19
|
+
- **[Getting Started in 5 Minutes](./getting-started.md)** — Install, configure, and run your first pipeline
|
|
20
|
+
- **[How It Works](./how-it-works.md)** — The knowledge graph architecture explained
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Guides
|
|
25
|
+
|
|
26
|
+
| Page | What You'll Learn |
|
|
27
|
+
|------|-------------------|
|
|
28
|
+
| [Getting Started](./getting-started.md) | Install ForgeDock, configure forge.yaml, run `/work-on` on your first issue |
|
|
29
|
+
| [How It Works](./how-it-works.md) | FORGE annotations, the pipeline relay, compaction resilience, workflow labels |
|
|
30
|
+
| [ForgeDock vs. Manual Workflows](./vs-manual-workflows.md) | Why structured pipelines beat ad-hoc Claude Code sessions |
|
|
31
|
+
| [FORGE Annotation Protocol](./forge-annotation-protocol.md) | Technical spec — annotation types, completion markers, querying |
|
|
32
|
+
| [Command Reference](./command-reference.md) | All 25+ commands with usage, options, and examples |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Quick Links
|
|
37
|
+
|
|
38
|
+
- [GitHub Repository](https://github.com/RapierCraftStudios/ForgeDock)
|
|
39
|
+
- [npm Package](https://www.npmjs.com/package/forgedock)
|
|
40
|
+
- [Configuration Reference](../CONFIG.md)
|
|
41
|
+
- [Report an Issue](https://github.com/RapierCraftStudios/ForgeDock/issues/new)
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Install
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx forgedock
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Symlinks all commands into `~/.claude/commands/`. No global install, no dependencies.
|
|
52
|
+
|
|
53
|
+
**Requirements**: Claude Code, Node.js 18+, `gh` CLI authenticated with GitHub.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
ForgeDock is open source under the [AGPL-3.0 license](https://github.com/RapierCraftStudios/ForgeDock/blob/main/LICENSE).
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ForgeDock vs. Manual Claude Code Workflows"
|
|
3
|
+
description: "Compare ForgeDock's structured AI pipeline against ad-hoc Claude Code sessions. Real examples of time savings, consistency, and institutional memory."
|
|
4
|
+
keywords: ["claude code workflow", "claude code best practices", "ai coding workflow", "claude code vs manual", "autonomous ai development"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ForgeDock vs. Manual Claude Code Workflows
|
|
8
|
+
|
|
9
|
+
Claude Code is powerful. But out of the box, it's a blank slate — you describe what you want, it tries to figure it out, and you review what it produces. Every session is independent. Every agent starts with no memory of what came before.
|
|
10
|
+
|
|
11
|
+
ForgeDock adds structure, memory, and determinism to that workflow.
|
|
12
|
+
|
|
13
|
+
This page compares what a typical developer workflow looks like with and without ForgeDock — using real examples.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## The Same Bug, Two Approaches
|
|
18
|
+
|
|
19
|
+
**Scenario**: Your API is returning 500 errors for free-tier users on the payments endpoint. Someone filed an issue.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### Without ForgeDock
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
You: "I'm seeing 500 errors on /api/payments for free users. Can you fix it?"
|
|
27
|
+
|
|
28
|
+
Agent: *reads the payments file*
|
|
29
|
+
"I see a potential issue here. I'll add a nil-check for the billing profile."
|
|
30
|
+
|
|
31
|
+
You: *runs locally* "It's still broken."
|
|
32
|
+
|
|
33
|
+
Agent: "Let me look at the auth middleware too."
|
|
34
|
+
*reads middleware*
|
|
35
|
+
"I found another issue. Let me also check..."
|
|
36
|
+
|
|
37
|
+
*[session compacts — context lost]*
|
|
38
|
+
|
|
39
|
+
Agent: "I'm ready to help! What are we working on?"
|
|
40
|
+
|
|
41
|
+
You: "We were fixing the 500 errors on /api/payments..."
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
What went wrong:
|
|
45
|
+
- No investigation before jumping to a fix
|
|
46
|
+
- Context was lost mid-session
|
|
47
|
+
- No memory that PR #38 introduced this bug 3 weeks ago
|
|
48
|
+
- No knowledge that the same nil-check pattern was missed in 2 other files
|
|
49
|
+
- You are the coordination layer between the agent and reality
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### With ForgeDock
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
You: /work-on 42
|
|
57
|
+
|
|
58
|
+
ForgeDock:
|
|
59
|
+
→ Investigates — traces bug to commit e8f21a3 (PR #38). Payment validation
|
|
60
|
+
gate assumed all users have a billing profile. Free-tier users don't.
|
|
61
|
+
12 affected users, 94 failed requests in the last 24h.
|
|
62
|
+
|
|
63
|
+
→ Reads context — past bug #29 found the same nil-check pattern missing.
|
|
64
|
+
Prevention rule on file: "always null-check billing profile before
|
|
65
|
+
any payment validation."
|
|
66
|
+
|
|
67
|
+
→ Architects — 2-file fix. Orders: auth guard first, then API handler.
|
|
68
|
+
Notes that 3 other files use the same pattern and may need the same fix.
|
|
69
|
+
|
|
70
|
+
→ Builds — implements nil-check in both files, following the pattern from
|
|
71
|
+
the previous safe fix. Quality gate passes on first iteration.
|
|
72
|
+
|
|
73
|
+
→ Reviews — 9 agents check the PR. Security agent confirms no auth bypass.
|
|
74
|
+
Logic agent confirms free-tier path is handled at every branch.
|
|
75
|
+
|
|
76
|
+
→ Merges — PR opened and merged.
|
|
77
|
+
|
|
78
|
+
You: *reviews merged PR on GitHub*
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
What was different:
|
|
82
|
+
- Root cause identified before any code was touched
|
|
83
|
+
- Historical context surfaced automatically (past nil-check bug)
|
|
84
|
+
- Sibling files checked for the same pattern
|
|
85
|
+
- Complete audit trail on the GitHub issue
|
|
86
|
+
- You reviewed, not coordinated
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Side-by-Side Comparison
|
|
91
|
+
|
|
92
|
+
| | Manual Claude Code | ForgeDock |
|
|
93
|
+
|---|---|---|
|
|
94
|
+
| **Investigation** | Agent reads what you point it at | Systematic root-cause analysis with git blame, related issues |
|
|
95
|
+
| **Context** | What you remember to include | Historical findings, past bugs, known pitfalls — all automatic |
|
|
96
|
+
| **Planning** | Agent decides as it goes | Explicit architecture plan, implementation order, consistency checks |
|
|
97
|
+
| **Compaction** | Work lost, restart from scratch | Full resume — reads GitHub state to pick up exactly where it left off |
|
|
98
|
+
| **Quality** | You notice what's wrong in review | 14-category quality gate before commit |
|
|
99
|
+
| **Review** | Manual PR review | 9 specialized domain agents |
|
|
100
|
+
| **Findings** | Ad-hoc comments | Structured issues that flow through the same pipeline |
|
|
101
|
+
| **Audit trail** | Scattered conversation | Complete `FORGE:TRAJECTORY` on every issue |
|
|
102
|
+
| **Repeatability** | Varies by prompt | Same structured process every time |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Where Manual Workflows Still Win
|
|
107
|
+
|
|
108
|
+
ForgeDock isn't the right tool for everything. Manual Claude Code sessions are better for:
|
|
109
|
+
|
|
110
|
+
- **Exploratory work** — when you're not sure what you want yet
|
|
111
|
+
- **Rapid prototyping** — throwaway code that won't go to production
|
|
112
|
+
- **One-off questions** — "how does this library work?"
|
|
113
|
+
- **Interactive design** — iterative UI tweaks that need constant visual feedback
|
|
114
|
+
|
|
115
|
+
ForgeDock is optimized for **production work on real codebases** — bugs, features, refactors that need to be investigated, implemented correctly, reviewed, and shipped.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## The Memory Problem in Practice
|
|
120
|
+
|
|
121
|
+
Here's a real pattern that happens constantly without structured memory:
|
|
122
|
+
|
|
123
|
+
1. **Month 1**: Bug #12 — nil-check missing in payments. Fixed.
|
|
124
|
+
2. **Month 2**: PR #38 adds new payment flow. Nobody remembered rule from Bug #12. Same nil-check missing.
|
|
125
|
+
3. **Month 3**: Bug #67 — 500 errors for free users. Root cause: the nil-check from Month 1 pattern wasn't followed.
|
|
126
|
+
|
|
127
|
+
With ForgeDock, when the context agent runs for Bug #67, it searches for past review findings on the payments files. It finds Bug #12's root cause and the nil-check prevention rule. That rule is surfaced to the builder before any code is written.
|
|
128
|
+
|
|
129
|
+
The same mistake doesn't happen twice.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## The Coordination Cost
|
|
134
|
+
|
|
135
|
+
In a manual workflow, **you are the coordination layer**. You:
|
|
136
|
+
|
|
137
|
+
- Remember what the agent found in the last session
|
|
138
|
+
- Decide what files to point it at
|
|
139
|
+
- Notice when it's missing related files
|
|
140
|
+
- Check if the fix has side effects in other modules
|
|
141
|
+
- Run the tests and relay results back
|
|
142
|
+
- Manage the PR and review process
|
|
143
|
+
|
|
144
|
+
ForgeDock handles all of this. The human's job narrows to: open issue, type `/work-on`, review merged PR.
|
|
145
|
+
|
|
146
|
+
That's not a small difference. For a team shipping 20+ issues per week, eliminating coordination overhead compounds.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## What the Workflow Looks Like at Scale
|
|
151
|
+
|
|
152
|
+
With ForgeDock, you can run multiple pipelines in parallel:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
/orchestrate milestone launch-campaign
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
This spawns sub-agents that each run the full `/work-on` pipeline on every open issue in the milestone, in parallel — each in its own isolated git worktree, each writing to its own GitHub issue thread. No interference between agents. No coordination needed.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Next Steps
|
|
163
|
+
|
|
164
|
+
- [Getting Started with ForgeDock in 5 Minutes](./getting-started.md) — try it yourself
|
|
165
|
+
- [How ForgeDock's Knowledge Graph Works](./how-it-works.md) — understand the architecture
|
|
166
|
+
- [The FORGE Annotation Protocol](./forge-annotation-protocol.md) — the specification behind the pipeline
|
|
167
|
+
- [Complete Command Reference](./command-reference.md) — all 25 commands
|