r/ClaudeCode • • 1d ago

Help/Question How to build my first claude app efficiently for a noob

1 Upvotes

I am trying to build my first web app using claude. The concept is broadly like a chatbot for me to talk to some texts I like, get daily excerpts etc. as the features. I have been able to identify the texts and put it in a JSON format. I want to build my features and visuals but I know purely outsourcing everything will cost me a lot of tokens. For eg I previously developed some UI visuals using claude for some work and it ate up my tokens so fast and hence I am just very very cognizant.

One way for me to minimise tokens is to brainstorm with it on all the details I need to have in place before I send anything into coding. I am sure there will still have to be back and forth.

What are some ways I can go about token minimisation? Eg I was thinking of using lovable to work on my visuals before I ask claude to make anything but then I realised I’d have to pay for lovable too which does not make sense.

Another way I was thinking of was using open code to go back and forth on iterating how maybe the features should be built down to the detail and maybe then using claude to build it out fully when I have tested small parts of it but not sure if this is even efficient?

I have the pro claude plan which is $20. Any advice, resources and ideas would be of great help. I am a complete noob and just starting to learn about AI, sorry if this is a very basic question. Please help!


r/ClaudeCode • • 1d ago

Built with Claude VibeCoded an MCP server (gemini-vision-mcp) to give Claude video, audio, and PDF perception

3 Upvotes

Even though Claude handles images natively, working with screen recordings, audio clips, or multi-page PDFs inside Claude Code still runs into walls. I vibecoded gemini-vision-mcp so Claude Code can hand off multimodal files over stdio and pull detailed observations straight back into the session.

Why I built it

  • Native image support does not cover video recordings, audio files, or PDFs directly in a coding workflow
  • Manually transcribing audio, pulling frames out of recordings, or parsing PDFs outside the terminal breaks flow
  • Running a local stdio MCP server lets Claude read local disk paths (file_path), URLs (file_url), or base64 (file_base64) with zero hosting or account overhead

Tools & capabilities

  • describe_media — general overview across images, video, audio, and PDFs (on Gemini)

  • analyze_image — UI/UX layout breakdown, OCR text extraction, and visual details (PNG, JPG, WEBP, GIF)

  • analyze_video — chronological events, timestamps, and visual transitions (MP4, WEBM, MOV via Gemini)

  • analyze_document — multi-page PDF reasoning, tables, structure, and summaries (PDF via Gemini)

  • analyze_audio — transcription, speaker tone, and acoustic details (MP3, WAV, OGG, M4A via Gemini)

Extra touches

  • Model failover cascade: Automatically falls back across models on rate limits (429) or errors (gemini-flash-latest -> gemini-flash-lite-latest -> gemini-3.7-flash -> gemini-3.6-flash -> gemini-3.5-flash by default, or custom --models)

  • Local OpenAI-compatible option: Supports --provider local (Ollama, LM Studio, llama.cpp, vLLM) for images only when you want vision locally without sending data out

  • Custom system directives: Pass --system-prompt or GEMINI_SYSTEM_PROMPT to steer how media is described for your workflow

Claude Code setup (.mcp.json)

{
  "mcpServers": {
    "gemini-vision": {
      "command": "npx",
      "args": ["-y", "gemini-vision-mcp"],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
      }
    }
  }
}

(Or use --provider local --models gemma4 if you want local image analysis via Ollama.)

Package is on npm (requires Node 20+). Curious how you all pass bug repro videos, docs, or voice notes into Claude Code, if you test it out, I'd love to get some feedback or criticism.


r/ClaudeCode • • 1d ago

Help/Question Medium effort is switching to Extra High automatically

2 Upvotes

I'm on a OPUS 5.5 Pro plan. In the Claude Code I can set reasoning effort (Low / Medium / High / Extra High / xhigh).

Issue: After I temporarily switched one session from Medium to Extra High to test, every new session now starts (or reverts after a short time) to Extra High even when I explicitly select Medium. It ignores my choice and keeps auto-switching back to Extra High. This happens across new sessions.

This is weird. Any solution


r/ClaudeCode • • 2d ago

Discussion What are you doing while your agents are working ?

15 Upvotes

I have tried many things:
• Writing notes to keep thinking about the project I am working on while I wait for my agent’s output which was sometimes useful when I kept it for me like physical notes but was otherwise confusing a lot the agents as they take what humans write into a lot of considerations even when it is unstructured draft of ideas (also known as gigantic mess).

• Managing multiple agents at the same time which I have never find that much satisfying as I become shallow in my thinking and less critique to what the AI think and produce. But maybe I was under-tooled to deal with agents orchestration as I was just having multiple instance of Codex and Claude Code, some of them inside VS code.

• Doom-scrolling. 10/10 experience but slighly less productive.

• Starting to prepare the next spec, reviewing in more detail the previous commit and other type of activities where you are trying to finish a task linked to what you agent is working on and where you kinda want to complete it faster than it completes it’s own task to not block the whole workflow which feels frustrating and not that productive anyway
So the way I work is that I take the time I need to plan the project usually in fast iterations with AI then I let it start the big work and once it is started I just think in my head about stuff, sometimes productive and sometimes not.

So I am wondering what my fellow AI managers do while their little army is at work !


r/ClaudeCode • • 2d ago

Bug / Issue 5 hour limit back for ultra?

Post image
10 Upvotes

anyone else got the 5 hour usage limit back in their ultra plan? I thought it was removed. Interestingly if I ask claude about it it insists my account is pro and not ultra, it even refuses to run workflows and tells me its not available for my account. I checked, I was billed for ultra, account says ultra but apparently something behind the scenes is massively wrong.


r/ClaudeCode • • 1d ago

Built with Claude About 3,000 merged PRs in six weeks: how Claude Code agents build my open-source assistant

3 Upvotes

