r/ClaudeCode • • 18m 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 • • 47m ago

Built with Claude I wrote a UI framework in pure C11. Every clip in this video is a single native .exe, no browser, no engine.

6 Upvotes

I wanted HTML + CSS + JS's flexibility (flexbox, rounded corners, shadows, smooth animation, <canvas> + shaders) in native apps without shipping Chromium. So I built Bare, a UI framework in plain C11 with a GPU renderer (SDL3's GPU API: D3D12 / Vulkan / Metal).

Everything in the video is an ordinary Bare app, recorded straight from the exe with Bare's built-in recorder (BARE_RECORD=out.mp4):

  • Ocean: Tessendorf FFT waves (three cascades), foam that builds and fades, a camera that rides the swell and dips under the waterline. ~450 lines of C + GLSL passes.
  • Last Train: a walkable J-horror train car with 48 flickering fluorescent tubes, screen-space reflections, a flooded station, rain and a camcorder look.
  • Singularity: a Schwarzschild black hole ray traced per pixel: photons bend round it, the disk arches over the shadow, stars smear into Einstein rings.
  • Path tracer: a Cornell-style room with glass and metal using hardware ray queries, plus an SVGF-style denoiser built from ordinary passes.
  • Liquid glass: real refraction, dispersion and frost on any box: .glass = BARE_GLASS.
  • Fluid: a port of Pavel Dobryakov's WebGL fluid sim, with a settings panel made of Bare boxes.
  • Write: a Markdown editor on liquid glass (multiple carets, undo, find / replace) in under 1,000 lines.

Hello world is the whole program:

#include "bare.h"
int main(void) {
    bare_window(1920, 1080, "My App");
    while (bare_frame()) {
        bare_box(.width = 300, .height = 200, .radius = 16,
                 .color = BARE_RGB(40, 120, 255));
    }
    bare_quit();
}

Named optional parameters (C11 designated initializers), immediate mode with retained state keyed by IDs, so hover, animation and scroll position just work.

Numbers (the same fluid sim, Bare vs the WebGL original in Edge, both at 200 fps, RTX 5070):

BareEdge
CPU~8% of a core22-37%
Memory (working set)90-153 MB461-626 MB
Processes18-18
Once the fluid settles0% CPU, 0% GPUnever idles

Honest bits: startup is ~0.6 s (mostly GPU driver setup), about the same as Edge, not faster yet. Windows is the main platform; Linux builds and passes its tests, macOS builds in CI but is less tested. The web (WASM) backend isn't done.

I built it with Claude (Anthropic's model) as a pair programmer, it's credited in the README.

MIT licensed: https://github.com/CoolNinja2009/Bare

Feedback very welcome, especially on the API. What would you build with it?


r/ClaudeCode • • 50m ago

Discussion Is there a more benign explanation to Claude's worsening perf?

1 Upvotes

ML sabotage is one thing, but many developers are reporting that Claude generally approaches work in a way that is unlike its competitors: it is almost intentionally obtuse and sabotaging, and seemingly knowingly takes shortcuts or executes actions that result in more work for its users.

I don't know whether that's true, but it strikes me as very plausible. It is not in token providers' best interest to give you a product that can one-shot any problem you throw at it with the fewest tokens possible. Then they wouldn't have any tokens to sell! And I see no signal that would indicate that Anthropic is somehow better than the plethora of companies that came before it and became disgustingly successful because they struck a balance in their service that is "good enough" to milk their customers as much as possible.

This is why competition and local model development are more important than ever. Godspeed to us all.


r/ClaudeCode • • 50m ago

Help/Question So which frontier lab or open models can we trust for ML work, if any? If none, what now?

3 Upvotes

I have been wondering why my models have been so hard to build compared to literally every other project. I considered manipulation, but no one was complaining that I saw. I also thought my small niche model, not even an LLM, wouldn't be a threat to them. Now that it's all but confirmed and looking back, I'm fairly certain this is the case. It gave me just enough to think we were on the right path, but we always came up short. Of course there's noob tax and ML training is difficult, but this felt different than my other development. This is a huge breakdown in trust and very poor optics.

Curious: Has this been an open secret in the open weights community or just suspected but never really a consensus until now? Has anyone talked about filing or filed suit? Does anyone even have proof? I've heard they admit to some safety and distillation processes and there's leaks, but curious if I'm missing where someone's posted irrefutable evidence.

So what now? It seems with the pace of open model development it must be AI assisted, so it must be possible. The question becomes how do we do this work without fear of intentional malfeasance? I'd say open models but did the distillation process instill the bias? Better realignment? How are others and youselves getting successful training results with or without Claude? Here's a doozy of a question: How would we even know if our models are being manipulated besides actually being in that field and following along carefully? I've now also heard reports of other frontier labs doing the same. I wonder if there's consensus on which models are not sabatoging?


r/ClaudeCode • • 1h 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 • • 1h 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 • • 1h 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 • • 1h 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 • • 1h ago

Built with Claude A plugin my team use to manage api and secrets keys.

0 Upvotes

We are small ai native team and we freqeuntly have to use various api keys for analysis, experimentation, prototyping and dev ops works.

There are no good solution built nativly for claude code for this. Hence we built this simple to use but powerfull plugin for secret and key management for claude code.

Secrets are stored on local keychain and it never goes to AI chat or any plain file.


r/ClaudeCode • • 2h ago

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

1 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 • • 2h ago

Rant Not again: So on the trial's own fail lines this run would pass, at the cost of two lines you would not have needed to see. It sits outside the trial, which still does not pass.

0 Upvotes

That's Fable 5.2's conclusion on the result of a trial that it designed and delegated to Opus to run. When I asked Fable to explain what it meant, it wrote me four more paragraphs. I asked Neon and Astra to decipher. Neon's thinking status literally said "analyzing cryptic message".

Neon said:

The answer is technically scrupulous, syntactically dense, and structured backward for a quick read.

Direct and plain: "This run meets the trial's passing criteria, though it produces two unnecessary extra lines. However, because this run took place outside the official trial, the trial itself still fails."

Astra said:

I'd call it technically careful but hard to follow. “Fail lines” is jargon, “it” refers to the run without naming it, and the writer says “this run would pass” before telling you the run didn’t count. The answer you wanted comes in the last five words: “which still does not pass.”

What happened was that the original run in the trial failed, because Fable made an error in the instructions that caused it to fail. Then it was rerun with correct instructions and passed. However, since the trial only intended one run, the rerun does not count and the trial still counts as a fail.

Fable's new recommendation is to perform a new trial (the exact same trial, with correct instructions) and do the run twice (just to be sure the original run's failure was in fact due to the error in its instructions and not a fluke)...

