Skip to content

Add DevContainer CLI guide, v2 migration guide, and full docs review#36

Merged
AnExiledDev merged 2 commits intomainfrom
worktree-docs-cli-v2-review
Feb 27, 2026
Merged

Add DevContainer CLI guide, v2 migration guide, and full docs review#36
AnExiledDev merged 2 commits intomainfrom
worktree-docs-cli-v2-review

Conversation

@AnExiledDev
Copy link
Owner

@AnExiledDev AnExiledDev commented Feb 27, 2026

Summary

  • New: DevContainer CLI guide — dedicated Getting Started page for terminal-only workflows without VS Code (build, connect, port forwarding, key differences, tips)
  • New: v2 Migration Guide — forward-looking guide for .codeforge/ config externalization (path changes, automatic migration, manual steps, breaking changes, troubleshooting)
  • Full docs accuracy review — 4 investigator agents audited all 30+ pages against the codebase; findings consolidated and fixes applied across 16 files

Pages updated (14 existing + 2 new)

Page Change
Port Forwarding VS Code dependency warning, dbr platform support matrix, CLI guide cross-link
Installation Slimmed from 318→231 lines; troubleshooting moved to reference page, CLI tab trimmed to summary + link
Troubleshooting Merged 6 installation-specific entries (npx failures, VS Code extension, Docker permissions, WSL 2, port conflicts, slow rebuilds)
Agents Documented 4 missing agents (implementer, investigator, tester, documenter); updated "new specialists" count from 11→15; updated capabilities matrix and access levels
Commands Removed 29-line ccms usage section for disabled feature
Configuration Added missing git-workflow and prompt-snippets to enabledPlugins example
First Session Added cc-orc orchestrator command to launch table
Environment Added CONFIG_SOURCE_DIR deprecation note on CODEFORGE_DIR
Agent System Improved magic-docs explanation
CodeForge LSP Clarified "no hook scripts" vs "no configuration"
Reference index Clarified plugin count as "13 local + 1 official"
Sidebar (astro.config.mjs) Added DevContainer CLI and Migrating to v2 entries
Getting Started index Added new pages to Next Steps
Changelog Added documentation entries under Unreleased

Test plan

  • npm run build in docs/ — 42 pages built, all internal links valid
  • Visual review of new pages (DevContainer CLI, Migrating to v2) in dev server
  • Verify sidebar renders 6 Getting Started items in correct order
  • Spot-check agent capabilities matrix for 21 rows

Summary by CodeRabbit

  • Documentation

    • Added comprehensive DevContainer CLI guide, Migrating to v2 guide, and a CLI-first path in installation.
    • Expanded troubleshooting with platform-specific port-forwarding, Docker/WSL, and rebuild guidance.
    • Slimmed/install page content, clarified plugin/LSP docs, removed deprecated ccms usage, and updated navigation/counts.
  • New Features

    • Documented four new specialist agents and added config/plugin references for git-workflow and prompt-snippets.

New pages:
- DevContainer CLI guide (Getting Started) — terminal-only workflow
  without VS Code: build, connect, port forwarding, key differences
- Migrating to v2 (Getting Started) — path changes, automatic migration,
  manual steps, breaking changes, troubleshooting

Updated pages:
- Port Forwarding — VS Code dependency warning, dbr platform matrix
- Installation — slimmed from 318 to 231 lines; moved troubleshooting
  to reference page, trimmed CLI tab to summary + link
- Troubleshooting — merged installation-specific entries (npx failures,
  VS Code extension, Docker permissions, WSL 2, port conflicts)
- Agents — documented 4 missing agents (implementer, investigator,
  tester, documenter); updated count from 11 to 15 new specialists
- Commands — removed 29-line ccms usage section for disabled feature
- Configuration — added missing git-workflow and prompt-snippets to
  enabledPlugins example