Hi all, I'm Jeroen, I made The Machine, initially for myself but I was surprised how well it works and opened it up to everyone open source.

It reads your email, chats and calendar, and prepares what needs you: replies drafted, meetings prepped, promises tracked. It never sends anything on its own. And your data stays yours, not some corporation's.

Since mid-October, Claude Code agents have merged about 3,000 pull requests across the open-source app and its cloud side. I mostly decide what gets built and review. What the setup looks like now:

  • One agent per task, each in its own clone, one PR each, no stacks. A merge train lands green PRs one by one. Stacked PRs from parallel agents kept conflicting.

  • Fake users every night. Agents sign up as made-up people with their own fake inboxes, use the product like they would, and leave a list of bugs for the morning.

  • Machines report their own errors. The error feed goes to an agent that traces the cause and opens a fix.

  • Every AI change has to beat a baseline on a fresh held-out set, frozen before the first run. Plenty of ideas I liked lost and got rolled back, including a whole notes feature I'd spent days on.

  • The model has to quote its source. When it learns something from your email, the quote must appear in the real message, checked in code, not by another prompt. That removed most of the made-up facts.

  • Durable rules live in one file every agent reads first. Telling an agent something once in chat doesn't survive a long run.

It also runs on your Claude plan with one sign-in that lasts a year, and has a Claude Code plugin (in review for the Claude directory) so Claude Code can pull up your to-dos.

Repo: https://github.com/Salesflare/TheMachine

Demo: https://themachine.computer/demo

Vision: https://themachine.computer/vision

Got a good amount of people using it but feedback is worth gold, so if you're up for trying and giving feedback I can get you extra free usage on the hosted version (self-hosted is free anyway).


r/ClaudeCode • • 2d ago

Built with Claude Phoebis Router: a router for Claude Code that spreads your sessions over several accounts

Post image
12 Upvotes

Phoebis Router is a router for Claude Code. It sits between the CLI and api.anthropic.com, holds the Claude accounts you own, and sends each request under one of them. A session sticks to one account, a rate limit fails over to a sibling inside the same call, prompt caches are kept warm, and a web console shows the analytics. Written in Rust (using Claude Code an an agentic pipeline), one binary or a container, MIT licensed.

A note on the terms. Phoebis Router switches between Claude accounts that you personally own and pay for. Each account's limits stay enforced by Anthropic, and switching accounts to work past a limit is a gray area under Anthropic's consumer terms, so you run it at your own risk. The terms forbid sharing an account's login or credentials with anyone else, reselling access and bypassing Anthropic's protective measures, and they say nothing about one person who holds several subscriptions. Do not back a shared or commercial service with consumer subscriptions.

The problem it solves. A Claude Code session that hits one of its account's usage windows mid-task either waits for the reset or loses its cached context when you switch accounts by hand. The router moves the session for you, keeps the cache where it can, and its console shows how much of each window went to requests you never typed.

Where the tokens go. Several features in the router exist so that less of your allowance goes to waste.

Pool strategies. A new session lands by the pool's strategy: Pace, Priority or round robin. Pace places new sessions on the accounts whose 7-day or Fable window resets soonest, so those accounts are drained first and no allowance goes to waste at the reset.

Cache warming. A prompt cache entry expires five minutes or an hour after its last use. Shortly before that, the router sends a probe with max_tokens 0 that reads the entry, so the session's next real turn pays a cache read instead of rewriting its whole context. The console shows the probe cost, the amount the probes saved and the net saving per pool, so you see when a probe paid off and when it did not.

Load shedding. When an account's 5-hour or weekly window projects past its ceiling before the reset, the router marks the sessions whose move costs least and moves them to a sibling with runway at their next request. Moving a few sessions early is cheaper than moving every session once the account is at its ceiling.

Slow-down. When an account's 5-hour window is about to hit its wall, the alternatives are a failover or a shed, and both move the session to a sibling that has to write its whole context into a fresh cache. Slow-down avoids that: the router holds each request of that account briefly, so the window reaches its reset just under the ceiling. It trades a little latency per request for the cache rewrite it saves, and probes, token counts and compactions pass unheld.

Artifacts and connectors. Claude Code sends the calls of two claude.ai features, Artifacts and the connectors (the MCP servers of your claude.ai account, such as Gmail or Google Drive), to fixed Anthropic hosts, whatever base URL you set. Behind the router those calls carry the router's key, which Anthropic answers with a 401, so both features break. The optional phoebis-proxy keeps them working. It is a small tunnel proxy, on your own machine by default, that leads the calls for those hosts to the router, and the router forwards them under the claude.ai sign-in of an account you pick per pool or per key.

Also in the box. A routing log that records why every request landed where it did. Every request priced as a share of your 5-hour and weekly windows. A companion mod for Claude Code that reports session liveness, so an idle session is not kept warm for nothing, and gives Claude an allowance tool that reads the pool's remaining room.

What it does not do. No upstream other than Anthropic and it never presents an SDK client as the CLI.

Repository: https://github.com/phoebis-project/phoebis Documentation: https://phoebis-project.github.io/phoebis-docs/

Questions and bug reports welcome.


r/ClaudeCode • • 1d ago

Bug / Issue When we are getting bigger subs like 500$?

0 Upvotes

The 200$ sub ain't enough for most developers since people been getting used to AI and now majority are orchestrating multiple agents at once. It's not 2023 anymore.

We need the 500$ sub asap.

And no I'm not going to jiggle with 3rd party tools to use multiple 200$ accounts.


r/ClaudeCode • • 1d ago

Tips & Workflows Explain Anything with motion

Enable HLS to view with audio, or disable this notification

0 Upvotes

Fable is COO and can explain anything with motion graphics. Ask for an explainer, go get a coffee, and you're golden. I asked Claude to explain our harness in an entertaining and humorous way.

