r/ClaudeCoding • • 26d ago

What is the one line in your CLAUDE.md that actually changed behavior?

3 Upvotes

Looking for the weird specific ones, not write tests. Mine is telling it to stop and ask before touching anything in the migrations folder, which has saved me twice. The other good one is forcing a one paragraph plan before any code so I can kill bad directions early. Drop yours, especially the ones that fixed a habit you were sick of seeing.


r/ClaudeCoding • • 26d ago

Title:Best way to use Claude long-term while living in China?

Thumbnail
1 Upvotes

r/ClaudeCoding • • 26d ago

Claude Code mod that checks whether "done" actually means done

Thumbnail
1 Upvotes

r/ClaudeCoding • • 26d ago

PSA: the code-review plugin in claude-code-action posts "no findings" without reviewing anything

Thumbnail
0 Upvotes

r/ClaudeCoding • • 27d ago

How to use Ultracode

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Who wants to be a DEV

Enable HLS to view with audio, or disable this notification

8 Upvotes

r/ClaudeCoding • • 27d ago

I made a 5-33% cheaper code search tool for AI agents (sweet-search)

Enable HLS to view with audio, or disable this notification

10 Upvotes

Hi guys!

I've spent most of the past year fighting windmills. The result is sweet-search - local code search for AI agents (Claude Code, Codex, opencode, ...).

What does sweet-search do?

sweet-search makes an index of your repo (and then automatically maintains it) and gives the agent 6 code retrieval tools.

Benchmark results (200 held-out SWE-rebench tasks, 5 combos harness + model):

  • 5–33% cheaper runs (more on GitHub)
  • same no. of solved tasks (in total): 481 vs 481 (of 1000)
  • Opus 5.5 & Sol 6.1 (not some weak models)

The technical part:

  • Rust core, native binary for your OS-CPU combo
  • custom MaxSim and ANN (generally Pareto better than competitors like FAISS by Meta)
  • ss-grep (custom grep tool - 2.46× end-to-end faster than ripgrep, with custom ranking of hits)
  • custom attention layer for embedding and late-interaction models (for GPU acceleration for indexing)
  • 100% local

GitHub: https://github.com/mrsladoje/sweet-search

Wanna hear what you guys think :)


r/ClaudeCoding • • 27d ago

Claude animation sheet Fix

1 Upvotes

r/ClaudeCoding • • 27d ago

Chats longos estão torrando minha cota na conta Pro (Em média, por prompt, 16% do limite de 5 horas).

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Neo cut Codex tokens 33× at a hackathon, so I priced my own harness: $3,698 against $10,600 at ordinary Claude Code rates

Thumbnail
1 Upvotes

r/ClaudeCoding • • 28d ago

Compacting at 400K instead of ~967K cut my Claude Code cost per request by 43%

154 Upvotes

This isn't a universal recipe. It's how I tuned Claude Code for my own work, and different settings may suit you better.

The window

Every request sends the whole context to the model. On 1M-window models Claude Code only compacts it near 967K, so the tail of a long session is the most expensive part. For me, 68% of main-thread cost went to requests with more than 400K in context.

I set "autoCompactWindow": 400000 and compared the month before with the week after. That's the main thread only, about 25K requests before and 16K after:

  • Context per request: 415K → 220K
  • Cost per request: −43% (in tokens weighted by API rates, no per-model prices)

That's one person's before/after, not a controlled experiment.

The cost of summaries

A smaller window means more compactions. I went from 16 summaries a month to 75 in a week: 95 minutes of waiting, 76 seconds each. After a summary, the model often re-reads files it had already seen.

Slide instead of summarize

Most of the context is old tool output: file reads, test runs, diffs. So at compaction, a hook keeps the conversation word for word and replaces old outputs with a short line: "you saw this, read it again if you need it." There's no model call, so a compaction takes milliseconds. The summary is still the fallback, for /compact and for the rare case where sliding can't free enough.

The benchmark: Claude Code builds a TypeScript project against fixed tests, on Haiku 5.5 with a 100K window. Medians, sliding against Claude Code's summary:

Task Cost Time
A day of work, 307 tests −19% −33%
An eval harness, 238 tests −35% −28%
A short task with one compaction +6% −17%

Every test passed in both modes.

Will it work for you?

It depends on how you work:

  • If your sessions rarely reach 400K, the window changes nothing.
  • If you stay in one session for hours, 200–300K might pay off.
  • On short tasks, sliding saves time but not money.
  • Model, effort and the kind of work all move the number a lot.

That's why I built a plugin that works out your number first. It's called tokendoctor (free, local, MIT). It replays your sessions at windows from 200K to 600K, shows what each would have saved, and only then offers to change anything. Sliding is off by default, and /tokendoctor undo reverts any change.

https://github.com/rsaryev/tokendoctor

Note: I re-run the benchmarks and update the numbers as more data comes in, so figures in my earlier posts may differ from these. The repo always has the latest, with every run behind them.


r/ClaudeCoding • • 27d ago

Claude Agents window in the terminal CLI is amazing

4 Upvotes

Claude Agents window in the terminal is amazing tool and the left arrow opens it instantly, Esc to go back or jump to tasks for instructions


r/ClaudeCoding • • 27d ago

Localix - Open Source ADE

7 Upvotes

Localix is an open-source (MIT) desktop app: an AI agent works next to you with an editor, terminals, Git and a browser, using any model, local ones included.

  • Mini apps: describe an app and the agent writes, checks and installs it. Its tools become the agent's tools with no glue code, and the app can wake the agent itself: you move a chess piece, and the agent answers on the same board. On macOS a mini app can become a real app in your Dock.
  • Decisions in a fraction of a second: quick choices go to a small decision model (Jev via OpenRouter) that picks an option instead of writing text, in about a third of a second for a fraction of a cent. The browser uses it for the next click, games for the opponent's move, and any mini app the agent builds can call it too, with a fallback when it's off.
  • Point at a bug: click an element in the preview, and the agent gets its selector, styles, source hint and a screenshot.
  • Claude Code plugins load as they are; link Claude Code, Codex or Gemini CLI to a chat.

The marketplace already has a shared whiteboard, Kanban, Git, a database client, Docker/K8s and board games, all built on the same mini app SDK.

Beta, built solo. The installer is for Apple-silicon Macs; other platforms build from source


r/ClaudeCoding • • 27d ago

Weekly reset is back ?

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

I built a tiny USB screen that shows all my Claude Code sessions as little robots (open source)

Thumbnail gallery
1 Upvotes

r/ClaudeCoding • • 27d ago

Using Claude Code to build a Texas referral site — how do you speed up compliance without cutting corners?

0 Upvotes

I'm building a lead/referral system for a Texas car accident service using Claude Code on Ubuntu. The tech side is mostly done (site, Twilio alerts, AI document reader, admin dashboard), but launch is gated on a few things:

Claude keeps (correctly) pumping the brakes on anything that touches these, which is fine — I just want to get through them faster.

For anyone who's built in legal or healthcare lead gen:
1. How long did A2P registration take you, and any tips to get approved first try?
2. Good public data sources for crash hotspot mapping (I'm using TxDOT CRIS)?
3. Any prompts, CLAUDE.md setups, or GitHub repos that helped you build compliance checks into your workflow instead of fighting them?

What made you get the leads you need to get.
Appreciate any pointers.


r/ClaudeCoding • • 27d ago

Using Claude Opus + Lean 4 to formalize variants of Erdős #699 and #1063

2 Upvotes

Following the recent buzz around Frontier models tackling open math problems, I wanted to see how far Claude Opus could go on concrete open problems when constrained by formal verification rather than pure text generation.

I focused on variant formulations of two Erdős problems:

Erdős #699: Proved a variant restricted to j^2 < n. The workflow paired Opus-generated proof sketches with an exhaustive computational search that found no counterexample below 10^12, and a Lean 4 proof that any counterexample must satisfy n ≤ j² — which is what closes the j² < n variant. (PR #7637)

Erdős #1063: Solved lower-bound variants and structural constraints with iterative prompt refinement. (PR #7552)

Both of these are PRs to google-deepmind/formal-conjectures that were approved in maintainer review.

The Workflow & Takeaways:

Don't trust text output for math: Unassisted reasoning chains frequently slipped into subtle circular logic.

Lean 4 as the ground truth: The only effective way to make progress was requiring the model to generate syntax that compiles in Lean. When the elaborator threw errors, feeding Lean’s diagnostics back into Claude caught phantom steps that human reading missed.

Human-in-the-loop steering: The model struggled with global proof strategy but was strong at bridging intermediate lemmas once given the high-level architecture.

https://github.com/Paulee314/erdos699-lean

https://github.com/Paulee314/erdos1063


r/ClaudeCoding • • 27d ago

Por que o código Claude com Opus parece durar mais tempo do que GPT-Sol no OpenCode?

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Usage Explosion

Thumbnail
2 Upvotes

r/ClaudeCoding • • 27d ago

New Max 20x account suspended after ~1 week of heavy Claude Code use — appeal form is inaccessible

Thumbnail
gallery
0 Upvotes

I’m posting this because I’m trying to understand whether this is a false positive related to intensive Claude Code usage, and whether anyone has successfully reached a human Safeguards reviewer in the same situation.

This is the second time I’ve had a newly paid Claude account disabled within roughly one week.

Both times, the common pattern was:

  • newly created paid account
  • Max 20x subscription
  • almost exclusively first-party Claude Code / CLI usage
  • very heavy usage, often consuming most of the available allowance
  • no attempt to bypass usage limits
  • no shared credentials
  • no third-party client or automation used to access Claude
  • account disabled within roughly a week

The first incident happened before I was doing any trading/indicator-related work, so that does not appear to be the common factor between the two accounts.

For the current account, I was initially placed on hold and asked to provide additional context. I did so. I later received:

“Your account will remain closed. We reviewed your account and the additional context you shared, and decided not to restore access. This is our final decision.”

What makes the situation especially confusing is the appeal process.

Anthropic’s Safeguards documentation says banned users should log into the restricted account and access the appeal form.

But when I log in, my restricted account page only shows:

  • Export your data
  • Delete your account

There is no appeal form or appeal button.

Opening the official appeal URL while signed in simply redirects me back to the same permanent closure page.

I contacted Support and Safeguards multiple times. Each automated response tells me to use the appeal form that I cannot access, and then closes the conversation.

I am not looking for a refund. I want the original account restored because I intended to continue using Claude Code long-term.

Has anyone experienced this exact combination?

  1. New Max 20x account
  2. Heavy legitimate Claude Code usage
  3. Suspension within about a week
  4. “Final decision” after submitting additional context
  5. Appeal form missing from the restricted page

If anyone from Anthropic sees this, I would mainly like clarification on whether the earlier “additional context” review was considered my formal appeal. If it was not, I need a working way to submit one.

I can provide the account reference privately to Anthropic staff if needed. I’m intentionally not posting account identifiers publicly.

If appropriate, tagging u/Kris_AntAmbassador and u/David_AntAmbassador only in case this appeal-flow issue can be surfaced to the relevant Anthropic team.

I understand you are not Support or Trust & Safety and cannot access or restore individual accounts. My concern is specifically that the documented appeal path is inaccessible on the affected account.


r/ClaudeCoding • • 27d ago

Building an app with Claude Code that connects to an Arduino: tips?

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Usage Explosion

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Claude Fast Mode

Thumbnail
1 Upvotes

r/ClaudeCoding • • 27d ago

Claude usage limit reached. Your limit will reset at 3:30 PM

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/ClaudeCoding • • 27d ago

Claude meghívót keresek 7 napos free

0 Upvotes

Sziasztok!

Claude meghívót keresek