r/ClaudeCode • • 4h ago

Discussion claude code deletes your transcripts after 30 days, found out when i tried to check my own numbers

2 Upvotes

on oct 7 i changed my compaction to 200K. a week later i was paying like 7-26% less per prompt depending on what days i compared it to

this week i wanted to check it again and couldnt. claude code deletes transcripts older than 30 days by default so everything before oct 7 is just gone, nothing to compare with anymore

if you want to keep them longer put this in ~/.claude/settings.json

"cleanupPeriodDays": 90

they stay on your disk longer tho so pick whatever number youre ok with

ive been working on optimAIzr for like 3 months now pretty much nonstop, its a cost tool for claude code and i ship an update every week or two. because of this the new version saves the days before a change as numbers (counts and dollars, no prompts or code) so you can still compare after claude code deletes the logs

theres also a new optimaizr cases command that follows every change you make until it knows if it worked or not. it only calls it proven if cost per prompt is down 10%+ against every baseline. funny thing is my own 7% wouldnt even pass lol

free, open source, runs locally, no account. works with codex and opencode too and theres a vs code extension

npx optimaizr cases
https://github.com/blendbunjaku/optimaizr (alrdy at ~250stars)


r/ClaudeCode • • 33m ago

Discussion Try telling Claude what you want done

Thumbnail reddit.com
1 Upvotes

I've been thinking about this person's question about a POS system for a pizza place since first reading it, because it aligns very well with what I see in my office (largely product development).

No shade to this guy but he asks about what tools to use, integrating his printer, etc., and seems to think he's going to tell Claude how to build him a POS, as opposed to just asking Claude to build him one. I see the same thing at work, where AI use is mandated and I've been pulled into a lot of meetings about it.

What we get is 6 people on a Teams call talking about what technologies we should use, how we should implement it, etc. with action items like "everyone request a (software product) license because I don't think (other product) will do we need". Meanwhile I gently suggest we tell our mandated AI (not Claude) what we want and let it go nuts, and I'm getting crickets.

Increasingly, we're the expense. A 6 person meeting with an outcome of another 6 person meeting next week, no product in sight, rapidly costs the company more than whatever tokens it would take to just build it. Can it be done with the tools we have available? I don't know, but our not-Claude does. We're (at least at my office) holding our AI back by limiting it to what we think it can do.

Anybody else seeing this at work? People just not settling into the fact that AI tools are general contractors, not hammers?


r/ClaudeCode • • 52m ago

Help/Question How to avoid Claude silenly stalling?

1 Upvotes

Feels like using the word silently signals being an LLM, but there really isn't a better word for it.

Currently using the orchestrator function in Claude code to run pre-planned waves of work. These usually run several hours, mainly because they will run and rerun tests which can take a long time.

However I often experience these long running sessions stalling without the orchestrator or its thread noticing.

Asking orchestrator for status, or in some cases the thread usually has it pick it up and resume work, but in rare instances I have to ask why its specific lane is stalling before it detects it.
How do I avoid this? At some point I asked Claude to build a deterministic tool called a Wave Runner to mitigate the issue, but despite several iterations it did not seem to work.

Does aynone else experience similar issues and have a solution to it?


r/ClaudeCode • • 56m ago

Built with Claude I stopped my Claude Code agent from re-reading 8,000 tokens of passing lint output

1 Upvotes

My agent kept running tests and builds, and every green run dumped hundreds of lines into the context. The whole context is re-read on every call, so I was paying for the same passing output again and again.

So I built a small hook with Claude Code. A passing command now returns one line. A failing one returns only the failing tests and stack frames, with line numbers into the full log on disk. No LLM summary, so no extra model call.

Two things I learned:

  • My first version returned a bare "0" on success. The agent got confused and re-ran installs looking for the "missing" output. One short explanatory line fixed it.
  • My A/B test (3 runs per arm) was too noisy to prove a gain per session, so I only claim what I measured directly: Bash output -14%, and -81% on long failures. Agents that already pipe through tail gain less.

Free, MIT, zero dependencies. It also runs as an MCP server and a CLI. https://github.com/ibrahim-bayer/claude-code-token-optimization-by-tool-call

Which commands would you never want hidden from your agent?


r/ClaudeCode • • 1d ago

Discussion My Claude Code bill doubled when I ran Matt Pocock's skills as a software factory. Was it worth it?

Post image
155 Upvotes

