gstack/scripts
Garry Tan b6b3fbc5e3
refactor(brain): compress GBRAIN_* resolvers, move template prose to docs/
generateGBrainContextLoad: 80 -> 115 tokens with explicit skip-header.
generateGBrainSaveResults: 500-700 -> 161 tokens per skill with the
skill metadata extracted into a typed skillSaveMap (slugPrefix + title
+ tag). Verbose prose (heredoc body, entity-stub instructions, throttle
handling, backlink protocol) moved into a new doc:
docs/gbrain-write-surfaces.md (Sections: §Context Load, §Save Template).
The agent reads the doc on-demand only when actually saving — one Read
call, cached by Claude's context.

Net per-planning-skill overhead under un-suppression drops from ~1000
tokens (naive un-suppression) to ~275 tokens (compressed). Combined
with the setup-time detection from prior commits, users WITHOUT gbrain
pay zero overhead (block suppressed at gen-time) and users WITH gbrain
pay ~275 tokens.

The /investigate special-case (data-research routing in CONTEXT_LOAD)
stays inline since it's skill-specific.

docs/gbrain-write-surfaces.md also serves as the manual-probe reference
for humans verifying live persistence + a topology summary covering
trust-policy + .gbrain-source reads-only semantics.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 08:34:15 -07:00
..
app
host-adapters
resolvers refactor(brain): compress GBRAIN_* resolvers, move template prose to docs/ 2026-05-27 08:34:15 -07:00
analytics.ts
archetypes.ts
brain-cache-spec.ts feat(brain): brain-cache-spec.ts — single source of truth for cache layer 2026-05-26 22:58:23 -07:00
build-app.sh
build.sh
capture-baseline.ts v1.46.0.0 feat: gstack v2 foundation — catalog tokens drop 56%, eval-first floor covers all 51 skills (#1712) 2026-05-26 16:50:03 -07:00
compare-pr-version.ts
detect-bump.ts
dev-skill.ts
discover-skills.ts
eval-compare.ts
eval-list.ts
eval-select.ts
eval-summary.ts
eval-watch.ts
garry-output-comparison.ts
gen-llms-txt.ts
gen-skill-docs.ts feat(brain): gen-skill-docs respects gbrain-detection override 2026-05-27 08:34:06 -07:00
gstack-schema-pack.ts feat(brain): gstack-core@1.0.0 schema pack (T1 / Phase 0) 2026-05-26 23:00:48 -07:00
host-config-export.ts
host-config.ts
jargon-list.json
models.ts
one-way-doors.ts
preflight-agent-sdk.ts
proactive-suggestions.json v1.47.0.0 feat: /spec — author backlog-ready spec in 5 phases + optional agent spawn (#1698) (#1733) 2026-05-26 21:36:53 -07:00
psychographic-signals.ts
question-registry.ts
setup-scc.sh
skill-check.ts
slop-diff.ts
task-emission-schema.ts
test-free-shards.ts
update-readme-throughput.ts
write-version-files.sh