Hacker News new | ask | show | jobs
by pimeys 7 days ago
Very interesting. I'll give it a go. I found out that just running a multiplexer with agents in separate workspaces is not enough to do my work, and I very often need to start a separate editor to read and investigate changes. I like to use Gram to read and navigate the code. Now if you have multiple things going on, switching the editor to a different project is a mental context switch that takes too much time and is not very easy to do anymore with more than three projects.

So I've been using just Gram, with a remote session to our development server, and keep multiple windows open.

DreamCoder could really be the best harness for me, if it keeps the whole context easy to navigate, but also provides me excellent code navigation and diffing tools. My way of working is to read and iterate on code with the agent, I'm never only vibecoding. So if I can open the code and the diff in the workspace that would simplify my work a lot.

Another important part would be to forward local ports. If I start the system I'm implementing in DreamCoder, and I could then access the page I'm developing from the harness or if the harness could forward a port or path for me, this would remove the step of remembering to open ssh port forwards in another terminal. Now split the workspaces to separate paths maybe and you can open the different projects in your browser without needing to turn off and on the stacks all the time.

If you could make switching the mental context easy with this, I'd start to pay for you immediately for the product.

Edit: oh, and nix derivation and AUR package are probably just a matter of time. But very much needed :)

1 comments

I have a Browser pane in Dreamcoder but I disabled it behind a flag because 'forwarding' things not localhost'ed is... very very challenging due to security risks. But maybe I can bring it back for localhost only? It works reasonably well.

DreamCoder does not have code navigation tools per se. I would spread myself a bit too thin to do that right now also, but if you tell me more about your user story maybe I can build something reasonably helpful? Maybe AI-directed navigation where it builds up charts and slides? That is very doable.

Keen to hear your thoughts!

So basically I always want to monitor the changes the agent does, so git/jj changed files and diff view is really important. Refer the agent the parts you don't like and ask it to change. Sometimes you also want to jump in to the code, jump to definition and understand why it calls some APIs like it does in the diff.

So this is kind of like three tricky components already: VCS, LSP, and code navigation.

Then sharing the stack. At work we have a shared development server. So what we do is we use process-compose and split the network space with netns. Do a pipe to the right stack and load the website in your local browser. Now, if DreamCode could juggle multiple workspaces as it does already, but each workspace could have a view to the website it's working on. Very powerful.

In general I love the DX. Nice work.

I think a lot of this can be done in a Terminal pane for terminal-shaped things, but it won't do for UI stuff. The other approach is to 'adopt' a site through a proxy which is kind-of what the browser pane does. I've resisted it because it's a serious attack vector for baddies.

As for the website: yeah I'll re-enable the panel, but add some disclaimers so people don't try to do their online banking through it where random things won't load due to iframe sandboxing.

Terminal of course would do. But the graphical diff of Gram editor is so good, and if you combine it with tighter integration with the agent this might be a great feature. Right click a part of the diff, ask the agent a question or ask it to make changes...

There are people who say that reading code is not needed anymore. After a year in a company who kind of stopped that at some point, we all learned it's a horrible idea and now we carefully review and craft every change.

Right now if you click "Review" (on an assistant message, so in effect a reply to an email almost) or after it's stopped and click the purple review button, you can edit inline like MS Word track changes. "Commit" then sends the hunks back to the AI on your next turn to review. Works quite well. Caveat is it uses DC's own tools to track changes to files (because I want the system to be source control agnostic) - so YMMV if your AI goes blundering around making big changes in shell commands.

The next step I need to do is to let users (or the AI help you) set up version control command to do that work instead of DreamCoder if you prefer that.