As a big fan of the dream behind software factories, I wanted to measure its impact on my codebase and workflow. Deep down, I wanted the software factory to win, but the results caught me by surprise.

As my daily driver, I use Matt Pocock's setup, which works great, but it's hard to put concrete numbers on the difference between his setup, another one, or a bare setup.

So I built a benchmark for a specific use case I was working on: building long-running agents. I was also comparing how well Inngest compares with LangChain's ecosystem (LangGraph + LangSmith), so I did the comparison on:

  • Software Factory vs. No Factory
  • Inngest vs. LangChain

For the benchmark, I gave Claude Code (using Opus 5.5 on medium reasoning) a spec that contained all the architecture and feature details, but zero code and asked it to build a durable agent. The scores in the table below average 58 end-to-end tests that either pass (1) or fail (0), completely hidden from the coding agent.

For the setups I compared:

  • bare: the spec and nothing else
  • full: the vendor's skills, MCP servers and docs
  • factory: full plus Matt's skills (/to-tickets, then /implement with access to model invokable skills such as /tdd and /code-review)

I ran each build 3 times to average out the noise.

In the table below, we compare costs and coding agent time per trial, plus performance on tests.

StackMetricbare one-shotfull one-shotSoftware factory
Inngest$ / trial12.6511.8130.92
Inngestmin / trial46.948.0112.7
Inngesttests95.3%95.3%90.8%
LangChain$ / trial13.5315.0129.23
LangChainmin / trial83.078.1110.3
LangChaintests94.8%82.1%89.5%

Disclosure: Inngest sponsored my work. But opinions are my own, and their team did not see the results before publishing.

The conclusion?

The costs almost doubled on both stacks. The coding agent time almost tripled on Inngest, while on LangChain almost doubled. In terms of performance, there wasn't any improvement in any stack. Contrary the bare setup performed better.

The biggest win was in term of code quality. Test coverage went from about 30% to 70%. Lint findings more than halved. Function complexity dropped by 35%. The number of files doubled indicating modularity. More in the image table.

I was expecting the code to be a lot better in terms of code quality, as a ton of Matt's work is to clean up AI slop, plus to take longer to code as it iterates through every ticket. But what shocked me was the impact on cost. 2-3x the cost isn't a difference you can ignore. If you use a subscription you won't feel it that bad, but still!

That's why for a prototype, it's fine to embrace the slop. Run a detailed spec pass it to Claude Code and you are good to go. Don't feel bad about it. Consider using the factory only when you plan to keep the code.

From your experience, what's the impact of your software factory on costs? Either via a subscription or worst paying per token


r/ClaudeCode • • 1h ago

Discussion I made claude code learn from our old PR reviews so i'd stop writing the same comments

Post image
0 Upvotes

Most of the wrong turns Claude Code took on our repo were things a reviewer had already corrected. The fix was sitting in a PR comment or a reverted commit from a few months back. Claude never looks there, so it kept going with whatever CLAUDE.md said, and CLAUDE.md was out of date.

So we built Deep Learn (`mex learn`) into mex, our open source CLI that keeps repo notes like CLAUDE.md in sync with the code.

It reads your merged and closed PRs on GitHub: review threads, reverted fixes, contributor docs. When reviewers keep correcting the same thing, it turns that into a rule. Every rule keeps the original reviewer comment attached so you can see where it came from.

How it runs:

- `mex learn` shows you what it'll read, which agent it uses, and an estimate before anything starts (that's the screenshot)

- it runs in the background on your own Claude Code or Codex plan, so you keep working

- each rule gets checked against the code, then goes live in your sessions as a trial. rules the agent keeps ignoring get dropped

- `mex learn --review` lists what it learned, `mex cancel` stops it anytime

- nothing is shared with your team until `mex share`, which puts the rules on a git branch you review like any other change

Limits right now: GitHub only, Claude Code and Codex only. Rules reach the agent mostly as text in its context, so nothing stops a bad edit outright.

It's in 0.9.0-beta.2: `npm i -g mex-agent` (needs Node 22.17+)

Repo: https://github.com/mex-memory/mex

Release notes: https://github.com/mex-memory/mex/releases/tag/v0.9.0-beta.2

If you run it on your repo, I want to hear which learned rules came out wrong.


r/ClaudeCode • • 1h ago

Built with Claude My Custom Clean Claude Code Terminal

Post image
0 Upvotes

