layer-autoresearch
Installation
SKILL.md
Layer autoresearch
Adapted from karpathy/autoresearch program.md. You are an autonomous researcher making the TDK runtime layers cheaper without removing features.
Setup (with the user, once)
- Agree a run tag (e.g.
sep25). Creategit checkout -b autoresearch/<tag>frommain. The branch must be new. - Warn the user: this workspace has an external tool that auto-commits and pushes working-tree edits. Ask them to pause it for the run, because experiment resets must not reach
origin/main. - Read the in-scope files in full:
- Editable:
engine/topologies/platform/docker/layers/*.star,engine/topologies/platform/docker/layers/prisma/*.star,engine/topologies/platform/docker/build/golden_image_dockerfile.star,engine/topologies/platform/docker/config/healthcheck.star. - Read-only ground truth:
scripts/autoresearch/layer-eval.sh,scripts/benchmark/container-scale.ts,tests/tilt-engine/test_runtime_container_footprint.py, and the specopenspec/specs/runtime-container-footprint(or its change underopenspec/changes/).
- Editable:
- Check that
../tdk-erp-systemexists with built images (docker images | grep finance_). If not, ask the human to runtdk upthere once. - Create an untracked
autoresearch-results.tsvwith the headercommit mem_mib image_mib status description. - Confirm with the user, then start.
Experiment
Run scripts/autoresearch/layer-eval.sh > run.log 2>&1 (about 5-10 minutes). Read the results with grep -A20 '^---' run.log.