r/ClaudeCode
•
u/pro-vi
•
Oct 15 '26
•
1
1
Tips & Workflows Turning a crazy idea from 1967 into a Claude Code mod: I now read 83% fewer words from replies
In 1967 Ted Nelson described stretchtext: text that grows where you want more and shrinks back where you don't. It stayed a quaint idea because writing every level of fidelity by hand is just tediously hard. Text is generative now, so Claude can just write it for us for free.
I've always tried to implement this idea with LLM in various ways. Claude Code Mods finally proivded a platform to share.
cc-stretch is a Claude Code plugin. It cuts Claude's reply by 83% so you read much less, yet still have the option to expand / shrink on demand. The plugin also tells Claude which parts you opened, so it doesn't assume you read the rest.
Install in a Claude Code session:
/plugin install cc-stretch --marketplace pro-vi/cc-stretch
/tui fullscreenRepo: https://github.com/pro-vi/cc-stretch (MIT)
•
u/AutoModerator Oct 15 '26
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.
83
u/fullup72 Oct 15 '26
you are missing one additional color for the text that got expanded during this turn, because on turn one everything is blue, then you click to expand and everything in white is the new text and some remains in blue, and as you click again for the additional reveal you lose track on what's the actual new text that was just expanded because everything is white. If I'm going to read less words, then I need to know exactly which are the new words that appeared on screen. Else I'm re-reading the thing over and over and I end up with 50% more words, not 83% less.
6
u/TheLastNapkin Oct 15 '26
I think this is very neat and a great idea for a Claude code plugin so good job there :)
I think though for me as someone who is operating almost completely keyboard only for most of my computer usage even the Claude code cli, needing the cursor to click on expanding would be not really useful so I wouldn't end up using it... Having maybe auto mapped vimium like keys to expand/toggle based on stretchtexts segments currently on screen in Claude code terminal though could definitely solve this though!
4
u/pseiko5 Oct 15 '26
very cool. can you share some details on how the shrinking works?
As in what the prompt looks like to shrink or expand output?
I'm not sure I buy this part tho.
3
u/premiumleo Oct 15 '26
267
u/MotorOutside8648 Oct 15 '26
It's like if TLDR and ELI5 had a baby.
2
u/TheSexyPirate Oct 15 '26
To my surprise it is almost impossible to get to work. There are some fundamental problems with it, would not recommend so far.
2
u/cosine-tangent Oct 16 '26
Look like a similar idea to: https://github.com/chenxiachan/paperfold
50
u/wauter Oct 15 '26 edited Oct 15 '26
Would it be possible to create this as a google chrome plugin so you can apply it to any website (similar to 'reading mode' I guess, applying to the 'main' text on your screen somehow, but with a slider to make it short/long)
Update: made a local POC of this where you paste OpenAI API key to have them do the processing - actually looks quite neat - see https://www.reddit.com/r/ClaudeCode/comments/1x688sx/comment/pgwg63m/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
40
u/ourochurros Oct 15 '26
It's wild how we live in a world where one shot video games evoke eye-rolling, but then something like this strikes me as very cool. Props, OP.
55
u/andyfsu99 Oct 15 '26
I don't know anything, but that seems like a great idea. Sometimes I really don't care, some times I need the details.
11
u/Sketaverse Oct 15 '26
wow just installed it, mate this is fucking genius, bravo.
I've tried so many different attempts at reducing cognitive load and this just immediately works - absolutely stunning product design/execution.
thank you
11
u/Reason_He_Wins_Again Oct 15 '26
No clue what is happing here but it seems well done
20
u/sanciscoyo Oct 15 '26
Video is a bit too fast to get what you’re going for in some parts
9
u/cheswickFS Oct 15 '26
Does it still generate the full answer or does it generate text when its requested to be stretched?
8
u/vibefarm Oct 15 '26
ooooh.
5
u/PeaceNo5259 Oct 15 '26
Very cool.
I probably won't use it for Claude Code, but I could probably see myself using this if it was in my email client.
Like if I could grab a border at the bottom and just drag it up or down to make an email longer/shorter as needed if I need more/less info.
5
u/FrozenDroid Oct 15 '26
Dude, this is great. One of the very few good things to come out of this sub.
Going to give it a try, cheers!
4
u/isme_tech Oct 15 '26
Thanks for posting this. I had the idea too of quickly extending and reducing the text via LLM. Now I learn its academic name, stretchtext, and that it's not even a new idea: 1967! The difference is that the computing tech has finally caught up. Bravo.
4
u/SlaimeLannister Oct 15 '26
I love this and have had a similar idea for a long time.
Kind of like a blog post that has a nested wiki within it, if you're reading and want more detail on something, each paragraph should be expandable into several more paragraphs that provide additional context on it.
1
u/Amazing_Associate_45 Oct 20 '26
https://github.com/MonadicMike/pi-stretchtext i ported this to PI.
3
u/someone-at-reddit Oct 15 '26
How does it increase token usage? Because Claude has to generate those multiple levels of text, right ?
Anyone has numbers / experience here?
3
u/kleer001 Oct 15 '26
<3 For Ted Nelson!!!
He has : https://www.youtube.com/@TheTedNelson/videos
With some even more out there ideas like XanaduSpace :)
3
u/Crinkez Oct 15 '26 edited Oct 15 '26
I just imagined this with the old Opus 5, back when verbal diarrhea was peak.
Edit: OP, I'm wondering if you could make this recursive, allow Claude to learn and incrementally update claude.md or response style on a per-user basis depending on what they expand vs ignore.
7
u/Jaanbaaz_Sipahi Oct 15 '26
Damn you guys really pushing the envelope here. Amazing!
2
u/t3hjs Oct 15 '26
but it costs the length of the full text right? with some overhead for implementing stretchtext
2
u/Madaestro Oct 15 '26
One of the coolest ideas I've seen in a while and genuinely solves a problem with LLMs' verbosity
2
u/Fruityth1ng Oct 15 '26
This is amazing. For the maker of the video: certain amounts of text need certain amounts of time to read. There’s formulas out there. It’s currently too fast on most of the longer stretches of text.
2
u/pirondi Oct 15 '26
How can we apply this to humans too?
2
u/Lunaroh Oct 16 '26
My concern with this is that If I actually want the full responses, I'll have to click a lot each time.
2
u/AdSad7594 Oct 15 '26
This is a really cool idea! It gave me some different new ideas, good job!
1
u/ashy90 Oct 21 '26
Anything to reduce wall of text
1
u/RockSmacker 28d ago
just wanted to say i've been using this for about a week and it's been transformative for me in terms of usability. great idea and great implementation!
1
u/SharePuzzleheaded844 Oct 15 '26
Very smart
1
u/rabidrobot Oct 15 '26
This is so cool
1
u/thats_a_money_shot Oct 15 '26
Bro. This is so cool! I literally always type “tldr eli5” together when I’m frustrated or in a meeting. Giving this a shot tmw.
1
u/InsertCoinInSlot Oct 15 '26
This is great!!!
1
u/Thigh_Clapper Oct 15 '26
Reminds me of BoVeX
1
u/Blockpair Oct 15 '26
Great idea, OP. I wanted to do something like this for my own tech blog and had the same conclusion it wasn't practical. My current approach is to just have the main details comprise a short article. Then have bonus sections that can be expanded if readers still want more. Otherwise, the page length would look massive and give people a fright.
1
u/Abject-Kitchen3198 Oct 15 '26
Cool. Touches on something I do regularly in a harder way.
1
u/dagger378 Oct 15 '26
This is amazing. I'd love to see this for source code. People say reading code isn't reasonable because AI outputs too much too fast. I say "you don't have good enough tooling, and you're lacking imagination."
1
u/Zemanyak Oct 15 '26
I love the idea.
1
u/Local_Belt_341 Oct 15 '26
so good. thanks! ive never seen this demonstration.
1
u/Bananer_spleet Oct 15 '26
No mistakes
1
u/evk6713 Oct 15 '26
Does it work for enterprise licenses ? Mine says it blocks the hooks your plugins needs to run :')
1
u/spookwav Oct 15 '26
This is cool! It reminds me of Tom7's BoVeX.
1
u/IT_WAS_ME_DIO__ Oct 15 '26
This is an awesome idea!
Will give it a try, thx for posting this.
1
u/UnidentifiedBlobject Oct 15 '26
That’s sick
1
u/Substantial_Row7215 Oct 15 '26
stretchtext is such a good thing to dig up, never heard of it before. curious how it decides what to collapse by default, is it claude picking the levels while writing the reply or a second pass over the finished text?
1
u/Clair_Personality Oct 15 '26
What skill or prompt did you use to make the video :)? Cuz its nice
1
u/Southern-Aardvark616 Oct 15 '26
What a great presentation of an actually useful idea
1
u/PUSH_AX Oct 15 '26
How much more tokens is this costing on the whole?
1
u/technaveed Oct 15 '26
I’d keep failed checks and anything still untested visible in the collapsed view. The explanation can wait behind a click, but “this hasn’t been verified” shouldn’t. Otherwise the cleaner interface can accidentally make unfinished work look finished.
1
u/Emile_s Oct 15 '26
I’ve recently added an example to Claude md and it’s working well. Doesn’t fix Claude’s perpendicular to write absolute nonsense but does stop some of the bull.
But this sounds great, will have to try it out.
1
u/Stainless-Bacon Oct 15 '26
how does remote control work with the mod?
1
u/blackheva Oct 15 '26
Finally I can read the Silmarillion.
1
u/BoxLegitimate9271 Oct 15 '26
83% fewer words and the 17% left is still you're absolutely right
1
u/ArgeuThiesen Oct 15 '26
interessante
1
u/Dreamsnake 🔆 Max 20 Oct 15 '26
Very excellent idea, wow :)
1
u/bluinkinnovation Oct 15 '26
Can this be used to save tokens or does it add more tokens on top?
1
u/NoMindZen Oct 15 '26
👀
1
u/karanb192 Oct 15 '26
This is one of the best use cases of Mods I have seen. Let's add it to awesome mods list here -
https://mods.aidojo.si/
1
u/chiefbriand Oct 15 '26
Amazing design man
1
u/berzerkerCrush Oct 15 '26
Scott young did a blog post like that. It was nice
1
u/Low-Confusion-8786 Oct 16 '26
TLDR
1
u/HockeyDadNinja Oct 16 '26
Well done. What tools did you use to create that video?
1
u/throwaway_life12345 Oct 17 '26
A semantic telescope
1
u/channingwalton Oct 18 '26
Genius