HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lawrencechen

no profile record

Submissions

Awesome libghostty

github.com
4 points·by lawrencechen·4 bulan yang lalu·0 comments

Show HN: cmux - Ghostty-based terminal with vertical tabs and notifications

github.com
198 points·by lawrencechen·5 bulan yang lalu·77 comments

[untitled]

1 points·by lawrencechen·6 bulan yang lalu·0 comments

More databases should be single-threaded

blog.konsti.xyz
52 points·by lawrencechen·7 bulan yang lalu·23 comments

Show HN: I made a heatmap diff viewer for code reviews

0github.com
265 points·by lawrencechen·8 bulan yang lalu·68 comments

Anthropic Sandbox Runtime (Srt)

github.com
5 points·by lawrencechen·9 bulan yang lalu·1 comments

comments

lawrencechen
·2 bulan yang lalu·discuss
I'm one of the creators of cmux. I'm moving a lot of my own dev work to Mac Minis, so I'm starting to feel quite a lot of the pain you mentioned... will try to make this better!
lawrencechen
·3 bulan yang lalu·discuss
Can you develop freestyle in freestyle vms?
lawrencechen
·5 bulan yang lalu·discuss
Makes sense, added as issue: https://github.com/manaflow-ai/cmux/issues/205
lawrencechen
·5 bulan yang lalu·discuss
iTerm2 has vertical tabs too

https://iterm2.com/3.0/documentation-preferences.html#:~:tex...
lawrencechen
·5 bulan yang lalu·discuss
Could you file an issue with more details: https://github.com/manaflow-ai/cmux/issues

Would greatly appreciate it!
lawrencechen
·5 bulan yang lalu·discuss
Should be fixed in latest release (0.58.0). Please let me know if it's still an issue!
lawrencechen
·5 bulan yang lalu·discuss
Thanks!
lawrencechen
·5 bulan yang lalu·discuss
Thanks for the feedback! Mitchell Hashimoto is awesome. Have a PR for fixing devtools here: https://github.com/manaflow-ai/cmux/pull/117

> hotkey overrides - I have some things explicitly unmapped / remapped in my ghostty config that conflict with some cmux keybindings and weren't respected

We need to be better about this; right now you can modify keyboard shorcuts with cmd+, in the GUI. Planning on making it a config file in the spirit of ghostty though, not sure if we want to reuse ghostty's config file though since it might become a maintenance burden for them...

> command palette (cmd-shift-p) for less-often-used actions + discoverability

yes

> cmd-z to "zoom in" to a pane is enormously useful imo

Thinking of the right way to design this. Like hypothetically we can expand it, but what happens if you make a vertical/horizontal split, or cmd+t to make a new tab? I guess we could just "merge" it back into the original space which would be pretty cool.
lawrencechen
·5 bulan yang lalu·discuss
Should be in latest release!
lawrencechen
·5 bulan yang lalu·discuss
We're working on a tmux/it2 compatibility layer to make this happen!
lawrencechen
·5 bulan yang lalu·discuss
No built in way to override new-pane actions right now, but `cmux --help` can automate all parts of cmux.

So you can make your own script that can make new panels/workspaces and just invoke it from the terminal:

  git worktree add -b my-branch ../repo-my-branch
  ws=$(cmux new-workspace 2>&1 | awk '{print $2}')
  cmux send --workspace "$ws" "cd ../repo-my-branch && claude"
  cmux send-key --workspace "$ws" Enter
I think we should make this easier though, open to suggestions!
lawrencechen
·5 bulan yang lalu·discuss
zmx solves persistence well, and I like their minimalism (not supporting windows, tabs, or splits). I think it's possible to make a CLI wrapper for zmx that adds notifications though, so you can have some niceties of cmux without switching to a new terminal. Lowkey we might explore this direction as well.
lawrencechen
·5 bulan yang lalu·discuss
Sorry you likely encountered this issue: https://github.com/manaflow-ai/cmux/issues/103

The latest release (0.57.0) should fix it.
lawrencechen
·5 bulan yang lalu·discuss
Excited that someone besides me wants this! I want to hear more about your warm container host, is that shared between multiple people, or just yourself?

Also want some feedback on how we should implement it. Could make it a CLI command that opens a new vertical tab/workspace:

  cmux ssh <host>
Or maybe a configurable dropdown next to the plus button.
lawrencechen
·5 bulan yang lalu·discuss
Haha, it's like we're moving towards an IDE but starting from the opposite direction.
lawrencechen
·5 bulan yang lalu·discuss
> a cron or hook that runs tmux capture-pane on each agent pane and checks for the idle prompt is enough to know when one needs attention.

Curious why you aren't using Claude Code's stop/notification hook

> Separate Chrome profiles per agent is the brute-force fix, but it's expensive. The better pattern is treating browser access as a serialized resource — one agent gets it at a time, with the others queued.

Ports could also be another serialized resource. Another direction we're exploring is to give agents VMs that have Chrome + VNC preinstalled [1]. Prompting Claude to use Docker also goes a long way there.

[1] https://cloudrouter.dev/
lawrencechen
·5 bulan yang lalu·discuss
Would love your feedback and suggestions!
lawrencechen
·5 bulan yang lalu·discuss
Very cool stuff! Would be curious if the stuff you've built is open sourced? Having a bunch of Claude Codes will definitely eat a ton of CPU/RAM. libghostty should help to a certain extent, but at some scale, you'll probably a custom optimized agent loop or remote VMs.
lawrencechen
·5 bulan yang lalu·discuss
Cool project! How are you liking ghostty-web so far?
lawrencechen
·5 bulan yang lalu·discuss
Ah, like a way to maximize the current pane you're focused on?