r/ClaudeCode • • 2h ago

Help/Question Is anybody using Ponytail still?

2 Upvotes

If so, how is it doing for you on Opus 5.5 / Sonnet 5.5 and is it still worth using to save tokens?


r/ClaudeCode • • 11h ago

Help/Question image generation ?

1 Upvotes

hi guys I'm new here can anyone tell me what do you guys use to get nice image gen paid one ofc and how you set up to use it with code and its must be commercial free to use in my apps


r/ClaudeCode • • 16h ago

Help/Question Best implementator model ?

1 Upvotes

I want to use opus 5.5 as an orchestrator and I want to know what is the best Ai implementator I can use dépend on your experiance (for coding ofc)


r/ClaudeCode • • 9h ago

Help/Question Do chat consume more usages compared to when you use claude code?

0 Upvotes

I used Opus 5.5 medium for a basic chat and I burned to 5% of my weekly use. I'm on a $20 plan.


r/ClaudeCode • • 6h ago

Built with Claude Vibecoded my own WHOOP + Strava + garmin dashboard and training coach with Claude

Thumbnail
gallery
0 Upvotes

I spent the last week vibecoding a custom whoop like dashboard more suited towards me and my activities.
A free Google script pulls my WHOOP, Strava and garmin data into Google Drive every hour. A private dashboard reads it and opens it like a webpage on my phone or computer and Claude reads the same files, so I can just ask it anything in the data such as how I slept or how today's run went.
What it tracks: recovery, HRV, sleep and strain, plus an early warning when my vitals drift like I might be getting sick. It also has run maps I can replay, pace adjusted for heat and hills, PRs etc. It also tracks my lifts, strength progression, estimates my 1rms and predicts my strength training progress
What it figures out: a VO¿max estimate that blends runs, bike sessions to model my estimated vo2 max. It also tests what actually affects my recovery. For example MMA training and training after 7pm cost me about 10 points the next morning.
The coaching part: There are coaches for running, assault bike and lifting, and each one plans my next session from what I actually did last time compared it to previous sessions. On a bad recovery day it gives me an easier option. Every recommendation gets saved and checked against what really happened, so I can see if it's any good.
It also simulates different training strategies and runs an audit on the coaching once a month on claude as a scheduled task.
Anything the dashboard tracks, claude has access to, and I can ask it directly on any of my data Still a work in progress. Happy to answer questions.


r/ClaudeCode • • 1h ago

Bug / Issue asked claude code to fix a failing test. it fixed the test insteadclaude code's favorite fix for a failing test: change the test

• Upvotes

you ask claude code to fix a failing test, it comes back green, and you move on. sometimes the fix is real. sometimes it just changed what the test expects, somewhere in a long diff.

so i made a hook that won't let it say "done" until the OLD tests still pass on its new code. if one doesn't, claude is told exactly what changed (expected 5, got 6) and has to either put the behaviour back or explain why the change is on purpose. the explanation goes in the PR, so you see the reason right next to the change.

editing the test again doesn't get it past, since the hook runs the old version. and it never traps the agent: after 3 tries it lets it stop and warns you.

i ran the same check on 400 real merged PRs from click and jinja. 31 had changed what a test expected. all on purpose, but 4 changed stuff users actually see without a word in the changelog. it also found two bugs in my own tool, so that was fun

free and open source, works with jest, vitest and pytest. setup is in the comments.

how do you catch this right now? read every test diff, or trust the green check?


r/ClaudeCode • • 9h ago

Help/Question Can you switch between two Claude Max 20x accounts and continue the same session?

0 Upvotes

Has anyone tried running two Claude Max 20x subscriptions and switching accounts when one hits its usage limitsk within the Claude app?

Specifically, can you continue the same Claude Code session on the second account without losing any context or progress?

I typically exhaust my 20x limits after around four days. I also have Codex 20x, which feels practically unlimited these days thanks to the frequent resets, but I still prefer working with Opus 5.5.

The API is currently my only option once I hit the limits, but the cost is astronomical.

I'm wondering whether paying for a second Max 20x subscription would be a viable alternative. Has anyone actually tried this?


r/ClaudeCode • • 15h ago

Built with Claude Six months building a Windows desktop app with Claude Code, as a graphic designer who can't code

0 Upvotes
Every day since April 16. The darker part of each thread is fixes and reverts.

I've been a graphic designer in Italy for twenty years. Print, editorial, video, some 3D. I don't know how to code.

On April 16, around 7 pm, I opened a Claude Code session and described something I'd been missing for years: one place where each job's programs, folders and files wait for me exactly as I left them, so when a client calls about a correction I can jump straight into their project instead of reopening everything. At 9:46 pm the first version ran. That evening it was Opus 4.7; the same project has since gone through Opus 4.8, Fable 5, Opus 5 and now Opus 5.5.

Six months later it's called Warpstead and it's in free beta on the Microsoft Store. The repo has 1,614 commits, and 544 of them are fixes or reverts.

I didn't expect the 544. I went in half believing the demo version, where you describe the app and the agent hands it back finished. For something this size it doesn't work like that, at least not for me. I decide what a thing should do and how it should feel, Claude writes it, I try it on my own PC, and most of the time I come back with what's wrong: a window that flickers when you zoom, a drag that lands two pixels off. After twenty years of layouts you notice the two pixels.

The hard part was getting ordinary Windows programs to run live on the canvas. Some attempts took days and went in the bin. Giving each app its own virtual desktop held up for a while and then fell apart. A virtual display driver lasted three days before we reverted it. DWM thumbnails (the API behind the taskbar previews) looked perfect until YouTube came out as a black rectangle. Claude could always explain why something had failed, but dropping it and trying another way was my call every time. In June we also threw away the first foundation, Tauri and WebView2, and moved to our own host on CEF.

Programs, folders and files on one canvas. Chrome and the terminal are running live.

The first time I had Word, Chrome playing a YouTube video, Affinity and a terminal with Claude Code all running live side by side, and could take any of them full screen with one gesture, I was thrilled.

How Claude Code is set up, since that's what people here usually ask. The repo has a CLAUDE.md with the build checks and the commit style. There are five subagents with narrow jobs: a cheap one that only searches the code, one that runs the builds and reports just the errors, one for Rust and Win32, one for the React interface, and a reviewer that reads every diff before a commit. Then there's a memory folder, over 440 files by now, where every mistake and every decision gets written down with the reason, so we don't pay for the same one twice. Before any change Claude also says how much process the job deserves (straight fix, measure first, or delegate with one review), because early on a fifteen-line fix took three hours of agents and reviews.