- First Session — added cc-orc to launch commands table
- Environment — added CONFIG_SOURCE_DIR deprecation note
- Agent System — improved magic-docs explanation
- CodeForge LSP — clarified "no hook scripts" vs "no configuration"
- Reference index — clarified plugin count as "13 local + 1 official"
- Sidebar — added DevContainer CLI and Migrating to v2 entries

Validated: npm run build passes with 42 pages, all internal links valid.
@coderabbitai
Copy link

coderabbitai bot commented Feb 27, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a08e964 and ca1fcda.

📒 Files selected for processing (4)
  • .devcontainer/CHANGELOG.md
  • docs/src/content/docs/features/agents.md
  • docs/src/content/docs/getting-started/devcontainer-cli.md
  • docs/src/content/docs/reference/troubleshooting.md

📝 Walkthrough

Walkthrough

This PR expands and reorganizes CodeForge documentation: adds DevContainer CLI and Migrating to v2 guides, shifts installation to a CLI-first flow, adds four agent specialists, enables two plugins, updates environment variable docs to CODEFORGE_DIR, and enhances troubleshooting and port-forwarding references.

Changes

Cohort / File(s) Summary
New Documentation Pages
\.devcontainer/CHANGELOG.md, docs/src/content/docs/getting-started/devcontainer-cli.md, docs/src/content/docs/getting-started/migrating-to-v2.md
Adds DevContainer CLI guide (installation, build/start, port forwarding, CLI vs VS Code), v2 migration guide (path mappings, migration steps, CODEFORGE_DIR rename), and changelog entries.
Navigation & Site Configuration
docs/astro.config.mjs, docs/src/content/docs/getting-started/index.md
Adds site navigation entries for DevContainer CLI and Migrating to v2 and updates "Next Steps" links.
Getting Started Updates
docs/src/content/docs/getting-started/installation.md, docs/src/content/docs/getting-started/first-session.md
Refactors installation content to emphasize CLI-first workflow and a concise troubleshooting summary; adds cc-orc to available launch commands.
Agents & Plugin Docs
docs/src/content/docs/features/agents.md, docs/src/content/docs/plugins/agent-system.md, docs/src/content/docs/plugins/codeforge-lsp.md
Expands documented agent roster (adds documenter, implementer, investigator, tester), clarifies magic-docs behavior, and refines wording about declarative LSP plugin configuration.
Plugin Configuration
docs/src/content/docs/customization/configuration.md
Enables git-workflow@devs-marketplace and prompt-snippets@devs-marketplace in the enabledPlugins list.
Reference Docs & Troubleshooting
docs/src/content/docs/reference/commands.md, docs/src/content/docs/reference/environment.md, docs/src/content/docs/reference/index.md, docs/src/content/docs/reference/port-forwarding.md, docs/src/content/docs/reference/troubleshooting.md
Removes detailed ccms usage examples, updates CODEFORGE_DIR description (dep. of CONFIG_SOURCE_DIR), expands troubleshooting (installation, Docker/WSL, permissions, port conflicts, slow rebuilds), and adds devcontainer-bridge platform support and direct SSH forwarding notes.

Sequence Diagram(s)

(omitted — changes are documentation-only and do not alter runtime control flow)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 In a burrow of docs I hop and write,
CLI and v2 paths gleam in soft moonlight.
New agents, new plugins—tools in a row,
Troubleshooting trails where coders go.
Hooray for tidy guides that help projects grow!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main changes: adding DevContainer CLI guide, v2 migration guide, and conducting a full documentation review.
Description check ✅ Passed The PR description comprehensively covers all required template sections including summary, related context, change types, and test plan with detailed documentation of all 16 updated files and rationale.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch worktree-docs-cli-v2-review

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
docs/src/content/docs/reference/troubleshooting.md (1)

16-16: Avoid recommending global npm install with sudo in primary troubleshooting guidance.

Line 16 suggests sudo npm install -g codeforge-dev; this can create permission and security issues on developer machines. Prefer npx --yes codeforge-dev (already listed) and, if needed, recommend fixing npm prefix/nvm instead of sudo.