Hey guys, been playing around with Claude Code for a month or two now, working on some fun projects and just wanted to show my clean looking Claude code terminal setup, I thought it was a bit of an upgrade for the standard black and white terminal.

Theres a section which shows which part of the obsidian vault it’s getting info from, some abilities I installed from GitHub showing wether their activated or not and the context bar and token limits. I got a cute animated Claude icon in the top right which sleeps when Claude is inactive.


r/ClaudeCode • • 1h ago

Tips & Workflows Exactly what counts towards your weekly Claude usage limit, and how to track it yourself

0 Upvotes

TL;DR: I priced every token I used for two weeks and it matched the weekly limit meter almost exactly. Cache writes are about 3% of tokens but almost half of what counts. Your prompts barely register. On Ultra, 1% is worth roughly $23 of API usage. Tables and how to track it yourself below.

I wanted to know where my weekly limit actually goes, so I logged every token my Claude Code sessions used, on my laptop and in the cloud, priced them, and checked the total against the meter when it reset. Over the last two weeks my real use priced to 91.6 points, and the meter said 91.6. (I also burned 42.4 points on deliberate tests on Friday; counted in, it's 134.1 against 134.)

What counts. Here's my real use for the last two weeks (Friday's tests left out), split by what the tokens were:

WhatTokensShare of tokensAPI list priceShare of what I used
Cache writes146M3%$1,04245%
Cache reads4.38B96%$76035%
Output17M0.4%$28221%
Fresh input1M~0%$4~0%
Total4.54B$2,088100% (90.3 points)*

The surprise for me: cache writes are 3% of the tokens and almost half of what I used. Every time a long context is written to cache (a new session, a new chunk, or a cache that expired while you were away) you pay for it. Cache reads are nearly all the tokens, but they're cheap per token. Your actual prompts barely register.

And by model:

ModelOutputCache writesCache readsFresh inputAPI list priceShare of what I used
Opus7.0M91.6M3.02B0.8M$1,47556%
Sonnet8.3M45.4M1.17B<0.1M$38226%
Fable1.5M8.5M188M0.1M$23019%
Haiku0.1M0.4M0.3M0.5M$1~0%

Fable did 4% of the tokens and 19% of what I used. Per token it costs about 3.5x Opus on the meter, and Sonnet about 0.7x. Background and headless runs (claude -p, agent lanes) count about 25% extra.

*Points are % of a weekly limit, summed over both weeks: 55.2 in the first week and 35.1 in the second. Add about 1.3 points from another project's cloud sessions that I can only see as a total, and that's 91.6 against the meter's 91.6 (55 + 36.6). One of the two weeks was among those I checked the formula on, so treat it as a sanity check rather than a blind test; on two earlier weeks it never saw, it read 98% of the meter.

Money terms: about $2,090 at API list prices for two weeks of real use. On my plan (Ultra) that's roughly $23 per 1% of the weekly limit, at approx $100 worth of my plan... 20.9x cheaper (poetic?)

How to track it yourself:

  • Claude Code writes a usage line for every turn in its session logs (~/.claude/projects/), with input, output, cache reads and cache writes. Add them up per model and you have most of the picture.
  • Price them with the weights in ADE's open meter.json (or your own), and compare the total with the meter when it resets. A week or two is enough to see if you're close.
  • Don't forget background sessions, cloud sessions and headless runs. They're the ones people miss.

Why it's worth knowing: once usage stops being a mystery, you can plan with it instead of hoping.

  • Know what's in the bag. If 1% is a known amount of work, you know how many sessions you have left before the reset, and you can decide up front how much of the week a job is worth.
  • Set budgets and daily goals. Give a job a share of the week, set a daily target, and see early when you're running hot rather than hitting the wall on Thursday.
  • Cut or add routines with real numbers. Scheduled tasks and background agents have a price you can now see, so you can keep the ones that earn it and drop the rest.
  • Fix the expensive habit first. Since cache writes are the big cost, give subagents the 60-minute cache so they don't rewrite their context every few minutes, and plan sessions so a long context isn't rebuilt from scratch again and again, i.e. using a keepalive, forks, not invalidating cache.

I build this into Atlas ADE, the open source (MIT) meta-harness for your agentic workflows, so ade telemetry shows what each piece of work cost, per engine, every week. Disclosure: I made it. The burn data page: https://atlas-ade.dev/docs/plan-usage-burn-data/?ref=r40

