loopat: Instructions file for Claude Code

CLAUDE.md

loopat CLAUDE.md is an instructions file for Claude Code from simpx/loopat. It costs 708 tokens per session, scanned A, original, Apache-2.0.

A project instruction document for loopat, a self-hosted AI workspace with a server and web interface in one repository. It covers the Bun, Hono, React, Vite, Rust, container, and Playwright testing setup.

In plain words
What is it for?
Use it to run the server or web app, build the Rust components, and run the full browser-based dogfood tests for the real application stack.
Why use it?
It tells contributors how the monorepo, meaning one repository containing multiple related workspaces, is developed and tested.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is simpx/loopat's own configuration. It tells Claude Code how to work on loopat 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 loopat configures →

View source ↗ simpx/loopat
Reuse

Borrowing it

Nothing to install: this file belongs to simpx/loopat. 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/simpx/loopat/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/simpx/loopat

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 loopat CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/simpx/loopat/claude-md/github.svg)](https://agentmods.dev/instructions/simpx/loopat/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/simpx/loopat/claude-md"><img src="https://agentmods.dev/badge/instructions/simpx/loopat/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 loopat CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/simpx/loopat/claude-md"><img src="https://agentmods.dev/badge/instructions/simpx/loopat/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 708 This file is loaded in full into every session.
When invoked 708 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00708 $0.00708
Opus 5.5 $0.00283 $0.00283
Sonnet 5.5 $0.00142 $0.00142
Haiku 4.5 $0.00071 $0.00071

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

Security

Grade A, and why

loopat CLAUDE.md scanned grade A with 0 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 85 lines

How it starts

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

loopat

Self-hosted AI workspace built around context management. Monorepo with two workspaces: server/ (Hono + Bun) and web/ (React 19 + Vite + Tailwind v4).

Tech stack

  • Runtime: Bun (server + build tooling)
  • Server: Hono, TypeScript, Claude Agent SDK, podman (sandbox containers)
  • Web: React 19, Vite 8, Tailwind CSS v4, Zustand, assistant-ui, xterm.js, CodeMirror, Milkdown
  • Infra: Docker (oven/bun base), rootless podman inside container
  • Tests: Playwright (e2e + dogfood)
  • Rust: Two small binaries in server/src/serve-rs and server/src/port-proxy-rs, built as part of web build

Development

bun run dev          # start server + web concurrently (localhost)
bun run dev:host     # same but bind 0.0.0.0
bun run dev:server   # server only
bun run dev:web      # web only

Server default port: 10001. Vite dev default port: 5173.

Push directly to main — no PR workflow for daily development.

Testing

The must-run test suite is the dogfood e2e tests — they boot a real stack (podman sshd container + backend + Vite + real AI) and drive a browser through it.

# Full dogfood suite (requires podman + ANTHROPIC_API_KEY)
bun run dogfood

# Smoke subset (first-5-minutes scenarios)
bun run dogfood:smoke

# Individual suites
bun run dogfood:first-run
bun run dogfood:journey
bun run dogfood:sync

Prerequisites: podman installed, ANTHROPIC_API_KEY exported. Missing either = hard fail (never skip).

There's also a lighter e2e/ suite that uses mocked backends:

bun run test:e2e

Build

bun run build        # install deps + build web (includes Rust binaries)
bun run build:web    # web only (cargo + tsc + vite)

Release

Versions follow 0.1.x. Release flow:

npm version patch    # bumps package.json, commits, tags v0.1.x
git push origin main --tags

Pushing a v* tag triggers two GitHub Actions:

  • publish.yml — publishes to npm
  • docker.yml — builds multi-arch (amd64 + arm64) Docker image to ghcr.io/simpx/loopat

Read the full file on GitHub · 85 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. 2mo ago First seen · 85 lines · 708 tokens per session scan A 9c1d1d47271c

Subscribe to this mod's changes

loopat CLAUDE.md is an instructions file published in the GitHub repository simpx/loopat (84 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 708 tokens to every session, about $0.0028 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

loopat CLAUDE.md compared with instructions from other repositories

loopat CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loopat CLAUDE.mdsimpx/loopatInstructions file844mo agoApache-2.0A708Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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