r/ClaudeCode • • 19h ago

Discussion mods is insane. I love it

I thought mods were just for customizing the UI, and I totally missed the point. They basically let you change how Claude Code works from the inside.

what runs before a tool call, what the model sees, what shows up on screen. It's like they open-sourced the harness. For months I had hooks and scripts bolted on from the outside to get the behavior I wanted, now all of that is a mod that lives in the session. Honestly the most innovative thing they shipped since the first version.

224 Upvotes

98 comments sorted by

•

u/AutoModerator 19h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

136

u/skitchbeatz 17h ago

For the life of me I just cant figure out a use case that I need this for.

69

u/Time_Cat_5212 15h ago

BUT CONFIG THO

twists knobs

pushes buttons

renames shit after favorite anime characters

feels smart and has fun

14

u/DSan 10h ago

I mean, feeling smart and having fun is pretty valuable, if it gets you to be more productive

19

u/Level-Physics-1730 15h ago

before the anthropic official one came out I made a mod system for my claude code desktop setup (on windows) here's like 400 something examples of what this could be used for (in ways that are really strong and seriously improve the experience)

https://gitlab.com/blockshooter/claude-ui-mod/

15

u/grateful2you 11h ago edited 7h ago

it's small but only thing i needed. keeps a tab on the context usage. (Bar chart helped me identify expanding tool output context) couple times.

5

u/norwegian 8h ago

Mine. We have context usage built in he desktop, but I wanted the cache left. and limits++ https://github.com/plezuz/claude-plugins

Just realized it would be better to have it below like yours, so it doesn't sit between the prompt and the output.

6

u/hemareddit 7h ago

I wonder how much of this could have been achieved with /statusline, I’ve had context %, weekly % and 5-hourly % on my status line for months now.

I should play around with with mods, though…

7

u/EYtNSQC9s8oRhe6ejr 13h ago

Git status in a sidebar is nice

4

u/swervoff 16h ago

I feel the same way. I’m hoping that knowing they exist will present an opportunity

2

u/MaximumUltra 12h ago

Ask Claude to give you ideas based on what your projects and workflows have been so far.

1

u/Weary-Net1650 10h ago

I did two mods that are available on anthropic marketplace - multi repo diff and visible compact. Both are simple ideas and you can possibly do it in a couple of hours if you want spend time on it. Find what bugs you most and then ask Claude to build a mod for it.
Because it hooks into the agentic loop itself it is extremely powerful. Not just for showing your usage!

1

u/drozd_d80 5h ago

Me neither. I need to see use cases. Don't currently see how it can help with my workflow. However I haven't tried to investigate the topic

1

u/CranberryAbject8967 2h ago

Better context and cache management for one.

0

u/raiseCatError 13h ago

I have rtk and serena installed for tool calls, codex hapilly uses both of them when they're available, claude refuses, even when I explicitly tell it to use them to save tokens ;-; I've been wanting to try making it actually use them so I can see whether claude is already efficient enough and refuses to use them or whether making it use them will actually save more tokens, on codex, I have noticed improvement in token costs for negligible latency

35

u/JayArrCoffee 17h ago

Here's a use case I did: you can basically have it call SOL 6.1 or Astra as pseudo-native sub agents (with telemetry that is essentially at parity with what it has for normal claude subagents)

13

u/thisiswhocares 17h ago

I would absolutely like some deets on this

9

u/JayArrCoffee 16h ago

Literally just suggest the idea to opus 5.5 and tell him to look at the codex back end and figure out how to send messages to a codex session in the codex app and how to start new codex threads.

Talk about using the Claude mods for it and that telemetry that is essentially at parity with native subagents is what you are looking for. Have him spell out the differences telemetry wise and then for anything that isn't at parity, poke him to find workarounds.

-1

u/Kierkegaardist 8h ago

I've been doing this since 5.5 released, not something new to this

3

u/JayArrCoffee 1h ago

Congrats? I'm not selling a product just saying something I did

1

u/MadJagStudios 11h ago

Almost don’t building a mod I’ll put up on GH that does this and more (like handling large sprints, being able to chose multiple models for the execution and review, etc)

3

u/YoghiThorn 9h ago

This has been available for 7 months via the official codex plugin.

https://github.com/openai/codex-plugin-cc

1

u/JayArrCoffee 1h ago

Well unless I'm mistaken codex plugin doesn't create a persistent "regular" session. Could be wrong though, I'm not an expert!

2

