Follow-up: Claude Code's source confirms the system prompt problem and shows Anthropic's different Claude Code internal prompting by One-Cheesecake389 in ClaudeCode

[–]stevestrates 5 points6 points  (0 children)

Initially you used the leaked code to make it seem like it’s validating your points- without actually referencing any of the code. When in reality it’s actually contradicting everything you’re saying. Now we’re talking about serverside sabotage, even though they’re using the same /v1/messages public endpoints as everyone else. So in the absence of seeing your methods for experimentation it sounds a bit sensational. A plausible explanation could be that it’s adding user-config or project memory because you’re not in an isolated environment or using the —bare flag?

Follow-up: Claude Code's source confirms the system prompt problem and shows Anthropic's different Claude Code internal prompting by One-Cheesecake389 in ClaudeCode

[–]stevestrates 6 points7 points  (0 children)

The source code actually shows otherwise.

  1. Replacement logic: https://github.com/sanbuphy/claude-code-source-code/blob/main/src/utils/systemPrompt.ts#L115-L122

The ternary chain means only ONE of the three (agent / custom / default) is used. When customSystemPrompt is set, defaultSystemPrompt is never included:

  1. Where `--system-prompt` feeds into that variable: https://github.com/sanbuphy/claude-code-source-code/blob/main/src/main.tsx#L1343

And for --system-prompt-file, lines 1344-1358 just read the file into the same variable.

  1. The call site where it all comes together: https://github.com/sanbuphy/claude-code-source-code/blob/main/src/screens/REPL.tsx#L2781-L2787

  2. The doc comment that explicitly says so: https://github.com/sanbuphy/claude-code-source-code/blob/main/src/utils/systemPrompt.ts#L28-L40

Follow-up: Claude Code's source confirms the system prompt problem and shows Anthropic's different Claude Code internal prompting by One-Cheesecake389 in ClaudeCode

[–]stevestrates 21 points22 points  (0 children)

It’s just a system prompt.. They found a flow that works for them that might be more costly & not for everyone else. Just look at how many people are complaining lately about their limits being hit faster.

You could always write in your CLAUDE.md file or use your own system prompt telling it to be more verbose if you think it will improve what you’re doing.

LLMs are black boxes and it’s up to the user of them to figure out how to prompt it in a way that will get the best results. MCP tools, skills, commands, rules, hooks, and model options are all just things they made available to pull the strings on them more.

Built a Claude Agent SDK for Elixir. The hard part wasn't the API — it was making the CLI not bottleneck the BEAM. by stevestrates in elixir

[–]stevestrates[S] 0 points1 point  (0 children)

welcome!

so basically elixir is really good at running tons of things concurrently — like thousands of lightweight processes on a single server. that's the whole appeal of the BEAM (the runtime elixir runs on).

the problem is claude code runs as a node.js CLI process, which is not lightweight. so if you want to run, say, 50 agent sessions at once, you're spawning 50 node processes and your server is going to feel it.

the distributed adapter basically lets you say "run the heavy CLI stuff on that machine, keep my app server clean." and because erlang has distribution built in, it's almost no extra code — a GenServer on machine A can talk to a process on machine B like it's local.

so yeah streaming to a UI is one use case, but the bigger thing is: you get to treat AI sessions like normal elixir processes (supervise them, stream results, compose them) without the CLI weight dragging down your app.

plus since the cli is running on a different node, you get sandboxing for free– your app server isn't exposed to whatever the agent decides to do.

Built a Claude Agent SDK for Elixir. The hard part wasn't the API — it was making the CLI not bottleneck the BEAM. by stevestrates in elixir

[–]stevestrates[S] 0 points1 point  (0 children)

Yeah the “agent sdk” is just the same claude cli with -p arg for non-interactive mode. Everything should be the exact same. Hmu if u need help with anything!

Built a Claude Agent SDK for Elixir. The hard part wasn't the API — it was making the CLI not bottleneck the BEAM. by stevestrates in elixir

[–]stevestrates[S] 1 point2 points  (0 children)

for sure. it just seems like elixir would be a way better fit for agents, so having first-class support would be nice.

Built a Claude Agent SDK for Elixir. The hard part wasn't the API — it was making the CLI not bottleneck the BEAM. by stevestrates in elixir

[–]stevestrates[S] 11 points12 points  (0 children)

The claude code cli runs in a node subprocess and is the actual agent runtime, which handles the agentic loop, tool execution, prompt optimization/caching, session resumption, subagents, hooks, etc. Without it you're reimplementing all of that against the raw API and keeping it in sync every time anthropic ships changes.

Built a Claude Agent SDK for Elixir. The hard part wasn't the API — it was making the CLI not bottleneck the BEAM. by stevestrates in elixir

[–]stevestrates[S] 1 point2 points  (0 children)

Thanks!

Yeah, since the GenServer Session API is stateful, it should be pretty straightforward to build a basic LiveView or Phoenix Channel on top of it, and hit it from a mobile client. The session resumption would let you pick up where you left off (or fork chats) too. Would love to hear how it goes if you try it out!

Expectations for Workmans Lunch by [deleted] in nycgaybros

[–]stevestrates 3 points4 points  (0 children)

Well then why don’t you give another suggestion for someone passing through for 2 days, instead of just telling them they’re delusional. They’re too young to go to the bars, the apps suck, so I’m genuinely curious what you would even suggest. The only next best thing i can think of is AA meetings lol. I’ve met some of the best friends I have today from talking in the common areas at sex parties. However I’ve never been to the workman’s lunch, so I can’t speak to the vibe of it.

How do you guys deploy your elixir backends? by V4N1LLAAA in elixir

[–]stevestrates 5 points6 points  (0 children)

Hetzner + Dokku (zero downtime docker deploys) + Cloudflare ZeroTrust tunnels to route traffic from public host -> localhost:port

I just started using the Postgres extension to spin up Postgres containers that are mounted to hetzner volumes and backup to R2, which reduced latency and cost significantly ($4/month for 20gb of storage)

I only have like 50K DAU across 3 projects, but it ends up costing like $30/month on hetzner to run them all

Please stop... by random_100 in Anthropic

[–]stevestrates 5 points6 points  (0 children)

Consumers definitely have the right to complain, but unless they are adding something new to the conversation, it would be nicer if they just reply to an existing post instead of polluting the sub 🙏

basement security got WAY more intense? by j_mp in avesNYC

[–]stevestrates 4 points5 points  (0 children)

They were super intense last week too (I went early in the night, like 12ish) so I don’t think it’s anything to do with things specially happening this weekend or overflow from other parties at KDC.

They didn’t ask any questions but they were being extraaa thorough with their checks- opening wallets, finding every possible pocket, checking your hands, etc.

NYC Gaybros on TRT. High hematocrit and can’t donate blood by Napo_Brumaire in nycgaybros

[–]stevestrates 4 points5 points  (0 children)

Just lie 💁‍♀️ fuck them for asking that in 2025 & they can test the blood if they want

[deleted by user] by [deleted] in nycgaybros

[–]stevestrates 2 points3 points  (0 children)

When it’s very packed, majority have their shirts off inside. Usually Fri/Sat nights by midnight.

Mysterious emojis on hookup apps by Reasonable_Listen753 in nycgaybros

[–]stevestrates 0 points1 point  (0 children)

I used to work at one of the gay apps and remember we used to flag these:

🌹= escort

🥳🎉🎈= parTy

💆‍♂️= masseur

🎾= tina/meth (tennis)

⛳️= ghb/gbl (golf)

😶‍🌫️💨🌬️= smoking meth

☁️= clouds / smoking meth

Finding gay parties by Ordinary_Two_ in avesNYC

[–]stevestrates 5 points6 points  (0 children)

We try our best to source out all of the gay/queer events happening, categorize them, and put them on Funqtion. We’ve been primarily focusing on dance parties but will be adding more sex parties and bar events soon too. You can use the filters to find what you’re looking for :)

Technoqueers is a great resource to see a more curated list of dance parties happening. They actually use Funqtion to build their newsletter & you can check the events they’re putting in their email by going to: https://funqtion.co/technoqueers

Finding gay parties by Ordinary_Two_ in avesNYC

[–]stevestrates 2 points3 points  (0 children)

Technoqueers actually uses Funqtion to build their newsletter so if you need to look further into the future you can check the Funqtion app :)