[architecture] Update architecture diagram - 2026-04-24#28227
Conversation
Full rebuild from scratch — 22 packages analyzed across cmd/ and pkg/. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/q run weekly on Mondays |
|
🎩 Mission equipment ready! Q has optimized your workflow. Use wisely, 007! 🔫 |
There was a problem hiding this comment.
Pull request overview
Updates the repository architecture documentation by rebuilding the ASCII architecture diagram and package reference to reflect current cmd/ and pkg/ structure/dependencies.
Changes:
- Added a rebuilt 3-layer ASCII architecture diagram (Entry Points → Core Packages → Utility Packages) with dependency arrows.
- Added/updated a Package Reference table enumerating packages and their roles.
- Updated “Last updated” metadata and added a “Source” link for traceability.
Show a summary per file
| File | Description |
|---|---|
scratchpad/architecture.md |
Replaces/extends the architecture documentation with a newly generated diagram and package reference (currently duplicated with the previous version). |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 4
| @@ -1,5 +1,84 @@ | |||
| # Architecture Diagram | |||
|
|
|||
| > Last updated: 2026-04-24 · Source: [🏗️ Architecture Diagram: gh-aw Repository Architecture Diagram (2026-04-24)](https://github.com/github/gh-aw/issues) | |||
| | Package | Layer | Description | | ||
| |---------|-------|-------------| | ||
| | `cli` | Core | Command implementations (compile, run, mcp, logs, audit) | | ||
| | `workflow` | Core | Workflow compilation engine (markdown → GitHub Actions YAML) | | ||
| | `parser` | Core | Markdown/YAML frontmatter parsing and content extraction | | ||
| | `console` | Core | Terminal UI rendering and formatting utilities | | ||
| | `actionpins` | Core | Action pin resolution and semver-aware pinning | | ||
| | `agentdrain` | Core | Agent output stream drain and handling | | ||
| | `logger` | Utility | Namespace-based debug logging with zero overhead | | ||
| | `styles` | Utility | Centralized terminal style and color definitions | | ||
| | `tty` | Utility | TTY (terminal) detection utilities | | ||
| | `fileutil` | Utility | File path and file operation utilities | | ||
| | `gitutil` | Utility | Git repository utilities | | ||
| | `types` | Utility | Shared type definitions used across packages | | ||
| | `constants` | Utility | Shared constants and semantic type aliases | | ||
| | `stringutil` | Utility | String manipulation utilities (including ANSI stripping) | | ||
| | `sliceutil` | Utility | Generic slice utilities | |
| | `testutil` | Utility | Test helper utilities | | ||
|
|
||
| > Last updated: 2026-04-23 · Source: Issue #28016 (Architecture Diagram) | ||
|
|
||
| ## Overview |
| │ ENTRY POINTS │ | ||
| │ ┌──────────────────────────┐ ┌───────────────────────────────┐ │ | ||
| │ │ cmd/gh-aw │ │ cmd/gh-aw-wasm │ │ | ||
| │ │ main CLI binary │ │ WebAssembly compilation target│ │ |
|
Note The pull request was not created — a fallback review issue was created instead due to protected file changes: #28284 🎩 Mission accepted, 007! I've created a PR to add a weekly Monday schedule to the Q workflow. The Q workflow will now run automatically every Monday at 9am UTC (
|
Updates
scratchpad/architecture.mdwith a full-rebuild ASCII architecture diagram showing all 22 packages acrosscmd/andpkg/.What changed
Diagram highlights
cmd/gh-awandcmd/gh-aw-wasmat the topcli,workflow,parser,console,actionpins,agentdrain