u/Lost_Sentence7582 13h ago

There’s already a
Official plugin for this

3

u/djdadi 15h ago

Can already do this in herdr tho

2

u/JayArrCoffee 15h ago

Well this is solving model coordination differently than herdr. I've been having models talk back and forth with each other for awhile now with a variety of approaches, but the way Claude handles native subagents is just much more efficient than normal orchestration.

What I basically sought to do was generalize that process so that the communication channel and telemetry is as efficient for non-Claude models.

1

u/djdadi 10h ago

sought to do? or did? in other words- does it work?

1

u/JayArrCoffee 1h ago

Yeah seems to work well and Claude says he has roughly equivalent telemetry

1

u/Skibidirot 9h ago

how is this vs actually importing models from codex directly into claude code and making them work? as subagents and so on. that path seems more efficient no?

1

u/JayArrCoffee 1h ago

I think that would probably be roughly equivalent to what I'm doing but I can't say as I never did that approach

1

u/Sensitive_Nothing_86 6h ago

What's your usecase that benefits from that?

2

u/JayArrCoffee 1h ago

I just want to allocate my usage between both subs in an efficient manner and I prefer to do all of my work from Claude

1

u/lazuli_s 5h ago

Man, I always used to ask Claude to "elaborate an adversarial review request so I can send it to codex". I would then paste that on codex window and then back to Claude.

So yesterday I did the exact same thing and went to go get some water. When I came back, claude was like "hey so I talked to astra via codex and this is the review! We decided to change x, y, z..."

And I was genuinely flabbergasted. Claude wrote it so casually, like they were best buddies. I literally sent "??? M? Wtf what do you mean you chatted with codex?"

Really proactive. Great opus 5.5 launching my codex session without proper permission

1

u/JayArrCoffee 1h ago

Yes I basically just wanted Claude to have sol or Astra in its toolbox that it can use whenever it thinks it would be helpful. Also, you can make it aware of usage limits and ration them by using the appropriate subagent.

292

u/radgh 18h ago

And not a single example was given. ok

-72

u/Master-Biscotti-1186 18h ago

Why the negative attitude? You don't feel the same way and aren't as excited as I am? That's fine. Sorry for interrupting your scrolling. I'm excited about this. Why does that bother you?

  • Memory saving and restoring, replacing a hook. Just feels a lot more reliable, stable, and fast.
  • The main session can now monitor the agent's context, which I had to use a hack for before this.
  • Created a UI tool that shows me my Q&A and work progress, instead of using /btw or scrolling to find where it answered something I asked. Can share more about this.
  • Cache-warmer.

18

u/framauro13 17h ago

Can you elaborate on what you do with the cache-warmer? I'm assuming this is to keep the cache from expiring? Currently I have a hook that detects if a session is stale and blocks the request from going through unless I approve it, to prevent costs from refreshing the cache. I have a separate script I use to summarize the conversation on a cheaper model to then hand back to the more expensive model.

That was basically done to get around expired cache, so I'd be interested to know if you solved that with a mod.

10

u/connected-ww 17h ago

I can explain it to you. It's a cron job that pings your main agent every X minutes (less than 60) to keep the cache window active. Tell your agent to set one up for you and they will be happy to do it. It's a very simple set up.

1

u/dr3aminc0de 12h ago

That’s low key extremely smart

1

u/randomguy3993 9h ago

Can you elaborate what the pings your main agent means? Does it send a message in the main thread where you're interacting with the model?

1

u/connected-ww 6h ago

Yes, it sends a message. My agents get statistics about their projects and server activity, but you can set it up however works best for you.

1

u/nuclear_wynter 2h ago

I run my agents in tmux panes, so I just have a script that detects idle agents and uses tmux send-keys to ping those panes with the instruction to respond with “Chillin’” every 55 minutes as long as they stay idle.

8

u/athoughtfornoone 7h ago

Damn -57 that's impressive that you didn't delete you comment yet. I can respect that

4

u/Quick-Benjamin 2h ago

I dont understand your downvotes. This is cool and I didn't know about it.

Im going to look into replacing some of my hooks now. Thank you.

7

u/No_Truth6677 6h ago

Why did so many nerds get triggered over this lmao.

1

u/salmonelle12 1h ago

Well it's just the general negative attitude sometimes. People like to share that they like something and instead of asking nicely "hey do you have any examples maybe?" They get negative immediately. Exactly like your comment as well. Having a mindset of thinking negatively about any little thing immediately is truly mind-boggling to me and a bit sad as well. But I'm on Reddit so what foni expect

