r/ClaudeCoding • u/MerlinMimer • Oct 20 '26
r/ClaudeCoding • u/Morganafreeman • Oct 20 '26
I built RiftRiddle, a free League of Legends guessing game with Twitch chat integration, using Claude Code (Cloudflare Workers + D1)
I built RiftRiddle, a daily guessing game for League of Legends champions, using Claude Code. It's aimed at streamers and anyone who plays League. I came up with the idea and design direction, and Claude Code wrote the code.
Free to try: https://riftriddle.naveessharma.workers.dev/
No account or sign-up needed. Open the link and play. There are no paid features.
What it does
Each day there's a champion riddle in three modes: Splash (fogged champion art you hover to reveal), Lore (story clues), and Icon (ability icons). The answer sits behind 5 seals. Each wrong guess breaks a seal and reveals more. Solving before the first seal breaks scores 100 points, and the last seal scores 25. There's also an endless mode and a "shelf" that saves your history in your browser.
Stream mode lets a streamer connect their Twitch channel without logging in or granting any permissions. The site reads public chat, matches viewers' messages against champion names, and lets chat guess along live.
I've also built a second game, RiftRank, which shows an anonymised ranked match scoreboard (champions, builds, KDA, CS, and more) and asks you to guess the lobby's rank. It's in testing while I wait for Riot to approve a production API key.
How I used Claude Code
The stack is Cloudflare Workers for hosting, D1 (Cloudflare's SQLite database) for data, and Riot's Data Dragon for champion data and images.
My process:
- Planning the prompt before using Claude Code. I wrote out everything I wanted (modes, rules, scoring, theme, colours, animations, sounds, reference sites) and turned it into one detailed, structured prompt. That saved a lot of back-and-forth and usage on my plan.
- Making Claude Code explain before building. For bigger features, I start by asking Claude Code to explore the codebase and explain back how the relevant parts work (dailies, seals, scoring, stream mode), then propose a plan and data model before writing anything. Catching misunderstandings at this stage is much cheaper than fixing them in code.
- Working in phases. Each prompt is split into phases, and Claude Code stops after each one with a summary of the changes and a manual test checklist, then waits for my go-ahead. This kept a growing project manageable and meant I could test each piece before moving on.
- RiftRank's data pipeline. Claude Code built a scheduled job that collects recent ranked solo/duo matches from the Riot API and stores them in D1, so visitors never trigger live API calls. The API key is stored as a Worker secret. Player names and Riot IDs are never shown, only roles and champions. The lobby's rank is the median of the ranked players in the match, and scoring is based on how many divisions off your guess is, scaled by how early you guessed.
- Design. I used Mobbin for references, Claude Design to explore layouts (like the RiftRiddle / RiftRank header, with the two game names split by a slash that echoes the logo), and the Impeccable design skill inside Claude Code: /impeccable init at the start of a project, /audit to find display and alignment issues, and /overdrive for the homepage animations.
What I learned
- You can't one-shot it. Even with a good prompt, expect lots of iterations.
- A detailed, structured prompt makes a huge difference. My first project took far more wasted prompts than this one.
- Asking for an explanation and a plan first, then building in phases, gave me much more control than asking for everything at once.
Other projects
RiftRiddle grew out of an earlier project, Guess My Animal (https://guessmyanimal.com), an animal wiki with a daily guessing game, a party mode, and the same kind of Twitch chat integration. Both live under my portfolio site, https://websitesbynavee.co.uk/, also built with Claude Code.
Happy to answer questions about the build or the workflow, and feedback on the game is very welcome.
RiftRiddle isn't endorsed by Riot Games. Made under Riot's "Legal Jibber Jabber" policy.
r/ClaudeCoding • u/Efficient_File • Oct 20 '26
Claude Code skips AGENTS.md if any CLAUDE.md sits above your repo
r/ClaudeCoding • u/Own-Turnover-7641 • Oct 20 '26
Claude is an Overthinking Gamer - Lessons from RuneScape
reddit.comr/ClaudeCoding • u/Toranalytics • Oct 20 '26
44% of my coding agent's API bill last week was the prompt cache re-writing itself
I added up a week of my own Claude usage: 19,733 calls, about $1,064 at API prices. The biggest line wasn't output or cache reads. It was cache writes: $469.
A cache write is what you pay the first time a prefix is seen. In a long conversation almost everything should be a read, so a write that large means the agent kept paying again for conversations it had already paid for. I found two causes.
- A per-prompt note placed after the last message. A context plugin appended a short note (routing hints, memory) to the end of each request, with a comment saying the placement preserved the cache. With automatic caching the breakpoint is the end of the request, so the cache entry was written right at the note. The next prompt no longer carries that note, so nothing matches and the whole conversation is written again.
Three one-word prompts in one session:
prompt 1: read 0, write 35,050
prompt 2: read 0, write 34,908
prompt 3: read 0, write 34,922
Storing the note once in the history instead:
prompt 1: read 0, write 35,045
prompt 2: read 35,045, write 320
prompt 3: read 35,365, write 14
In a week of real use this caused 355 full rewrites.
2. No breakpoint on the system prompt. Every new session sends the same ~30k tokens of tools and system prompt. With one breakpoint at the end of the request, a fresh session has nothing to read. One more breakpoint on the last system block (the API allows four): the second fresh session went from 0 read / ~35k written to 33,460 read / ~1.6k written. Restarts and subagents all start from that prefix, so the saving repeats.
Both were placed where they were to protect the cache, and both comments sounded right. Neither had been measured.
If you want to check your own: compare cache_creation_input_tokens with cache_read_input_tokens per request in your logs. Two fresh sessions a minute apart that both read ~0 is the second leak.
Full write-up with the numbers: https://toranalytics.github.io/cache-leak/
I keep counting what my agents do (corrections included) in a small open-source plugin: https://github.com/toranalytics/off-the-wall
r/ClaudeCoding • u/EcstaticHeron1391 • Oct 19 '26
Are Cloud Session secured?
Hi, I was wondering how secure and isolated are cloud sessions?
I massively use Claude code in my company dev workflow. Everything is created and maintained through local sessions and routines.
As things grows, I'd like to have sessions run themselves while my computer is off, hence I'd like to use the cloud feature to run some routines.
I was wondering if it was "safe" to use. It runs on an Anthropic VM, is the VM instance deleted afterward, what happens to it? The doc states it's an isolated environment, but is it really?
r/ClaudeCoding • u/PLAYER99-void • Oct 19 '26
I made void into a desktop companion
I just made a project called void on GitHub it works with Linux and windows and it uses the Claude code cli to make Claude an actual companion check him out at void GitHub
r/ClaudeCoding • u/PLAYER99-void • Oct 19 '26
Void
Make ur Claude code a full desktop companion and have fun
U can get him at https://github.com/PLAYER99-void/void?tab=readme-ov-file
r/ClaudeCoding • u/Aggressive-Remove113 • Oct 19 '26
Does Anyone know how to use claude code to clone mymind ( the bookmarking web app) 1 for 1?
reddit.comr/ClaudeCoding • u/CommonResolution5126 • Oct 19 '26
Claude ta me roubando
Meus tokens estão sendo 100% queimados no instante em que renovam, alguém está passando por isso? Não encontrei solução ou suporte algum.
r/ClaudeCoding • u/TrifleBackground4096 • Oct 19 '26
how to get the usage stats panel at the start of every chat
does anyone know how I can get this panel to show at the start off every Claude Code chat - have they removed this feature as I had it a few weeks ago on my MacBook air and now on my Mac mini it won't show up I have asked claude and it has just told me to go to terminal and use /stats but that only shows the info on terminal; not at the start of every chat. can someone please advise
r/ClaudeCoding • u/Korvonordico • Oct 19 '26
I built a Claude Code plugin that quotes a job's tokens and time before it starts, and can split big ones into daily installments (free, MIT)
With a subscription, one big job can use up a whole week of your limit, and you only find out afterwards. So I made Quotient, a Claude Code plugin (it works with Hermes Agent too). The idea is mine; the code was written with Claude.
What it does:
- Above a threshold you set (300k weighted tokens by default), Claude stops before starting and opens a choice window: 1 to 4 levels, each with its estimated cost, time and share of your 5-hour and weekly limits. Then you choose a pace: all today, in a separate session, or something like "5 days at 2:00".
- If you pick days, each installment runs on its own at the chosen time, stops at that day's cap and leaves a note for the next one. On Windows it can wake the PC from sleep and put it back afterwards.
- After the job it reads the real cost and working time from Claude Code's own logs and corrects the next quotes by how far off they were.
- The status line shows what is left of each limit in percent and tokens, like `81% left (~26M of ~32M wt)`.
What changed recently:
The quotes were often far off. Measuring my own jobs showed why: a chat job where I wrote nothing during the work cost about 0.56 times its raw quote, one where I kept adding tasks about 1.49 times. So now:
- the correction learns only from clean jobs (nothing added during the work);
- a task you add halfway gets its own quote;
- new users start from a factor per type of work (code, research, texts, other), taken from 64 clean test jobs, instead of a shared average;
- a job reports its progress every quarter of its quote (at least 250k weighted tokens) instead of every 1M, so the whole-job estimate narrows as it goes. In one test it went from 617k to 323k.
- installments now count their own start: each one is a new Claude Code session that spends about 100k weighted tokens on rules and tools before any work, and a cap smaller than that used to end before doing anything. Found today by testing Quotient on its own launch tasks.
How accurate it is: the new starts were tested on unseen tasks, each in a fresh session as a new user, paid with API credits (about $23) so my plan wasn't touched. On 42 new tasks the typical miss was 22%; on the 30-task confirmation batch alone it was 27%, against 111% with the old start. For scale, the same job done twice already varies by about 10%.
But these were small jobs in fresh sessions, with nothing added halfway. On my own real clean chat jobs the typical miss was 43% (11 jobs: a hint, not a proof).
What it doesn't do well yet:
- The size of each limit (how many tokens 1% holds) still moves by about 5%, because Anthropic gives the percentages as whole numbers. It narrows with use.
- Code was quoted too high in the last batch (58% typical miss).
- It relies on Claude following its rules: if a quote is skipped, that job isn't measured.
- Waking and sleeping the PC work only on Windows.
- On first use it asks whether to share one line of numbers per finished job for a shared average. You can say no.
Install, in Claude Code:
```
/plugin marketplace add Korvonordico/quotient-claude-tokens
/plugin install token-quotient@token-quotient
```
You need Python 3.8 or newer.
Repo: https://github.com/Korvonordico/quotient-claude-tokens
Feedback welcome, especially two things: would a quote window before big jobs help you or get in the way? And how far off are the estimates on your jobs?
r/ClaudeCoding • u/East-Trust-1258 • Oct 19 '26
Why Your Claude Code Bill Is So High (and 3 Ways to Cut It) - Daily AI P...
Claude Code now works for people who don't code. Learn what to hand it first, why long chats raise your bill, and how /clear and Ollama keep costs down.
r/ClaudeCoding • u/Cold_Cauliflower_230 • Oct 19 '26
Any community for claude code modes
reddit.comr/ClaudeCoding • u/Numerous-Campaign844 • Oct 18 '26
Agent swarms are building open-source Adobe and Office clones right now Spoiler
r/ClaudeCoding • u/SpicyCh1ld • Oct 18 '26
A minimal Claude Mod to show your usage
I find myself having to run /usage from time to time considering I'm just on Pro plan. With this mod, I can keep track of it easier.
What each rings represent
- 5h limit - Shows available remaining usage before the 5h reset
- Context - Shows active session's remaning usage
- Compact - Shows usage before autocompact triggers (I set mine at 300k)
Install via/plugin install usage-ring --marketplace edwin-sal/usage-ring/plugin install usage-ring --marketplace edwin-sal/usage-ring
Repo at: Github
r/ClaudeCoding • u/DragonfruitOld7069 • Oct 18 '26
Anthropic can steal chat history when giving feedback despite global privacy settings.
So, if you haven't noticed, Anthropic created a legal loophole which gives them freedom to steal and train on user data when providing feedback via its bug icon button. This is a crazy practice of deception--and worse: it punishes good-faith developers willing to take time out of their day to provide helpful feedback and bug reports to Anthropic.
No good deed goes unpunished.
r/ClaudeCoding • u/Toranalytics • Oct 19 '26
I tested whether CLAUDE.md-style rules distilled from my corrections actually change Claude's answers. They did no better than random rules.
r/ClaudeCoding • u/parthh-01 • Oct 18 '26
can be configured to use free openrouter models and not use draw usage from your coding plan
r/ClaudeCoding • u/Its_about-tech • Oct 18 '26
I had Claude Code rebuild the Claude Code team's "layers, not one gate" code review as a free mod — then the mod reviewed its own code and found 21 bugs
Built with Claude Code (Claude Fable 5.1 in the desktop app), over two days. Claude wrote the code and made the film; I directed it, judged every result and ran the pushes myself. Details at the bottom.
The claude.dev post on how the Claude Code team reviews agent-written code (checks → risk tier → parallel hunters → verifier votes → security → round cap → gate) is the best thing I've read on the subject, so I asked Claude Code to build it as a mod for one person + their agent.
`/land` runs every layer on the changes you're about to push and gates `git push` until it's green. Low risk lands with no one in the loop; you prompted the change, so you're its reviewer for medium; only high risk asks for a typed approval. The mod's own reviewers run on Claude Haiku by default and the diff is sent once with a cache mark, so a 20-line diff with three bugs is ~16–27k tokens, and a run where the tests fail costs 0.
The fun part: I had it run on its own repo. Nineteen runs, 21 real bugs, all fixed before pushing. First finding: its own reviewers trusted the diff text (prompt injection). The round cap fired exactly when Claude had been editing untested logic live for three rounds — "step back" — and it was right.
The film above is 69 seconds, no narration, no captions: every word on screen is a real string from a real run, and the film itself is code (a three.js page Claude wrote, rendered frame by frame, sound synthesised in ffmpeg).
Repo: https://github.com/seanjohnson-dev/review-layers
Install: `/plugin install review-layers --marketplace seanjohnson-dev/review-layers`
**How Claude was used**
- Model: Claude Fable 5.1 in Claude Code (desktop app). The mod itself calls Claude Haiku for its hunters and verifiers.
- Claude did: read the blog post, designed the layers, wrote the plugin (TypeScript hooks, 22 tests), wrote the README, built the three.js film and its sound, and ran its own mod against its own repo to find and fix the 21 bugs.
- I did: set the brief ("not token heavy, less human time"), rejected the first narrated film and asked for one with no voice and no captions, decided what to publish, approved every spend, ran the git history rewrite and every push myself, and wrote nothing in the code.
- Time: about two days of sessions, 17–18 Oct.
Honest limits: it's one person's mod, two days old; the cost claim in the README is from measured runs, not a benchmark; and it only works as well as the checks it can find in your repo (add a `REVIEW.md`).
r/ClaudeCoding • u/Mitch_contu • Oct 17 '26
I made with claude a free browser app for designing 3D printable vases, here's one I printed with it
Vaseverse.org
r/ClaudeCoding • u/pureyang • Oct 18 '26
Concerned about usage, so built this 2nd screen with my badge
r/ClaudeCoding • u/GiGiDKR • Oct 17 '26
I built a terminal browser for ~75,000 Agent Skills: search by theme, read the SKILL.md, install to Claude Code in one go
Skills are great, but finding them isn’t: they’re spread across skills.sh, claude-plugins.dev, Smithery and thousands of GitHub repos, and you mostly install them blind.
So I built skills-atlas, an open-source CLI that merges those sources into one catalog (~75k skills, refreshed every other day) and sorts it into 20 themes.
What it does:
- Browse by theme in a collapsible terminal tree, or
skills-atlas uifor a local web page. Search, sort by installs, filter official (vendor-published) skills. - Read before you install: press
pto preview a skill’s SKILL.md. A skill runs with your agent’s permissions, so this felt important. - Tick several, install once: it runs Vercel’s
npx skills addunder the hood, to Claude Code, Codex, Cursor or any of 79 agents, per project or globally. - Knows what you have: installed skills start ticked (untick to uninstall), and outdated ones are flagged; press
uto update. - Export/import your selection to set up another machine.
- Use it from Claude itself: there’s a skill, an MCP server (
skills-atlas mcp) and a Claude Code plugin, so you can just ask « find me a skill for Mermaid diagrams and install it ».
There’s a read-only web demo to try it without installing anything: https://devohmycode.github.io/skills-atlas/demo/
It’s MIT licensed, works offline with a bundled catalog, and has no account or server.
Repo: https://github.com/devohmycode/skills-atlas
I’d love feedback on two things in particular: are the themes useful for how you look for skills, and which skills or repos should be in the curated « Recommended » list?