In Search of an ADE
What is an ADE?
ADE = Architecture Development Environment. What it means to me to search for one, in this day and age, is: defining what capabilities we want and need to help us design and maintain very large software systems that are primarily built by AI agents. Perhaps of interest, one could consider the old application, Structure101 the original ADE, acquired and essentially killed by Sonar. I do not know all the capabilites an ADE should provide, but I'm currently building one and having all sorts of fun doing so.
In an ADE, the human developer has improved vision of architectural aspects of a large codebase, and thus the ability to watch over the way a codebase evolves as AI agents write the code token by token. There are a number of things we'd want to review and track without having to read every line of code the agents write:
- Overall structure of the code.
- Are there cycles?
- Are there hotspots of complexity?
- Is the code readable?
- Is it spaghetti or well-structured?
- How do we define any of this?
- Does the code reuse basic concepts or is it inventing ad hoc code over and over everywhere?
- Are the tests testing important features of the code?
- Can we observe test coverage?
- How does information flow through the app?
- What is good information flow?
- What is bad?
- Is concurrency well-managed?
- Can we observe all of this in real-time as the agents change the code?
And so forth, there could be all kinds of static things about the codebase we'd want to track.
A key aspect of the ADE is that it should probably be highly visual, rather than files of text. Humans do extremely well with visual information, and especially with animated visual information. That's our bread and butter, and since we're off-loading the language information to the AIs, it frees us up to look at our projects visually. Agents can write 10s of thousands of lines of code a day to our codebase if we let it. We couldn't possibly keep up with that by reading the code. Our only option is to be a bottleneck even as the agents get better and better, or begin using human vision to chunk and abstract information at a higher level where humans still retain some cognitive advantage over AIs.
Primarily then, the ADE is a means of enhancing the observability of changes to our codebase. In this sense, it's basically a read-only view. We see. We identify problems. We go talk to the AI about it and then watch whether the problem is fixed. The key capability then of the ADE becomes in helping us see problems as fast as possible and in being accurate about surfacing them.
The ADE should probably interact usefully with the build and deployment system. We should be able to build, run tests, commit, merge, integrate, deploy our codebase from this app, for all the potential meanings of "deploy" there can be. Many of these pieces the agents do themselves, but often in a fragemented, local way. Running tests for what you're immediately working on is a different concept than running test suites to verify continuous integration success, which is also different from verifying deployability. In my personal ADE project, one of the capabilities is generating native installers for all platforms for my desktop java apps, so I can create .deb and .msix and .dmg files of my apps on a single platform simply by dragging the maven module for that app from one column to another in my ADE. I can then deploy a website for the app to provide those installers for download also with a simple drag-and-drop operation. The ADE helps set all that up and save the details with my project.
The tool is meant to aid a knowledgeable developer in keeping a very large codebase maintainable, and correct. It should leverage senior developer knowledge in ways that increases their value to a project. When you have AI writing the code and being able to understand abstract concepts once you poke them ab0ut it, there's hardly any reason any more to avoid refactoring as you go. You should have tests. If you don't, you make the AI fix that. You should have clean and understandable code. Your code should, at the high levels, speak the language of the problem domain. You shouldn't have primitive obsession problems everywhere. You shouldn't have god classes. You shouldn't have mixed concerns everywhere. You shouldn't have cycles in your components. All this can be overwhelming for a human team to keep in check. The evidence of our failure is everywhere. For AI, the complaint that it slows things down no longer holds even for a moment.
Consider, even with slow humans, the payback time to keeping code clean is measured in months (Martin Fowler would say weeks). In other words, if you write spaghetti as fast as possible, within months, you're being slowed down by tech debt, and it will only get worse. Imagine how fast that payback time is when AI agents can write 100,000 lines of code in a week. If you don't start from day one with some idea of how you're going to maintain the code, you'll be lost nearly out of the gate. And your AI will be bogged down too - using far more context than would otherwise be necessary, copying bad patterns everywhere, creating regressions, playing whack-a-mole, and getting steadily slower and more expensive over time.
So, if you're not reviewing all the code being written, you need other means to help the AI keep the codebase clean and maintainable. The ADE to the rescue.
Muster and Orbalis, a fledgling and opinionated Java/Maven-only ADE
So I'm building a couple of apps to do these things, and I'll probably combine them eventually. One helps me do the builds and deploy installers. That one is fairly simple, though it includes a library that can build native Java installers for multiple platforms all on my one linux box. I call that library "Gaard". In Muster, I drag a module from one panel to another and it's done. Then another drag and the installer is deployed on the web and downloadable for everyone. I have maybe 15 different apps at this point, so it would be ridiculous for every single one to install another JRE to any poor user that installed all of them, so Gaard can build the JRE as a separate dependency for all the apps in my suite and deploys the .deb and .msix files in that fashion. The end user installs just one JRE, all the apps use it, and their install sizes are only 5-15 MB, except for a couple that have some native tools. Gaard handles those too.
Gaard also enables usage of Java's various ahead-of-time caches automatically for end users. Every update and change tosses the aot information, so the Gaard launcher recreats without the user ever knowing about it. Currently with JDK 27, this speeds up start up time a modest amount. When JDK 28 comes out with aot compilation, that'll help speed start up even more and initial performance too. Gaard also installs the .msix files with a launcher that auto updates the app behind the scenes when I deploy a new version. On linux, you can add the debian repo and every update is a 'sudo apt update && sudo apt upgrade
Then Orbalis reads code from you codebase. You point it at some top-level maven module, and away it goes. Or you can point it at a sub-module, as seeing hundreds of packages in the graph can be overwhelming. There's a standard DSM (Design Structure Matrix). There's a free-form node graph canvas that draws your modules, packages, classes, methods and dependency links between them. It does auto layout, helpfully arranging your layers from top down, with cycles visible as red arrows that point upwards through the layers. You can expand modules to show packages. Expand packages to show classes. Expand classes to show methods. You can move them around, and the layout works with you to find a new position for things. It updates in real-time as your agent starts modifying your codebase, so new classes or packages pop in, the layout adjusts, classes or packages that are being edited pulse, colors show new additions or edits, all animated so as to be truly viewable by a human. There's a details panel that'll show you statistics and contents of whatever node you have selected. A Changes panel let's you see of tree of packages and classes and methods that have been changed. An orphan panel showing unused classes and methods. A hotspot panel let's you zero in on problem areas in your code, with 12 different kinds of hotspot testing. My hotspots and static code statistics are fairly simple, mostly based on LOC, Cognitive Complexity score, Fan-in & Fan-out.
And there is a notes panel.
The notes panel is just where all the side notes you've written anywhere are shown. You can open source code viewers and see the code as it's being changed. You can view it as a side-by-side diff view. And you can write notes into your source code, or your class, or notes for a package or module. Like TODO comments. "I don't like this here bit because...". You can do that while the agent is busy working on stuff and you have found something to say, but don't want to interrupt it. This let's you preserve any note you want where it belongs with the code you're commenting on.
Except these notes don't actually go into the code. They don't become noisy comments or forgotten TODOs, and they don't become part of AI's context every time they read the file. The notes go in a separate in-memory database, serialized in a data directory in Orbalis' home directory, and preserved with AST location in the code, so in your views, the notes always appear where they should in the source code, without actually being in the source code. A directory is created by Orbalis with AI instructions and a dynamically written script that the AI can use to read notes it hasn't yet seen, and reply, and you see the replies show up in Orbalis immediately. Your agent can be instructed to check the notes anytime, including as a general rule to do so periodically. The notes become conversations themselves, and then can be marked "Done" by the agent, and you can finalize and close them anytime. I have found this a great side-channel for getting lower-level code refactoring fixes in without disturbing primary feature work.
And there is so much more potential
I can think of a million things I'd want to add and I'm sure I'm hardly scratching the surface. Visual tools to watch your apps while they run, drawing graphs of control flow through your code. Dynamically create various UML diagrams of your code, if that's your thing. Manage Docker builds. Manage/observe multiple agents working across multiple different local git branches, maybe keeping an eye on when they start overlapping their efforts in similar parts of your codebase. I'm not planning on making a general release of my tool, because I really am building it for me. If I was a large organization, I would be very tempted to have such a tool built for my teams though, covering all their needs. If someone really wanted what I have, they can try it, all my software is AGPL.
I'm curious what ideas people might have though about useful features here that I haven't even thought of.