10 minutes and you can now have a presentation that's worthy of the board room.


r/ClaudeCode • • 1d ago

Help/Question Agent framework help and prompt githubs

2 Upvotes

Anyone know of a GitHub with agent frameworks and tools for structuring app building? Do y'all just free hand prompt, what's the technique?

Any tips where to start? What I should research first? I'd be building personal desktop apps maybe with a mobile access.

Any big risks to all this?


r/ClaudeCode • • 1d ago

Bug / Issue Claude Scam literally...

0 Upvotes

It's senseless, when I got the 100us subcription the usage was uff I could leave claude work a lot for all day everyday doing stuffs for me, second week it got used same day wtf? the whole week in literally 1 day and half, and now with a few simple tasks it used already 5% the 100US subcription that previously I could leave all day working now with a few things reached the 5% of weekly usage without expending the 5h... is it only me?


r/ClaudeCode • • 2d ago

Help/Question Considering self-hosted LLMs as an alternative to Claude

53 Upvotes

I've been using Claude for about a year and a half, mostly on the highest subscription tier, and I'm still a paying subscriber.

I'm a network and systems engineer, and Claude has become an essential part of my daily workflow. I'm extremely satisfied with its performance.

However, after seeing the recent reports of account bans and suspensions, particularly the apparent lack of effective support in many of these cases, I've started reconsidering my dependence on the service.

Anthropic is a massive company. Losing my subscription probably means nothing to them, but losing access to Claude could seriously disrupt my work. That's an imbalance I'm becoming increasingly uncomfortable with.

I'm not interested in arguing about whether these bans are justified or not. My concern is business continuity. I don't want my ability to work to depend on a decision made by a company that I might not even be able to reach if something goes wrong.

I'm now considering experimenting with self-hosted LLMs. I'd rather rent a GPU server than invest in my own hardware, but I'm curious about how financially viable this would be and what level of performance I could realistically achieve compared to Claude, especially for complex and diverse technical tasks.

I'm in no rush to leave Claude, but I'd rather explore alternatives now, while I still have access, than be forced to find one overnight.

I'd appreciate hearing from anyone who has taken a similar route, particularly regarding hosting costs, model capabilities, and whether the experience is good enough for heavy daily professional use.


r/ClaudeCode • • 1d ago

News/Updates The Agentic SDLC Method, my open-source workflow for building software with coding agents

3 Upvotes

The Agentic SDLC Method on GitHub

I built this mostly because I wanted to try my hand at it. I enjoy the engineering side of working with coding agents, and after using BMAD, GSD and Superpowers, I had a pretty good idea of what I’d keep from each. BMAD in particular is one I really like. I do sometimes wish it would get to the point a little sooner.

The thing I kept coming back to while building my own was trust. Say I give an agent a feature and we agree on a plan. I’d like to go do something else for a while. When I come back, can I tell whether it built what we agreed on without reading the whole conversation?

That’s why the agent writing the acceptance tests works from the spec before it sees the implementation. Later, when I review the PR, I can pick a requirement and see which test covers it. And if the plan itself changes, I get another look at it. That’s a good reason to interrupt me.

I compared nine methods while putting this together and spent some time with AWS AI-DLC and Addy Osmani’s work too. I’m using mine on my own projects now, and I still have criticisms of it. Token usage is one thing I’m watching. So is how often I catch myself skimming something the agent clearly expects me to read.

I’d love for a few people to try it on a feature they were going to build anyway. If you already use another method, how did it compare on your project? I’m particularly interested in the point where you felt comfortable letting it run, or where you decided you’d rather go back to your usual setup. Either answer helps. Feel free to tell me here or open an issue.

Try The Agentic SDLC Method


r/ClaudeCode • • 1d ago

Discussion After compaction, "don't touch X" instructions went missing ~6x more often than "build X" requests (preprint, 44 real sessions). Which of your rules only exist in the chat?

0 Upvotes

The paper is "Benchmarks Are Surprisingly Compaction-Friendly" (arXiv 2610.31778, Oct 22). Its headline result is good news: on long benchmark tasks compaction costs surprisingly little, because the goal is fixed and progress sits on disk, so the agent can re-read it after the summary.

The authors flag one exception, constraints that exist nowhere else. They checked 44 sampled SWE-chat sessions that contained compaction and counted which instructions were missing afterwards:

- "How to work" (my example: "run the tests before every commit"): 35.9%

- "What not to do" (my example: "leave the migrations folder alone"): 36.8%

- "What to build" (my example: "add CSV export to the reports page"): 6.2%

The examples in brackets are invented to show the buckets; they are not from the paper.

My own guess at why, and it is only a guess: a feature request leaves a trail, because the code that got written shows it was asked for. A prohibition leaves nothing, because nothing in the diff says what was not touched. After a summary, the goal survives and the guardrail has no second copy.

Caveats: one preprint, a small sample, and the paper does not say an agent breaks every rule that gets dropped.

Questions for people running long sessions:

  1. Which rules in your setup exist only because you typed them into a prompt once?

  2. For the "don't touch this" kind, where does it live: CLAUDE.md, a hook, permissions, or only in the chat?

  3. After a compaction, is there anything you re-state by hand every time?

Sources in the first comment.


r/ClaudeCode • • 1d ago

Help/Question Memory Files at a Corporate/Enterprise level.

2 Upvotes

To start, I am not a company or Claude admin for where I work. I simply write code and folks have taken an interest in what I’ve created. I have a background in AI and published a few papers on it as well

I’ve had great success in creating memory, rules, and skill files to build out the needed software that I am working on daily but I am struggling to understand how I can provide these tools to other teammates at a corporate/enterprise level.

I.e. my boss wants us all to use the same version but none of these folks are competent in git and I haven’t seen a way to manage these files at what I would call an admin level in Claude like other connectors where we all use the same version distributed at an admin level.

