From d5b9a0e371e61b2bf06c726e37ab37f5c9e80744 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Wed, 27 May 2026 08:01:46 -0700 Subject: [PATCH] regen SKILL.md after adding \$B memory command The C8 commit added 'memory' to META_COMMANDS + COMMAND_DESCRIPTIONS but didn't regenerate the SKILL.md files. The category was 'Diagnostics' which isn't in scripts/resolvers/browse.ts:categoryOrder; switched to 'Server' (matches the existing 'status' / 'restart' / 'handoff' pattern) so the table renders under the existing ### Server section. Test fix: gen-skill-docs.test.ts asserts every command appears in the generated SKILL.md and gstack/llms.txt; without this regen the test fails with "Expected to contain: 'memory'". Co-Authored-By: Claude Opus 4.7 (1M context) --- SKILL.md | 1 + browse/SKILL.md | 1 + browse/src/commands.ts | 2 +- gstack/llms.txt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SKILL.md b/SKILL.md index 569350e37..a35e923c6 100644 --- a/SKILL.md +++ b/SKILL.md @@ -963,6 +963,7 @@ Refs are invalidated on navigation — run `snapshot` again after `goto`. | `disconnect` | Disconnect headed browser, return to headless mode | | `focus [@ref]` | Bring headed browser window to foreground (macOS) | | `handoff [message]` | Open visible Chrome at current page for user takeover | +| `memory [--json]` | Snapshot Bun heap + per-tab JS heap + Chromium process tree + bounded buffer sizes. JSON output with --json. | | `restart` | Restart server | | `resume` | Re-snapshot after user takeover, return control to AI | | `state save|load ` | Save/load browser state (cookies + URLs) | diff --git a/browse/SKILL.md b/browse/SKILL.md index 99e5add79..9f73f0005 100644 --- a/browse/SKILL.md +++ b/browse/SKILL.md @@ -921,6 +921,7 @@ $B prettyscreenshot --cleanup --scroll-to ".pricing" --width 1440 ~/Desktop/hero | `disconnect` | Disconnect headed browser, return to headless mode | | `focus [@ref]` | Bring headed browser window to foreground (macOS) | | `handoff [message]` | Open visible Chrome at current page for user takeover | +| `memory [--json]` | Snapshot Bun heap + per-tab JS heap + Chromium process tree + bounded buffer sizes. JSON output with --json. | | `restart` | Restart server | | `resume` | Re-snapshot after user takeover, return control to AI | | `state save|load ` | Save/load browser state (cookies + URLs) | diff --git a/browse/src/commands.ts b/browse/src/commands.ts index c3637fe9d..7e647a002 100644 --- a/browse/src/commands.ts +++ b/browse/src/commands.ts @@ -90,7 +90,7 @@ export function wrapUntrustedContent(result: string, url: string): string { export const COMMAND_DESCRIPTIONS: Record = { // Navigation - 'memory': { category: 'Diagnostics', description: 'Snapshot Bun heap + per-tab JS heap + Chromium process tree + bounded buffer sizes. JSON output with --json.', usage: 'memory [--json]' }, + 'memory': { category: 'Server', description: 'Snapshot Bun heap + per-tab JS heap + Chromium process tree + bounded buffer sizes. JSON output with --json.', usage: 'memory [--json]' }, 'goto': { category: 'Navigation', description: 'Navigate to URL (http://, https://, or file:// scoped to cwd/TEMP_DIR)', usage: 'goto ' }, 'load-html': { category: 'Navigation', description: 'Load HTML via setContent. Accepts a file path under safe-dirs (validated), OR --from-file with {"html":"...","waitUntil":"..."} for large inline HTML (Windows argv safe).', usage: 'load-html [--wait-until load|domcontentloaded|networkidle] [--tab-id ] | load-html --from-file [--tab-id ]' }, 'back': { category: 'Navigation', description: 'History back' }, diff --git a/gstack/llms.txt b/gstack/llms.txt index 3ac54bcd8..a11b045d1 100644 --- a/gstack/llms.txt +++ b/gstack/llms.txt @@ -141,6 +141,7 @@ Run with `browse [args]`. Full reference: `browse/SKILL.md`. - `disconnect`: Disconnect headed browser, return to headless mode - `focus [@ref]`: Bring headed browser window to foreground (macOS) - `handoff [message]`: Open visible Chrome at current page for user takeover +- `memory [--json]`: Snapshot Bun heap + per-tab JS heap + Chromium process tree + bounded buffer sizes. - `restart`: Restart server - `resume`: Re-snapshot after user takeover, return control to AI - `state save|load `: Save/load browser state (cookies + URLs)