Now that Rex is out of beta, here are my two favorite extension scripts + the prompts to add them:
1. cmd+t opens an agent + terminal tab
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then write a Rex Lua action and bind it to cmd+t. It should open a new tab split down the middle: my agent preferred CLI on the left (ask me which if you can't tell), a shell on the right.
- Start both panes in the directory of the pane I had focused (the cwd of its foreground process).
- Bring the new tab to the front.
If I've already bound cmd+t in my config, ask before you replace it.
The Rex app may ignore the server's active tab, so you may have to ask the client to select it. That request can be dropped if it arrives before the app knows the tab exists. If the tab stays in the back, find the cause before you work around it.
Done when `rex config reload` succeeds and cmd+t gives me the split tab, in the right directory, in front. Verify it.
---
2. Restore agent sessions after a reboot
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then add a "Restore Agent Sessions" command-palette action. After a reboot or Rex server restart, it should resume each agent session in the pane it was running in.
Do this for every agent CLI I have installed (Claude Code, Codex, ...). Look up each one's session hooks and resume command. If a CLI has no hooks, tell me. Don't fake it.
On session start and end, keep a JSON map of Rex pane → {Rex session, agent, session id, cwd}. Rex sets REX_BLOCK and REX_SESSION in each pane.
- Ignore sessions started by another agent (subagents, headless runs like `claude -p`). They inherit the pane's REX_BLOCK and would overwrite the real entry.
- Forget a pane only when I quit on purpose (Claude's SessionEnd hook has a `reason` field; find the equivalent for the others). A reboot or crash must leave the entry in place.
- Restore starts several sessions at once, so hooks may write the map at the same time. Don't lose entries.
- Outside Rex, or when a tool it needs is missing, exit quietly. Never block the agent.
- Restore only works if Rex keeps pane IDs across restarts. Find out whether it does, without restarting the server I'm working in.
For each pane that still exists and sits idle at a shell prompt, cd to the saved cwd and type that agent's resume command. Skip every other pane.
Done when, for each agent:
- `rex config reload` succeeds.
- Starting the agent in a pane adds an entry. Quitting on purpose removes it. A headless run in that pane changes nothing.
- You've told me how to run the action and what it can't do.
Meet Rex, now publicly available. Make any machine in the world feel like localhost. Clients on macOS/iOS (Windows/Linux still in testing), servers for Linux, FreeBSD, and Windows. https://t.co/Us2sbbxR35
Now that Rex is out of beta, here are my two favorite extension scripts + the prompts to add them:
1. cmd+t opens an agent + terminal tab
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then write a Rex Lua action and bind it to cmd+t. It should open a new tab split down the middle: my agent preferred CLI on the left (ask me which if you can't tell), a shell on the right.
- Start both panes in the directory of the pane I had focused (the cwd of its foreground process).
- Bring the new tab to the front.
If I've already bound cmd+t in my config, ask before you replace it.
The Rex app may ignore the server's active tab, so you may have to ask the client to select it. That request can be dropped if it arrives before the app knows the tab exists. If the tab stays in the back, find the cause before you work around it.
Done when `rex config reload` succeeds and cmd+t gives me the split tab, in the right directory, in front. Verify it.
---
2. Restore agent sessions after a reboot
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then add a "Restore Agent Sessions" command-palette action. After a reboot or Rex server restart, it should resume each agent session in the pane it was running in.
Do this for every agent CLI I have installed (Claude Code, Codex, ...). Look up each one's session hooks and resume command. If a CLI has no hooks, tell me. Don't fake it.
On session start and end, keep a JSON map of Rex pane → {Rex session, agent, session id, cwd}. Rex sets REX_BLOCK and REX_SESSION in each pane.
- Ignore sessions started by another agent (subagents, headless runs like `claude -p`). They inherit the pane's REX_BLOCK and would overwrite the real entry.
- Forget a pane only when I quit on purpose (Claude's SessionEnd hook has a `reason` field; find the equivalent for the others). A reboot or crash must leave the entry in place.
- Restore starts several sessions at once, so hooks may write the map at the same time. Don't lose entries.
- Outside Rex, or when a tool it needs is missing, exit quietly. Never block the agent.
- Restore only works if Rex keeps pane IDs across restarts. Find out whether it does, without restarting the server I'm working in.
For each pane that still exists and sits idle at a shell prompt, cd to the saved cwd and type that agent's resume command. Skip every other pane.
Done when, for each agent:
- `rex config reload` succeeds.
- Starting the agent in a pane adds an entry. Quitting on purpose removes it. A headless run in that pane changes nothing.
- You've told me how to run the action and what it can't do.
lol this is ridiculously fun to build with, just made this
`npx tankfall` to run it
takes your last claude session and turns it into a game of artillery, requires node 24
Introducing 𝚝𝚞𝚒
Fast terminal apps in TypeScript
$ npm i tui
→ Starts in ~2 ms
→ Same code runs on Node
→ Compiles to native with scriptc
→ Built for agents: 1 line exposes MCP
→ Up to 80× faster, 50× smaller, 20× less memory than Node
@GergelyOrosz Not that I disagree (I don't, you do you) but having seen behind the scenes at a decent number of podcasts there's the policy and then there's the policy
@ClarkeZone Yep! I use this for everything worktree related https://t.co/8ggbD2BhOq
Or rather my agents do, just add a “use wt for all worktree management” somewhere in your global context file and they’ll figure out the rest
Now that Rex is out of beta, here are my two favorite extension scripts + the prompts to add them:
1. cmd+t opens an agent + terminal tab
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then write a Rex Lua action and bind it to cmd+t. It should open a new tab split down the middle: my agent preferred CLI on the left (ask me which if you can't tell), a shell on the right.
- Start both panes in the directory of the pane I had focused (the cwd of its foreground process).
- Bring the new tab to the front.
If I've already bound cmd+t in my config, ask before you replace it.
The Rex app may ignore the server's active tab, so you may have to ask the client to select it. That request can be dropped if it arrives before the app knows the tab exists. If the tab stays in the back, find the cause before you work around it.
Done when `rex config reload` succeeds and cmd+t gives me the split tab, in the right directory, in front. Verify it.
---
2. Restore agent sessions after a reboot
---
Run `rex skill show` to learn Rex's CLI and Lua API. Then add a "Restore Agent Sessions" command-palette action. After a reboot or Rex server restart, it should resume each agent session in the pane it was running in.
Do this for every agent CLI I have installed (Claude Code, Codex, ...). Look up each one's session hooks and resume command. If a CLI has no hooks, tell me. Don't fake it.
On session start and end, keep a JSON map of Rex pane → {Rex session, agent, session id, cwd}. Rex sets REX_BLOCK and REX_SESSION in each pane.
- Ignore sessions started by another agent (subagents, headless runs like `claude -p`). They inherit the pane's REX_BLOCK and would overwrite the real entry.
- Forget a pane only when I quit on purpose (Claude's SessionEnd hook has a `reason` field; find the equivalent for the others). A reboot or crash must leave the entry in place.
- Restore starts several sessions at once, so hooks may write the map at the same time. Don't lose entries.
- Outside Rex, or when a tool it needs is missing, exit quietly. Never block the agent.
- Restore only works if Rex keeps pane IDs across restarts. Find out whether it does, without restarting the server I'm working in.
For each pane that still exists and sits idle at a shell prompt, cd to the saved cwd and type that agent's resume command. Skip every other pane.
Done when, for each agent:
- `rex config reload` succeeds.
- Starting the agent in a pane adds an entry. Quitting on purpose removes it. A headless run in that pane changes nothing.
- You've told me how to run the action and what it can't do.
Meet Rex, now publicly available. Make any machine in the world feel like localhost. Clients on macOS/iOS (Windows/Linux still in testing), servers for Linux, FreeBSD, and Windows. https://t.co/Us2sbbxR35
@felixrieseberg@kieranklaassen Most of my writing these days:
Speech to text
Bullet points (llm)
Rearrange to find structure (me)
Shitty first draft (me)
Editor to point out weak/dragging points (llm)
Refinements (me)
Loop as needed
Works really well and lets you keep your own voice
There are now two paths:
1. Run everything in cloud vms and sacrifice dollars on the pyre of your CI bill
2. Nix-ify everything and buy a closet of Linux workstations to run all tests. Skip remote CI entirely
Did anyone else's Greptile & Blacksmith bills go up a shit ton last month?
I get it we are way up on PRs month over month and so we have more reviews and CI running, but holy crap, actually at the point of considering something OSS and hosting on our own cloud where we have compute credits
@adamshuaib Tbh having a lot of ideas is far less important than being able to see something to completion. If I had to pick one I would pick gets things done every time
@Wattenberger That works too! Depends on what you’re building I expect. I tend to run into “looks like someone else is working on this too” during commits so the wt separation is easier. I have another utility that handles all the creation/rebasing/pruning so it’s all backgrounded
Yup! Every day, Overcast transcribes over 50,000 new podcast episodes on these Mac Minis.
And now, any show with at least 20 listeners gets Whisper Turbo, a HUGE quality improvement over Apple's speech model.
“Software is dead, everyone will build their own tools” he posted, while sipping his coffee shop purchased flat white over presliced ham, on industrially baked bread.
@pearkes Giving the mcp search access to discord was inspired. I didn’t visit discord much (channel overload) but I ran a “hey what’s new over there” prompt often