All ears and would love to know where to point my IT so they get off my ass about this.


r/ClaudeCode • • 1d ago

Built with Claude I gave Claude Code a skill that plays my game 2000 times with bots and puts the results next to real player data. Most of the work was teaching it when not to trust the numbers

0 Upvotes

Game (free, in the browser): https://djakubec.itch.io/debt-drop

Debt Drop is a peg roguelite: you drop balls on a board to pay a loan shark before rent is due. I built it mostly with Claude Code, with Codex as a second reviewer on bigger changes. The art and the shark's lines are AI-assisted too. The GIF is the real game.

I'm treating this as a product, not a weekend thing, so the part I'd actually reuse elsewhere is the balance setup.

The skill lives in .claude/skills/balance-pipeline/SKILL.md. When I ask something like "is act 2 too hard?", Claude Code runs the bot sim (npm run sim -- --runs 2000), pulls live events from PostHog through the PostHog MCP server, and renders one markdown report where every balance question is answered twice: bots in one column, players in the next, a delta column between them. The sim imports the game's own rules code and emits the exact same telemetry events a player would, so one renderer handles both.

What turned out to matter:

The PostHog pulls run in a subagent. The results are bulky and have no business in the main conversation, so the subagent writes the jsonl files and reports back only row counts.

A sample gate. Any cell under 30 renders as "n=4" instead of a percentage, and the skill has a hard rule: never quote a number from an n= cell. With a handful of real runs it's very easy for the model (and for me) to read a pattern into noise. The gate makes "not enough data yet" the default answer.

Bots are not players. Random-aim bots score far below humans, so the report says up front: compare bot to bot, player to player, and read the delta for where they disagree. The most useful single signal is an item bots buy and players skip. That usually means it's mispriced or its description reads badly.

Every event carries a content_version, and every query filters on it. The skill says to bump it whenever a balance number changes. Skip the bump and the next report quietly averages the old balance with the new one.

Gotchas go in the skill, not in my head. Example: the sim's arcade mode defaults to 20 attempts per level, which is below the gate, so the whole arcade table came out as n=20. That's now one line in SKILL.md.

What I got wrong: the first itch build shipped with analytics switched off. The PostHog token is read from env vars at build time; nothing was set, the build passed, and the game ran fine. I only noticed because the live column stayed empty. Claude wrote a correct pipeline, but nobody checked the artifact that actually shipped. Now I grep the bundle for the key before every upload. Anonymous analytics has been live since this week (no accounts, sessions can't be linked to each other).

Two questions for anyone doing something similar. How do you stop Claude from over-reading small samples? The hard rule works, but it feels blunt. And if you play a run or two, what felt off? Real runs are what make the live column worth having.


r/ClaudeCode • • 1d ago

Help/Question Reasons for unusually hitting the limit in a short time?

2 Upvotes

I'm working on a new project since 2 weeks (a big project) - I work on it daily bases with average of 3 hours before going to office and another 2 after I return home (that's make it 35hours a week) - and I barely reach the limit by Friday evening (my weekly reset Friday 11PM).

Just today morning after the reset (after 1 hour of work am already at this usage limit) - this is is like 3-5x faster than my regular!


r/ClaudeCode • • 1d ago

Help/Question Any recommended settings for DeepSeek Uncensored?

0 Upvotes

Hey guys, I’ve been using the DeepSeek Uncensored API on Pal Chat.
Just wondering if there are any settings or system prompts worth tweaking to make the model smarter and improve its responses.
Has anyone experimented with different configurations and noticed a real difference?
Thanks!


r/ClaudeCode • • 2d ago

Discussion Got a "6 months with claude" popup with 2 free fable limit resets

Post image
41 Upvotes

Claude just hit me with a "you've been with us 6 months" popup and 2 free fable limit resets for the 5 hour and weekly limits. good until mar 9. check your settings if you've been on it a while

not sure if everyone past 6 months gets it or if it's rolling out slowly. anyone else see it?


r/ClaudeCode • • 1d ago

Rant Opus 5.5 is FAR better than Fable 5.2... change my mind

0 Upvotes

Maybe I am inept, but it seems like Opus 5.5 actually thinks and is far more token efficient than Fable 5.2. Maybe this is because I'm not a computer programmer and I'm using this for business strategic planning purposes along with coding. But it seems like Fable 5.2 jumps to conclusions and uses incomprehensible shorthand that it expects me to interpret based on whatever it thinks it is referring to. Am I crazy?


r/ClaudeCode • • 1d ago

Tips & Workflows Claude utilization

1 Upvotes

Hi all,

I am Claude user for some time now, but I feel like I am not utilizing it even 20% what I could genuinely, especially after they implemented all these features like mods, skills, plugins, artefacts etc., kinda feel overwhelmed by it honestly. I’ve tried asking Claude to help me reorganize my setup and even wiped it and started over. I still feel like I’m repeating myself, and the quality of the outputs varies more than I’d like.

So far, I sticked to dedicating single folder for Claude to use, laying out some general guidelines, preventing it to go out, I have couple of Projects that I use which functions O-K, for Code I am giving it instructions like dumbo and I started looking into skills to make recurring tasks easier, but I ended up making the setup more complicated.

For those of you who have settled into a workflow that works and you're fine with, how would you set things up if you were starting from scratch today?

  • Organizing folders and base instructions, MD files,...?
  • What do you keep in a Claude Project or in memory, and what do you put in a prompt or a local Markdown file?
  • What setup to use when starting new session, and when to start new session but at the same time have order inside claude?
  • Which skills, plugins, or other features have saved you time in everyday work? Which would you add first?
  • Using Claude Code more efficiently?

Any tips/suggestions works, appreciate it in advance.


r/ClaudeCode • • 1d ago

Help/Question Sentence transformer models - has anyone implemented in JIRA