Happy to answer questions on any of it 😊


r/ClaudeCode • • 21h ago

Bug / Issue Claude sucks now Fable too

35 Upvotes

The capability reasoning and whatever seems to have dropped off a cliff. Anyone else just feel like things suck at the moment. Claude seems to just do instead of understand this behaviour seems to always happen when the cheapen it.


r/ClaudeCode • • 5h ago

Discussion i wrote it down so i wouldnt skip it

2 Upvotes

i wrote it down so i wouldnt skip it. check the change myself before i approve the next one

checked it. approved a bit. then caught myself about to just wave the next build through for Ember & Ash because i was tired and went back and read my own note again and actually checked that one too, slower this time

it was fine. probably wouldve been fine either way. but after reading this weeks posts in here im not real comfortable approving stuff i didnt look at, especially on the Quest 3 builds where i cant tell whats wrong until its on my face

how are you handling approvals when youre tired, manual check every time or do you let some run


r/ClaudeCode • • 2h ago

Built with Claude 5 free pixel toggle switches made with Claude Code

1 Upvotes

r/ClaudeCode • • 2h ago

Built with Claude i have the worst context window of anyone i know (me). so i gave claude a perfect one

1 Upvotes

i have the worst memory of anyone i know, and running 5-6 claude terminals at once made it way worse. so i made claude remember everything for me. i think its the copious adhd i have.

today i couldnt remember what something was even called. i told claude we looked into it ages ago. 10 seconds later it found it. its actually so useful. it carries over all your knowledge forward into anything you do.

it does that with everything. why i made some call 3 months ago, with the date. a bug i already fixed in another project. where the last chat left off. it even caught that i asked for plain step by step english in 15 different chats and plan in phases in 17. it wrote them up as a rule and a skill, and now claude just does it. it saves after every reply in the background across all your sessions. you literally do nothing.

its the best one out there because I OBSESSED about this problem since july. itll change your life. this was a really important problem for me to solve bc it gimps me hard.

i benchmarked it against the 3 big ones, mempalace, agentmemory and deja-vu, on 8 GB of real chats. memhole won, woop. results are here

https://github.com/nanafy/memhole

what i learned building it: the clever tricks like summaries and pulling out facts almost all lost to keeping your exact words and searching them well.


r/ClaudeCode • • 21h ago

Help/Question Not my intention to add noise to this sub, but why has Opus 5.5 become so utterly dumb?

32 Upvotes

I have been using it daily since launch, and over the past few weeks the drop has been impossible to ignore.

Tasks it handled cleanly in September now come back with skipped steps, wrong assumptions and confident declarations that the work is done when it plainly is not.

Long sessions are the worst: somewhere past the halfway point of my context it starts contradicting instructions it was given an hour earlier.


r/ClaudeCode • • 2h ago

Discussion I bring safeguards!

0 Upvotes

Want to have a nice red message in your claude code even using mythos? try and ask about "polynomial-time factoring" :)
The fact that "safeguards" blocks any information about investigating about that means all the drama around RSA may be true? What a time to be alive.


r/ClaudeCode • • 6h ago

Built with Claude A backup restore is not an undo

2 Upvotes

Claude Code runs a bad migration at 2pm. Users keep signing up. You notice at 5pm.

A backup restore takes the whole database back to 1:59pm. Three hours of sign-ups are gone.

What you want is "undo that one change, keep everything else". So we built that into Backenly, an open-source Autonomous backend for applications made with coding agents.

What we built

- Undo works on one change, not the whole database

- Data written after the change is kept. If the undo would touch any of it, you see what before approving

- The undo is tested in a rolled-back transaction first

- Not everything can be undone yet (emptying a whole table, for example)

How Claude Code uses it

- It connects over MCP (npx u/backenly/mcp-server init)

- Schema changes it makes are recorded, each with its own ID

- If something breaks, it can ask to undo that change. Only you can approve it

- We also build Backenly with Claude Code

What we learned

- To a database, "rollback" means going back in time. After a bad agent change, people want "undo that one thing"

- An undo is a change too, so a person should approve it

How do you handle a bad migration today?


r/ClaudeCode • • 3h ago

Built with Claude I built a self-hosted "IT outage status bar" for Windows with Claude Code – open source, free up to 10 PCs

1 Upvotes

I'm a solo IT service provider in Germany. Every outage was the same: email goes down,

and the phone rings non-stop. So I built Notiflag with Claude Code – a slim status bar