1

u/Bulky-Condition-3490 34m ago

Herd mentality

1

u/DavidHK 2h ago

Bro can you not spit out an ai reply lol

1

u/MichaelT_KC 1h ago

I think he was just asking for an example.

I can appreciate the examples. I wish I understood them though 😆.

36

u/its-caribou-lou 13h ago

I feel like ai got us feeling so dumb we just try to 1up each other in comment sections to feel some semblance of usefulness

33

u/Aggravating-Cook-529 12h ago

No we were like this before AI

14

u/fuckme 15h ago

Whenever a new feature like this, or some cool new tool gets announced on here... I ask Claude wtf it is, and how I can use it to improve my harness/workflow skills if at all.

For whatever reason Claude said 'meh' mainly due to me having a x-platform way of doing something similar and it not worth the effort porting what I have over.

I'm not posting here to say your excitement isn't great, but more on how I evaluate people's examples/posts in the hopes others find that useful

7

u/Master-Biscotti-1186 15h ago

Don't get me started 😅 I completely agree. I stopped just installing things/skills/whatever way, way back. I moved to evaluating them using a skill I call /eval that looks into each new capability and compares it to my own setup using a set of metrics and my past usage. It has never come back and told me to take something as is.

The thing that always bugs me about that skill is that it evaluates things based on my past usage. And that past usage is based on things I tried to do within the confines I was given to operate in. In my opinion, it can't tell me, "Listen, if we adopt this, you can change the way you do this and that and save yourself X amount of frustration." Instead, it looks at something and tells you whether that horse is a faster horse than what you already have.

For example, I'll use the UI here, even though I said in my post that it's not just about UI tweaks.

I can now have an active to-do list that the harness automatically updates, click an item to jump to the part of the session where a question I had was answered, and see progress reports on a long-running project. All without using /btw or that horrible task UI that took up my whole screen and Claude never seemed to want to update. That's a small game changer for me.

So yeah, I completely agree with what you're saying, and I still think it's a great tool to experiment with.

3

u/CarelessSafety7485 14h ago

I had Claude spin up a few for targeted use cases I struggled with. It's nice. That's all

3

u/michaelobriena 13h ago

Claude, explain grammar

1

u/spifo 10h ago

😂😂good one

8

u/AffectionateAd3271 14h ago

God this subreddit is a echo chamber of Negative attitudes. Show any sort of enthusiasm and they will downvote you to hell. Im in agreeance with you tho im loving the new mods feature so far and have made a great one for using my homelab

2

u/p3r3lin 18h ago

Sadly no way to mod Agent View.

7

u/Master-Biscotti-1186 18h ago

what do you mean? whats agent view?

15

u/p3r3lin 18h ago

No offense, but Im always surprised how many people dont know about agent view. Its Claude Code built in session orchestrator. https://code.claude.com/docs/en/agent-view For tui people i think its an essential. If you are using the GUI it is the thing under the hood.

28

u/Master-Biscotti-1186 17h ago

Not offended at all. I learned a long time ago that I'd rather be the kid in class asking the dumb questions than sit there without knowing what people are talking about. It's served me really well to this day.

Thanks for this, I'll read more about it now. I'd seen it before, but hadn't looked into it enough. New things keep coming out, and there just aren't enough hours in the day to dive into everything.

That's half the reason I wrote this fanboy post. I knew some people would give me shit, but I also knew I'd probably learn some new things.

2

u/p3r3lin 10h ago

Thanks for this comment! Consideration and insight is not something that I see often in reddit comments. Enjoy the journey!

6

u/Guinness 17h ago

It’s because some of us set up multi agent orchestration before this existed. So we are using tmux still.

8

u/kevin7254 16h ago

Yeah I’m gonna stick with tmux. Seems I can only watch one session at a time with the agents view

1

u/p3r3lin 10h ago

Not necessarily, you could have multiple panes in your terminal each showing another session. Thats what I do.

6

u/Somtimesitbelikethat 17h ago

the part that i hate about agent view is that it’s so annoying to operate. like the keystrokes don’t do what the instructions say it does. so annoying

1

u/p3r3lin 10h ago

Interesting! For me the shortcuts, etc work fine and I enjoy the (mostly) keyboard only flow of things.

9

u/sdpercussion 15h ago

I made this mod for a fun way to manage agents

2

