Skip to content

Add comprehensive codebase knowledge doc and product landing page - #4

Closed
opx0 wants to merge 2 commits into
mainfrom
claude/explore-codebase-docs-08M1z
Closed

opx0 wants to merge 2 commits into
mainfrom
claude/explore-codebase-docs-08M1z

Conversation

@opx0

@opx0 opx0 commented May 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR adds two companion artifacts to support onboarding and product communication:

  1. codebase-analysis-docs/CODEBASE_KNOWLEDGE.md — A 950+ line self-contained reference document for AI agents and developers working on dev-cli. It maps every feature to its business purpose, documents the system architecture, control flow, cross-feature interactions, and edge cases.

  2. web/index.html + web/README.md — A static product-release landing page with Anthropic-inspired design, featuring hero section, feature cards, safety guarantees, architecture diagram, install instructions, and deployment guidance.

Key Changes

Codebase Knowledge Document (CODEBASE_KNOWLEDGE.md)

  • High-level overview — What dev-cli is, tech stack, architectural style, and headline business outcomes
  • System architecture — Layer diagram, agent loop sequence diagram, LLM provider routing logic, data flow with shell hooks, cross-cutting concerns (safety patterns, approval flow, logging, event bus, caching, tool registry, memory recall)
  • Feature-by-feature analysis — 15 commands documented with business purpose, entry points, control flow, side effects, cross-feature dependencies, and edge cases:
    • fix (autonomous agent with runbook replay)
    • explain (root-cause analysis with 50+ pattern DB)
    • ask (cheat sheets + research with web-search routing)
    • ui (bubbletea TUI dashboard)
    • doctor (system health checks)
    • models, init, memory, runbook, commit, pr, review, gen, test, config, export, mark-resolved, log-event, version
  • Cross-feature interaction map — How commands share tools, storage, safety checks, and memory
  • Nuances & gotchas — Runbook matching heuristics, output truncation, model selection precedence, cache behavior
  • Technical reference — File paths, function signatures, configuration precedence, safety pattern lists
  • Glossary — Key terms (Safe Mode, Runbook, Wing, Fingerprint, etc.)
  • Open questions — Known TODOs and deferred work (MCP integration, checkpoint store)

Product Landing Page (web/index.html)

  • Responsive design — Anthropic-inspired palette (cream bg, clay accent, near-black ink), serif headlines, sans-serif body, monospace code
  • Sections:
    • Sticky navigation with GitHub link
    • Hero with animated terminal demo of dev-cli fix
    • Three pillars (Trust-first / Local-first / Learn-from-success)
    • Six-card command grid (fix, explain, ask, ui, doctor, runbook)
    • Dark safety panel with denied-command terminal demo
    • Stats row (11 tools, 75+ patterns, 50+ globs, 0 tokens out)
    • ASCII architecture diagram
    • Install instructions with copy-to-clipboard buttons
    • CTA band and footer
  • No build step — Single HTML file with inline CSS and vanilla JS for clipboard functionality

Deployment Guide (web/README.md)

  • Local preview instructions (open file, Python server)
  • Deployment options (GitHub Pages, Netlify, Cloudflare Pages, S3, Caddy)
  • Design rationale and color palette
  • Section-by-section breakdown
  • Editing checklist for keeping docs in sync with CLI changes

Notable Implementation Details

  • The knowledge document is anchored to file paths throughout (e.g., cmd/fix.go:33-64, internal/llm/agent.go:153-209) so claims are verifiable against the actual codebase
  • Sequence diagrams and ASCII architecture diagrams are embedded as Mermaid and pre-formatted text for easy reading in both GitHub and rendered HTML
  • The landing page uses CSS custom properties for theming, making it easy to adjust colors or typography
  • Terminal demo uses semantic HTML with ARIA labels and styled <span> elements for syntax highlighting
  • All interactive elements (buttons, links, copy buttons) have hover states and smooth transitions

https://claude.ai/code/session_01KHMmnqN4Rfeo5cMihgpnYt