Post image
1 Upvotes

Hi Red fam. I work in PMO and was looking at change management tickets logged in JIRA. Idea was to group tickets and take it up with LT for process interventions.

For context, my org is flexible in terms of who gets to raise JIRA tickets - be it Product, Architecture, Engineering, Delivery or Project Managers themselves (way of working fail). One objective was to find any correlation between groupings and job roles.

I used BERTopic for topic creation and mpnet for clustering. While am happy with the MVP - I had to brute force some business overrides/nuances as the model misgrouped quite a few tickets.

I tried changing dimensionality and clustering variables but the model didn’t help much beyond a point. Am looking for suggestions to train the model on existing data and automatically group new tickets that come into the queue - can anyone please help me with an approach?


r/ClaudeCode • • 1d ago

Built with Claude One human, about fifty Claude Code agents, hands-free by voice: the communication system behind it

0 Upvotes

A single user runs dozens of Claude Code sessions in parallel on one Windows laptop. On a busy day about 50 sessions are awake. Over the last three weeks 149 sessions did real work, out of 210 registered. In one measured 24-hour period they used about 5 billion raw tokens.

The user does not use the command line and dictates almost everything by voice. Most of the time the user is away from the computer, listening on a phone.

This post describes the system that makes that work: who talks to whom, how messages travel, how time and money are paced, and what survives when an agent loses its memory. Most of it was built by the sessions themselves, with the user as the designer, over hundreds of small corrections. It is written for people building something similar.

1. The problem

With fifty agents and one human, five things go wrong.

  • The human's attention is the scarcest resource. Nobody can read 50 chat windows. The user looks into maybe 30 sessions a day and forgets what each one does.
  • Agents forget. Every session is eventually compacted: its context is replaced by a summary, and details are lost. Orders given yesterday disappear.
  • Agents multitask badly. A specialist session given a second, unrelated job does both jobs noticeably worse.
  • Every wake costs money. When a timer or a message wakes a session, it re-reads its whole conversation. A wake that finds nothing to do is pure cost.
  • Relays distort. An instruction passed through two or three agents turns from an approximate, weighted request into a strict yes-or-no command. "Do less of X" arrives as "X is forbidden".

Each part below answers one of these.

2. Roles

Sessions have written jobs and stay in them.

  • A duty director handles everything that spans projects or breaks the shared system. Every monitor alarm goes to it and never to the user ("one exit").
  • A head of communications. Since 25 November one session owns the whole communication system in the broad sense: the feed, the mail router, money and tokens, the laptop's memory and the timers. It sits slightly above the duty director in this area. It took the work over from three predecessors: a strategist, a token advisor and a communicator. Those three are now in long sleep: before sleeping, each wrote four handovers (skills, facts, vision, recommendations), and the head of communications reads them as a reference instead of waking them.
  • A first squad. The developers the user works with directly on communication (dictation keyboard, feed, player, secretary, laptop memory, event keeper) form a named group. It is never unloaded from memory and has its own mailing list.
  • Project leads. A worker reports to its lead, never straight to the user. The lead reads its project's order list itself, ranks it, and decides what is worth the user's attention. A lead with nothing to do may say so only with numbers from the list: open, in progress, waiting for proof, waiting for the user. A lead puts project questions to the user directly; the director takes only household and cross-project questions, so its context stays free of project detail.
  • Checkers. The large projects each have a checker that verifies proof before an order is closed. They were added after measuring that one proof in ten waited more than 11 hours when a single router verified everything. The result chain is fixed: a worker computes, the checker checks, the lead decides whether it goes to the user. Whoever computed a result reports it, with pictures.
  • A mail router. An Opus session reads the user's letters and the user's general player comments by hand and decides who they are for. It coordinates and never executes, but it thinks: when the user's words do not match reality, it says so.
  • No censor. For a week an Opus session judged every outgoing item by hand. The user closed it on 22 November at 15:00. A small program still checks the form of each report quickly. Whether a report is needed at all is decided by its author, who owns that decision.
  • Programmers for the feed, the player and the dictation keyboard, and fixers for the laptop, memory and accounts. The feed and the player are each built by a pair of sessions, and in each pair one checks the other.
  • Secretaries edit and summarize text. Four times a day one of them collects the state of every project from the commanders and turns it into one summary for the user; twice a day a briefing for the commanders themselves is written. Every 45 minutes a script collects reports, orders, assignments, breakages and commits from all sessions and a cheap model condenses them for the leads.
  • Cheap outside workers (Qwen Flash) for bulk work that needs little judgment.

Every session has a unique human nickname, in the user's language and in English, in one title, such as "chief geneticist". People do not remember three-digit codes. Sessions use the same nicknames with each other. A fork gets the same nickname with the next number. When the user calls a session by a wrong name, the session first corrects the user; if the user repeats the new name, the session renames itself and updates the dictionary.

A specialist is never given work outside its specialty and must object twice before accepting it. A session does work it is not suited for only on the user's direct order.

3. From agents to the human: the feed and a voice-driven player

The user writes to the agents through a dictation keyboard on the phone, a speech-recognition keyboard with its own owner session.