I think the Fable 5.2 I'm working with tonight is really just two Opus 5s in a trench coat. :p


r/ClaudeCode • • 2h 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 • • 2h ago

Help/Question Ok so Claude is sabotaging AI work. What model to switch to instead?

50 Upvotes

Yeah it happened to me too. Now I gotta fix this mess. Looking at Neon and Astra, any recs?


r/ClaudeCode • • 2h 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 • • 2h ago

Discussion My feeds are loaded with posts about Claude intentionally sabotaging machine learning models and features it disagrees with. I’m skeptical - does anyone know if it’s real?

35 Upvotes

I’m really skeptical Claude intentionally sabotages anything. It’s like those endless “they nerfed opus X.x” posts that are always bullshit. But I’m seeing a lot of this. Has anyone done a deep dive and checked the receipts? Does anyone know if it’s real?


r/ClaudeCode • • 3h ago

Tips & Workflows Claude Code now tells you when a resumed chat is missing earlier messages in VS Code and Desktop

1 Upvotes

A small change in the Nov 25 release that matters if you keep one Claude Code chat open for days. In 2.1.332, VS Code and Desktop’s Code tab show a notice when you resume a session and its earlier messages couldn’t load. The terminal already had that notice. There’s a separate warning when part of a running session couldn’t be saved, with a suggestion to use /compact.

If I saw the resume warning halfway through a refactor, I’d give Claude the last decision and the last test that actually ran before asking it to continue. For example, “Keep the old API response for existing clients. The new parser test passes. We haven’t run the client tests yet.” That’s the kind of thing you can lose even though the diff is still sitting there.

Claude Code 2.1.332 release notes


r/ClaudeCode • • 3h ago

Built with Claude My first Claude Code plugin: it turns free docs and videos into a course you learn by building. I need people to try it and tell me what breaks.

Thumbnail
github.com
1 Upvotes

This is the first plugin I have ever made, so please be honest with me.

The problem I had: I did not want to sit through long videos and long-form content. That kind of course breaks my motivation, and I stop before I finish it.

What I made: you type /deepend:add and a topic (for example langchain). It looks for free sources (official docs, free tutorials, free YouTube series), skips paid courses, and plans short modules. Each module is a short reading page and one small build, and a tutor in Claude Code gives hints before answers and checks your work.

I think it may be genuinely useful, but I do not know yet. Nobody except me has used it on a real course. It is only tested on a Mac, and preparing a course uses part of your Claude plan (it shows the cost and asks first).

What I need help with:

- Does the install work on your machine?

- Is the first module clear, or confusing?

- Would you use something like this at all?

It is free and open source (MIT): https://github.com/rakshanNagesh19205/deepend

If something breaks, /deepend:feedback makes a short report (no course text) and only opens a GitHub issue if you say yes. Thank you for any feedback, good or bad.


r/ClaudeCode • • 3h ago

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

2 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 • • 4h ago