Summary by CodeRabbit

  • New Features

    • Launched the official dev-cli landing page featuring product overview, differentiators, feature grid, safe-mode showcase, statistics, architecture visualization, and copy-to-clipboard installation snippets.
  • Documentation

    • Added comprehensive developer codebase documentation covering architecture, core systems, and operational details.
    • Added landing page deployment guide supporting GitHub Pages and other static hosting platforms.

claude added 2 commits May 7, 2026 15:41
Captures the architecture, features, cross-cutting concerns, gotchas, and
technical reference for dev-cli in a single self-contained document under
codebase-analysis-docs/. Intended as onboarding material for AI agents and
new contributors.
Single-file static site (web/index.html) styled in the Anthropic visual
language: cream background, Claude-coral accent, serif headlines.

Sections: hero with live-styled terminal demo, three-pillar value prop,
six-command feature grid, dark safe-mode panel with a denied-command
demo, stats row, ASCII architecture diagram, install + first-run code
blocks with copy buttons, CTA band, footer.

No build step. Preview with `open web/index.html`. Deployable as-is to
GitHub Pages, Netlify, or any static host.

Cross-links the existing codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
from the footer and CTA band, and updates that doc to point back at the
landing page.
Copilot AI review requested due to automatic review settings May 7, 2026 16:11
@coderabbitai

coderabbitai Bot commented May 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces two independent documentation-and-web-assets initiatives for the dev-cli v0.1 release: a comprehensive codebase knowledge document for developers, and public-facing web landing page materials including an HTML page, README guide, and deployment instructions.

Changes

Developer Codebase Knowledge

Layer / File(s) Summary
Overview & Command Mapping
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Introduces codebase knowledge document with project overview, tech stack, architectural style, and top-level command reference table mapping each CLI command to business purpose.
System Architecture & Data Flow
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Documents layered module architecture, agent loop sequencing, HybridClient routing/caching behavior, shell hook integration, and configuration precedence rules.
Feature-by-Feature Analysis
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Provides detailed entry points, control flow, side effects, and edge cases for all major commands including fix, explain, ask, ui, doctor, models, init, memory, runbook, commit/pr/review, gen, test, and config.
Cross-Feature Integration Contracts
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Documents runbook/memory wiring, safety pattern canonical source-of-truth, registry singleton behavior, model rewriting responsibility in HybridClient, and platform-specific paths.
Nuances & Gotchas
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Explains safety substring-match behavior, approval gating scope, tool output truncation, routing precedence, DB singleton/panic risk, TUI/pipeline lifecycle, MemPalace async behavior, and build constraints.
Technical Reference & Schema
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Provides package map, public type surfaces (Agent, Provider, HybridClient, Registry, Engine, executor, storage), SQLite schema, built-in tools table with safety notes, and configuration reference.
Glossary & Next Steps
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
Adds glossary entries, version/state metadata, file map by importance, known risks and open questions, and guidance for extending the codebase.

Web Landing Page & Release Materials

Layer / File(s) Summary
README & Deployment Guide
web/README.md
Documents how to preview the single-file landing page locally, deploy to static hosts (including GitHub Pages), describes design system choices, enumerates content sections, and provides editing checklist for CLI surface changes.
Page Structure & Styling
web/index.html
Defines complete embedded CSS styling with theme variables, responsive breakpoints, component layouts, typography, and implements sticky navigation bar with hero section containing terminal demo.
Content Sections
web/index.html
Implements page content blocks including pillars differentiators ("Trust first", "Local first", "Learn from success"), features/commands grid, safe-mode section with example terminal output, stats display, architecture diagram, install code cards, CTA band, and footer.
Interactive Copy-to-Clipboard
web/index.html
Adds inline JavaScript function copyToClipboard(btn) to enable code snippet copying from install cards with visual feedback (button label change and reset).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A warren of docs now guards the way,
With landing page bright for the launch day,
Architectures mapped, commands explained,
And web assets styled, all maintained,
A release prepared, hop hooray! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely summarizes the main changes: adding both a comprehensive codebase knowledge document and a product landing page. It is specific, clear, and directly reflects the two primary contributions of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/explore-codebase-docs-08M1z

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds onboarding and product-communication artifacts to the dev-cli repo: a large “codebase knowledge” reference document for developers/agents and a static, no-build product landing page under web/.