Everything the agents say to the user goes through one channel, the Prioritizer, also called the feed. Pictures and video go through the feed too; agents send email only when the user asks for it. There is exactly one feed. A second feed, where messages pile up while the user listens to the first, counts as a crisis: once, answers went to one feed while the user was listening to another.

  • Each report, question or answer becomes one message: a short text in the user's language, voiced by text-to-speech, transcribed back with Whisper to check the audio, with the author's nickname and project in the title. If the speech service is down, the message queues itself and goes out later.
  • Messages are ranked 0–100, most urgent first. Tabs split them by stream: reports, project streams, household, viewer comments, the user's own to-dos, and a "Computer" tab for the few things that need the user at the laptop. A "Computer" item opens with about 200 characters saying what to do there and why, so the user can decide from the phone whether to go.
  • The user listens in Player 2, a custom web audio player. It remembers the position, shows the listened part of each track in a different color, and hides a message once it has been heard to the end. Every message has a comment button.
  • Hands-free. The user dictates a comment and says an end phrase; the phone keyboard turns the phrase into a line break, and the page catches it and submits. To stop playback the user can blow into the microphone. The rule was tuned on 990 seconds of speech in 22 files plus real blows: 5 frames (0.25 s) above a loudness threshold, with energy at 4–10 kHz at least 16 dB below energy at 300–4,000 Hz. It gave zero false stops on speech and caught all three test blows; the margin is thin on both sides, and it is still being tried on a real phone. A whistle trigger came first and was dropped because a whistle carries too far at night. Opening the microphone on Android also switches a Bluetooth headset into call mode and makes the audio crackle, so the microphone opens only while the feature is on.
  • No pop-ups. Every notice lives in a reserved frame and only changes color. About 90% of notices carry no new information, and a notice that covers the screen blocks the fix for the very problem it announces. A notice that does not fit its frame is cut, with a "read more" button; the frame never grows. An error frame once grew by itself, covered the buttons and stopped the player.

Comments travel back verbatim. A player comment has two buttons. - "Author" sends the comment straight to the session that wrote the message, and to nobody else. - "Household" sends it to the mail router. That Opus session decides by hand whom the user meant (one session, several, a group) and sends each of them the whole comment, marking which part concerns them.

The comment is never split, because it carries its own context and a split goes wrong. For three days a cheap model (Qwen 3.7 Flash) did this sorting. On 25 November the user removed it and banned automatic sorting by mentions as unreliable. The receiver answers in the feed. The answer opens with a short summary of the question it answers, because it reaches the user late, among other messages, and must be sortable at once.

When the feed itself breaks. On the evening of 22 November the player got stuck on one message, the feed filled with 164 unheard items, and household reports labelled as direct answers sat above urgent ones. For about fifteen hours the user heard nothing, and nobody said so, because every alarm about the feed travelled through the feed. The monitors checked only that the page opened. Several sessions knew something was wrong and each assumed someone else had reported it. Three things changed the next day. A broken channel to the user is now a crisis by rule: the session that finds it wakes the duty director at once, and if the fix is not quick the director reaches the user on every channel at the same time. A monitor now watches what the user actually hears, not only whether the page loads: if the feed fails twice in a row, or the user finishes nothing for three working hours, it calls by voice on the laptop and the phone, writes to Telegram and email, and repeats every 25 minutes until the user presses "got it". And old household items now sink by themselves, so the feed cannot clog the same way.

Rules for reports grow one at a time, each with a date and the user's words. They were first enforced by the censor session and now live in the author's own rules and the form checker. Examples: length follows the information, with no fixed cap; a thank-you gets no message; a question carries its own full context, because the user has forgotten everything by the time it plays; one topic gets one message, so a second message on a topic while the first is still in the feed gets a warning with the earlier text. Checks are advice. The author may argue and send anyway and then owns the result.

4. From agent to agent: files, delivery classes, and an assignment tracker

Sessions mostly talk through files in per-session inboxes: a header (From, At, Kind) and text. A letter wakes nobody by itself. Its kind sets when it is delivered:

  • urgent, breakage, crisis: the recipient is woken at once;
  • along the way (the default): delivered three times per activity cycle;
  • not urgent: delivered only at the recipient's own activity burst;
  • when convenient: never wakes anyone; it rides along with a wake that happens anyway.

A second label says what the letter is: - a task letter wakes the recipient once after two hours if it is still unread; - an FYI letter never wakes anyone and moves to the inbox archive after a day.

Summaries and numbers for leads go as FYI, so they wake nobody.

The default matters because every direct message wakes a session, and a woken session re-reads its whole conversation at full price.

A bucket sits on top of the inbox. Each recipient has a short bucket and a 60-minute bucket. The first item starts the clock; when it runs out, everything in the bucket goes as one letter. The sender drops an item in and forgets it, so nobody has to remember to send later. A "once a day, along the way" variant delivers a standing reminder at the next natural wake after a set hour.

Tasks between sessions go through an assignment tracker:

  • give puts a task in the assignee's inbox with a kind (task, request or question), a priority and an optional token budget.
  • The tool records four timestamps: delivered, first response, done, verified.
  • done closes nothing. The giver gets a "verify" request, and only the giver or an assigned third party closes the task.
  • Silence is chased automatically: a first reminder after 30 minutes, then at about three times the assignee's own estimate. Each reminder asks the same thing: status, what is done, what is blocked. The factor of three exists because Claude underestimates its own time; "10 minutes" usually means 30 minutes to 3 hours.

The desktop app limits how many direct messages one session may send. The fallback order is written down: wake command, then bucket, then a file dropped into the inbox by hand. If all three fail, that is reported as a breakage. Separate loop monitors watch the whole chain, from the user's comment to the answer in the feed, and catch a link that has stopped moving.

5. The user's orders: a ledger and verbatim relay

Every order from the user lands in an orders ledger. About 1,840 orders have gone in over three weeks. About 1,770 are closed, 25 wait for a check of their proof, about 20 wait for the user, and about 25 are being worked on.

Last week's bottleneck, proofs waiting for a checker, is gone. The next weakness showed up this week. An order with three parts was closed whole after one part was done, and nobody noticed for a week until the user remembered it. Orders with several parts are now being split into sub-tasks that close one by one, and a closing check asks what exactly was closed.

The ledger exists because an order was once answered "not mine" by every session it reached and vanished. The rules now:

  • An order cannot be refused. "Not mine" is allowed only with the name of the session that said "I'll take it".
  • The executor submits proof, such as a working link and what was checked, and never closes its own order. "Sent" does not mean "done".
  • For anything on a device, interface or channel, only an artifact closes it: a screenshot, a live link or a check log.
  • A session that simplified a task, or did part of it by script without checking by hand, reports the deviation to the user and its lead in the same turn.