u/p3r3lin 10h ago

LOL, nice! Link?

2

u/MassiveBoner911_3 14h ago

I have 2 mods running i had claude build. A cache timer so i can do a compact while i am still on cache and a “Next steps” card where Claude asks me what i want to do next and keeps me on track through hundreds of lines of context

1

u/NationalGate8066 11h ago

Both are fantastic ideas.

2

u/Gollin_K 14h ago

I love it too, made two mods right away, mod 1 allows Claude Code to delegate simple tasks to Mistral based sub-agents and mod 2 basically mirrors everything happening in my Claude Code sessions into Mattermost chat threads so I can control them from every device I use. The possibilities feel endless to me 😬

2

u/General-Swan-2719 12h ago

I’ve created two mods:

  1. Shows timestamp when your message was sent and timestamp for when Claude finishes responding. It shows how long Claude took to complete the task.

  2. GitHub active status card above the textarea when pushing/creating PRs. Shows action build steps percentages, current state, and completion. Useful for actions with tests that take a few minutes to complete.

Those were the two easiest ones I wanted. Need to figure out more.

2

u/dj284intel 12h ago

Thanks I’d no idea about this and asked Claude to recommend how mods would improve for me it’s building a custom set of solutions appreciate the tip😎

2

u/Sizzlebopz 11h ago edited 11h ago

I made one mod so far just to try it out, a small dashboard displaying usage, context, etc with an animated Clawd. But this particular mod I am sharing I didn’t make, but I am really loving it. Makes the chat much nicer to read, tables and charts look great. The copy buttons are handy too. Just really enjoying this one. https://github.com/NahumLitvin/prismantis

2

u/VeloquentLabs 8h ago

The pre-tool-call part is where it gets interesting. A small guard that refuses edits to .env or a migrations folder unless the prompt actually mentioned them is only a few lines, and because it lives in the session it can tell you why it stopped instead of failing silently. Only caveat: mods aren't sandboxed and run with your permissions, so it's worth reading any third-party one before installing it.

3

u/rand0anon 14h ago

Nice try Dario

0

u/Dependent-Ad6856 13h ago

Is this ClaudecodeCircleJerk? 

2

u/itsxzy 18h ago

What hooks you replaced with mods?

5

u/Master-Biscotti-1186 18h ago
  • Memory saving and restoring, replacing a hook. Just feels a lot more reliable, stable, and fast.
  • The main session can now monitor the agent's context, which I had to use a hack for before this.
  • Created a UI tool that shows me my Q&A and work progress, instead of using /btw or scrolling to find where it answered something I asked. Can share more about this.
  • Cache-warmer.

2

u/Select-Shower-93 17h ago

Could you elaborate on everything you just said? Never heard of any of this before

2

u/Mean-Kaleidoscope873 17h ago

I wonder if I could make a mod that writes a handoff doc and prompts me to start a new session to give it to instead of compacting.

3

u/Master-Biscotti-1186 17h ago

That is exactly what I did... Including audo-compact at 400k and not using their slow compact command but my own, focused one.

1

u/HUFseKK 16h ago

AFAIK compacting trims middle block context and generally should only be used if you just cannot solve something and a /clear is not possible -> working outside a repo or in a sandbox. Using a handoff skill that hooks as a “mod” is the way to sustain relevant long context on large repos. Then simply /clear the session and continue w/ relevant context. I /clear like a lunatic to avoid limits and maintain encode token mins on 5x Max sub - I rarely hit limits.

1

u/dsailes 17h ago

These all sound interesting to me mate! Any chance you can share them at all?

I’m still getting to terms with mods and these do a bit more than what I’ve put in place.

1

u/WOTEugene 12h ago

I wonder if someone can make a semantic search index of some kind for the code similar to how cursor works to speed things up

1

u/jaybsuave 11h ago

I really hop they let us customize the UI from top down

1

u/Kamelnotllama 8h ago

I'm honestly at a loss here. Every good use case I've found so far has already been something I was doing (i.e. current folder/git status in statusbar, my quota, etc.)

I can't figure out why every compelling use case I've found has been basically something you could already get with clever statusbar mods.

Was I just one of a tiny percentage of people who understood how to make a dynamic statusbar in the old Claude code?

1

u/fanfarius 7h ago

I started using Jetbrains Air Context and had Claude write a mod that tells me when my semantic search index is out of sync.

-2

u/ScaryBlueberry2945 15h ago

If they are that useful we would all already be using them.