/flisk-cli:layer-autoresearchfrom flisk-cli
Contributor-only autonomous keep/discard experiment loop (after karpathy/autoresearch) that edits Flisk's L1-L4 Docker layer generators in a flisk checkout and keeps only changes that lower idle memory per service, toward 100 services on a 16 GB machine. Use when asked to run autoresearch on the Docker layers or to optimise the golden/runtime layers experimentally. To only measure a stack, use flisk-benchmark.
Ships in flisk-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Adapted from karpathy/autoresearch program.md. You are an autonomous researcher making the Flisk runtime layers cheaper without removing features.
sep25). Create git checkout -b autoresearch/<tag> from main. The branch must be new.git worktree), because experiment commits and resets must not reach origin/main.runtime/engine/topologies/platform/docker/layers/*.star, runtime/engine/topologies/platform/docker/layers/prisma/*.star, runtime/engine/topologies/platform/docker/build/golden_image_dockerfile.star, runtime/engine/topologies/platform/docker/config/healthcheck.star.scripts/autoresearch/layer-eval.sh, scripts/benchmark/container-scale.ts, tests/tilt-engine/test_runtime_container_footprint.py, and any spec for the runtime container footprint under openspec/.LAYER_EVAL_SAMPLE (default 20) services. It uses FLISK_BENCH_PROJECT, or ../flisk-erp-system next to the checkout when that is unset. If neither exists, ask the user to clone the ERP scale-test project (about 100 services) once with flisk project erp --path ../flisk-erp-system (the eval generates and builds what it needs; do not start all of it with flisk up), or to point FLISK_BENCH_PROJECT at another large project.autoresearch-results.tsv with the header commit mem_mib image_mib status description.Run scripts/autoresearch/layer-eval.sh > run.log 2>&1 (about 5-10 minutes). Read the results with grep -A20 '^---' run.log.
mem_per_service_mib, lower is better. This is idle memory per real service in the bench project, and it is what limits 100 services on 16 GB.unique_per_service_mib or service_image_mib wins, then simpler code.status: ok requires all 20 services healthy, zero crashes, and passing feature tests. Anything else is a discard, or a crash if it didn't run.Candidate ideas from earlier measurements (re-measure before relying on them):
node_modules copy in the L4 backend runtime (4.2 MB twice per service).file, bash and openssl into every runtime image (30 MB apk layer). Check what actually needs them first.--smol) in the resolved CMD.git commit -m "<idea>".run.log (don't flood context).--- block, tail -n 50 run.log. Fix trivial mistakes, otherwise log crash.autoresearch-results.tsv (untracked).status: ok, keep the commit. Otherwise git reset --hard HEAD~1.The first run is always the unmodified baseline.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub flisk-sh/flisk-skills --plugin flisk-cli36 skills in this plugin
/flisk-agentsBuild and operate AI agent resources in a local Flisk stack - scaffold an agent (`--type agent`) next to an MCP tool server, a database and a queue, implement its process contract (`/health`, `/ready`, `POST /turn`, `GET /session`, `GET /sessions` with `x-session-id`), choose checkpoint durability, and inspect sessions with `flisk agent sessions`. Use when an app needs a long-running agent with durable sessions. For a generic backend or worker, use flisk-scaffold./flisk-benchmarkMeasure how many Flisk services fit on a machine - idle memory per service from the Docker VM (not `docker stats`), parallel start-up time, real image disk use, and health - with the benchmark scripts in a flisk checkout. Use when validating the 100-services-on-16-GB goal, checking a published performance number, or answering "how many services can my laptop run". To change the Docker layers and keep only improvements, use layer-autoresearch; to fix a slow or failing stack, use flisk-starlark-perf or flisk-troubleshoot./flisk-build-runtimesPick the language and framework of a new Flisk service - backends in Bun (Hono default, or Express, Elysia, Fastify, NestJS, Koa, h3), Python (FastAPI), Go, Rust or Node via `--language`, and frontends in React (default), Vue, Svelte, Preact, Lit, Solid, Qwik, Vanilla, TanStack Router or Next.js via `--framework`. Use when the user names a language or framework, or asks which ones Flisk supports. For a language Flisk has no provider for, use flisk-byo.