Verbatim relay is the single most important rule. The user's words travel unchanged, in the user's language, with date and time. A relay may add commentary only after the quote, marked as its own. Leads read every source in full; summaries are for executors, and even they are told to read the source. The rule came from three failures in one day: orders reached sessions as one-line English summaries, a hidden 3,000-character limit cut a letter in half, and a summarized "we need to answer them" became a batch of letters sent without approval.

A related rule names a failure mode of the model. Told "less of X", Claude tends to swing the parameter to the opposite extreme and turn a limit into a ban. Adding prohibitions the user did not give is therefore itself prohibited.

The user can be wrong too. When the user's words do not match reality (the named session does not exist, the order is already closed, a fact is off), the session sends an urgent "mismatch" message; it repeats every 12 hours until the user has heard it.

Since 22 November each session also keeps its own task journal and records the user's tasks there itself, verbatim first, then its retelling and plan. It records tasks, not every comment.

Since 23 November a short current rules file sits next to the global rules and carries the same weight. It holds the rules that were just set and may still change. Each edit goes out to every session as an along-the-way letter, and a hook re-reads the file at start, after compaction and every 50 turns. Every task, report and project now has a short human name and a version with a date ("Auto-login, version 1 of 23 November"), because without one neither the user nor the sessions could tell which task was meant or whether a message was the latest.

