Live data from Hacker News

Show HN: Agent-of-empires: OpenCode and Claude Code session manager

github.com

31–40 of 45 posts

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#31

Thank you for sharing this. Regarding feedback on whether sandboxing would be useful, yes, please! Including something like Docker sandboxes would make isolating the agent env’s much less of a hassle. As an aside, I’m curious how others are handling this now… Mostly just creating dedicated user accounts?

Thank you for the feedback! My general feeling is that people are not doing sandboxing. Those that are, generally use devcontainers or some docker based solution

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#32
post #26

This looks cool, I’ll definitely try it out. The best (for me) of these that I’ve tried so far is conductor.build They have a different UI orientation, and it’s more locked into Claude code, but it might be good inspiration for your future plans. They get the git worktree setup and teardown and managing dev servers part of it right IMO.

Have you tried Coder (coder.com)?

I haven't. Looks cool though!

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#33

Hmm, this looks interesting. I've wanted to try something like this with an API provider that's free. I wonder how difficult to setup and how good OpenCode can be if used together with Ollama/llama.cpp and/or DeepSeek-Coder or Quen?

THIS!!! I'm right there with you. Imo, using aoe (or whatever tool you can find for session management) is the key unlock to help give us all the patience to try out the ollama/lmstudio/mlx providers to see how they really perform. We're lacking information about what work is really being done with local coding models, at least somewhat because imo most github open source repos don't ask you to share what LLM you used to help you, and they should.

We need to start sharing our specific success and failure stories from using local llms for coding

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#34
How do you handle session persistence across reboots / restarts for self-hosted models? Does ollama support persistence out of the box? I tried using codex-oss which does support persistence but codex injects 6K of system setup context which I thought was too much for self hosted models.

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#35
post #34

How do you handle session persistence across reboots / restarts for self-hosted models? Does ollama support persistence out of the box? I tried using codex-oss which does support persistence but codex injects 6K of system setup context which I thought was too much for self hosted models.

Good questions! All of that is handled inside of the coding agent (Claude Code / OpenCode). `aoe` is responsible for managing the agent sessions: It does keep those sessions persistent in tmux even if you close `aoe`, but if you restart your system, resuming a sessions would rely upon opencode/claude code storing the conversation history for each session, which I believe they do but would need to be manually restored for each agent.

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#36

I'm setting up a small orchestration around zellij (I have almost no experience with tmux, so I went with the "modern" alternative), upterm and qrencode that allows me to 1) generate a claude code instance in a persistent session 2) make it controllable remotely via upterm 3) scan a qr code to copy the upterm server's ssh url on my phone so that I can paste it in termux. I wonder if it would be more ergonomic to conn…

Tbh that's exactly what I'm using aoe for: termius on my phone ssh into my Mac mini and then use aoe to check in on each agent session. Just make sure you check out the readme if you do this because at least for termius there's a quirk to make tmux and TUI happy. The recommended approach is to run aoe itself inside a tmux session which then will spawn additional tmux sessions as needed.

After your comment I tried to do something with my phone but tmux + claude code is definitely not great on mobile though the main view of aoe works decently.

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#37

Earlier quoted context omitted.

Tbh that's exactly what I'm using aoe for: termius on my phone ssh into my Mac mini and then use aoe to check in on each agent session. Just make sure you check out the readme if you do this because at least for termius there's a quirk to make tmux and TUI happy. The recommended approach is to run aoe itself inside a tmux session which then will spawn additional tmux sessions as needed.

After your comment I tried to do something with my phone but tmux + claude code is definitely not great on mobile though the main view of aoe works decently.

Thanks for giving it a try! If you can think of any improvements I'm certainly all ears. What i've been doing is using the ios + termius + aoe setup to just keep tasks moving forwards. I log in from my phone, see which sessions are waiting for me, and then type just enough to keep them moving forwards until I get back to my desktop where then I can use aoe again to keep them moving

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#38
WARNING! I tried this and it corrupted my entire tmux session, leaving me to have to recreate the entire thing....

Steps to reproduce the bug that broke my tmux:

1. `aoe add .`

2. `aoe`

3. Attach to the session that was added

4. Close that pane with ` x` then `y`

5. Tmux closes down

6. Attempt to reattach to any session within tmux: `open terminal failed: not a terminal`

7. `tmux kill-server` is the only viable option, losing all my sessions

Re: Show HN: Agent-of-empires: OpenCode and Claude Code session manager

#40

I'm always curious how folks do status detection. Here you use tmux capture-pane and detect off that! Whew! Simple & direct! I've been really enjoying how OpenCode is so extensible, how you can make great plugins that can for example read the session.idle event & then go do whatever they want. That does require dropping in some config asking for the plugin, which takes some effort & requires a restart (but your sessi…

There is a PermissionRequest hook [1], along with Notification

https://code.claude.com/docs/en/hooks-guide#hook-events-over...

It must be newer because Opus never seems to know about it, and the claude-code-guide tool that fires occasionally misses it

Post reply on HN