Changes:

  • Added codebase-analysis-docs/CODEBASE_KNOWLEDGE.md as a comprehensive architecture + feature reference anchored to repo paths.
  • Added web/index.html as a single-file landing page with inline CSS/JS (copy-to-clipboard buttons, terminal demos, sections for features/safety/architecture/install).
  • Added web/README.md with local preview + deployment guidance for the static site.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
web/README.md Documents how to preview/deploy the static landing page and what to keep in sync.
web/index.html Implements the static landing page UI, navigation, and clipboard-copy behavior.
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md Adds a detailed internal reference mapping features to architecture, flow, and code locations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/index.html
Comment on lines +617 to +622
<a class="btn btn-primary" href="https://github.com/opx0/dev-cli">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58v-2.17c-3.34.73-4.04-1.42-4.04-1.42-.55-1.39-1.34-1.76-1.34-1.76-1.09-.74.08-.73.08-.73 1.21.09 1.85 1.24 1.85 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.66-.3-5.47-1.33-5.47-5.92 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.11-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.66.25 2.88.12 3.18.77.84 1.24 1.91 1.24 3.22 0 4.6-2.81 5.62-5.49 5.91.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.83.58A12 12 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
Star on GitHub
</a>
<a class="btn btn-ghost" href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md">Read the architecture doc</a>
</div>
Comment thread web/index.html
Comment on lines +639 to +640
<a href="../docs/MODELS.md">Models</a>
<a href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md">Architecture</a>
Comment thread web/index.html
Comment on lines +646 to +653
function copyToClipboard(btn) {
const card = btn.parentElement;
const text = card.querySelector('pre').innerText;
navigator.clipboard.writeText(text).then(() => {
const old = btn.innerText;
btn.innerText = "copied";
setTimeout(() => { btn.innerText = old; }, 1200);
});
Comment thread web/index.html
text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
a:hover { border-bottom-color: var(--ink); }
Comment thread web/README.md
Comment on lines +7 to +12
```bash
# any of these work — no build step required
open web/index.html
xdg-open web/index.html
python3 -m http.server -d web 8080 # then http://localhost:8080
```

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
codebase-analysis-docs/CODEBASE_KNOWLEDGE.md (3)

59-79: ⚡ Quick win

Add language specifier to fenced code block.

The code block lacks a language identifier. Adding text or plaintext will improve rendering and satisfy linting rules.

📝 Proposed fix
-```
+```text
 cmd/                 ← presentation: Cobra subcommands, output, prompts
   └─ depends on internal/{llm, tools, workflow, storage, config, …}

As per coding guidelines, markdownlint recommends specifying a language for all fenced code blocks.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@codebase-analysis-docs/CODEBASE_KNOWLEDGE.md` around lines 59 - 79, The
fenced code block in CODEBASE_KNOWLEDGE.md is missing a language tag; update the
opening fence so it declares a language such as "text" or "plaintext" (e.g.,
change ``` to ```text) for the block showing the repo layout (lines containing
"cmd/" and the various "internal/..." entries) so markdownlint renders it
correctly and the linter passes.

256-259: ⚡ Quick win

Add language specifier to fenced code block.

The precedence diagram code block should specify a language identifier for proper rendering.

📝 Proposed fix
-```
+```text
 defaults  <  YAML file (~/.devlogs/config.yaml)  <  environment variables

As per coding guidelines, markdownlint recommends specifying a language for all fenced code blocks.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@codebase-analysis-docs/CODEBASE_KNOWLEDGE.md` around lines 256 - 259, The
fenced code block in CODEBASE_KNOWLEDGE.md containing "defaults  <  YAML file
(~/.devlogs/config.yaml)  <  environment variables" lacks a language specifier;
update that fenced block to include a language identifier (e.g., text) after the
opening backticks so Markdown renders it properly and satisfies markdownlint.

868-922: ⚡ Quick win

Add language specifier to fenced code block.

The file map code block should specify a language identifier for proper rendering.

📝 Proposed fix
-```
+```text
 P0 (entry points / load-bearing)
   main.go                                  CLI entry → cmd.Execute

As per coding guidelines, markdownlint recommends specifying a language for all fenced code blocks.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@codebase-analysis-docs/CODEBASE_KNOWLEDGE.md` around lines 868 - 922, The
fenced code block in CODEBASE_KNOWLEDGE.md (the multi-line file map block
starting with "P0 (entry points / load-bearing)") lacks a language specifier;
update the opening fence to include a language identifier (e.g., change ``` to
```text) so the block renders correctly and satisfies markdownlint rules.
web/index.html (2)

639-640: ⚡ Quick win

Relative links will break when deployed standalone.

The footer links to ../docs/MODELS.md and ../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md assume the full repository structure. When the landing page is deployed to a static host serving only the web/ directory (as described in web/README.md), these links will return 404.

Consider using absolute GitHub URLs for these documentation links:

🔗 Proposed fix
-      <a href="../docs/MODELS.md">Models</a>
-      <a href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md">Architecture</a>
+      <a href="https://github.com/opx0/dev-cli/blob/main/docs/MODELS.md">Models</a>
+      <a href="https://github.com/opx0/dev-cli/blob/main/codebase-analysis-docs/CODEBASE_KNOWLEDGE.md">Architecture</a>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/index.html` around lines 639 - 640, The footer contains two relative
anchor hrefs ("Models" pointing to "../docs/MODELS.md" and "Architecture"
pointing to "../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md") which will 404
when the site is served from the web/ directory; update the href attributes on
those "Models" and "Architecture" anchor elements in web/index.html to use
absolute GitHub URLs (or other canonical absolute URLs) that point to the
repository's docs (e.g. the blob/raw URLs on github.com) so the links resolve
when deployed standalone.

645-654: ⚡ Quick win

Add error handling to clipboard API.

The copyToClipboard function uses the Clipboard API without error handling. The Clipboard API requires a secure context (HTTPS or localhost) and may fail if permissions are denied or the API is unsupported.

🛡️ Proposed fix
   function copyToClipboard(btn) {
     const card = btn.parentElement;
     const text = card.querySelector('pre').innerText;
-    navigator.clipboard.writeText(text).then(() => {
+    navigator.clipboard.writeText(text).then(() => {
       const old = btn.innerText;
       btn.innerText = "copied";
       setTimeout(() => { btn.innerText = old; }, 1200);
+    }).catch(err => {
+      console.error('Failed to copy:', err);
+      btn.innerText = "failed";
+      setTimeout(() => { btn.innerText = "copy"; }, 1200);
     });
   }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/index.html` around lines 645 - 654, The copyToClipboard function
currently calls navigator.clipboard.writeText without feature detection or error
handling; update copyToClipboard to first check for navigator.clipboard and
navigator.clipboard.writeText, wrap the writeText call in a promise chain (or
async/try-catch) to catch rejections, and handle failures by restoring the
button text to a failure state (e.g., "failed") and optionally reverting after a
timeout; if the Clipboard API is unavailable, implement a fallback (temporary
textarea + document.execCommand('copy')) and also handle errors from that path,
referencing the copyToClipboard function and navigator.clipboard.writeText so
changes are easy to locate.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web/index.html`:
- Line 621: The relative link in the anchor element with class "btn btn-ghost"
(href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md" in web/index.html) can
break when only the web/ directory is deployed; update the href to an absolute
GitHub URL for the file (e.g.,
https://github.com/<org>/<repo>/blob/main/codebase-analysis-docs/CODEBASE_KNOWLEDGE.md)
or, alternatively, add a note in web/README.md instructing deployers to copy or
symlink CODEBASE_KNOWLEDGE.md into the web directory so the relative path
remains valid.

---

Nitpick comments:
In `@codebase-analysis-docs/CODEBASE_KNOWLEDGE.md`:
- Around line 59-79: The fenced code block in CODEBASE_KNOWLEDGE.md is missing a
language tag; update the opening fence so it declares a language such as "text"
or "plaintext" (e.g., change ``` to ```text) for the block showing the repo
layout (lines containing "cmd/" and the various "internal/..." entries) so
markdownlint renders it correctly and the linter passes.
- Around line 256-259: The fenced code block in CODEBASE_KNOWLEDGE.md containing
"defaults  <  YAML file (~/.devlogs/config.yaml)  <  environment variables"
lacks a language specifier; update that fenced block to include a language
identifier (e.g., text) after the opening backticks so Markdown renders it
properly and satisfies markdownlint.
- Around line 868-922: The fenced code block in CODEBASE_KNOWLEDGE.md (the
multi-line file map block starting with "P0 (entry points / load-bearing)")
lacks a language specifier; update the opening fence to include a language
identifier (e.g., change ``` to ```text) so the block renders correctly and
satisfies markdownlint rules.

In `@web/index.html`:
- Around line 639-640: The footer contains two relative anchor hrefs ("Models"
pointing to "../docs/MODELS.md" and "Architecture" pointing to
"../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md") which will 404 when the site
is served from the web/ directory; update the href attributes on those "Models"
and "Architecture" anchor elements in web/index.html to use absolute GitHub URLs
(or other canonical absolute URLs) that point to the repository's docs (e.g. the
blob/raw URLs on github.com) so the links resolve when deployed standalone.
- Around line 645-654: The copyToClipboard function currently calls
navigator.clipboard.writeText without feature detection or error handling;
update copyToClipboard to first check for navigator.clipboard and
navigator.clipboard.writeText, wrap the writeText call in a promise chain (or
async/try-catch) to catch rejections, and handle failures by restoring the
button text to a failure state (e.g., "failed") and optionally reverting after a
timeout; if the Clipboard API is unavailable, implement a fallback (temporary
textarea + document.execCommand('copy')) and also handle errors from that path,
referencing the copyToClipboard function and navigator.clipboard.writeText so
changes are easy to locate.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 761d5726-ee90-44d8-9060-99876a2cd334

📥 Commits

Reviewing files that changed from the base of the PR and between 4a0e244 and 6e01f63.

📒 Files selected for processing (3)
  • codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
  • web/README.md
  • web/index.html

Comment thread web/index.html
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58v-2.17c-3.34.73-4.04-1.42-4.04-1.42-.55-1.39-1.34-1.76-1.34-1.76-1.09-.74.08-.73.08-.73 1.21.09 1.85 1.24 1.85 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.66-.3-5.47-1.33-5.47-5.92 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.11-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.66.25 2.88.12 3.18.77.84 1.24 1.91 1.24 3.22 0 4.6-2.81 5.62-5.49 5.91.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.83.58A12 12 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
Star on GitHub
</a>
<a class="btn btn-ghost" href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md">Read the architecture doc</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Verify the relative path to CODEBASE_KNOWLEDGE.md.

The link uses ../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md, which assumes the repository structure places web/ and codebase-analysis-docs/ as siblings at the repository root. This is correct based on the PR file structure, but when deployed to a static host (e.g., GitHub Pages serving only the web/ directory), this link will break.

Consider one of these approaches:

  1. Document in web/README.md that deployers should copy or link the knowledge doc into the web directory
  2. Use an absolute GitHub URL instead: https://github.com/opx0/dev-cli/blob/main/codebase-analysis-docs/CODEBASE_KNOWLEDGE.md
  3. Accept that this link only works when the full repository is served
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/index.html` at line 621, The relative link in the anchor element with
class "btn btn-ghost" (href="../codebase-analysis-docs/CODEBASE_KNOWLEDGE.md" in
web/index.html) can break when only the web/ directory is deployed; update the
href to an absolute GitHub URL for the file (e.g.,
https://github.com/<org>/<repo>/blob/main/codebase-analysis-docs/CODEBASE_KNOWLEDGE.md)
or, alternatively, add a note in web/README.md instructing deployers to copy or
symlink CODEBASE_KNOWLEDGE.md into the web directory so the relative path
remains valid.

@opx0 opx0 closed this May 13, 2026
@opx0
opx0 deleted the claude/explore-codebase-docs-08M1z branch May 13, 2026 09:20
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.

3 participants