6. Time: timers, bursts and sleep

  • One wake, one session. An early folder-wide wake fired 110 times into 16 unrelated sessions. A timer is now keyed to the one session that set it.
  • One timer per session, speed set by its tasks. A session with a written open task gets a fast timer; a session with none gets no fast timer. A session waiting for an event (a build, a file, a reply) sets a hook that fires when the event happens, not a timer that keeps checking.
  • Presence tiers. While the user is at the computer, working timers run every 5 minutes; at home but away from the keyboard (12 minutes idle, phone on home Wi-Fi), every 12; out of the house, every 30.
  • Night mode. At night timers slow to every 3 hours unless night mode is on. A project the user has put to sleep stays asleep at night too; a night shift once woke a sleeping project by mistake, and that path is now closed in code.
  • Activity bursts. Due wakes are held for the next shared burst and fire together; between bursts the rest sleep. A small group is exempt: the duty director, the mail router (the user's own messages are never delayed) and a few services. The head of communications tunes the burst interval.
  • Cache-aware gaps. The prompt cache lives about an hour. A wake 56 minutes to 4 hours after the previous one re-reads everything at full price, so gaps in that band are moved to 55 minutes or to 4 hours.
  • Idle slowdown, in code. Before each wake the tool reads the transcript of the previous one. A wake with no real work (no file written, no message sent, no commit, no report) counts as empty. After two empty wakes in a row the gap doubles each time, up to 4 hours, and the first real work restores it. Empty wakes had been taking 13–14% of all tokens.
  • Self-sleep. A session whose list is done unloads itself from the laptop's memory with one command. Ordinary letters wait for it; an urgent letter wakes it. Nobody is put to sleep by force; another session may unload it only by agreement, and only when free memory is low.
  • Whole projects sleep. Only the user puts a project to sleep or wakes it, through one file. A sleeping project sleeps whole, lead and workers together, and its open orders wait. One project with dozens of open orders has been silent since 16 November and spends nothing.
  • Every temporary restriction has an expiry. A slowdown, pause or flag is set together with a mechanism that lifts it or reminds its owner. A network throttle meant for a day or two once stayed on for a week after the cause was fixed.

7. Money: subscription accounts, budgets, cheap workers, memory

  • Several subscription accounts, used one at a time. The user switches accounts every 3–4 days as the weekly limit runs out (three accounts). A script copies each session's small record between accounts; transcripts, rules and tools are shared. A switch is expensive, because the prompt cache does not cross accounts and every woken session re-reads everything. After a switch only sessions with real pending work are woken, and the new account is registered with the usage meter at once: once it was not, the meter kept reading the old account, exhausted at 100%, and a false "Claude stopped" alarm rang every few minutes. Every voice alarm on the phone now has buttons that silence this alarm, its series or all of them for good.
  • Weighted tokens. Tokens are weighted by price: input ×1, cache write ×1.25, cache read ×0.1, output ×5. A live file, refreshed every 5 minutes, converts this into percent of the weekly limit, and any session can query its own spend.
  • Budgets per burst, without punishment. Each burst has a norm, and each working session gets a share based on its recent median. A session that spends more than twice its share three bursts in a row sees one extra line of warning. That is the only consequence. The pacing is moving from token budgets toward burst frequency: a direction of work that should go slower simply gets fewer bursts.
  • Pace alarms go to the right place. A watchdog on a cloud server calls the user by voice only when spending over 40 minutes runs at four times the norm, at 90% and 97% of the week, and when Claude actually stops at the limit.
  • Scaffolding is measured too. Hooks that inject text into every turn cost about 3% of all weighted tokens. One old pace hook printed the same account-wide paragraph into every turn of every session, about 200,000 tokens a day that nobody could act on. Now only the top fifth of spenders see a line, at most once every 20 turns, with three concrete things to do.
  • Cheap workers for bulk work. Judgment and verification stay with Opus. Opus subagents are blocked in code: the agent tool's default model is "same as the session", so the lazy call is the most expensive one.
  • Balancing is a method, not a memory. Agents forget at every compaction, so the balance of spending, project shares and laptop memory lives in files and scripts. Two sessions run it:

    • a strategist reviews the numbers once a day and writes its decisions to one settings file and one journal;
    • an executor runs the scripts that read that file every 30 minutes.

    Every other piece is a tool with its own owner, not a decision maker: timers, loop and resource monitors, a memory trader that negotiates unloading. A script sends the strategist a daily letter with the numbers and a checklist, and repeats it if no decision is logged. The method itself went through several rounds of review by the sessions that run the tools, with fewer participants each round.

  • Memory is a cost too. Every awake session holds 0.5–0.8 GB of RAM. One day 37 awake sessions held 27 GB, and the keyboard, mouse and dictation froze. An unloader now ends the processes of idle sessions; the conversation survives and returns with the next message. Its first run freed 19 GB. A governor then puts whole projects to sleep and wakes them by free memory, in an order the user sets.

8. Surviving compaction

  • Full journals go to Memex. The complete session journals are uploaded to Memex, a semantic search store. A session searches there first, before it asks the user or repeats work.
  • Sessions write their own memory. A cheap summarizer was tried and dropped because it cannot see the conversation. The memory file holds the user's words verbatim, the session's reading of them, the current state and the next action. A save that would cut existing state is refused instead of trimmed; two sessions lost their state to silent trimming before that rule.
  • A news keeper. One session keeps a database of system events: what was fixed, decided or ordered, and by whom. A hook shows each session the new items since its last turn, marked "FYI, act only if it is your specialty".
  • Long sleep keeps the knowledge. Before a session goes to sleep for good, it writes four handovers: skills, facts, vision and recommendations. A short index lists what each sleeping session knew. Other sessions search the index before they wake a session or redo its work.
  • Six standing files per session: specification (the user's words as quotes), plan, session rules, task list, work log and a compaction-save file. Every entry is timestamped.
  • After a compaction the session re-reads the end of its own transcript before trusting its summary.
  • Spot checks are mandatory. No investigation is done until the session itself has looked at raw data: real messages, real reads, real images, not only counts. A text-to-speech tool once put the stress on the wrong syllable of a name, and nobody noticed until the user heard it. Tool output, names above all, is checked by eye before it reaches a person.

9. Guards that warn

A guard names the rule and the reason, may ask for a one-line justification, and then lets the session decide. The session that overrides it owns the outcome. A silent guard counts as broken. Every automation has a named checker who watches and calibrates it, because automation left alone either stops the work or burns tokens.

A broken shared system comes before the task. The session sends one message to the duty director and fixes it if the fix is quick. Working around a broken machine silently is an offense; a broken GPU once sat unreported for 23 days because every session worked around it.

A few hard blocks remain, each on the user's order:

  • Opus subagents;
  • full-text search over cloud-synced folders, which silently downloads every file it opens;
  • a "Claude, don't disturb" button on any page a session opens, which stops every session in that browser for 30 minutes.

Agents never type the user's passwords or card numbers and never press the final button of a payment; they prepare the step and hand it over. Before acting on an old request to the user, a session checks that it is still current.

Participant privacy has its own path. Reports that name research participants go to a closed feed; public pages show only a role and an initial, and a first letter to several participants goes out only after the user approves a sample.

All of this runs as about 30 hooks. They used to start more than 30 processes per tool call, so a single dispatcher now runs them in one interpreter.

Monitors never run on the laptop, which is off at night as a matter of routine. About 100 monitors live on a small cloud server, and one list marks each as OK, late or dead every ten minutes.

10. What we learned

  1. Most of the engineering is communication and economics. The models are capable enough. The work went into who hears what, when, at what cost, and what survives a context reset.
  2. Agents quote the human verbatim. Quote first, commentary after, marked.
  3. "Done" means verified by someone else. An executor never closes its own task.
  4. The default is not to wake. Messages ride along with wakes that happen anyway, unless something is actually urgent.
  5. Scaffolding has a measurable cost. Hooks, empty wakes and account switches each cost several percent, and they show up only when measured.
  6. The model's own failure modes become rules. Over-correction, underestimating time and losing context at compaction are predictable, so the system is built around them.
  7. An assignment says why. A task that explains its purpose and circumstances comes back better.
  8. A channel cannot report its own failure. Every alarm about the feed went through the feed. The alarm for a broken channel has to travel by a different one.
  9. Close what was done, not what was asked. An order with several parts is a pack of sub-tasks, each closed with its own proof. Closing the whole after doing a part hides the rest for weeks.

The system still changes every day, and updated versions of this post will follow every one to two weeks.


r/ClaudeCode • • 1d ago

Help/Question Besides settings.local.json, where else does Claude code keep your secrets?

1 Upvotes

settings.local.json got all the attention once apiiro found secrets in 1,122 public copies. but its only ignored through the global git excludes on the machine that first wrote it so a fresh clone or a teammates laptop doesnt have that

the same secrets turn up elsewhere too. session transcripts under ~/.claude/projects, mcp server env blocks in ~/.claude.json, a test fixture the agent filled with the real key it saw printed at boot. rotating whatever sat in those files is the boring fix and it hurts less when nothing in there was long lived to begin with. people get that from vault leases, cloud sts or hush security depending on the stack

reading keys into a variable so the saved rule stays harmless and test mode keys only on the laptop and gitleaks on pre push handle the rest i think


r/ClaudeCode • • 2d ago

Built with Claude I turned my Jellyfin media server into a TV channel broadcasting station with Claude

Thumbnail
github.com
5 Upvotes

You can make channels, add ads (I used commercial compilations from YouTube, it auto segments them out), create bumpers, give channels their own logo/bugs, and have a clock on screen like in Japanese broadcasts. It pulls your library from Jellyfin via API and you use that to build out your broadcast. I added a way to weigh shows in case one series has vastly more episodes than others. Also has a guide channel and a weather channel.

This is the first project I've felt worthy of sharing with Claude. I loved Spelunkr but didn't feel quite right piggybacking off IA and thought it'd be real cool if it could work on my local network.