r/opencode • • Jun 13 '26

Visualizing the impact of OpenCode's plan, before executing it

Hi all, my friends and I are building an open-source engine which ingests codebases and creates a diagram representations to explore them. You can find it over: https://github.com/CodeBoarding/CodeBoarding

The whole thing is based on static analysis (control flow graphs) and a slim layer of LLMs, which allows the diagram to be very accurate and to indec the codebase in near real time. (So if an agent changes something it will be visualized in real time, I posted about it few weeks back).

It all intially started as a way to explore our codebases, then we added a dynamic highlighing as soon as an agent changes something so you can observe how opencode is changing your codebase as it goes.

Now instead of waiting (and paying) for a wrong plan to be executed, I am working on somethign which shows me which components will be impacted upfront so that I know if the agent misinterpreted something + you can see if there are new compnents to be expected and what kind of severity (size) the change will be. Would love to hear your feedback so I can release it in the next few days

Curious to learn how do you plan? Do you always read carefully the plan or you validate after the fact what has been modified is what you expected? Do you not care at all if it is working, it is working?

Super curious lmk.

334 Upvotes

24 comments sorted by

2

u/Alternative-Papaya57 Jun 14 '26

How does this work when switching between branches? Does it keep different tagged representations of the branches somewhere or does it need to do the indexing again whenever something changes?

1

u/ivan_m21 Jun 14 '26

That's a great questin, the visual is a file (analysis.json) so if you do commit the file in the branch you can see how those diverge. It isn't perfect as the plan from the video is just in memory, so as soon as you switch it is gone, the issue of saving it down on a file, is that then it can cause merge-conflicts or in general it will be part of your git, unsure if the plan impact is something ppl want to commit. Do you commit and review plans, I know people do that?

2

u/elrosegod Jun 14 '26

Make it in TUi 

1

u/ivan_m21 Jun 15 '26

Any suggestions on how to make it as interactive as it is with ReactJS, i looked into it and it just seems quite difficult to make it go

1

u/StylePractical5714 Jun 17 '26

I've seen some react based tui libraries out there... vadimdemedes/ink, opentui/react, geoffmiller/ratatat

2

u/Ela_1968 Jun 17 '26

interesting

1

u/ivan_m21 Jun 17 '26

Thanks tmrw it will be live!

1

u/siphoneee Jun 13 '26

Will this work with Codex and CC?

4

u/ivan_m21 Jun 13 '26

It can work with both, as it is an mcp skill. The whole index is directly on the codebase, so it will work with any type of coding agent.

1

u/Knigge111 Jun 14 '26

That's really helpful! Kudos to you all!

2

u/ivan_m21 Jun 14 '26

Thanks, will hit you up when it is released later today!

1

u/Godzillaton Jun 14 '26

This is exactly what i need!!. I am visual learner. This would be easier for hs non-technical person

1

u/ivan_m21 Jun 14 '26

Awesome man, I think there will be more and more non-technical builders who need to be able to understand the blackbox of a software (and also collab with tech ppl without hating each other 😃)

3

u/Vageeena Jun 13 '26

Very cool idea, I always love when people make creative things like this. I always go back and forth about the plan about 90% of the way with ChatGPT and then finalize it in Codex with GPT-5.5 high before having DeepSeek V4 Pro implement it in KiloCode (or for migration or intensive backend stuff, I likewise just get GPT-5.5 to implement it).

2

u/KeithLeague Jun 14 '26

I'm working on something similar https://codeswim.xyz

1

u/StylePractical5714 Jun 17 '26

I wonder if this would work or could be adapted for the little-coder harness, I think it's already doing the static analysis and indexing bit I think and this would be a helpful visual

10

u/[deleted] Jun 13 '26

[removed] — view removed comment

5

u/ivan_m21 Jun 13 '26

On the right side I have opencode opened from within the vscode terminal. The whole thing is an extension for VSCode (and it's forks). This I haven't released yet looking for somme feedback and to understand if ppl want something different, I will release it tomorrow

3

u/NanoBeast Jun 14 '26

you might want to make it IDE independent (like OpenCode), so users can open the diagram view as server & view in Webbrowser OR in Terminal.

2

u/ivan_m21 Jun 14 '26

Yea webtool is definetely on the radar: https://app.codeboarding.org
Still WiP, as atm it is just a way an existing analysis i.e.: https://app.codeboarding.org/?repo=CodeBoarding%2FCodeBoarding&ref=main

2

u/[deleted] Jun 13 '26

[removed] — view removed comment

4

u/ivan_m21 Jun 13 '26

It is based on static analysis and just syntax trees, which enables us to resolve things with higher accuracy and the whole thing is near real time as the codebase is continuously indexed.