Skip to content

docs(kilo-docs): scaffold Gastown documentation section#9754

Open
jrf0110 wants to merge 12 commits intomainfrom
gastown-docs
Open

docs(kilo-docs): scaffold Gastown documentation section#9754
jrf0110 wants to merge 12 commits intomainfrom
gastown-docs

Conversation

@jrf0110
Copy link
Copy Markdown
Contributor

@jrf0110 jrf0110 commented Apr 30, 2026

Summary

Scaffolds and fully writes the Gas Town by Kilo documentation section at /code-with-ai/gastown/. Includes 8 pages of content, interactive React Flow diagrams, a BrowserFrame component for screenshot presentation, and all screenshots placed.

Pages

Page Content
Overview Product positioning, agent roles table, how it works, core concepts, use cases
Quick Start Town creation, repo connection, GitHub PAT setup, first task, watching agents
Concepts Towns, beads (lifecycle diagram), convoys (execution diagram), rigs, agents, micro-adversarial loops (loop diagram), reconciler
The Mayor Capabilities, tools, communication patterns, tips, limitations
Sling Work Single tasks, convoys (why + execution), staged convoys, priority, progress monitoring (rig page, kanban, convoy tracker)
Code Review Review pipeline, adversarial loops, merge strategies, convoy-level review, merge queue, combining with Kilo Code Review
Settings Models, GitHub PAT (strongly recommended), merge strategy, refinery config, agent limits, env vars, custom instructions, per-rig overrides
Troubleshooting Common failure modes and fixes (agents stuck, container issues, git auth, review loops)

Technical Additions

  • FlowDiagram component — lazily loads @xyflow/react via dynamic import. Markdoc tag: {% flowDiagram name="..." height="..." /%}
  • Diagram registry (components/FlowDiagram/diagrams/) — 3 diagrams: bead-lifecycle, adversarial-loop, convoy-execution
  • BrowserFrame component — wraps screenshots in abstract browser chrome (traffic lights, URL bar). Markdoc tag: {% browserFrame url="..." caption="..." %}...{% /browserFrame %}
  • Nav config — registered under Platforms section as "Gas Town by Kilo" with sub-links
overview quick-start concepts the-mayor code-review sling-work troubleshooting

jrf0110 added 4 commits April 30, 2026 13:03
Add initial page structure for /code-with-ai/gastown/ with overview,
quick-start, concepts, mayor, sling-work, code-review, settings, and
troubleshooting pages. Register the section in the sidebar nav config.
Flesh out all 7 sub-pages with comprehensive content:
- Quick Start: town creation, PAT setup, first task flow
- Concepts: towns, beads, convoys, rigs, agents, micro-adversarial loops
- The Mayor: capabilities, tools, communication tips
- Sling Work: single tasks, convoys, staged convoys, DAG execution
- Code Review: refinery pipeline, adversarial loops, merge strategies
- Settings: models, GitHub PAT, merge strategy, env vars, custom instructions
- Troubleshooting: common failure modes and fixes

Includes React Flow diagram placeholders (TODO comments) describing
what each interactive diagram should visualize.

Also moves Gastown nav link under Platforms section with sub-links and
updates page title to 'Gas Town by Kilo'.
Integrate @xyflow/react for interactive architecture diagrams:
- FlowDiagram component with lazy loading (dynamic import)
- Markdoc tag: {% flowDiagram name="..." height="..." /%}
- Three initial diagrams: bead-lifecycle, adversarial-loop, convoy-execution
- Diagrams registry pattern for easy addition of new diagrams
- Replace TODO placeholders in concepts and code-review pages

The diagrams visualize the bead lifecycle state machine, the
micro-adversarial write/review/revise loop, and convoy DAG execution.
Add BrowserFrame component that wraps images in abstract browser chrome
(traffic light dots, optional URL bar, optional caption). Register as
Markdoc tag: {% browserFrame url="..." caption="..." %}...{% /browserFrame %}

Place all 12 provided screenshots across all Gastown pages:
- gt-new-town-onboarding.png → Quick Start
- gt-new-rig.png → Quick Start
- gt-town-overview.png → Quick Start, Overview, Concepts, Mayor
- gt-rig-page-convoy-in-progress.png → Quick Start, Overview, Sling Work
- gt-rig-page-staged-convoy.png → Overview
- gt-rig-page-staged-convoy-detail.png → Overview, Sling Work
- gt-rig-page-convoy-bead-in-review.png → Sling Work, Code Review
- gt-rig-page-convoy-review-bead-detail.png → Sling Work
- gt-beads-page.png → Overview, Sling Work
- gt-beads-page-detail.png → Sling Work
- gt-merge-queue-page.png → Code Review
- gt-merge-queue-page-review-detail.png → Code Review

Remove all TODO screenshot placeholders — every page now has visuals.
@jrf0110
Copy link
Copy Markdown
Contributor Author

jrf0110 commented Apr 30, 2026

Screenshots of the docs pages

Screenshots showing how the documentation renders with the BrowserFrame component and React Flow diagrams:

jrf0110 added 7 commits April 30, 2026 16:00
- Add preventScrolling={false} and panOnScroll={false} to ReactFlow
  so mouse wheel events pass through to the page instead of being
  captured by the diagram

- Set explicit sourcePosition/targetPosition on all nodes so edges
  connect from right→left for the main horizontal flow

- Use bottom→top routing for failure/rejection transitions so lines
  don't overlap nodes

- Reposition 'failed' node and adjust spacing for cleaner layout
Main flow edges (open→in_progress→in_review→closed) now exit and enter
from the top of each node, arcing above. Failed/rejected transitions
exit from bottom of source to top of target, dropping below.
… error)

Edge objects in React Flow don't have sourcePosition/targetPosition —
those properties only exist on Node. Remove them from all edge
definitions in bead-lifecycle, adversarial-loop, and convoy-execution
diagrams. The smoothstep edge type handles routing based on the node
positions instead.
Replace the abbreviated 6-tool table with the complete list of all 21
gt_* tools grouped by category: Work Creation, Convoy Management,
Bead Management, Agent Management, and Town & UI.
… models

Replace Claude Opus/Sonnet/Auto Free recommendations with Kilo Auto
Frontier (recommended) and Kilo Auto Balanced (minimum). Remove the
per-role model recommendation table since Auto handles routing.
The docs site is served under kilo.ai/docs so all internal links need
the /docs prefix to avoid 404s.
@jrf0110 jrf0110 marked this pull request as ready for review May 1, 2026 16:11
Comment thread packages/kilo-docs/components/FlowDiagram/index.tsx Outdated
Comment thread packages/kilo-docs/pages/code-with-ai/gastown/quick-start.md Outdated
Comment thread packages/kilo-docs/pages/code-with-ai/gastown/settings.md Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented May 1, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • packages/kilo-docs/components/FlowDiagram/index.tsx
  • packages/kilo-docs/pages/code-with-ai/gastown/quick-start.md
  • packages/kilo-docs/pages/code-with-ai/gastown/settings.md

Reviewed by gpt-5.5-2026-04-23 · 380,213 tokens

- Move diagram caption outside the overflow:hidden container so it's
  no longer clipped by the fixed-height wrapper
- Recommend fine-grained PATs scoped to the connected repository
  instead of classic repo-scope tokens (quick-start.md + settings.md)
- Add callout noting agents act on the user's behalf, so limiting
  token scope is a best practice
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