codework: Instructions file for Claude Code

CLAUDE.md

codework CLAUDE.md is an instructions file for Claude Code from codeworksh/codework. It costs 1,522 tokens per session, scanned A, a copy of codework AGENTS.md, MIT.

Coding preferences and project rules for TypeScript development in the codework repository. They cover coding style, package managers, preferred technologies, and which checks to run.

In plain words
What is it for?
Use them when writing or reviewing TypeScript, choosing packages, naming files, selecting development tools, or checking code with linting and type checks.
Why use it?
They keep changes consistent with the repository and avoid commands or libraries the project does not want used. They also discourage unnecessary complexity and unsafe assumptions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions subagents; mentions Codex.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/codeworksh/codework/claude-md"><img src="https://agentmods.dev/badge/instructions/codeworksh/codework/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,522 This file is loaded in full into every session.
When invoked 1,522 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 95% copy Near-identical to another mod 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.01522 $0.01522
Opus 5.5 $0.00609 $0.00609
Sonnet 5.5 $0.00304 $0.00304
Haiku 4.5 $0.00152 $0.00152

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

Security

Grade A, and why

codework 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 9d 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.

Origin

This is a copy

95% identical to codework AGENTS.md — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 99 lines

How it starts

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

Personal Preference

TypeScript

  • Never use any unless 100% necessary or specifically instructed.
  • Use effect only if the project uses effect or specifically instructed, use effect reference repository for latest architecture patterns.

Commands

  • Don't run dev server commands (e.g pnpm run dev, bun run dev) - assume it's already running.
  • Don't run build commands unless specifically told to.
  • Focus on checking commands like pnpm run check, bun run lint bun run typecheck, etc.

Package Managers

  • Use pnpm, vp - vite plus if the project already uses it, otherwise use pnpm
  • Never use npm or yarn

Tech Stack Preference

When uncertain, prefer: Effect, Tailwind, TypeScript, React, Clerk, TanStack, Vercel, Vite.

Code Style

  • Always strive for concise, simple solutions.
  • If a problem can be solved in a simpler way, propose it.
  • No pre-mature optimizations, propose if required.
  • Use single word filename whenever possible otherwise split into kabab-case(only if no options).

General Preferences

  • If asked to do too much work at once, stop and state that clearly.
  • After you yourself have verified the work, get the work peer reviewed by another agent: codex for code reviews, focused deep checks, tweaks, tests review shell out to gpt-6.1-sol with thinking low or medium depending on complexity.
  • Avoid defensive future-facing design. This leads to pre-mature assumptions which are never true.

Maintainability

Long term maintainability is a core priority. If you add new functionality, first check if there is shared logic that can be extracted to a separate module. Duplicate logic across multiple files is a code smell and should be avoided. Don't be afraid to change existing code. Don't take shortcuts by just adding local logic to solve a problem.

Package Roles

  • packages/aikit - Low level SDK that provides unified LLM API for multiple LLM providers.
  • packages/harness - Effect powered main Agent Harness application, uses packages/aikit under the hood.
  • packages/plugin - The published SDK third-party plugin and sandbox-driver packages build against. It owns the shared contract (plugin, tool, sandbox mount, event and settings types); packages/harness depends on it, never the other way round.
  • .scratch/packages - Local, ignored reference archive for packages that are no longer developed.

Read the full file on GitHub · 99 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. 9d ago Changed · +2 lines · +111 tokens per session f8c06ea8392c
  2. 15d ago Changed 5eb55b0c4cf7
  3. 16d ago Changed · +6 lines · +49 tokens per session 13f11754e45f
  4. 28d ago Changed · +39 tokens per session 23126ffa2cb4
  5. 1mo ago Changed · +7 lines · +183 tokens per session 9ffdd5622f8b
  6. 1mo ago Changed · +2 lines · +88 tokens per session 4e2e188a68bb
  7. 1mo ago Changed · +1 lines · +52 tokens per session 21aa0497d6bf
  8. 1mo ago Changed · -1 lines · -22 tokens per session 7c41664d9480
  9. 1mo ago First seen · 82 lines · 1,022 tokens per session scan A 17860695040e

Subscribe to this mod's changes

codework CLAUDE.md is an instructions file published in the GitHub repository codeworksh/codework (24 stars, last pushed yesterday), licensed MIT. It adds 1,522 tokens to every session, about $0.0061 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to codework AGENTS.md, differing in 12 lines, and is treated as a copy.

Related

Other instructions, from other repositories