Hacker News new | ask | show | jobs
by pimeys 7 days ago
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.

1 comments

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.