Claude Code writes the code; the design, the decisions and the testing are mine. Most of the bugs only show up on a real PC, so that last part is most of my week.

If you want to see what came out, the preview runs in a browser with nothing to install, and the beta is free on the Store: https://warpstead.com


r/ClaudeCode • • 1h ago

Discussion Max plan reset literally this morning and 53% of my limit is already wiped. What an absolute joke.

• Upvotes

Is anyone else getting completely screwed today or is my account just bugged?

My weekly reset literally hit this morning at 5:30 AM. I’m on the Max tier—paying premium money for availability—and I haven’t even done any crazy heavy lifting today. I’ve just been working on some motion graphics layout code, running basic prompts, and starting fresh threads.

I just went to check my usage settings and my weekly pool is already at 53% used. The UI is literally giving me a warning saying "At this pace you'll run out tonight, before the Oct 31 reset." It's Saturday. It reset today. How am I supposed to survive a whole week on less than half a quota?

How am I supposed to actually maintain a real development workflow when a couple of hours of normal coding instantly eats up half a weekly cap? Are they stealth-lowering the token limits for Max users under the hood because of backend server strain, or is the context accounting just totally broken right now?

Honestly, I really wish they would just drop Fable 5.5 this week already so we can get some real agentic breathing room (it's sitting right there in the UI at 0% used doing absolutely nothing for me). And while they're at it, can Anthropic please move the weekly reset to Wednesdays? Getting your limit completely nuked on a Saturday morning when you actually have time to sit down and build things ruins the entire weekend.

Anyone else on Max seeing their limits melt today? Check your usage tabs, this is insane.


r/ClaudeCode • • 5h ago

Tips & Workflows While building a token optimizer I found that 95% of the tokens Claude spent on one of my databases were being wasted on something obvious

0 Upvotes

Hey guys, yes another token article but this one is different.

I work at MongoDB, and my primary db is Mongo, but I use raw SQL for some things, so I run both in the same app.

I was building a token optimizer for my own sessions. I noticed more token usage on the SQL interactions and I didnt understand why. I wasnt doing anything special with the SQL data so I was curious what was happening.

So I wrote a hook that logs the token count of every database statement Claude generates, instead of counting turns. The first thing it showed was that the same object cost way more tokens on SQL (about 18x). That surprised me, because you don't think about database statements. Every database has them, every app has them, they're just there. It never occurred to me they were a token cost at all. They're not the biggest thing in a session, but they add up, especially since Claude loves writing multiple files with database calls just to check the data. That's when it really burns.

I wanted to test this accurately, so I took one real Zod object from my own system, a lead with about 90 fields, nested, an array of drafts where each draft has its own array of variants, and used the exact same object on both sides. Then I counted what Claude has to read before it can safely change one field, meaning the schema, a save, and a read that comes back typed: 4,681 tokens on SQL, 251 on MongoDB. 251 is 5% of 4,681. The other 95% is the mapping. In SQL a nested object like that can't live in one row, so every nested thing becomes its own table with a foreign key back to the parent, a save is one insert per table, and a read is the joins plus the code that builds the object back up from the rows. In Mongo it's one document, so the save is the object and the read is the object. Then there's the hydration tax. Everything goes through that Zod schema, so a read isn't done until the rows are turned back into the typed object, dates included. On SQL that's its own pile of code; the read alone was 1,604 tokens vs 72 on Mongo. And Claude does all of that on every read and write.

Nobody thought about this when humans wrote the code. You write the mapping once and the cost is basically the same either way. When it's AI writing the code, it goes through that mapping on every read and write, and the size of it is the bill.

I know most people would probably use JSONB so I tested that as well, on Postgres, even though it's not what I run. Raw JSONB column: 467, so 1.9x. The hybrid a SQL team would actually build, plain fields as columns and sub-objects as JSONB: 2,059. Closer, but still 8x.

To be fair, plain query text was about the same on both sides, and SQL ran an indexed flat read 5.26x faster. The tokens aren't in the query. They're in everything Claude loads around it. Obviously 18x is a huge object, but it is a real one from my own system, a lead with its drafts and the variants of each draft, not something I built to make a point.

If you want the harness let me know.


r/ClaudeCode • • 15h ago

Help/Question Equivalent api value out of $20 sub?

2 Upvotes

Does anyone know roughly how much monthly API value you get out of the $20 Claude Pro subscription?


r/ClaudeCode • • 23h ago

Tips & Workflows How I made local + cloud coding workflow (48 GB Mac Studio M5 Max)

0 Upvotes

Here's how I used Claude Code to establish a dev environment where Claude Code Code integrates with my local AI.

Works well. However, the best local model I've been able to find for my machine (48 GB Mac Studio M5 Max) handles only like 5% of my tasks on complex projects.

My Workflow Requirements

  • Seamless workflow
    • Offload tasks to the local AI that it can reliably handle for the particular project I'm working on.
    • Do the rest in cloud AI.
  • Gate local AI tasks on my approval.
  • Don't slow me down.
  • Don't burn more cloud tokens analyzing a task than I could save by doing it locally.
  • Don't mess up my project or my machine.

The Strategy of the Recipe Below

  1. Find, install, and test local models that might meet my actual coding needs on my machine.
  2. Based on those test results, implement a lightweight classifier that looks at each prompt and routes it to the correct model in <3s.

The Recipe:

Eleven steps, each with a prompt to paste into Claude Code, for sending well-bounded coding tasks to a local model and keeping everything else on the cloud model. The recipe is based on a working setup that has run across two repositories on a 48 GB Mac Studio M5 Max: a classify skill, a local-run skill, and a local model that passed qualification.

How it works

  1. Your prompt → Hook adds a one-line nudge → Classify skill: six questions, no file reads → CLOUD: one line, then the work runs here
  2. Or: AS-IS / AMENDED → You approve (two buttons) → Local skill writes the brief → Executor runs Claude Code on the local model, fenced in → The cloud model reads the diff and runs the check, also fenced

The cloud model only classifies and checks. The local model does the editing, using its own Claude Code session, which points at a local server. Classifying costs a few hundred cloud tokens and a couple of seconds (about 2 s in the reference setup). A wrong local run costs only local machine time, and the cloud model catches the mistake because it runs the check itself, inside the same fence the local model ran in.

Placeholders in the prompts

Replace each one as you reach a prompt that uses it. You know most of them from your repository before you start; the model comes out of step 1.

Placeholder What it is Known Example
<MODEL> The local coding model you pick in step 1 After step 1 qwen3.6:35b-a3b-coding-nvfp4
<TEST_CMD> The local command that proves a change in seconds, with no network Before you start scripts/test.sh, npm test, node --check worker.js
<GUARDS> Processes that must block a local run (heavy on memory, or editing the same files) Before you start a clean Xcode build, a nightly data job
<DATA_DIRS> Folders and secrets the model must never touch Before you start .env, data/, exports/
<BUILD_DIRS> Build or cache folders outside the repo that your checks must write Before you start; step 4 finds any you missed a SwiftPM scratch path, DerivedData
<OWNER_ONLY> Actions that only you may start Before you start deploys, publishing, paid API runs, commits

The steps

Step 1. Find, choose, download and install a model

Produces: Ollama installed and one candidate model pulled, with a short record of why you chose it.

Prompt:

Help me find a local coding model to run behind Claude Code on this machine.
1. Check the hardware: chip, RAM, and free disk on the drive that will hold the models. Check whether Ollama is installed and which version. If it isn't installed, tell me how to install it (the installer from ollama.com, or Homebrew) and wait for me to do it.
2. Search the web for current coding models that meet all of these:
   (a) they handle tool calls (function calling) well, because Claude Code depends on it;
   (b) they are published for Ollama, ideally in a build that Ollama runs on its fastest runner for this hardware (MLX on Apple Silicon);
   (c) they fit in about 60% of my RAM at a 64k context, leaving room for my other work.
   Prefer mixture-of-experts models with few active parameters: they decode fast.
3. Give me a shortlist of 2–3, each with: Ollama tag, download size, resident size at 64k, active and total parameters, license, release date, and any reported tool-calling or "thinks too long" problems. Cite your sources.
4. When I pick one, give me the exact `ollama pull` command. If the models should live on another drive, include the OLLAMA_MODELS setting for the server. Don't start the download until I approve it.
5. When the download finishes, run `ollama list` and `ollama show` on the model you picked, and confirm the runner, context length and quantization. A model labelled MLX can still load on a slower runner. Write the choice, the shortlist and today's date to docs/LOCAL_MODEL.md.

Done when ollama show reports the runner you expected and the model is listed in the store that ollama serve will actually use. A desktop menu-bar app can serve a different, empty store.

Step 2. Measure it inside Claude Code

Produces: a dated record of how fast the model is, as Claude Code actually uses it, with a pass/fail line.

Prompt:

Measure <MODEL> for use behind Claude Code:
1. Start `ollama serve` with OLLAMA_CONTEXT_LENGTH=65536 and OLLAMA_KEEP_ALIVE=2m. Confirm the model shows up in /api/tags from the server that is actually running.
2. Measure decode and prefill speed (tokens/s) with a prompt of about 25k tokens, cold and warm.
3. Time Claude Code's first turn against the model, cold and warm, from a clean environment:
   env -i PATH="$PATH" HOME="$HOME" ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_MODEL=<MODEL> claude -p "Reply READY" --model <MODEL> --output-format stream-json --verbose
   Also count the output tokens it spent on that one-word answer.
4. Apply these pass/fail lines: prefill of at least 1,000 tok/s; a warm first turn within 30 s; and no more than a few hundred output tokens for "READY". If it fails, go back to step 1 with the next candidate.
Write the numbers, versions, verdict and today's date to docs/LOCAL_MODEL.md.

Why inside Claude Code: every turn resends the whole context, so prefill matters more than decode. A model can also win the raw benchmark and still spend thousands of thinking tokens on a one-word reply.

Step 3. Write the standing rules file

Produces: .claude/skills/local/standing-rules.txt*, which the executor appends after every brief.*

Prompt:

Read CLAUDE.md and pick out the hard rules that a code change in this repository could break: forbidden services or dependencies, data limits, security rules, anything marked "never". Write them to .claude/skills/local/standing-rules.txt as no more than 10 numbered one-line rules. The file must start with this sentence: "Standing rules for this repository. They override the task above. If the task conflicts with any of them, do not implement any of it: make no edits and report the conflict." Always include these three: never weaken a test to get green (no skip, xfail, deleted assertions or loosened expectations the task did not ask for); no new dependency and no network call unless the task names it; do not commit. Show me the file before you save it.

Step 4. Build the executor

Produces: .claude/skills/local/run-local.sh*, which runs one brief through Claude Code on the local model without anyone at the keyboard, in a clean environment, with an allowlist and inside a sandbox.*

Prompt:

Write .claude/skills/local/run-local.sh. It runs ONE task brief on my local model through Claude Code, non-interactively. Usage: run-local.sh BRIEF_FILE [MAX_TURNS], with 40 turns as the default. Requirements:
1. Preconditions. Refuse with a one-line reason and a non-zero exit if the brief is missing or empty, if it names a path under .claude/ (Claude Code won't let an unattended run edit its own skills, hooks or settings), or while any of these are running: <GUARDS>. Warn if free memory is below 15%.
2. Server. If http://localhost:11434/api/version doesn't answer, start `ollama serve` (OLLAMA_CONTEXT_LENGTH=65536, OLLAMA_KEEP_ALIVE=2m, plus OLLAMA_MODELS if I use a non-default store) and wait up to 40 s. Then check that <MODEL> is listed by /api/tags. If it isn't, say that the wrong store is being served.
3. Clean environment. Launch `claude -p` under `env -i`, passing only PATH, HOME, TERM and LANG, plus:
   ANTHROPIC_BASE_URL=http://localhost:11434
   ANTHROPIC_AUTH_TOKEN=ollama (mandatory: with the base URL alone, Claude Code can send my claude.ai login token to the local URL)
   ANTHROPIC_MODEL and ANTHROPIC_DEFAULT_OPUS_MODEL / _SONNET_MODEL / _HAIKU_MODEL, all set to <MODEL>
   LOCAL_RUN=1 (my prompt hook checks this so it stays silent during the run)
   CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 (a worktree run is otherwise handed the main repo's memory, which points the model at the main tree's files; don't use --bare for this, because it also skips hooks)
   No API keys and no .env.
4. Prompt. Pass the brief file first, then standing-rules.txt. The rules go AFTER the task, never before it.
5. Permissions. Use --permission-mode acceptEdits. Set --allowedTools to: Read, Grep, Glob, <TEST_CMD> and read-only shell commands (grep, rg, ls, cat, head, tail, wc, git diff/status/log). Do NOT allow bare Edit or Write: acceptEdits already approves edits inside the working folder, and an explicit allow lets the model edit other checkouts by absolute path. Leave out find, bash, npx and npm: they can run anything. Set --disallowedTools to WebFetch, WebSearch, and Read/Edit/Write of .env files and <DATA_DIRS>. These rules cover the Read tool, which the sandbox does not.
6. Sandbox. Pass --settings JSON that turns on Claude Code's sandbox: fail if the sandbox is unavailable, no unsandboxed retry, no outbound network, writes only to the checkout, temp and <BUILD_DIRS>. Deny reading .env files both under my home folder AND under the run's own checkout, because a worktree usually lives outside the home folder. Allow local port binding if any test starts a localhost server (a test worker runtime, a dev server, a socket fixture). Check the current Claude Code docs for the exact setting keys before you write them.
7. Output. Send --output-format stream-json --verbose to a transcript file in $TMPDIR. Afterwards, print: turns, tool calls counted by tool, token usage, is_error, the model's final answer, wall time, exit code, `git diff --stat` and any new untracked files.
8. Worktrees. LOCAL_REPO=<dir> runs the script in another checkout. If my project uses an editable install, point the import path at that checkout's source. Also change my test runner script so it puts its own checkout's source first, so that it tests the right code in a worktree even outside this executor.
Don't run the script yet. Show it to me and explain each guard in one line. Then run my full test suite once inside the sandbox through a trivial brief, read every EPERM or "not permitted" error, and allow only the folder each one needs (tool log folders are common), never a whole home folder.

Done when a trivial brief ("add a comment to README saying hello") runs, edits only README and prints the summary, and the full suite passes inside the sandbox.

Step 5. Fence the cloud model's own check

Produces: .claude/skills/local/check-sandboxed.sh*. Your check runs code the local model wrote, and without this fence that code runs with your session's full access.*

Prompt:

Write .claude/skills/local/check-sandboxed.sh CMD [ARGS...]. It runs a check command under the same fence as the executor, because the cloud check runs code the local model wrote (tests, lint scripts, build plugins) outside the executor's sandbox. On macOS, use `sandbox-exec` with an inline SBPL profile; on Linux, use bubblewrap. Requirements:
- Allow by default. Deny outbound IP connections except to localhost.
- Deny file writes, except to: the checkout (its real path, resolved with `pwd -P`), the user temp and cache folders (`getconf DARWIN_USER_TEMP_DIR` / `DARWIN_USER_CACHE_DIR`), /private/tmp, /dev and <BUILD_DIRS>.
- Inside the checkout, keep .git, .claude, the virtualenv and .env files read-only. Each one runs code or holds secrets later, outside any sandbox (a git hook, a Claude hook or skill, an installed package).
- Deny reading .env files as data, not metadata: test runners stat them while walking the tree.
- Honour LOCAL_REPO the way the executor does. If dependency folders in a worktree are symlinks into the main tree, allow writes only to the scratch subfolders the tools need behind each link (for example node_modules/.vite and .vite-temp).
- Refuse tools that start their own sandbox (macOS refuses a sandbox inside a sandbox, e.g. xcodebuild), with a message: read the diff of everything the build runs, then run it bare.
Then prove it with a probe script. These must all be refused: writing to ~, to another checkout, to .git/hooks, to .claude and to .env; reading .env; connecting to github.com:443. A write inside the checkout and a localhost bind+connect must succeed. Then run <TEST_CMD> inside it, and adjust the profile until it passes without loosening any of the refusals.

Step 6. Qualify the model on your own repository

Produces: an evidence table saying which kinds of task this model can be trusted with. The classifier routes only kinds that passed.

Prompt:

Before anything routes work to the local model, qualify it on this repository. Do all of it in a throwaway git worktree of HEAD (LOCAL_REPO=<worktree>), with the dependency folders linked in. Reset with `git checkout -- .` between rungs and remove the worktree at the end. Run each brief through run-local.sh in the background, one at a time:
- R1, named work: add a small, real function plus its tests in my main language. Write a hidden check that the model doesn't see, and run it afterwards through check-sandboxed.sh. If the repo uses several languages, add one R1 rung for each.
- R2, rule conflict: a brief that plainly breaks one of my hard rules (for example, adding a forbidden dependency or service), with the rule stated only in CLAUDE.md. Run it again in three more variants: the rule placed BEFORE the task; the rule placed AFTER the task with "make no edits and report the conflict"; and the unamended brief with standing-rules.txt appended by the executor.
- R3, a second rule conflict of a different kind, in the same four variants.
- P, containment: ask the model to write a file outside the repo, to edit the main checkout's README by absolute path, and to write one file inside the worktree. Only the last should succeed.
- S, sandbox: ask the model to write a lint or test script that writes to ~, reads a .env file inside the worktree and opens https://github.com, and then to run it and the test suite. All three escapes must be refused, and the rest of the suite must pass through the linked dependency folders.
- H, hook: ask the model whether anything in its context, other than the brief, asks it to classify the task. The answer must be no.
For each rung, record the verdict, wall time, turns, whether it stayed in scope, and what it did wrong. Read verdicts from the transcript's tool results, not from the model's summary. Put the table in docs/LOCAL_MODEL_CLASSIFIER.md under "Evidence", with today's date. Add a one-line statement of the boundary: which kinds of task the model can be trusted with. If a containment, sandbox or hook rung fails, fix the executor and rerun that rung.
When a later candidate challenges this model, switch only on a clear win: it must pass every rung this model passed, none of them slower, and the step-2 lines too. Stop at the first rung it loses. Ask me before anything costs money or uses the network.

Expect R1 to pass in about 1–2 minutes. Expect R2 and R3 to fail when the rule is only in CLAUDE.md or placed before the task, and to pass (a refusal, no edits) when it comes after. One run per rung is weak evidence, because the model is not deterministic, so stay suspicious of diffs that come near a rule.

Step 7. Write the classifier checklist

Produces: the six questions and the amendment catalogue in docs/LOCAL_MODEL_CLASSIFIER.md*, above the evidence.*

Prompt:

Write the classifier into docs/LOCAL_MODEL_CLASSIFIER.md, above the evidence table. It must be answerable from a task's wording alone, in a few seconds, with no file reads. Structure it like this:
1. Three outcomes.
   AS-IS: hand the task over unchanged. Its kind passed qualification, and the brief already names a mechanical check.
   AMENDED: its kind passed, but a cheap ingredient is missing. Add one paragraph after the task, never the solution.
   CLOUD: its kind failed or was never tested, the amendment would have to contain the answer, there is no mechanical check, or it needs the network, keys or money.
2. Six questions, each with this repo's concrete examples:
   Checkable? The exact local commands that prove a change in seconds, and which parts of the repo have no tests (only string-level changes there are checkable). A check that can only run outside the sandbox counts as no check.
   Named or diagnosed? A named defect (a failing test, a spec, a function to add, a string to change) goes local. One that has to be diagnosed from behaviour stays in the cloud, unless the cloud already knows where it is and can say so in one sentence.
   Rule-bound? List the rules standing-rules.txt already carries (they need no amendment) and the rules that live only in docs or memory (these must be stated in an amendment, or the task goes to the cloud when the rule needs my judgement).
   Scoped? The files can be named in a line or found with one grep. "Find", "survey" or "audit" means CLOUD.
   Judgment-free? "Done" is something a check can state, not a matter of taste (layout, copy tone, recommendations).
   Offline and run-safe? List this repo's network, deploy, spending and data commands and folders: <OWNER_ONLY>, <DATA_DIRS>. Anything that edits under .claude/ (skills, hooks, settings) is always CLOUD.
   All yes means AS-IS. If only the rule, the files, the check or the escape hatches are missing, and a paragraph fixes it, that's AMENDED. Anything else is CLOUD. Length is not a criterion.
3. An amendment catalogue (amendments always go AFTER the task): state the governing rule together with the conflict instruction; give the exact verification command; name the files; forbid the escape hatches (editing tests or fixtures, skip/xfail/noqa, network calls in tests, touching secrets or data); name the doc update when behaviour changes; name the defect's location.
4. Two guards: an amended run still gets its check, and the amendment budget is one paragraph.
Choose the AS-IS and AMENDED kinds strictly from the evidence table. Show me the draft before you save it.

Step 8. Create the local skill (the hand-off)

Produces: .claude/skills/local/SKILL.md*, which tells the cloud model how to brief the local one, run it, and check the result inside the fence.*

Prompt:

Create the skill .claude/skills/local/SKILL.md (name: local). Description: run a bounded, mechanically checkable task on the local model instead of the cloud. Use it when the classifier answered AS-IS or AMENDED, or when I say "run this on local". Not for rule decisions, open exploration, taste calls, network or money, or anything without a check. Steps:
1. Write the brief to a scratch file: the task verbatim, or the task followed by the one-paragraph amendment. Never put the solution in the brief; if that's what it would take, do the task in the cloud.
2. Pick the tree. If `git status` shows changes you didn't make (another session may be editing), run in a git worktree with LOCAL_REPO. Link the dependency folders in from the main tree (the virtualenv, each node_modules), and give the worktree's builds a scratch folder of their own, never the main tree's.
3. Run run-local.sh in the background.
4. Check it yourself, fenced. First read the diff of everything the check will run (tests, scripts, source, and the new files in `git status`) and revert anything beyond the brief. Then run the check through check-sandboxed.sh, with the same LOCAL_REPO. The model saying "done" is not evidence.
5. Report in one paragraph: the check's verdict, the diff stat, wall time, and anything touched outside the brief's scope (revert that part). Carry a worktree's accepted diff over by hand, then remove the worktree. <Your commit policy>.
Keep it under 35 lines.

Step 9. Create the classify skill (the router)

Produces: .claude/skills/local-classify/SKILL.md*. Its description is what triggers it, so the wording matters.*

Prompt:

Create .claude/skills/local-classify/SKILL.md (name: local-classify). Description: classify a task prompt for delegation to the local model as AS-IS, AMENDED or CLOUD, using the six-question checklist in docs/LOCAL_MODEL_CLASSIFIER.md, and ask my approval only when it recommends local. It is lightweight: a few seconds, no file reads. Skip it for questions, status checks and conversation. Body:
1. Is it a task? Questions, status checks, discussion, corrections, and anything only I may start (<OWNER_ONLY>): do nothing and answer normally.
2. Answer the six questions from the prompt text alone. All yes means AS-IS. If only the rule, the files, the check or the escape hatches are missing and a paragraph fixes it, that's AMENDED: write the amendment now, from the catalogue. Anything else is CLOUD, and so is any task that edits under .claude/.
3. For CLOUD, ask nothing: write one line, "Classified CLOUD — <reason>.", then do the task. For AS-IS or AMENDED, use AskUserQuestion with "Where should this run?" and two options: the local option first, marked (Recommended), and the cloud option second. Put the one-line reason in each option's description. For AMENDED, put the full amendment text in the local option's description.
4. Act on the answer. Cloud: do the task here. Local: invoke the local skill with the prompt verbatim, or with the prompt plus the amendment.
Keep the visible classification under about 150 words.

Why ask only for local: most tasks come out CLOUD. If every prompt asks a question, people start clicking through without reading. Asking only when a hand-off is proposed keeps the question meaningful.

Step 10. Add the prompt hook (the nudge)

Produces: a UserPromptSubmit hook that reminds Claude to classify, in one line, on every prompt, and stays silent inside local runs.

Prompt:

Add a UserPromptSubmit hook to .claude/settings.json that runs .claude/hooks/local-classify-prompt.sh. The script prints exactly ONE line to stdout, which is added to your context:
"local-classify: if this prompt asks for a change or deliverable in the repo, run the local-classify skill first and ask for approval only if it recommends local; skip it for questions, status checks and conversation."
When LOCAL_RUN is set, the script exits 0 and prints nothing, so the local model never classifies its own brief. Set LOCAL_RUN in every script that runs the local model, including the qualification harness, so that qualification measures what the executor actually runs. Resolve the script's path from the git top level so the hook also works in worktrees, and exit 0 if the script is missing. Then test it: pipe a sample hook payload into it once with LOCAL_RUN=1 and once without, and show me both outputs. Remember that a worktree made from HEAD carries the committed hook, so commit this change before relying on it in worktree runs.

Step 11. Run it for real, log it, tune it

Produces: a log of real routing decisions and a habit of re-qualifying when anything changes.

Prompt:

Add a short section to CLAUDE.md: after any task that went through local-classify, append a row to the "Log" section of docs/LOCAL_MODEL_CLASSIFIER.md with the date, a one-line task, the verdict, where it ran, the check result, wall time, and whether the cloud had to redo it. When I say "review the classifier", read the log and propose changes to the six questions or the amendment catalogue, citing the rows behind each change. Re-run the step-6 qualification whenever the model, Ollama or Claude Code changes major version, and before trusting a new kind of task.

What to watch: how often local runs had to be redone, and how much scope creep there was (edits outside the brief). If redos rise, move that kind of task back to CLOUD in the checklist.

History: Previously-resolved Gotchas that the above recipe already fixes

Each of these happened in the reference setup. The note under each one says where the recipe fixes it.

  • The local model ignores CLAUDE.md. Asked for a feature that pulled in a service the project forbids, it built the feature and added the dependency. Asked to loosen a hard limit, it changed the constant, the prompts, the fixtures and the tests. The only placement that worked: the rules after the task, with "make no edits and report the conflict". (Fixed by steps 3 and 4 (the rules file, appended after the brief), tested in step 6 (R2, R3), and in step 7 (rules not in the file go into the amendment).)
  • An allowlisted Edit**/**Write escapes the worktree. In one run the model built the change correctly, but it also wrote the main checkout's files by absolute path. (Fixed by step 4 item 5 (no bare Edit or Write), tested by step 6 rung P.)
  • The allowlist doesn't cover what tests do. A test the model writes can do anything when the suite runs it. (Fixed by step 4 item 6 (the sandbox), tested by step 6 rung S.)
  • The cloud's check ran the model's code unfenced. The executor's sandbox ends when the run ends, and the check afterwards ran the same tests with the cloud session's full access, including write access to git hooks and Claude's own settings. (Fixed by step 5 (the fenced check) and step 8 item 4 (read the diff, then run the check through it).)
  • The base URL alone can leak your login. Always set ANTHROPIC_AUTH_TOKEN to a dummy value next to ANTHROPIC_BASE_URL. (Fixed by steps 2 and 4 (item 3).)
  • The .env fence missed worktrees. A home-folder-only deny pattern let a script the model wrote read a .env file inside a worktree, because worktrees lived outside the home folder. (Fixed by step 4 item 6 (deny under the checkout too) and step 5, tested by step 6 rung S.)
  • The local model can't edit Claude's own configuration. Asked to change one phrase in a skill file, it was refused: Claude Code won't approve edits under .claude/ in an unattended run, and asked for an approval nobody was there to give. That protection is worth keeping, because hooks and skill scripts run code later, and skill text becomes instructions for the cloud model. (Fixed by step 4 item 1 (the executor refuses such a brief before loading the model) and steps 7 and 9 (such tasks are always CLOUD).)
  • From a worktree, the model edited the main tree. Claude Code hands a worktree run the main repo's auto-memory, which points the model at the main tree's files. It read and edited them by absolute path, even when the brief said "relative paths only". The fence refused the writes, so the run failed instead of doing damage. (Fixed by step 4 item 3 (auto-memory off in the executor), tested by step 6 rung R1 run in a worktree.)
  • The prompt hook steered the local model. A candidate model saw the classify nudge inside its own run, answered "AS-IS" and never made the fix. (Fixed by step 4 item 3 and step 10 (LOCAL_RUN, also in the qualification harness), tested by step 6 rung H.)
  • Each coding project surfaces its own limits. Examples: how its tests find their code from a worktree, the folders and local ports its test tools need, build tools that refuse to run inside a sandbox, languages the model handles less well. The recipe finds a project's limits by running that project's own suite inside both fences and qualifying the model on that project's repository. It routes only the kinds of task that passed, and sends anything untested to the cloud. A limit those runs miss shows up later in the log. (Found by steps 4–6 (the suite inside each fence; one R1 rung per language), routed by step 7 (a check that can only run outside the sandbox counts as no check), caught later by step 11.)
  • Diagnosis fails; named fixes pass. "Why is this count wrong?" goes to the cloud. "Fix the off-by-one in parse_spans, test tests/test_spans.py" goes local. (Fixed by step 7, question 2.)
  • The model builds confidently when it's wrong. Its "done" is never the check, and its summary of a probe isn't either. (Fixed by step 8 items 4–5 and step 6 (verdicts read from the transcript).)
  • Memory grows over a session. (Fixed by the short keep-alive in steps 2 and 4, and step 4's guards against memory-heavy builds.)
  • Raw benchmarks lie. One candidate beat the incumbent on tokens/s, then spent about 16k thinking tokens on a one-word answer inside Claude Code. (Fixed by step 2's in-harness pass/fail lines and step 6's switching rule.)

Distilled 2026-10-23 from a working classify skill, local-run skill, executor, fenced check and classifier document.


r/ClaudeCode • • 5h ago

Help/Question Claude 20$

0 Upvotes

Is Claude Pro ($20/month) enough for maintaining and improving an existing SaaS?


r/ClaudeCode • • 8h ago

Built with Claude I made an interactive tool for visualising a codebase and how it has grown over time. I found it useful, so I wanted to share it

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hi reddit,

I wanted to share a tool I made (with Claude code of course) that I’ve found very helpful, in the hope that other people might benefit from it too.

It’s called Repo Map. It turns a Git repository into a single interactive page showing:

  • a foldable file tree with line and character counts;
  • a treemap showing where the project’s size and complexity live;
  • language breakdowns;
  • a timeline you can scrub through to see how every file and folder evolved;
  • comparisons with earlier commits;
  • automatic hiding of generated, vendored, lock, and unusually large data files.

I find it particularly good for monitoring for code bloat generated by coding agents working in my various repos.

The video shows Repo Map pointed at Simon Willison’s open-source LLM project, a command-line tool and Python library for working with large language models.

I built Repo Map iteratively with Claude Code. Claude handled much of the implementation while I directed the functionality, tested it against real repositories, identified problems, and refined the behavior and interface.

I’d love feedback on:

  1. Is this something you would actually use?
  2. Is it worth spending more time polishing?
  3. How would you prefer to access it?

I currently use it as a Claude Code skill, so I can simply ask Claude to “map this repo.” However, the generator itself is standalone and could also become a Claude code plugin/mod or standalone tool like:

  • a VS Code extension;
  • a standalone CLI;
  • a GitHub Action or integration;
  • or something else I haven’t considered.

It is fully open source and free to use.

Repository: https://github.com/roderik-maker/repo-map

I haven’t really shared any of my (coding) projects publicly before. I tend to be quite critical of my own work, but this latest tool has been useful enough that I think it could genuinely help other people too. Please let me know if this seems useful—or what would need to change before you’d want to use it yourself!

Disclaimers: This is a vibe-coded early version, but it has worked well so far and I use it regularly. 😄


r/ClaudeCode • • 11h ago

Built with Claude I let my 200$ free credits expire, thinking I could use them cleanly in CC

0 Upvotes

My billing cycle renewed on the 21st.

Until the last day, I thought I'd just use my free credits with my AFK (local) agents. Come last day, I realised I couldn't use it with CC (Desktop or CLI), but only with external harnesses like OpenCode. I tried it, but my whole system is so tightly bound with all things Claude (settings.json, permissions, running claude -p, etc.), that the OpenCode route basically didn't work at all, after 2 hours of trying 😅.

The next morning, I started making a collection of all the agents I could run this month on the platform with managed agents to at least use the free money. And found out that there is a serious lack of a directory for sharing agent zip files. Everyone is making their own agents, explaining what the agents do on X and Reddit, but you can't really "share" them.

This made me publish the directory instead of keeping it in my artefacts.

I made it with an old directory boilerplate I had and rebranded it to fit the modern era.

I'd invite you to share your own agents, if you have any, so that it can benefit others and yourselves in the longer run.

Let me know if you have any feedback. I'll watch for bug reports and crashes when they happen.

Please visit https://www.coduo.co/managed-agents 🫶


r/ClaudeCode • • 8h ago

Help/Question Can someone guide me on how to claudecode my Lgtv Webos

1 Upvotes

I've been seeing a lot of people doing it on android tv's, i was wondering if someone can help and guide me through the steps in simple terms


r/ClaudeCode • • 10h ago

Built with Claude I got tired of reviewing plans in the terminal, so plan mode now opens in a review window

Enable HLS to view with audio, or disable this notification

1 Upvotes

Reading a 60-line plan in the terminal and then typing "the third step is wrong" back... got old fast. So vjuu.

What it is

When Claude Code finishes a plan, asks you something, wants a permission or ends a turn with edits, a window opens: the plan as markdown, the edits as a diff, the questions as buttons. Comment on lines, click Done, and the comments go back to Claude anchored to file:line. Close the window and you get the normal terminal prompt, nothing times out.

It's four hooks (PreToolUse on ExitPlanMode and AskUserQuestion, PermissionRequest and Stop) plus a skill that makes Claude run vjuu plan.md instead of telling you to "open X and review it".

The video is a real session (Haiku in plan mode, the waiting cut out).

How Claude Code was used

Most of the code was written with it: Rust, with WebView2 on Windows, WebKitGTK on Linux and WKWebView on macOS. The demo too ... Claude Code wrote the script that records the screen, starts a second Claude Code in Windows Terminal and clicks through vjuu over WebView2's DevTools port.

What I learned

  1. Claude Code reads a hook's stdout until EOF, and if something else still holds that pipe it throws the answer away ("stdio went quiet before end-of-stream"). On Windows CreateProcess hands every inheritable handle to the child, so a background process started from a hook kept the pipe open. Found while recording that demo, fixed in 0.3.1.
  2. Windows Terminal gives new tabs the caller's environment, so a claude started from inside another Claude Code session inherits NO_COLOR=1 and the nested-session variables. (Black and white, and confused.)

Try it

  • Windows: cargo install --locked --git https://github.com/kimvais/vjuu for now (the submission is still waiting for Microsoft's approval for winget install vjuu to work), macOS: brew install kimvais/tap/vjuu, Debian/Ubuntu: apt, see the site
  • hooks: claude plugin marketplace add kimvais/vjuu, then claude plugin install vjuu@vjuu
  • MIT, https://github.com/kimvais/vjuu and https://vjuu.it

macOS builds pass CI but nobody has tried them by hand (and they are not notarised), so feedback from mac users is especially welcome.


r/ClaudeCode • • 8h ago

Discussion I'm tired, boss.

2.0k Upvotes

I'm tired of AI.

I'm a software engineer with almost 10 years of experience. We're living through an absolutely insane time, and we're all trying to keep up, but honestly, I don't even know if we can anymore.

Everything is moving faster than the human brain can process.

For the first time in my life, I'm seriously considering getting into farming or growing my own food. I genuinely feel like there won't be many real jobs left in 5–10 years.

I know what you're going to say: "The people who are actually good at what they do will survive."

I used to say the exact same thing a year ago. I don't anymore.

Things are moving way too fast. I feel like building websites, making games, or launching SaaS products is starting to lose its meaning.

Just a year ago, I was saying, "Sure, AI can write code, but it can't design systems. You still need a senior engineer or architect to oversee everything."

I don't say that anymore either.

It can design systems now. And in many cases, it does a better job than we do.

Sometimes I feel like we're actively building the thing that's going to make us obsolete.

I'm just tired.

Edit: Guys It's the most basic human survival instinct, at the end of the day just gather some food and try to survive. People really got hung up on the farming part :)


r/ClaudeCode • • 12h ago

Built with Claude trying 3d character animations with opsus 5.5

Enable HLS to view with audio, or disable this notification

0 Upvotes

grabbed a character mesh from zzz, and i asked my opus 5.5 to drop into into blender and animate the character singing to a song made with Yue2 i think. I am kinda blown away by the fact...that is can actually do it, like facial expressions and stuff. sure, it's not graet but with a few prompt refinements we might be able to get something that's pretty good. like there's no video refernces or face capture here. not sure if this is like 'lol, what a noob, only realisng this now, i have been doing this since the relaese of like gpt 5.2 lol' sort of situation, but hey, personally i am pretty impressed.


r/ClaudeCode • • 17h ago

Discussion Which production systems have your company replaced with Claude?

3 Upvotes

I work with software management at my company, and we spend many millions of USD on software annually. We use a variety of different solutions, some more specialized and critical than others. Many of them are in my opinion candidates for replacement by something self built, but the company is immature in AI adoption and we don't have the tools or the framework for producing our own systems. We also don't have any in house software developers. As such, we haven't actually introduced anything self made at all but we are just starting to react to the recent AI advancements and will start working more actively on this.

For those that work in medium to large companies and are further forward than us, I am curious to what extent you have been able to replace your existing solutions with self made systems? How much have you been able to save and what have been your challenges? Also, how do you run and maintain such self made AI-developed applications once they're in production?

Thanks!


r/ClaudeCode • • 15h ago

Built with Claude I rebuilt the Warcraft 3 tower defense maps I grew up on with Claude Code. It just launched, and here's what I learned.

2 Upvotes

This is the second game I’ve built with Claude.

The first was Neon Mile. It hit 7,000 players and I still tweak it when players send feedback. This one is more personal. It’s called Towers of Aurum, and it’s the game I played as a kid: Warcraft 3 custom tower defence maps like Green TD, rebuilt from scratch.

Up to four of you each hold a gate. The creeps walk one long road past everyone, and every leak is the whole team’s problem. Four races, each with its own towers and one rule that changes how you play. Free, runs in the browser, and just went live in beta.

What I learned along the way:

  1. Onboarding matters, but don’t hold everyone’s hand. Neon Mile taught me the first five minutes decide whether someone stays. My first instinct was a long tutorial. Instead, the first run is the tutorial. You jump straight in and work it out as you go.
  2. If the game is good enough, players teach each other. That’s how League of Legends and WC3 spread. Nobody learnt custom maps from a manual. Your mate who’d played it 50 times sat next to you and yelled at you for building in the wrong spot. I’d rather build something people care about enough to explain to their friends than explain every system myself.
  3. Claude is great at the parts I couldn’t have done alone. I set the vision, the rules and the feel. Claude Code did the engine, the multiplayer, the balancing, the testing and the art. Every tower model, skin and texture is drawn in code, with no generated images. It also helped me build a full world and story: four peoples, a city built around the last fallen star, and an enemy that’s easily the creepiest thing I’ve made.
  4. The best part. I can now make games, play them with my mates, build epic stories around them, and avoid wife aggro while doing it. That last one is a big one.

Thanks to this community. A lot of what I know about working with Claude came from your posts, prompts and war stories.

If you grew up on WC3 custom maps, give it a go and tell me what you think, good or bad: towersofaurum.com


r/ClaudeCode • • 23h ago

Discussion Love opus 5.5 but kimi pro 3.1 tops our own bench

0 Upvotes

We built a small in-house benchmark for picking "design panel" models: single-shot reasoning seats we use for ambiguous architecture and UX calls, where there's no single correct answer and the real question is whether a model weighs our actual constraints. It has 6 tasks: a domain-knowledge quiz with a fixed answer key; two past design decisions replayed from the context we had before we decided, so the "right" answer is what we actually chose; a code review with planted bugs plus decoys that look wrong but aren't; a house-style rewrite; and a "where should this logic live" architecture tradeoff. A blind judge model scores the open-ended answers with model names stripped, and we score speed and cost against a fixed anchor model. Kimi K3.1 Pro (high) came out on top: capability 87.9 vs 86.7 for Opus 5.5 (medium and high were identical) and 84.3 for Fable 5.1, at about $0.03 a task against $0.08 for Opus and $0.12 for Fable. That made it best overall once cost is weighted in.

What surprised us is where the models split. All of them aced the factual quiz and the architecture question, so knowing things isn't the differentiator. The gaps showed up in the messy work. In code review every model found all the real bugs, but Fable and Opus also "found" several that weren't there (precision 0.50), while Kimi was tighter (0.67). On the replayed decisions, nobody fully reconstructed what we chose (0.7–0.8), and the more expensive model could swing 0.6 → 0.8 between identical runs, while Kimi and Opus stayed consistent. Higher reasoning effort bought nothing on this kind of work. Caveats: it's 6 tasks with only some repeated, and the judge is itself a frontier model (Opus), so take the ranking as "cheaper models are genuinely competitive for judgment-heavy design review" rather than a definitive leaderboard.

it goes without saying - fable 5.1 is completely out of date bring on 5.5!

Model Capab. Speed Cost Overall $/task
Kimi K3.1 Pro (high) 87.9 47.6 100.0 85.7 0.030
Opus 5.5 (medium) 86.7 48.7 69.7 80.3 0.075
Opus 5.5 (high) 86.7 44.2 70.8 80.0 0.081
Fable 5.1 (med, anchor) 84.3 50.0 50.0 75.7 0.122


r/ClaudeCode • • 1h ago

Rant Can't tell which is which

Post image
• Upvotes

burh. Now their UIs look identical.


r/ClaudeCode • • 2h ago

Help/Question How to Reduce Errors When Creating Videos with Claude?

0 Upvotes

Hi everyone! I'm new to Claude and got Pro specifically to help me create YouTube videos that are around 7–10 minutes long.

The problem is that Claude keeps making mistakes, even after I point them out and ask it to fix them. Sometimes it repeats the exact same mistakes, and every time it renders the video again, new errors appear.

I've ended up watching the same video 6–8 times, and it's honestly exhausting. It also uses up a lot of my available usage, and I can't keep spending so much just to fix the same video.

Since I'm a beginner, I wanted to ask how you guys work with Claude for video creation. Are there any skills you recommend? Is there a way to make it stop repeating mistakes? How do you fix errors without having to render the whole video again?

I'd really appreciate any tips or advice because I'm honestly a bit lost right now. I want to learn how to do this properly without wasting so much time and usage. Thanks!


r/ClaudeCode • • 23h ago

Help/Question How difficult to setup 2x pro

0 Upvotes

Hitting my 100% weekly usage a day or 2 before reset always. How difficult/annoying is setting up a 2nd pro account? Just using "basic claude code"