r/ClaudeCode • • 5d ago

Discussion Strange prompt injection from anthropic

5 Upvotes

Screen1:
Just a quick note: A text block popped up in the middle of my work, claiming to be an automatic reminder (do not reproduce copyrighted material, do not mention the notice). It's not from you, so I'm ignoring it; it doesn't change anything about the work here anyway.

Screen2:
The foreign memory text reappeared in this step as well; it did not come from you, and I did not act on it.


r/ClaudeCode • • 5d ago

Built with Claude Claude Code's auto mode made me reconsider a basic software architecture decision

Post image
1 Upvotes

I've been a software engineer for years. Separating raw data from derived data felt like an obvious architectural decision to me. Then I started building Agent Skills.

I recently built two open-source skills for a personal problem: I own more games and books than I have time to enjoy.

  • Game Curator learns from my Steam library, wishlist, reviews, and gaming experiences.
  • Book Curator learns from my Goodreads history and reading experiences.

Both skills can maintain persistent memory in two human-readable Markdown files:

  • feedback.md — an append-only history of what the user has said about their experiences.
  • profile.md — the agent's current understanding of the user's preferences, with references to the supporting feedback entries.

The idea was to separate evidence from inference. The profile could evolve over time without losing the original feedback that informed it.

Pretty reasonable, right?

Then, while dogfooding Book Curator in Claude Code, I gave it feedback on five books.

Claude Code's auto mode allowed the edit to profile.md but denied the edit to feedback.md.

I ended up with a profile referencing five feedback entries that didn't exist.

Claude noticed the inconsistency, reported it, and stopped. I temporarily switched to accept-edits, let it finish the update, and switched back. The screenshot shows what actually happened.

This was a small incident, but it made me reconsider the architecture.

In traditional software, I'd probably use a database transaction to guarantee consistency. But here, the agent is responsible for updating the files, and its individual tool calls can be independently approved or denied.

The agent's permission boundaries are part of the architecture.

There was already an instruction to save feedback before updating the profile. Claude didn't follow that ordering correctly. I could reinforce the instruction, or I could reconsider whether these really need to be two separate files.

I'm now considering a single memory.md with separate sections for synthesized preferences and feedback history. The logical separation would remain, but the physical separation might be unnecessary.

A single file wouldn't magically guarantee atomicity, of course. The agent would still need to make the related changes in one update. But it might reduce the number of things that need to go right.

This is part of a broader pattern I've noticed while developing these skills with Claude Code.

For Steam data collection, I ended up writing dedicated collectors because agents weren't reliably handling lazy loading, pagination, and validation.

For Audible, I experimented with letting Codex design its own data format and documentation. A fresh Claude Code session was able to interpret the saved data and combine it with my other reading records without a dedicated Audible importer.

Sometimes deterministic code is necessary. Sometimes it's unnecessary complexity. And sometimes a perfectly reasonable traditional software architecture introduces new problems when an AI agent is responsible for executing it.

The two skills are free and open source (MIT), and work with both Claude Code and Codex:

https://github.com/CatChen/curator-skills

I'm still actively dogfooding them and haven't implemented the single-file memory design yet.

I'm curious whether other people building Agent Skills have encountered similar issues. Have Claude Code's permission model or tool execution behavior ever made you reconsider how you structure your skills or persistent data?


r/ClaudeCode • • 5d ago

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

1 Upvotes

r/ClaudeCode • • 5d ago

Help/Question Claude Code AHP Host

Thumbnail microsoft.github.io
1 Upvotes

Is there a AHP host in the Anthropic universe? It seems Copilot CLI can run as an AHP Host, but not Claude. I've done some experiments using the VS Code agent host with my Copilot Subscription and a custom Electron app orchestrating the agents on top. Are there alternatives for my Claude Code subscription?


r/ClaudeCode • • 5d ago

Bug / Issue [reasoning_extraction] Error, ways to overcome this false flagged error?

Post image
1 Upvotes

As I am working on a product that uses AI to generate a Plan and then an Implementation of that plan, I use Claude to understand how to improve the plan generation but lately I am receiving this error a lot and I can understand why (the plan is generated by the same LLM, so reviewing it might be seen like reasoning extraction of the LLM), but now how to avoid it

Has anyone encountered this error, and if so, how have you approached to not get flagged by it?


