runtime-rebuild

A documented process rebuilds and labels the Docker image used as the CodeHub runtime. Docker images are packaged environments used to run software consistently.

In plain words
What is it for?
It is for rebuilding the runtime image, performing a clean no-cache build, checking installed command-line tools, and optionally tagging the canonical version as latest.
Why use it?
It helps ensure runtime changes, installation commands, and image version updates are built and checked from the current source.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mpolatcan/codehub/runtime-rebuild
Any agent
npx skills add mpolatcan/codehub --skill runtime-rebuild
Clone the repo
git clone --depth 1 https://github.com/mpolatcan/codehub

Made for: Claude Code, Codex.

Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00576
Opus 5 $0.00021 $0.00288
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00058

Measured 2d ago against content hash 2194c07f4477, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

runtime-rebuild scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `SHELL ["bash", "-euo", "pipefail", "-c"]` at the top of the Dockerfile is intentional. If a `curl … | bash` install line fails silently, pipefail surfaces it as a build error. Don't remove this.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `SHELL ["bash", "-euo", "pipefail", "-c"]` at the top of the Dockerfile is intentional. If a `curl … | bash` install line fails silently, pipefail surfaces it as a build error. Don't remove this.
.claude/skills/runtime-rebuild/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rebuild CodeHub runtime image

Run this skill when any of:

  • runtime/Dockerfile was edited
  • a CLI install command was added, removed, or updated
  • the runtime tag in lib.rs (DEFAULT_IMAGE) was bumped
  • you want to verify a clean build from scratch (no Docker layer cache)

Steps

  1. Confirm tag. Read src-tauri/src/lib.rs and locate DEFAULT_IMAGE (line near the top of run()). The version after : is the source of truth.

  2. Build. From repo root:

    make image                # equivalent to: docker build -t <repo>:<VERSION> runtime/
    make image-nocache        # --no-cache, guaranteed-clean rebuild
    

    Both targets parse the version from src-tauri/src/lib.rs:DEFAULT_IMAGE. Override via:

    make image IMAGE_TAG=0.2.0
    
  3. Smoke-test inside the image before declaring success:

    make image-verify
    

    Every CLI must produce a path + version. If which antigravity is added it will currently fail because Antigravity install is commented out — that is expected; do not block on it.

  4. Tag latest only if this is the canonical version on main:

    docker tag ghcr.io/mpolatcan/codehub-runtime:<VERSION> ghcr.io/mpolatcan/codehub-runtime:latest
    
  5. Multi-arch build for publishing (only when cutting a release — see release-cut skill):

    make image-push          # buildx --platform linux/amd64,linux/arm64 --push
    

Notes

  • SHELL ["bash", "-euo", "pipefail", "-c"] at the top of the Dockerfile is intentional. If a curl … | bash install line fails silently, pipefail surfaces it as a build error. Don't remove this.
  • If the build succeeds but a CLI is missing in the smoke test, suspect a silent install failure — re-run with --progress=plain and inspect the relevant RUN step.
  • Layer caching: editing a line invalidates all subsequent RUN layers. Cluster slow installs (Claude, Codex, Antigravity) above lines that change often (config envs) to maximize cache reuse during iteration.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 57 lines · 42 tokens per session scan C 2194c07f4477

Subscribe to this mod's changes

runtime-rebuild is a skill published in the GitHub repository mpolatcan/codehub (5 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 576 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debugging-output-and-previewing-html-using-ray

Use when user says "send to Ray," "show in Ray," "debug in Ray," "log to Ray," "display in Ray," or wants to visualize data, debug output, or show diagrams in the Ray desktop application.

coollabsio/coolify · 58 tokens

changelog-entry

Add a new entry to CHANGELOG.yml under the current unreleased version (or create the version block if needed), then regenerate documentation. Use when the user says things like "add a changelog entry", "log this fix in the changelog", or "/changelog-entry".

telepresenceio/telepresence · 60 tokens

project-snmp-profiles-authoring

Use when editing Netdata SNMP profile YAMLs, topology SNMP profiles, ddsnmp profile parsing, or profile-format documentation. Requires checking source MIB field accessibility, especially MAX-ACCESS not-accessible INDEX objects, before adding or changing profile symbols.

netdata/netdata · 60 tokens

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

Prismer-AI/PrismerCloud · 64 tokens

kurtosis-ethereum

Run Ethereum multi-client devnets using Kurtosis and the ethpandaops/ethereum-package. Use for spinning up local devnets, syncing public testnets, validating cross-client interop, testing fork transitions, shadowforks, running assertoor checks, debugging CL/EL client interactions, or verifying new feature…

ethpandaops/ethereum-package · 78 tokens

evolve-create

Create a reusable gene from a novel fix pattern. Only invoke manually.

Prismer-AI/PrismerCloud · 18 tokens