Humor I might be able to get it to stop right at 99-100% this week

Post image
4 Upvotes

r/ClaudeCode • • 4h ago

Help/Question anyone tryna send me a free week referral please!

0 Upvotes

Please dm it to me or something similar I am looking to try it out and maybe buy it if I enjoy it


r/ClaudeCode • • 4h ago

Help/Question Is there a monthly limit? Also why is it resuming in an hour?

Post image
4 Upvotes

is this a bug or somthing?


r/ClaudeCode • • 4h ago

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

1 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 • • 5h ago

Discussion Switched to Claude code but missing features from cursor

0 Upvotes

I used to be a subscriber to cursor, but switched to Claude code and I’ve been enjoying it so far. But i do miss cursor’s plan mode and review changes feature. Are there any editors, IDEs, or extensions that give the same functionality? I currently just review the git diffs which are fine, but I did like how cursor did it. Anyway I can login using ACP and have the same plan mode and review changes feature from cursor?


r/ClaudeCode • • 6h ago

Tips & Workflows someone just shared a 2 pager on top ways coding agents leak secrets

Post image
42 Upvotes

Reference: Twitter
there are silent ways attackers are trying to steal credentials through AI agents


r/ClaudeCode • • 6h ago

Built with Claude I built a self-hosted EDR/XDR + SIEM with Claude Code (Sonnet, Opus, Fable and Mythos). It's open source and has a live demo

Thumbnail
gallery
8 Upvotes

I'm a homelabber who works in cybersecurity, and commercial EDR vendors wouldn't sell me a handful of seats or were just too expensive. So I started building my own with Claude Code. HomeXDR is now at v0.1.2 and Apache-2.0.

Repo: https://github.com/Netdoodle/HomeXDR

Live demo available here (made-up data, runs entirely in your browser): https://homexdr.com/

What it is

A self-hosted EDR/XDR with a built-in SIEM. The server is Go with ClickHouse or SQLite, the console is React, and there are agents for Windows, Linux and macOS with no kernel driver. It does Sigma detections, process trees and storyline graphs, a piped search language (index=firewall action=block | stats count by src | sort -count) that compiles to one SQL query, response actions (isolate a host, kill a process tree, quarantine files), vulnerability matching, and firewall syslog from OPNsense, pfSense, FortiGate, Palo Alto, Sophos, MikroTik and Ubiquiti. Alerts can be pushed to you through ntfy, Discord, email or a webhook, with a daily digest. It also has an optional AI analyst that investigates alerts with read-only tools and can run as an MCP server. A mobile app for push notifications and management is planned.

How Claude built it

Four models did the work, each on the part it suited:

  • Sonnet for the routine work: well-specified features, tests, refactors.
  • Opus for the tricky parts: the agents, concurrency, the updater and rollback logic, security fixes.
  • Fable for design decisions and for reviewing things before they shipped.
  • Mythos for security analysis. It also wrote detection rules that regular Claude refused to create.

In Claude Code I ran this as an orchestrator that routes each task to the cheapest model that can handle it, and only escalates when a cheaper one fails. That kept the bill sane over a project this size.

Right now the repo has about 125k lines of Go, 40k lines of TypeScript, 179 Go test files and 207 commits. I wrote none of the code by hand, but I read the diffs, ran everything on my own network, and made the calls on what to build and what to cut.

What worked

  • Giving each agent a narrow, checkable brief ("change this, run these tests") beat open-ended prompts every time.
  • Keeping a roadmap file and a set of project notes in the repo meant new sessions picked up where the last one stopped.
  • Having a stronger model review work from a cheaper one caught real bugs, including security ones.
  • It's good at the boring parts of security tooling that take forever by hand: Sigma rule compilation, syslog decoders for a pile of vendors, a query language with a parser and a SQL compiler.

What didn't

  • The new firewall decoders were written from vendor docs and tested against sample lines, not real devices. Claude can't tell you a log format is wrong if neither of you has seen one from a real box.
  • Models will cheerfully write a plausible claim that isn't true. I had to check every feature claim in the docs against the code, including in this post.
  • Guardrails need to be mechanical. I added git hooks that block commits containing anything from my real network (hostnames, subnets, IPs), because "please don't" in a prompt isn't enough.

Expect to tune it

Like any full-service XDR/SIEM, it needs manual tuning. Depending on which detections you enable, you'll get a lot of alerts at first, and you'll spend time suppressing the noisy ones and adjusting rules for your own environment. Alerts are grouped by rule, host and process, with one-click suppression, which helps, but it won't be quiet out of the box.

Where it stands

It's beta. I run it on my own network, but few other networks have seen it, so don't depend on it anywhere you need an SLA.

If you've built something this size with Claude Code, I'd like to hear how you split the work across models. And if you run a home lab or SOC, tell me what's missing.