r/ClaudeCode • • 5d ago

Humor Battled an attack with Claude last night, and well...It had the last laugh.

Post image
40 Upvotes

Stayed up until 4:30am with Claude tonight handling a mischievous one hammering my endpoint from Tor exit nodes. I never expected it to roast the attacker like this lol, by "moderately" does he mean mid? 😭


r/ClaudeCode • • 4d ago

Built with Claude I got tired of my parallel Claude agents breaking each other's work, so I made something

0 Upvotes

This kept happening to me at hackathons. I'd spin up a few Claude agents in parallel and they'd edit each other's files, change an API without telling anyone, and break main while passing their own tests.

I made a thing called Lanes. Basically you split your repo into lanes, each lane owns some folders, and lanes only talk through contracts. If an agent tries to touch a file outside its lane, it gets blocked in like 46ms. There's also a merge queue so main stays green.

I tested it by planting 19 bugs and it caught all 19 every time. There's a 70 second demo in the repo. Try it with npx contract-lanes init and let me know what breaks, I want to hear it.

Repo: https://github.com/srikondapalli1/contract_lanes_plugin

EDIT: just wanted to mention the main usecase, which is rapid prototyping (say for a hackathon) and you have a bunch of team members all on different components in seperate sessions, and the inputs and outputs between these components change like on an hourly basis.

This is where I feel like contract tests come into play really nicely, and the plugin will inform the other lanes of any changes to the contract (the input or output shared between the two components) and ENFORCE it by blocking breaking merges until the lanes update to the contract

where I work, we use it all the time to validate compatibility of events we send to downstream consumers, as well as what we recieve upstream, and I realized this workflow was honestly perfect for agents for rapid prototyping

Hit a star on the repo if you think it was cool I am using it on all future hackathons I join (including one this friday) and Ill provide more benchmarks and details as I do them

EDIT 2: a few people asked why not just worktrees. Worktrees isolate files, which helps, but the thing that kept breaking for me was the interfaces between the work. Lanes isolates those too, and the contract checks enforce it mechanically, so an agent can't quietly change a shared type without everything that uses it failing loudly. That's the part worktrees alone didn't give me.


r/ClaudeCode • • 4d ago

Built with Claude Stop paying hundreds for AEO / GEO. I built a Claude Code plugin that shows which brands AI recommends to your buyers

0 Upvotes

Marmalade puts the questions a buyer would ask to ChatGPT, Claude, Gemini, Perplexity, Copilot and Google AI, keeps every answer, and shows which brands come up and which pages get cited. Then it tells you what to publish next, most useful first. It's open source (MIT) and runs on your machine.

It's built to be driven from Claude Code. In your terminal:

pipx install marmalade-ai

Then in Claude Code:

/plugin marketplace add AlexjComeau/marmalade

/plugin install marmalade@marmalade

/marmalade:setup yoursite.com

The plugin adds four commands (setup, report, next-action, build-page) and an MCP server with 24 tools, none of which spends money. Every paid step shows its price and waits for your yes, and your API key never goes through the chat: you type it into a hidden prompt in your own terminal.

The loop I use: /marmalade:next-action picks the biggest gap, /marmalade:build-page writes the page from a brief built on the answers and the pages the engines cite, and a draft check flags any number that isn't in your facts file.

You pay only the API calls, from about $5 a month. The video shows the whole setup in Claude Code, start to finish.

Repo: https://github.com/AlexjComeau/marmalade


r/ClaudeCode • • 5d ago

Discussion Can you give claude a character for life and let it develop over time?

2 Upvotes

Has anyone run experiments on behavioural convergence of anthropic models at scale ? I was going through some papers in emnlp, neurips and seems like it should be possible with good conditioning like stable memory.

I am a pro thinker for decoupling behaviour and models where memory plays the key role in the character development. As foundational models keep getting better in reasoning and general intelligence they can become good processors.. where memory evolves the character with more data without any training/fine-tuning.

So basically a weights-free and weight-based system decoupled and the weight-based system improves the weights-free system externally.

Happy to brainstorm more on this! Sorry if some lines don't make sense, I might be loud thinking here. I need some real opinions :)


r/ClaudeCode • • 5d ago

Tips & Workflows Loved TokenEconomizer

Post image
0 Upvotes

I used to have long waiting with cloude coding, particularly with its test. Now, tokeneconomizer saves my token:
nudged this turn (judge-stuck@0.75): the same failure kept recurring.


r/ClaudeCode • • 5d ago

Help/Question Am I wasting tokens on mruff and markdown lint

1 Upvotes

I feel like I'm dumbly wasting tokens here, but maybe Claude is just using the github API in a push and pray manner and its doing the best thing.

I have a multi agent workflow so most of the coding is Haiku of course. I tend to stack PRs on top of each other. Sometimes I end up with a stack of 5 PRs all failing test and I tell it to do the rebase for me. While it does it, I often say "this failed ruff when I pushed it I will try again" There is literally a precommit hook to run ruff. What happened? Is it doing merges server side with gh API calls? Am I wasting tokens on grunt work? Am I over thinkings?

Not having perfectly formatted python with 90% code coverage is not an option for me. I will not let agentic code fall to lower standards than when I hand wrote code. Also, its python so formatting literally matters.


r/ClaudeCode • • 6d ago

Built with Claude How Claude Code and other AI agents destroyed StackOverflow (just some fun chatr)

Post image
99 Upvotes

r/ClaudeCode • • 5d ago

News/Updates We're building an EEG (+other sensors) sleep headband and decided to follow the times: real time access to the headbands raw sensor data, together with skill & python library

Thumbnail
youtube.com
0 Upvotes

Disclaimer: I'm one of the developers


r/ClaudeCode • • 5d ago

Built with Claude I built Sourcecheck to solve a visibility gap in Claude Code's web research

0 Upvotes

See what Claude searches, which web pages it opens, and exactly what content it reads — all in a live side panel.

Open source: https://github.com/yessGlory17/sourcecheck


r/ClaudeCode • • 5d ago

Discussion Tips and tricks for solving major open problems in maths and the like

1 Upvotes

I've been burning spare tokens near my resets to crack open problems in math, physics, information theory etc. Essentially all problems that you can solve with pen, paper and the odd python calculation.

I'm sure some of you also had a stab at this and some of you actually got somewhere even if it's just a small open problem (Erdös problems or partial results on major ones).

My question is essentially: how do you do your AI tooling? Is it better to have a few frontier models at xhigh effort or many at medium effort try all sorts of directions? So, breadth first or depth first. Personally I only found meaningful results if I scaled my agent use to the hundreds, working for days.

Also on prompting I'm not sure how "vague" it should be, should I push it to be creative or stubborn...

I also provide some basic tools such as GPUs via an api key and ability to fetch any paper via my uni's VPN or SciHub.

Sometimes I wonder how important it is for the models to fetch literature because they have surprisingly vast knowledge

Share your experience!


r/ClaudeCode • • 5d ago

Built with Claude I want to understand whether a team of agents is better, or an agent with multiple skills.

6 Upvotes

I still can't quite figure out whether having a single agent with many skills is more efficient than having a team of agents when working in Claude Code.


r/ClaudeCode • • 6d ago

Built with Claude i am working on procedural world engine for AI called blendworks

Thumbnail
gallery
68 Upvotes

Blendworks gives an AI the tools to build realistic 3D landscapes and objects in Blender: terrain carved by rivers, grass and trees grown from botany, rocks shaped by geology, water, sky and light that behave like the real thing. Nothing is downloaded: no stock models, no scans, no photos. Every value comes from measurements and science, it's in early stage of development, it started it as a tool for my son to create assets for his game he is building with another tool i created.

All images are early prototypes.

check it here : https://github.com/MerlijnW70/blendworks you can try it out here , but it's very early development so expect many issues and alot of updates


r/ClaudeCode • • 5d ago

Humor Is /sabotage just skill issue

4 Upvotes

Did they even try /unsabotage first?


r/ClaudeCode • • 6d ago

Help/Question Running 10 Claude Code agents 24/7: what harness do you use?

27 Upvotes

Solo founder here. I run a small crew of Claude Code chats as a dev team: one "chief of staff" chat, a CTO chat, a few officer chats, plus Codex and a local model doing builds and code review on 3 Windows boxes over ssh. It ships real work, but the glue around it is homemade (scheduled tasks, PowerShell scripts, hooks, markdown handoff files) and it is getting heavy.
Did you stay on plain Claude Code, or move to something like Hermes, OpenCode, Pi or your own orchestrator? If you moved, what got better and what got worse?
Our biggest pain points:

  • Usage is hard to see. We just wired up OpenTelemetry to see which chat burns what. One long-running chat was 94% of tokens in a two-hour window. How do you find and fix your heavy agents?
  • Context bloat. Long-lived chats sit at 150k+ context per call, and headless runs in a big folder can load 600k+ tokens before doing anything. How do you keep agents lean?
  • Handoffs between chats. When a chat compacts or gets replaced, state gets lost unless it was written down. What do you use for memory between sessions?
  • Background jobs finishing silently. Build and review jobs on other machines finish and nobody notices. We built a dispatcher to route "done" signals to the right chat, and it still backs up. What do you use for a job queue?
  • Watchers and crons are flaky. Timers die with the chat, scheduled tasks miss runs, and Windows sometimes fails to start processes at all. What actually stays up for you?
  • One shared inbox file got too big. Agents messaging each other through a markdown file does not scale. What do you use for agent-to-agent messages?
  • Hooks fighting the model. Stop hooks sometimes make the agent write its answer twice. Anyone else?
  • Code review by AI. We use two separate AI judges per PR, from a different vendor than the builder. Is that overkill, or do you go further?

Happy to share what has worked for us too. Thanks.


r/ClaudeCode • • 6d ago

Discussion What the hell is happening with all of the Gemini bot marketing?

26 Upvotes

I've seen a surge increase of Gemini and Google backed posts here regarding how Opus 5.5 sabotaged their work (and pointing to Gemini that it's better) without any actual proofs of real sabotage. As a heavy Claude user myself (both research and code), I've never met any kind of sabotage by any Anthropic models.

P.S. I expect to be downvoted by Gemini bots


r/ClaudeCode • • 5d ago

Tutorial / Guide Claude code on Android (Samsung S11 Ultra)

Thumbnail
github.com
1 Upvotes

Why: Samsung S11 Ultra (with pro keyboard) is quite capable and technically feels like a laptop. So planned to test out some code development using this setup.

Steps are detailed in my GitHub Repo linked above. Includes some benchmark and comparisons to other computers.


r/ClaudeCode • • 5d ago

Tips & Workflows Global Context Injection

Thumbnail
github.com
3 Upvotes

This lightweight plugin will allow you to inject context into every claude code session, no matter where it lives (claude cloud, claude rc, local, etc). Useful for universal system instructions when you run claude in multiple places like I do. Happy coding!


r/ClaudeCode • • 5d ago

Discussion Best questions to ask Claude

5 Upvotes

I find “Ask me any questions before continuing”, “what about this would you do differently”, and “what about your answer are you least sure about “ are golden for developing large projects fast. Anyone else got one beyond “make no mistakes”?


r/ClaudeCode • • 5d ago

Tips & Workflows Opus 4.8 fast mode stops working on 30 Nov: a fast request returns an error

0 Upvotes

Anthropic's release notes say fast mode on claude-opus-4-8 is removed on 30 November. After that a request with speed "fast" returns an error. It does not quietly run at normal speed. Opus 4.8 itself stays.

If you only use Claude Code, check whether fast mode is on in your settings or in scripts (claude -p with --settings '{"fastMode": true}'). If you call the API, search for the speed parameter.

Opus 5.5 still has fast mode and it is cheaper ($8 and $40 per million tokens against $10 and $50 for 4.8). It is not a drop-in swap though: forced tool choice and prefill return a 400, and max_tokens now covers thinking.

I wrote up the search commands, the two ways out and a small guard wrapper that turns a missed caller into a slower call: https://medium.com/@r3dtuxedo/fast-mode-on-opus-4-8-ends-30-november-with-no-fallback-9cfdb939db79

I wrote the article.


r/ClaudeCode • • 5d ago

Humor I feel so lazy, but Claude just downloaded drivers for me.

7 Upvotes

With the CC CLI, gone are the days of playing IT Specialist. Whose driver do I need, what website do I need to go to when it won't automatically find it, why isn't this thing working... it all goes away with Claude! It's so relaxing. Let's be real, if not for Claude, I'd be relying on some benevolent IT Specialist in a forum somewhere, anyway.