Suggested doc tweak
-- **Permission errors** — on some systems, global npm installs need `sudo`. Try `npx --yes codeforge-dev` or install globally with `sudo npm install -g codeforge-dev`.
+- **Permission errors** — prefer `npx --yes codeforge-dev` to avoid global install permission issues. If you need global installs, configure npm prefix or use a Node version manager (e.g., nvm) instead of `sudo`.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/src/content/docs/reference/troubleshooting.md` at line 16, Replace the
problematic recommendation in the "**Permission errors**" troubleshooting bullet
that suggests "sudo npm install -g codeforge-dev": remove the `sudo` global
install suggestion and instead keep the safer `npx --yes codeforge-dev` option
and add a short note advising users to fix their npm permissions via nvm or
adjusting npm prefix/ownership; update the sentence mentioning "sudo npm install
-g codeforge-dev" to recommend repairing npm permissions (or using nvm) rather
than using `sudo`.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.devcontainer/CHANGELOG.md:
- Around line 17-29: The "#### Documentation" subsection mixes new additions and
modifications; split it into two subsections under the Unreleased block: create
a new "### Added" and move truly new entries (e.g., "Added DevContainer CLI
guide", "Added v2 Migration Guide", "Full documentation review", "Documented 4
previously undocumented agents", and "Added missing git-workflow and
prompt-snippets to configuration.md enabledPlugins example") into "### Added",
and leave or move the changed items (e.g., "Updated Port Forwarding reference",
"Slimmed Installation page", "Trimmed disabled ccms usage section", "Clarified
codeforge-lsp plugin description", "Improved magic-docs agent explanation",
"Clarified plugin count", and "Added CONFIG_SOURCE_DIR deprecation note" and
"Added cc-orc orchestrator command to first-session launch commands table" if
they are modifications) under "### Changed"; ensure headings are in the
Unreleased block and that each entry is placed under the appropriate heading per
the changelog guidelines.

In `@docs/src/content/docs/features/agents.md`:
- Line 33: Remove "architect" from the "entirely new specialists" sentence and
list in the paragraph that begins "Beyond the six replacements, CodeForge adds
**15 entirely new specialists**..." so the count and items match (i.e., keep the
count at 15 and delete the `architect` token from the comma-separated list),
ensuring the phrase now lists only the truly new agents like debug-logs,
dependency-analyst, doc-writer, documenter, git-archaeologist, implementer,
investigator, migrator, perf-profiler, refactorer, researcher, security-auditor,
spec-writer, tester, and test-writer.

In `@docs/src/content/docs/getting-started/devcontainer-cli.md`:
- Line 16: Update the sentence that currently reads "Requires Node.js 18+" to
accurately reflect the CLI's supported Node versions and the standalone
installer: change it to state that the CLI supports Node.js ^16.13.0
(16.13.0–17.x) and >=18.0.0 (e.g., "Requires Node.js ^16.13.0 or >=18.0.0; you
can also use the standalone install script which bundles Node.js"), and keep the
verification command `devcontainer --version` unchanged so users can confirm the
installation.

---

Nitpick comments:
In `@docs/src/content/docs/reference/troubleshooting.md`:
- Line 16: Replace the problematic recommendation in the "**Permission errors**"
troubleshooting bullet that suggests "sudo npm install -g codeforge-dev": remove
the `sudo` global install suggestion and instead keep the safer `npx --yes
codeforge-dev` option and add a short note advising users to fix their npm
permissions via nvm or adjusting npm prefix/ownership; update the sentence
mentioning "sudo npm install -g codeforge-dev" to recommend repairing npm
permissions (or using nvm) rather than using `sudo`.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 862437e and a08e964.

📒 Files selected for processing (16)
  • .devcontainer/CHANGELOG.md
  • docs/astro.config.mjs
  • docs/src/content/docs/customization/configuration.md
  • docs/src/content/docs/features/agents.md
  • docs/src/content/docs/getting-started/devcontainer-cli.md
  • docs/src/content/docs/getting-started/first-session.md
  • docs/src/content/docs/getting-started/index.md
  • docs/src/content/docs/getting-started/installation.md
  • docs/src/content/docs/getting-started/migrating-to-v2.md
  • docs/src/content/docs/plugins/agent-system.md
  • docs/src/content/docs/plugins/codeforge-lsp.md
  • docs/src/content/docs/reference/commands.md
  • docs/src/content/docs/reference/environment.md
  • docs/src/content/docs/reference/index.md
  • docs/src/content/docs/reference/port-forwarding.md
  • docs/src/content/docs/reference/troubleshooting.md
💤 Files with no reviewable changes (1)
  • docs/src/content/docs/reference/commands.md

npm install -g @devcontainers/cli
```