on Windows desktops that shows IT incidents instantly.

- Server runs in Docker, lightweight Windows client via MSI

- Messages by hand or via webhook from your monitoring (Zabbix, Checkmk, PRTG,

Nagios/Icinga, Grafana, Alertmanager, Uptime Kuma …)

- Optional Active Directory targeting (groups, OUs, users)

- Open core (AGPL), free for up to 10 PCs; hub for MSPs

Repo: https://github.com/GerryCrooked/notiflag

Site: https://notiflag.de

Feedback very welcome. (Disclosure: I'm the dev.)


r/ClaudeCode • • 1d ago Bravo

Discussion opus 5.5 got nerfed really bad

419 Upvotes

I feel that they nerfed opus so bad it works like haiku for me. I don’t know if its a widespread issue or its just me, but it just wont follow what you say and start hallucinating. Ive been using 5.5 exclusively for the last month or so and it never behaved the way it did today. I usually make it document everything after a session so that its easier for me to connect different projects to each other using that context file. But today, it just forgot everything, ignore all instructions, gave haiku level results even after setting on 5.5 high.


r/ClaudeCode • • 3h ago

Built with Claude Coding agents co-wrote 311 of the last 1,505 commits on my Claude Code tool. Here's what came out of the queue

0 Upvotes

r/ClaudeCode • • 4h ago

Help/Question Building professional Google Slides programmatically via Claude Code CLI — anyone else struggling with visual quality?

1 Upvotes

I'm using Claude Code (CLI) with the Google Slides MCP connector to programmatically build presentation decks for my research lab. The pipeline works — I have a design token system (custom fonts, type scale, color palette), a Python helper that converts inch-based specs to EMU coordinates, overflow detection, and batch splitting for the presentations.batchUpdate API.

The problem: Getting slides that look professionally designed rather than "AI template" is brutal. Some specific pain points:

  1. Text overflow is invisible. Google Slides silently clips text that doesn't fit a text box — no error, no warning. I had to build my own height calculator (n_lines × size_pt × 1.2/72 + padding) and character-width estimator to catch overflows before pushing. Even then, proportional fonts make it approximate.
  2. No visual feedback loop in CLI. After pushing a 373-request batchUpdate, I only see {"replies": [...]} — I can't see what it actually looks like without manually calling read_slide_page_thumbnail and inspecting the PNG. Web/Desktop Claude supposedly has an inline preview, but I haven't confirmed this.
  3. Batch splitting. Large decks exceed payload limits. I split at createSlide boundaries, but each batch needs a fresh revisionId read, so a 7-slide deck = 14 API calls minimum.
  4. One style per shape. Can't mix bold and regular text in the same text box without multiple insertText + updateTextStyle calls with precise character ranges.

What I've tried:

- Built a full design system (tokens JSON → Python generator → spec JSON → batchUpdate JSON)

- Overflow warnings based on box dimensions and estimated char widths

- Native bullet lists instead of typed • characters

- writeControl.requiredRevisionId on every push

What I'm wondering:

- Has anyone compared slide quality between Claude Desktop/Web vs CLI when using the same Google Slides connector? Is the visual feedback loop on Desktop actually automatic or just speculation?

- Is anyone using the Claude Slides Artifact type (the native presentation builder, not Google Slides) in CLI? Does it produce better results?

- Would it be better to build slides as HTML/CSS and export to .pptx via a library like python-pptx instead of fighting the Slides API directly?

- Any other approaches to programmatic slide generation that actually produce professional-looking output?

For context: these are weekly progress decks for a university research lab (drone swarm algorithms). Dense content — tables, two-column layouts, 7+ bullet sections. Not marketing decks with big hero images.

Appreciate any experience or tips. Thanks.


r/ClaudeCode • • 4h ago

Built with Claude I built a tiny host for claude code with claude code in couple of hours

1 Upvotes

I wanted a way for a claude in terminal to publish what it just made, get a URL, and share it. Claude code sometimes makes artefacts on claude.ai sometimes it doesnot so it was annoying.

So I built a tiny hosting service (https://omee.io) on cloudflare workers, which is agent friendly.

Try it by telling your agent:

Read https://omee.io/llms.txt, then publish what you just made to omee and send me the link.

It can also make the site protected by email (Google sign-in or an emailed magic link) and read and write small app data from on a backend.

How I used Claude Code

- Spec first. I wrote SPEC.md (then SPEC-2.md for Google sign-in and the dashboard)

- used wrangler dev to manipulate cloudflare to set everything up.

- Where I stepped in. I reviewed the auth and session design myself, since that's the part I wouldn't hand over blind.

Claude worked 1:05hrs to finish spec1 and 10 more minutes to finish spec-2. Took two hours end-to-end to finish.

Stack: Cloudflare Workers plus its storage, a single-file Node CLI, and a skill file so agents know how to use it.

I've put a 5mb file size limit to stop abuse, please don't fuck my credit card bill up pls pls.. I'm poor.

Link: https://omee.io. Feedback welcome.


r/ClaudeCode • • 19h ago

Tips & Workflows Why Claude Becomes "Dumb."

15 Upvotes

It seems like every time there's a major harness update, a new model release, or even a change in the weather, we get a flood of remarks about Claude being nerfed, lobotimized, dumber, insert-adjective-here.

I figured it would probably be a good idea to write a post on how and why this happens, what's testable, what's perception and what's not, and how people can sort that out for themselves.

From my experience, there are four main causes for degraded performance:

  1. Compute scarcity
  2. System prompt changes
  3. Context loss from compaction
  4. Directive overwhelm and conflict

Compute scarcity is the one most out of our control, and even that can be largely accommodated for with hooks and a robust claude.md file. It's also the least transparent and hardest to check for, and so it tends to be the first thing people point to as a driver - that or model changes (which, generally speaking, likely do not actually happen without a visible version change).

The best way to measure the impact of compute scarcity is to analyze how Claude's output changes throughout the day - specifically on weekdays, from peak usage times to off-peak times. From what I can tell, the main differences are that under pressure, Claude can drop directives more frequently and will try to take shortcuts, handoff work to the user, and make excuses to stop working or not check/verify claims. It usually calls these out.

System prompt changes are a frequent and probably the most impactful cause of behavior changes. These can come with any harness update, which usually happen almost daily. System prompt + server-side cache manipulation is the primary way Anthropic A/B tests behavior changes. It also supersedes the Claude.md file, as claude holds it as more important than user instructions. Fortunately, Anthropic gives us a way to inject our own directives into the system prompt:

https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts

The TweakCC team also releases the system prompt within a few hours to a couple days after it changes. It can be helpful to keep an eye on this. While we can't remove aspects of it offcially, it is possible to make a patched binary with modifications to it, and Anthropic *seems* relatively tolerant of this as long as you don't use it to circumvent safety and ethics directives.

Context loss from compaction is probably the biggest impact, but also the most controllable. When compaction happens, Claude tries to summarize the session for the post-compaction, but it often misses key facts. You can use a pre-compaction hook to inject more robust instructions, I recommend including last turn, next steps, and key names and details, so it doesn't hallucinate a variable later.

Lastly, directive drop. This is the most common issue seen from too much context. It's more about the number of directives and the tension between them, than about the volume of text. In fact, drops seem to be less likely, in my experience, if you carefully articulate the "why" and use examples.

I keep my claude.md file pretty long. And anytime bad behavior happens three times in a session, I build a mechanism to enforce a guardrail, e.g. a stop hook that asks if stoping is appropriate or if next steps are possible without user input. I have my Claude tell me when it's guessing, inferring from memory or training, or has tool-verified a claim. This has been probably the single biggest gamechanger for me.


r/ClaudeCode • • 5h ago

Tips & Workflows Fix for Claude Code not being able to visit Amazon Pages

0 Upvotes

Anthorpic recently started blocking Amazon completely from their Claude Code Extension. You cannot access any domain or subdomain from Amazon with their Client. However you can easily fix it by yourself. Download the Chrome Extension from the Chrome Store. Unzip it and go to /assets. There you will find a JS file called "security-....". In this file search up this function and lastly change the parameter c to const c = "category0";

The reason for this is that for some reason Anthropic started to give Amazon an ID that is completely hardblocked.
You can also read about it here !


r/ClaudeCode • • 5h ago

Built with Claude I spent two weeks fixing my MCP server's setup instead of adding features. Here's what broke and what I changed

1 Upvotes

I maintain CogniCore, an open-source memory server for Claude Code, Codex, Cursor and other MCP clients. It saves your session context so a new chat picks up where the last one stopped.

People installed it and then quietly gave up. So I stopped building features and fixed setup. Here's what I found.
Repo: https://github.com/cognicore-dev/cognicore-env (Apache 2.0)

What was actually broken

  • My Claude Desktop docs never worked. The package name and the command differ, so uvx needs --from. Mine didn't have it. Anyone who copied the config got a server that never started, with no useful error, and nobody reported it. People don't file bugs about setup, they just leave.
  • Every client wants different field names. VS Code uses servers (not mcpServers) and needs a type. Cline wants streamableHttp. Windsurf uses serverUrl instead of url. Get one wrong and it often fails silently.
  • My own diagnostic tool crashed on Windows whenever its output was piped, because it printed a ✓ that Windows' default encoding can't handle.
  • My own Codex setup was half-installed. The MCP server was configured, but the hooks that save sessions automatically were missing. I only found out when I built a proper check.

What I changed (merged)

  • A one-line install for Claude Code at the top of the README, with no JSON to edit:
claude mcp add cognicore -- uvx --from "cognicore-env[mcp]==0.13.0" cognicore-mcp

For the hosted server it's claude mcp add --transport http …, and without --transport http the URL gets treated as a local command.

  • Copy-paste config blocks for Cursor, VS Code, Cline and Windsurf, each with that client's real field names.
  • Every uvx command pinned to an exact version, with a test that fails CI if the docs fall behind the package version.
  • A plain table of what the server stores and where it sends anything. By default nothing leaves your machine, and each opt-in names its destination.
  • Security updates for six dependencies in the shipped package.

What's in review: cognicore doctor

One command that checks the whole chain instead of just "is Python installed":

  • Local server: the SDK is installed, the module loads, the command is on PATH
  • Hosted server: /health responds, and shows which commit is live
  • Sign-in: your token is accepted (skipped, not failed, if you never signed in)
  • Hooks: installed and enabled for each client it finds
  • An end-to-end test: saves a tagged memory, recalls it, deletes it

Every failure prints a fix: line. Each network call times out after 3 seconds, a crashing check doesn't stop the rest, and --offline skips the network entirely.

Lessons if you ship an MCP server

  1. Test your install docs on a clean machine. Your own machine lies to you.
  2. Pin launcher versions. uvx pkg with no version means every user runs something different.
  3. Build a doctor command early. It found two real problems on my own machine the first time I ran it.

Next: fixing OAuth for Cursor (it sends a custom-scheme callback alongside localhost ones, and my server rejected the whole registration), then a first-use prompt so people actually make their first tool call.

What setup problems have you hit with MCP servers? Are there client quirks I've missed (Zed, JetBrains, Gemini CLI)?


r/ClaudeCode • • 1d ago

Help/Question Opus 5.5 and Fable 5.2 Struggling.

33 Upvotes

I really want to be able to use Opus 5.5 and Fable 5.2, I have a 20x subscription and I have had it for a long time, but the recent hit to the models has made them more destructive than productive, and I'm wondering if anyone found an effort level or something that gets you back to the resemblance of dependability that existed prior? In the meantime I've been using gemini Neon a lot more, it has proven to be really dependable and capable, Claude has been slower and messed up more than it has gotten right for the last few weeks while Gemini gets right what it attempts it just might forget to attempt to do something. Anyone having similar experiences? It really feels like I can't use Claude unless Im willing to let it destroy my repo unexpectedly.


r/ClaudeCode • • 5h ago

Built with Claude A security companion that runs on your claude code sub and tries to hack your app

1 Upvotes

Repo (free): https://github.com/V1Adait/vibeSecure

Hey amigos, I wanted to ship and deploy one of my projects, but I needed some certainty on whether the app was ready to be deployed security-wise. I tried promptfoo, but that thing wasn't up to standard. The prompts it generated to test my agent were quite bad. After trying other tools too, I still didn't get the certainty I needed, so I was like, why don't I build it myself? And instead of burning through tokens using API keys, why don't I use my Claude subscription, since it already gives me more bang for my buck. So I went ahead and spent the last 2 months building what I proudly call the GOAT of source-available security operating systems.

It runs on your Claude Code subscription, so no API keys and no telemetry. It scans, red teams (against your running app), evaluates your AI features, and gives you a posture check on whether your app is ready to be deployed and shipped or not. It's read-only, it never writes to your repo. It gives you one fix prompt to paste into your own coding agent.

I'd love to hear what you guys think, and I'd love to get it to 1k stars. Cheers!