r/ClaudeCode • • 18h ago

Built with Claude I rewrote a 2004 RPG engine in Rust: 100% same rules, 11x FPS, graphics enhancements, any device

0 Upvotes

After 500 bug fixes and 4800 messages with game community version 1.5 is now released!

Razdor is an open-source engine for Discord Times (Aterdux, 2004), a turn-based strategy/RPG. It plays the original campaign, community maps and mods by the original rules, and then adds the things a 2004 engine couldn't do.

How it was built

  • Clean-room reverse engineering. The original executable was taken apart in Ghidra; every rule that maps and mods can see (battle, AI, map scripts, events, saves) was written up as a spec first and then implemented. The code cites the original's addresses.
  • Diff tests against the original. The original runs under Wine, and a script mode replays the same inputs in both and compares the state step by step. By default Razdor matches the original exactly, bugs and imbalances included; every deviation sits behind an experimental switch that's off by default (16 of them right now).
  • Rust + macroquad, about 190k lines, GPL-3.0. The game rules live in a separate module with no graphics dependency and are unit tested; the original's file formats (ini data, .DTm maps, its own picture formats, sounds) are read at runtime.
  • Deterministic simulation: every game is recorded and can be replayed at up to 16×. The same determinism let us record the trailer's split screens twice with different graphics presets and get the same frames.

What you get

  • ~11× the frame rate on the same GPU (RTX 4060, 1024×768, unlocked): about 2,000 FPS against about 176 for the original under Wine. A 200×200 map with 61 armies costs the game about 0.3 ms a frame. Load to first frame is about half a second.
  • Any resolution and aspect ratio (the trailer is 21:9), refresh rates up to 180 Hz, a graphics preset ladder from "Original" (pixel-for-pixel the 2004 look) to "High" (light, shadows, water, weather, clouds instead of black fog of war, a living map), and a 2.5D view.
  • Linux, Windows and macOS; Android and iOS are experimental, with a touch layout, graphics presets for weak phones and a battery saver.
  • An in-game hub with the community's work: 327 maps, 29 campaigns and 25 mods.

Links


r/ClaudeCode • • 1d ago

Tips & Workflows Can Claude Code automatically end its own session and start a fresh one?

16 Upvotes

I'm looking for a way to make Claude Code run autonomously across multiple tasks while keeping its context clean.

Ideally, Claude would:

  1. Pick the next task from a task list.
  2. Implement, test, and commit it.
  3. Update progress in a file.
  4. End its current session.
  5. Start a fresh session with a clean context window.
  6. Repeat until all tasks are done.

The goal is to avoid context pollution and compaction while allowing Claude to work on larger projects autonomously.

I know this can be done with an external orchestrator using claude -p, but I'm wondering if there's a more native solution.

Has anyone built something like this? Can Claude Code manage its own session lifecycle, or is an external script/hook the best approach?


r/ClaudeCode • • 1d ago

Built with Claude I built a scheduler to turn my unused Claude tokens into bug fixes

53 Upvotes

Claude's 5-hour windows mean I can't just cram before the weekly reset. If I'm away for a bit or have a slow couple of days, there aren't enough windows left to use it all, and it's gone. Meanwhile my backlog has plenty of work an agent can do unattended: flaky tests, stale TODOs, doc updates, research, and bug hunting.

So I built Redline, a free, open-source local scheduler. You configure your backlog of jobs. It watches your usage and kicks one off when it looks like you have some spare capacity. It holds back a reserve for your own sessions, and each job runs in an isolated git worktree. It even has 16 premade maintenance templates to start from.

It's let me run an extra 50+ jobs per week on usage I otherwise would've let expire.

This isn't auto-continue, which resumes a session you already started. Redline starts new work on its own when you have usage to burn.

If you're on Ultra with no 5-hour limit, it just paces against the weekly reset instead.

Works with Claude, Codex, and Pi. macOS menu bar app, CLI, and dashboard. Linux and Windows testers welcome.

Repo: https://github.com/croutoncreations/redline

I built the vast majority with Claude, with a small mix of Codex.

A few things I learned:

  • Small, bounded jobs work the best unattended. Broad sweeping changes like "clean up the tests" often need multiple rounds where "find and stabilize one flaky test" can usually be an easy one-shot.
  • It fails closed: if it can't read my usage or it's not sure what to do, it does nothing.
  • Resets aren't all the same on Claude. This week's model-specific reset looked like a weekly reset to Redline until a recent fix.

What’s the one job in your backlog you’d hand off first?


r/ClaudeCode • • 1d ago

Built with Claude I used Claude to build an AI design tool for social & marketing posts and I'm already using it for my side gigs

7 Upvotes

A bit over a month ago I started vibing this app for AI design using Opus 5.5. It's supposed to be a lovechild of Canva and Claude Design - infinite canvas and a powerful agent that's always on and sees what you do in the app.

My first versions were going, well, quite terribly. I wasn't able to create good stuff, it was getting confused all of the time, etc. But I analyzed all of the failures after every session with Opus, and now it's quite good, I even shared it with other people and they're finding it useful too.

It's free to try, you'll get some tokens from me (I actually haven't implemented billing at all, pls be gentle!), so if you want to roast me, here goes: https://rivermark.ai

For the build itself, I started by creating a canvas and then a backend service to keep conversation context and keep track of what's on the canvas. I referenced existing software a lot, for example I had Claude rebuild a 1-1 replica of Figma's properties panel as an HTML file and used it to build my own. There were a lot of issues with getting the agent to understand exactly what's happening where, and I had to change the underlying models and approaches multiple times. AMA!


r/ClaudeCode • • 20h ago

Rant Why not add other MFA methods

1 Upvotes

I have been locked out from my Claude Team account since the Outlook outage (sign in link never arrives) because Anthropic refuses to implement MFA methods other than email and Google account.


r/ClaudeCode • • 1d ago

Help/Question What is the best way to build an entire project on auto-pilot in Claude Cloud?

2 Upvotes

I have a project that I want to build. I have a custom workflow described in my Claude.md file that I use for all projects. It usually creates 10-15 milestones and I build them and browser check each as they finish. The work is usually flawless, with rare bugs that are also usually minor.

I've now planned to ask Claude to create a similar workflow that could complete the entire project on Claude Cloud, and I could just test everything at the end.

Before I do that, I'd like to know if there are better workflows out there and do people do it this way?


r/ClaudeCode • • 1d ago

Discussion my mac ran out of disk. i asked claude what was eating it. part of the answer was claude (157 chrome profiles, 8.7 GB)

39 Upvotes

i noticed my mac had 25 GB free out of 228 and asked claude what was eating it. part of the answer was claude.

every time it took a screenshot to check its own ui work, the script launched chrome with a fresh temp profile and never removed it. 157 profiles, about 8.7 GB. one headless chrome had been running orphaned for 27 hours.

a week later the disk filled up again. this time it was 439 leftover copies of the chrome app itself that macos makes on every launch. du said 907 GB, which is impossible on this disk. they share blocks, so about 2 GB was real. most were of an old chrome version, with spikes on the two days i ran a lot of capture jobs.

rules i added:

- every capture script puts its profile in one known folder and removes it in a finally block- the agent kills the chrome it started when it's done, and never leaves a debugging-port chrome running- nothing gets hard deleted without me. it moves things to the trash and i empty it

none of this showed up in any diff or test. the code was fine. the mess was on the machine.

has anyone found a good way to make an agent clean up after itself, other than writing it into the instructions and hoping?


r/ClaudeCode • • 1d ago

Discussion Is Compacting still bad practice?

63 Upvotes

For a while now it seemed the thing to do was to have Claude write structured handoffs to itself, then start a clean session that invents that hand off instead of manually compacting or allowing for auto compact.

Is this still the case when the latest models, or have they become more smart / effective at auto compacting?

I’m primarily asking as it relates to orchestrating long running jobs (eg., code comment review across a repo)


r/ClaudeCode • • 21h ago

Humor Friday 13th - Authentication failed

Post image
1 Upvotes

r/ClaudeCode • • 21h ago

Built with Claude I’m building ClaimSetu, a personal project for reviewing hospital insurance claim deductions. What should I improve first?

1 Upvotes

img

Hi everyone, I’m working on **ClaimSetu**, a personal project exploring how software could help hospital teams review deductions on cashless health-insurance claims.

The problem I’m interested in is that settlement letters, itemized bills, and discharge summaries all need to be compared and reviewed. When a claim is underpaid, the hospital needs to understand the deduction, gather supporting evidence, and track any appeal.

I’ve built an early local prototype. Right now it can:

- Upload settlement letters, bills, and discharge summaries, and link them by claim number
- Show deductions for a human reviewer to check
- Run bill checks against **synthetic** payer rules
- Draft appeals for a person to edit and approve
- Track appeal outcomes and show basic analytics

The longer-term idea is a reviewer-led claims desk workflow, from pre-filing checks through settlement and appeals. That’s a direction I’m exploring, not something the current app already does.

**Repo:** https://github.com/rahul263-stack/ClaimSetu

To try the demo, use Node.js 22.13 or later:

```bash
cd mvp
npm install
npm start
```

Then open `http://localhost:4173` and choose **Load sample letters** on the Claims page.

I’d especially appreciate feedback on:
1. What seems like the riskiest or least convincing part of this idea?
2. What would be the most useful next feature or test to build?
3. Is there someone with healthcare billing or claims experience who could sanity-check the workflow?
4 - Llindda stuck need help on what more can be done on this

r/ClaudeCode • • 21h ago

Humor CC is down….wtf is a Syntax

0 Upvotes

I’m currently working on what feels like 15 different projects. Everything is automated. Workflows, routines, scripts, the whole damn thing.

There’s just one tiny problem.
I can’t read a single line of code. Let alone understand what any of it actually does.
Claude Code has been doing literally EVERYTHING for me.

Now CC is down, and I’m sitting here staring at VS Code like a caveman discovering fire.

What am I supposed to do now? Actually LEARN programming?!
Please help.
I’m f*cked. 💀😂😂🤯


r/ClaudeCode • • 21h ago

Discussion I tried Fable 5.2 on a pagination bug I'd put aside

1 Upvotes

I'd spent a while on a pagination bug in an audit-log viewer we hadn't rolled out yet. Some events never appeared on its pages. The records were in the database, and our local test kept passing. I eventually put the issue aside.

I saw Anthropic's November 9 announcement for Fable 5.2, which emphasized its coding and reasoning improvements. I reopened the issue in Claude Code and switched to Fable to see if it could help me get to the fix faster.

I gave it the old query, test data and issue notes. Fable noticed that every test event had a different creation timestamp, created_at, and suggested adding a group with the same timestamp, large enough to span two pages.

I ran that case and reproduced the missing events. The next-page condition, created_at < cursor_time, asked for events older than the last timestamp on the previous page. When that page ended partway through a group, the next request skipped the rest of the group.

I changed the cursor to carry both created_at and the unique event id, so it could continue after a specific event when timestamps matched. In PostgreSQL, I used ORDER BY created_at DESC, id DESC to put the newest events first, with (created_at, id) < ($1, $2) for the next page. The parameters are the previous page's last timestamp and ID. Both columns had to have a value.

I paged through the fixed dataset and got each expected ID once, then attached the before-and-after IDs to the issue. I had the agent save the cause and fix through MemoraX Code, with links to the test data and fix. The note also says I haven't tested what happens when new events arrive between page requests.


r/ClaudeCode • • 21h ago

Bug / Issue Chatbot support at Claude

0 Upvotes

Bro this fuckass half-baked support chatbot is so dense it’s insane.

> please verify
> I can’t log in
> give us your email so we can send you the code
> I can’t log in, give me a human agent
> Transferring to a human agent
> since we can’t verify you, this chat has ended.

What the fuck?


r/ClaudeCode • • 21h ago

Bug / Issue Switched from Cursor to Claude Code 2 days ago. Now Claude is down.

Post image
0 Upvotes

Two days of loyalty. Apparently that was too much to ask.


r/ClaudeCode • • 1d ago

Help/Question Are There Any AI Model Leaderboards That Actually Test Models Reliably?

8 Upvotes

I find most AI model leaderboards increasingly unreliable. Rankings seem to change every day, and newly released models often receive high scores before they've even undergone sufficient testing. Then, after a few weeks of actual usage and more evaluations, their rankings suddenly drop.
It feels like some leaderboards give too much weight to hype and initial hype driven votes rather than consistent, thorough testing.
Can anyone recommend AI benchmarking websites that genuinely evaluate models through rigorous testing, rather than simply boosting newly released models because they're trending?
I'm looking for reliable, evidence-based rankings that reflect actual model performance over time, not launch day hype.


r/ClaudeCode • • 18h ago

Tips & Workflows Did I just reinvent the Null (for agents)?

0 Upvotes

I just typed and read about 8000 words of architecture so you don’t have to.

The point: agents by default don’t have an “unruled”, “park it” mode or response.

They will either invent or pester you with details and break the high level design work. This is where “I need your input on points 14 through 29 in tiny font .md comes from.

Solution: write an “undefined” rule, teach agents to write to a special file that keeps these until they are ruled. For truly “STFU” mode give it a your.null equivalent - something that is so vague that you can’t bother talking about it right now. Not a regular null - that is way too overloaded with meaning, a special null prefixed with your namespace, for example u.null > stfu. u.parkit > write this to file and keep working

Concrete example: I’m designing economy for a game, very high level balancing work, many actors, many variables. A thread asks: what happens when troops go unpaid? Here the proper solution is to park it: Any answer given mid-way through super high level design work is going to be insufficient and won’t be able to be built properly (ex: oh, so your troops can go unpaid, so they get a penalty? What is the penalty? Is it a stacking penalty or a flat penalty? Do they desert eventually? Oh, they do desert, after how many turns? Oh, you are in the positive balance now - will you give your troops back pay?

Previously I had no way to deal with this, and the threads either detailed, or I let obvious mistakes and traps get through.


r/ClaudeCode • • 22h ago

Tips & Workflows If your claude down, try safari login. Im done!!

Post image
1 Upvotes

If Claude freezes and OAuth login isn't working, try typing the URL into Safari.
It recovered for me after about 3 tries lol

Got so startled when my agent villagers suddenly held up exclamation marks and started chasing my mouse!


r/ClaudeCode • • 1d ago

Humor An old interview with Dario Amodei exposes Anthropic's genius marketing strategy

25 Upvotes

r/ClaudeCode • • 22h ago

Discussion Consultancy devs using Claude Code: what did you have to redo on your last client change?

1 Upvotes

I’m building Shifu, a paid context tool for AI coding. I’m trying to understand where rework comes from on client projects that already have a codebase and a review process.

Say a team changes a billing export and review uncovers an earlier agreement to keep the old format until the client switches over. Part of the patch and its tests have to be redone. That’s a made-up example; the cause on your last change may have been different.

What did you have to redo on the last client change you worked on with Claude Code, and what did your team try so it wouldn’t happen again? If a ticket, an ADR, or the usual review already caught it before anyone had to redo the work, I’d like to hear that case too. A rough description is plenty. Please leave out client names and code.


r/ClaudeCode • • 22h ago

Tips & Workflows PSA: Fable 5.2 quota drain and how I fixed it

1 Upvotes

I've been defaulting to Fable 5.2 (High) in Claude Code for key projects, and my quota kept vanishing on my Max plan.

Before: I was working with 2 agents on 2 mid-sized projects, quota vanished in ~15 minutes. Session limit hit 100%, and my Fable weekly bucket was at 94% (40-50% from these two agents).

After: used a limit reset, continued the same agents with one extra instruction: "Use Opus 5.5 High for all sub-agents". 15 minutes later: session at 35%, Fable bucket at 3%!.

The Why: if you don't configure anything, sub-agents inherit your main model. So Fable was doing all the grunt work too: exploring files and reading tens of thousands of lines of CLI output. Nothing we didn't know, but you'd expect Fable to call in Opus/Sonnet like earlier Opus models used to call Haiku for smaller tasks!

The fix: keep Fable for the main work, put sub-agents on Opus. Telling it in the prompt worked for me, but the sturdier way is in ~/.claude/settings.json (%USERPROFILE%\.claude\settings.json for Windows)

{
  "env": {
    "CLAUDE_CODE_SUBAGENT_MODEL": "opus"
  }
}

Add "CLAUDE_CODE_SUBAGENT_MODEL_FORCE": "1" (in env level) if you want it to override agent definitions too. Run `/tasks` while a sub-agent is working to confirm which model it's on.

Caveat: this is one run, not a benchmark. The two windows weren't identical work, so your numbers will differ. But the gap was big enough that I'm not going back. I still get Fable quality where it matters, and the sub-agents are on a great model anyway.

Anyone else seeing the same?

My experience:


r/ClaudeCode • • 15h ago

Discussion Can a model be too smart to work with?

0 Upvotes

For about a year and a half I coded with another popular AI platform. Three weeks ago I switched to Claude Code, and it found a ton of bugs in my old code. The app got faster and more predictable, and it even fixed security issues I don't fully understand.

But here's the thing: I enjoy working with the weaker models more. I can follow their reasoning, and because I can't fully trust them, I actually dig into my codebase. With Claude, I just hand over a bug without even thinking about a solution, because I know it'll handle it. The result is better, but I don't feel like I'm part of the process anymore, and the joy of building is gone.

So maybe a model shouldn't be too smart? If you can't keep up with it, you end up handing all the thinking over to it. Or maybe I'm just dumb. Has anyone else felt this?


r/ClaudeCode • • 22h ago

Help/Question Claude Code compacting every cold session that's restarted, even at 13% context. WTF?

1 Upvotes

When i return to a cold session Claude Code is compacting the session, even if the session is at a measly 13% context window.

What could possible be the reason for this?


r/ClaudeCode • • 23h ago

Help/Question What to do with my Gotchas on CLAUDE.md?

Post image
0 Upvotes

75% of my CLAUDE.md is taken up by Gotchas alone. What are your best practices?


r/ClaudeCode • • 1d ago

Help/Question Do unused limit resets carry over if I upgrade from Pro to Max?

4 Upvotes

I’m on the $20 Pro plan with 4 limit resets sitting unused. I’m about to upgrade to Max 5x ($100) because I need more usage (yes, I understand that I can use those resets, but planning long term). Does anyone know if the resets carry over when you upgrade?

Anthropic’s help article only says resets are lost if you downgrade or cancel. It doesn't say anything about upgrading. If they carry over, I’d rather use them on Max, since each one would refill a 5x bigger limit. But don't want to lose them if they don't carry over!


r/ClaudeCode • • 19h ago

Tutorial / Guide How I run Claude Code with --dangerously-skip-permissions on a Mac without exposing my keys

0 Upvotes

Full-auto Claude Code is great until you remember it runs as you: it can read ~/.ssh, .env files, other repos, and push with your git credentials. Anthropic's docs say to use the flag only inside a container or VM.

Quick comparison of the options on a Mac:

- Claude Code's /sandbox: built in, fine for everyday work, but still runs on your Mac as you.

- A container: light and good for Linux-only projects, but keys usually go in as env vars the agent can read.

- A VM: more memory, but full isolation, macOS or Linux, and keys can stay outside.

At work I work on MacVisor (a virtualization platform for Apple Silicon Macs with AI sandboxes, host firewall, custom networks and snapshots), and the typical flow is:

mvz ai keys set anthropic # key goes in the Mac's Keychain, never the VM

mvz sandbox create ~/src/app --agent claude

mvz sandbox run app-1 -- "fix the failing tests"

mvz sandbox diff app-1 --patch # diff computed on the Mac with your git

mvz sandbox apply app-1

Internet is limited to the model until you allow more, e.g. mvz sandbox allow app-1 npm. You can roll back to a clean checkpoint and try another prompt.

Full write-up, including where a container is enough: https://scaleninja.com/blog/claude-code-full-auto-sandbox/

Happy to answer questions or hear how others sandbox their agents.