Requires Node.js 18+. Verify the installation with `devcontainer --version`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Checking `@devcontainers/cli` package engines ==="
curl -fsSL https://unpkg.com/@devcontainers/cli@latest/package.json | jq -r '.engines.node'

echo ""
echo "=== Checking latest version info ==="
curl -fsSL https://registry.npmjs.org/@devcontainers/cli/latest | jq '{version: .version, engines: .engines}'

Repository: AnExiledDev/CodeForge

Length of output: 256


🌐 Web query:

@devcontainers/cli Node.js version requirements official documentation

💡 Result:

  • If installing @devcontainers/cli via npm: the package’s engines field requires Node.js ^16.13.0 || >=18.0.0. [1]
  • If using the standalone install script: it downloads a bundled Node.js runtime, so no pre-installed Node.js is required for that install path. [2]
  • Note: the VS Code Dev Containers CLI page still states “Node.js (version 14 or greater)” for npm install, which may be outdated relative to the package’s current engines requirement. [3]

Sources: [1] [2] [3]


Line 16 incorrectly restricts the Node.js requirement to 18+ when the CLI supports Node.js 16.13.0 and above.
The @devcontainers/cli package's actual engine requirement is ^16.13.0 || >=18.0.0, so users with Node.js 16.13.0–17.x will be unnecessarily discouraged.
Additionally, users can bypass Node.js pre-installation entirely by using the standalone install script (which bundles its own Node.js runtime).

Suggested update
-Requires Node.js 18+. Verify the installation with `devcontainer --version`.
+Requires Node.js 16.13.0 or higher (when installing via npm). Alternatively, use the standalone install script which includes a bundled Node.js runtime. Verify the installation with `devcontainer --version`.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Requires Node.js 18+. Verify the installation with `devcontainer --version`.
Requires Node.js 16.13.0 or higher (when installing via npm). Alternatively, use the standalone install script which includes a bundled Node.js runtime. Verify the installation with `devcontainer --version`.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/src/content/docs/getting-started/devcontainer-cli.md` at line 16, Update
the sentence that currently reads "Requires Node.js 18+" to accurately reflect
the CLI's supported Node versions and the standalone installer: change it to
state that the CLI supports Node.js ^16.13.0 (16.13.0–17.x) and >=18.0.0 (e.g.,
"Requires Node.js ^16.13.0 or >=18.0.0; you can also use the standalone install
script which bundles Node.js"), and keep the verification command `devcontainer
--version` unchanged so users can confirm the installation.

- Split changelog entries into proper Added/Changed sections
- Remove architect from "entirely new" agent list (it's a Plan replacement)
- Fix Node.js version requirement: 16.13+ or 18+, not just 18+
- Replace sudo npm install recommendation with nvm/npm-prefix advice
@AnExiledDev AnExiledDev merged commit 5612bc4 into main Feb 27, 2026
4 checks passed
@AnExiledDev AnExiledDev deleted the worktree-docs-cli-v2-review branch February 27, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant