Heap Arena Replay — Development skill for Claude Code
Replay a malloc/free trace on a word-accurate simulated heap with headers, footers and free-list pointers.
How to install Heap Arena Replay
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pisan-labs/heap-arena-replay and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Heap Arena Replay does
Replay a malloc/free trace on a word-accurate simulated heap with headers, footers and free-list pointers. Compare first, next, best and worst fit on implicit, explicit and segregated lists, and generate quizzes. Built with Claude Code.
Alternatives in Development
- Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
- Semble — Fast and Accurate Code Search for Agents 6.1k ★
- Blueprints — Use when you need orientation on active work 60 ★
README
Heap Arena Replay
**A malloc you can watch.** Heap Arena Replay takes an allocation trace (`a 0 24`, `f 0`, `r 1 48`, or `p0 = malloc(24)`) and replays it on a word-accurate simulated heap in the style of the CS:APP allocator: header and footer boundary tags, a prologue block, an epilogue header, alignment padding, and for explicit and segregated free lists the pred and succ pointers stored in the first two payload words of every free block. Each step draws the whole heap as a strip of words, explains in a sentence what the allocator did and why, and keeps utilization, fragmentation and search cost over time. The same trace can be replayed under first-fit, next-fit, best-fit and worst-fit on an implicit list, an explicit list or segregated size classes, with immediate, deferred or no coalescing, and the policy can be switched partway through without disturbing the blocks already placed. A quiz generator reads its answers off the simulator, exports Markdown or a Canvas QTI package, and a diff mode finds the first op where a student allocator's addresses leave the reference. Everything runs in the browser.
Live: [heap-arena-replay.hintwise.org](https://heap-arena-replay.hintwise.org)

Implements idea #2 ("Heap Arena Replay") from the [2026-10-06 ideas day](https://github.com/pisanuw/daily-project-ideas) of `pisanuw/daily-project-ideas`.
What it does
- Replay tab. Pick a preset (textbook walk-through, the four coalescing cases, first-fit vs best-fit, the
Related Skills
Joinery
The linker for agent skill stacks: extract each skill's implicit CLI/MCP/client-feature dependencies, dry-fit
Validation Gating
Turn proposed harness changes into candidate-first changes with explicit replay, regression, and rollback expe
Vajra
Agent harness for Claude Code: verify-gate, OS sandbox, fleet mode, cost ledger, replay trace
Show Me Once
Agent skill: turn one demonstrated work session (shell history, step log, transcript) into a reusable, paramet
Vulyk Gc
Memory garbage collection - consolidate learnings, prune stale pointers, clean snapshots
Concurrency And State
Rust Intel — Concurrency & Shared State (smart pointers, locks, races, channels, contention)
Related Agents
Peer Reviewer Mixed Methods
A simulated peer reviewer specializing in mixed-methods research design, qualitative-quantitative integration,
Arch Doc Gener
gen arch doc
Log Analyst
Security log analysis specialist. Parses and correlates auth.log, nginx/apache access logs, Windows Event Logs