gstack: 98% Less Context Per Prompt Than The /investigate Skill.

gstack Case Study Architecture

Injected size

TOKENS CARRIED PER PROMPT
-98%
gstack /investigate skill15,593
Learned procedure293

2% of the context the skill costs to carry.

Turns per task

GBRAIN, CLAUDE CODE
-19%
Without memory16
With Memorable13

454 runs, every one passed.

gstack is Garry Tan's skill suite for coding agents. It runs on Claude Code with gbrain as its memory. A skill is a general manual loaded whole into context on every prompt. /investigate is 15,593 tokens. Memorable learned the same job from one session and handed back a 293-token procedure.

A 15,593-Token Manual, Loaded Every Time.

On the same three-bug fixture the skill added 55% input tokens and changed turns 0%. A general manual applies to novel work. On a task that recurs it costs context and changes nothing.

One Procedure, 293 Tokens.

One claude -p session solved the fixture cold. gbrain's session-end hook captured the trace. The extraction API turned it into a 293-token procedure: files touched, the command that proved the fix, exit codes, in order.

gstack skill

GENERAL MANUAL
>Loaded whole

15,593 tokens in context on every prompt, needed or not.

>Names no file

Written for any task, so it cannot say where this one lives.

>Turns unchanged

0% change on the fixture. Input tokens up 55%.

Learned procedure

PROCEDURAL MEMORY
>293 tokens

2% of the skill's context. Same model, same fixture.

>Names the files and the verify command

The files touched last time and the command that proved the fix, with its exit code.

>Turns down 19%

Held on an independent replication.

Session-End Hook, Extraction, Recall.

{ 01 }

Session-end hook

When a Claude Code session finishes, gbrain's SessionEnd hook hands the session to Memorable. The transcript never leaves; only the prompt and allow-listed tool arguments do.

claude -p sessionendsSessionEnd hookgbrainmemorable recordprompt + args only

293 Tokens. Turns Down 19%.

-98%

context per prompt, 293 tokens against 15,593 for the /investigate skill

-19%

turns per task with the procedure, 16 to 13

125/125

measured runs passed. No injection form has damaged correctness on this fixture.

EVAL_LOG.JSONEval log
MetricSkillLearned procedureHow it was measured
Tokens carried per prompt15,593293Same fixture, same model
Turns per task0% changeDown 19%The skill added 55% input tokens for no change in turns
Turns, receipted replication1613Two independent runs, every run passed

Try Memorable on your own agent

>npx memorable-cli@latest
># captured by gbrain's session-end hook, nothing else to wire

Case Studies From Design Partners.