codebay: Instructions file for Claude Code

CLAUDE.md

codebay CLAUDE.md is an instructions file for Claude Code from khromov/codebay. It costs 9,507 tokens per session, scanned A, original, MIT.

Project instructions for codebay, a web interface that starts isolated development containers from local folders or Git repositories. Each container provides a browser-based version of Visual Studio Code for editing the project.

In plain words
What is it for?
Use them when developing, building, type-checking, testing, or troubleshooting codebay, which runs on Bun and uses Svelte 5 with the Mochi framework.
Why use it?
They explain the application’s runtime, architecture, setup commands, and testing expectations so changes fit the existing project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is khromov/codebay's own configuration. It tells Claude Code how to work on codebay itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codebay configures →

Reuse

Borrowing it

Nothing to install: this file belongs to khromov/codebay. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/khromov/codebay/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/khromov/codebay

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codebay CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/khromov/codebay/claude-md/github.svg)](https://agentmods.dev/instructions/khromov/codebay/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/khromov/codebay/claude-md"><img src="https://agentmods.dev/badge/instructions/khromov/codebay/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codebay CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/khromov/codebay/claude-md"><img src="https://agentmods.dev/badge/instructions/khromov/codebay/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,507 This file is loaded in full into every session.
When invoked 9,507 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.09507 $0.09507
Opus 5.5 $0.03803 $0.03803
Sonnet 5.5 $0.01901 $0.01901
Haiku 4.5 $0.00951 $0.00951

Measured 1mo ago against content hash e020ef0bf3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebay CLAUDE.md scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

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

**Bridge / attention** (`src/lib/bridge.server.ts`): an in-memory, UI-only signal each container can raise — `done` (Claude finished) or `waiting` (Claude needs input) — to pulse its IDE tab. The injected Claude hooks `c
CLAUDE.md · 131 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

A web UI for spinning up isolated devcontainer instances from any local folder or Git repo URL, each exposing a browser-based VS Code (code-server). Pick a source → the app copies the folder (or clones the repo), injects code-server into its devcontainer.json, runs devcontainer up, and publishes the editor on a unique host port.

Runtime & commands

This runs on Bun only (Node.js is not supported). The app is built on Mochi, an SSR Svelte 5 framework with islands-based selective hydration, installed from npm as mochi-framework.

bun run dev        # dev server (MODE=development, project-local DATA_DIR, no browser launch)
bun run start      # runs src/index.ts directly (no separate build step needed)
bun run build      # mochi-framework build → .mochi/
bun run typecheck  # svelte-check (with a custom warning-ignore flag) + tsc --noEmit; run after any TS/Svelte change
bun test           # all tests
bun test src/index.isolated.test.ts          # single file
bun test -t "renders Hello world"            # single test by name
bun run checks     # format + eslint + typecheck + tests — run this after every change (see below)
bun run clean      # remove .mochi build output
bun run lint       # prettier --check + eslint (read-only; `checks` runs format instead of prettier --check, but the same eslint)
bun run gen:chimes # re-render attention chimes to public/sounds/ WAVs (after editing scripts/gen-chimes.ts)
bun run prod       # build + serve the production bundle
bun run verify:package # pack the tarball, install + boot it elsewhere (see npm packaging below)

Always run bun run checks after implementing a change (it runs format, then eslint, then typecheck, then test) and fix anything it surfaces before considering the work done.

Docker availability & testing strategy. The automated suite (bun test / bun run checks) is fully self-contained — even docker.isolated.test.ts stubs dockerode via globalThis.__codebayDocker, so no Docker daemon is required and the checks always run even where no daemon exists. Only end-to-end verification of the instance lifecycle — actually creating an instance, devcontainer up, the boot/health flow — needs a live daemon. Before attempting any such live verification, probe with docker info (or docker context inspect): if it's unavailable, don't try to boot instances — say so and fall back to the unit/isolated tests, which cover the orchestration logic against stubs. When Docker is running, live-boot verification becomes an option on top of the suite. The repo's own .devcontainer/ runs a nested daemon (docker-in-docker) rather than mounting the host's socket, because instances booted from inside it publish into that container's network namespace — the only place the proxy and the health probes look.

Read the full file on GitHub · 131 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. 1mo ago Changed · +4 lines · +985 tokens per session e020ef0bf3c2
  2. 1mo ago Changed · +41 tokens per session f472c437508a
  3. 1mo ago Changed · +12 lines · +1,895 tokens per session fc8aac328765
  4. 2mo ago First seen · 115 lines · 6,586 tokens per session scan A 52074844a29d

Subscribe to this mod's changes

codebay CLAUDE.md is an instructions file published in the GitHub repository khromov/codebay (13 stars, last pushed 8d ago), licensed MIT. It adds 9,507 tokens to every session, about $0.0380 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

codebay CLAUDE.md compared with instructions from other repositories

codebay CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebay CLAUDE.mdkhromov/codebayInstructions file138d agoMITA9,507Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode