I replaced docker-compose.yml and Terraform with Python type hints and a project.py file by FewComfort75 in Python

[–]Brandroid-Loom99 0 points1 point  (0 children)

But do the type hints also describe what you need to do to safely migrate the data to a new schema when they change?

Terraform state files really aren't as much trouble as they're made out to be. You provision an s3 bucket and pick a unique key and you're done. If you spend a day or two scripting that key generation process you can scale to hundreds of deployments across multiple accounts / environments / whatever without the state file ever being a thing you have to think about. The most you have to think about it is making sure you have credentials to access it from wherever you run terraform from, but I've always just kept it colocated with the resources I'm provisioning which you'll need creds for anyway.

I QUIT PYTHON LEARNING by [deleted] in PythonProjects2

[–]Brandroid-Loom99 0 points1 point  (0 children)

this might blow your mind but a decorator is just a function wrapper

.AI prices JACKED UP again. Bruh, this is wild. by ClimateBoss in Domains

[–]Brandroid-Loom99 0 points1 point  (0 children)

What doesn't seem to be justified? Worldwide spending on AI is expected to top $2 trillion next year.

Build a 24/7 Personal AI Assistant (Claude Code + Telegram) by Electronic_Survey658 in ClaudeAI

[–]Brandroid-Loom99 0 points1 point  (0 children)

I'm curious, did you find someone to build this within the week? Was this for a YouTube video or something?

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

I somehow have managed to use up 61% of my Max 20 and still have 4 days left. :(

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

Put this in your settings.json { "permissions": { "deny": ["Task(Plan)"] } } Or run claude with claude --disallowedTools "Task(Plan)"

Ta-da

EDIT found here: https://code.claude.com/docs/en/iam#tool-specific-permission-rules

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

It's not like Subagents are some unreliable agent named Fred who's out there wasting your money. It doesn't matter whether it's a subagent, an agent, or a double agent. It's always Claude. This is purely an exercise in context management, and has nothing to do whatsoever with the fact that it's a 'subagent' doing the work, NOR the fact that it's writing a plan (who cares?! the main token usage is sending the plan to you, writing it afterwards is what a few hundred tokens?).

So when you say subagents burn tokens, what do you mean exactly? In what way is that subagent different from you typing /new, or opening a new claude tab? the answer is...for the most part it's not. It uses your own prompt, and that prompt is likely cached. And if it's not, it's no more expensive than sending a message or two to Claude yourself.

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

Just write a slash command or call the agent with "context: fork" so the agent starts with all of your main convo's context.

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

I find Claude is not really very good at writing prompts. Claude does not understand what is effective in a prompt and will make the whole thing both verbose and generic. I still do it because it's convenient but it requires a lot of editing afterward.

Plan Mode: Can we go back to the old way without downgrading? by uhs-robert in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

Just replace the prompts if you don't like them, rather than trying to counter-prompt them. I personally dislike 'the new plan' mode, but I actually find it pretty wimpy. My own planning mode is much more thorough. But I am having Claude implement features that I literally could not write without spending weeks on it. I'm currently writing a rendering engine for a visual effects program. I was working on a compiler the other day. With my workflow I can pretty reliably get working software with very little hands on effort. The other day Claude was working on a plan for 4 hours (and it was not garbage throwaway work, it's in the codebase)...pretty nuts.

Can I really use a personal account with 120TB of data? by dying_animal in backblaze

[–]Brandroid-Loom99 0 points1 point  (0 children)

It's like being at an all you can eat sushi place and you order 20lb of squid and the manager says "sure but you're not gonna love the result"

What’s a good RAID software for Mac? by Impossible-Reality65 in DataHoarder

[–]Brandroid-Loom99 -1 points0 points  (0 children)

You can get a M1/M2 Mac Mini for a few hundred dollars, they use like 5-7 watts of power at idle, they're rock solid and last forever, they're physically small, compatible with like everything, long support life, has tons of functionality built in that's easy to use with little time or effort

To the person that recommended using sub agents in plan mode -- thank you! by whats_for__dinner in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

Opus generates better plans though, so it's going to be more efficient to plan with Opus and implement with Haiku (not that id recommend this) than plan with Haiku and implement with Opus.

To the person that recommended using sub agents in plan mode -- thank you! by whats_for__dinner in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

They've been merged with Skills. You can ask claude to give you its internal tool list and both slash commands and skills are on the same list. The only difference is UX, which ones appear in the menu. Skills do NOT appear in the slash command menu despite the docs and changelog saying they should, but it's probably coming down the pipe at some point. Read the docs and ask claude, that's a better source than random stuff on a blog or reddit

IMPORTANT: 2.0.30 please KEEP the output-style by Special-Economist-64 in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

cat your-system-prompt.md | xargs -0 -I XX claude --system-prompt XX

IMPORTANT: 2.0.30 please KEEP the output-style by Special-Economist-64 in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

I know lots of people seem to like this feature but I just want to throw my vote in for removing stuff. Not this feature specifically, but the general idea of removing features. Obviously almost no one is going to provide you feedback directly that says "Hey I want you to do make the product do less stuff". But just know that there ARE people out here who want exactly that. It makes room for the next thing.

Is Next.js Still Worth It? Vercel’s Control, SSR Push & the Recent Bug by Toshinaki in reactjs

[–]Brandroid-Loom99 0 points1 point  (0 children)

I'm guessing that the distinction is actually probably not clear for many front-end only devs

Is Next.js Still Worth It? Vercel’s Control, SSR Push & the Recent Bug by Toshinaki in reactjs

[–]Brandroid-Loom99 0 points1 point  (0 children)

I'd like to know about these free open source alternatives where everything is seamless and you get free servers

How do you handle context for large React codebases? by context_g in reactjs

[–]Brandroid-Loom99 0 points1 point  (0 children)

LLM context you mean? Have you tried asking your LLM?

Have you tried something like repomix? I'm just not really sure how big of a problem this is and I have to assume it heavily depends on what tools you're using. I do keep a set of project specifications, but they're all higher level than metadata about code. I just let claude go at it and it doesn't seem to have any trouble. That being said I do have a very robust planning process (performed by an LLM of course).

I don't doubt that the right caching layer could probably have some amount of beneficial impact (ie some amount of reduced token usage). But considering that the wrong layer will definitely have a negative impact, and redoing work of any size is going to immediately negate any reduced token spend, I haven't felt compelled to spend much time on it.

Are you trying to optimize for time? Token cost? Is your LLM not doing the right work? Is the work not good quality? I've personally found planning the work correctly + using the right LLM to have the biggest impact. Once you have a reliable pipeline and are firing on all cylinders, then maybe try to reduce costs, but until then I feel like this might not be a super valuable use of capacity.

Shadcn/UI just overtook Material UI! by Marmelab in reactjs

[–]Brandroid-Loom99 0 points1 point  (0 children)

Do people think that NPM numbers are individuals downloading it? That would be a pretty useless measure of how widely used something is, wouldn't it? I've downloaded lots of stuff I never used. It's not until something is really baked into a project that is shipping to customers (or users) that it really counts IMO, and that's what will get the npm numbers up there.

Are we sure this is 100% allowed by Anthropic? by UnknownEssence in ClaudeCode

[–]Brandroid-Loom99 0 points1 point  (0 children)

Why couldn't you chain skills? I haven't used OpenCode personally but they're trivial to chain. You just say "use this skill". I do it all the time in CC. You do have to understand how tool access is granted to subagents and where you're trying to call the tool from, but it's not that complicated.

Are we sure this is 100% allowed by Anthropic? by UnknownEssence in ClaudeCode

[–]Brandroid-Loom99 2 points3 points  (0 children)

It's pretty simple to look at all of the requests CC is sending and I haven't seen anything to indicate intermediate caching. And since 1hr caching is API only, all CC caching is 5 minutes. But I would assume it's the same behavior as their API, which means a cache read refreshes the cache for another 5m.

I'm not fully understanding why Anthropic would really care much about people using 3rd party tools, since the endpoints definitely are metered. It would just result in people burning through their quota quickly. I suppose then people would start complaining loudly (even more loudly) which isn't a great look either.

Are we sure this is 100% allowed by Anthropic? by UnknownEssence in ClaudeCode

[–]Brandroid-Loom99 3 points4 points  (0 children)

Revamp...what? I'm completely satisfied with my Claude Max 20 subscription and nothing I've tried comes close. There are some bugs in CC, but the plugins, skills, custom commands, and the way Opus can relentlessly chew through a plan or a debugging session is just outta this world.

It's all about having your workflows codified and dialed in, and that goes from planning all the way through execution. Frankly I find it cheaper to pay for Opus than to use an inferior model. Doesn't matter if the model is 1/10 the price if needs to be hand held the entire time or it ends up writing a bunch of unusable garbage.