Public API for AI-powered patching

Here is a small start, for now, only for writing code for the vvvv gamma ecosystem:

far from perfect, and far from complete, but a starting point:

Install only the mcp via cli (without pulling the repo):

dotnet tool install -g vvvv-mcp

Configure your MCP client (Claude Desktop, VS Code, Cursor) automatically

vvvv-mcp --setup

the mcp knows the graybook and @tonfilm’s skills, so it does an ok job at explaining simple patches and can also explain vvvv’s concepts in general. Nothing really a chatbot which you point at the graybook couldnt do, but it’s a start…
The repo also pulls all nugets available in the package manager and runs an analyzer to collect info about available packs and their nodes, which is then shipped with the mcp…but this will need more love to be fully useable.

not working yet: creating/editing patches. The mcp hasn’t “seen” any patch other than a simple box and a renderer, so it’s knowledge is strictly theoretical atm. the goal here currently is to edit vl files directly and possibly read back console and/or images from renderers.
what might never work (unless @devs take over here): see running instances, patches, open/close patches, manage nuget packages, export apps, etc.; so no real remote control of gamma for now.

100% vibecoded with free credits, since I’m spending too much for work already :D that’s why I have set up a sponsor button on github for the first time. Further development will not depend on donations, just bring them to you earlier 🙏

Update: I stand corrected, the HDE extensions give us a pretty good “attack vector” to control things like open/close patches, undo/redo, bring tab to front, read available packages, etc…I wasn’t aware of that, but the mcp itself already knew and the llm found out the rest…works here but need to ship a vl package for that too…coming…
Also thanks to @motzi and @readme for pointing out the mcp @kopffarben is working on, which seems way more advanced than what i have whipped up here in 1 day ;) i will still bring this into a working state, but I guess it’s fair to call this the simple one, hehe… @kopffarben i’ll hit you up in the chat!

Hey @digitalwannabe! super cool to see what you have built. I did not get a chance to run it yet but by the shape of the repo it looks quite feature rich already, especially the knowledge and vvvv-context endpoints available to the agent. I think that direction is really promising in reducing the time agents spend theorizing about VL patching tasks.

I may have a useful thread for the write functionality: a few weeks ago I have built a similar prototype with read and write tools for vl files. Works quite well already, although it is still very slow.

Editing a patch works by placing operation requests (placeNode, placePad, connectPins, etc) using a defined json schema into an inbox. These operations are then picked up by an execution thread inside an HDE Extension and applied to the patch using the public editor APIs.

I did not get around to polishing it yet so it is in rough shape, but there may be some helpful ideas or insights in there. Feel free to poke around in the repo, if you find anything useful I am happy to contribute it :)

We discussed this prototype at Link and compared it to @kopffarben’s MCP, seems like we all landed on similar implementation shapes. Seeing that your project now joins the list of work-in-progress MCP connectors, it might be worth consolidating our efforts into one really capable package at some point.

Let me know what you think of this, cheers!

GitHub - prt-prt/VL.Agent · GitHub

Hi @prt,

thanks for sharing your repo, and thanks for the feedback! Tbh, I didn’t expect to come this far this fast, and if I had known about your initiatives I probably would have never started this. Still not sure if I should regret it 😛

Your approach to creating patches sounds very neat, I’ll have a look! Would be cool if we could create some mcp bench to test these different approaches to the same goals.
I’m currently writing to the xml only (except for 1 api test path for setting pin values), but this needs a ui refresh to show up, which I assume your approach won’t need….. Doing it via xml also has other issues, like having to compute/load node sizes, etc…@kopffarben‘s approach seems to be even more checked out from what I understand.

I think it’s a good idea to exchange these approaches of how this kind of mcp tooling is solved, learn about this together and eventually converge on a best design, since atm there is still a lot to be gained from well-designed tools; simple example: at first, I had the mcp place one node after the other, first searching for the node, then placing it, min 2 llm calls per node, now I create a full subgraph in one go, try to validate it and only then drop it into the patch with only 1-2 llm calls total (but more mcp tool code running locally).

In the long run however, looking at how powerful the latest frontier models have become, the important thing here I believe will be the condensed knowledge database, since rather sooner than later a llm will be able to read all of it pre-prompt and construct the necessary tools on the go. Not a prediction mcps will vanish, but in case of patching in vvvv, knowledge about vvvv is where the juice is imho (…downloading the forum and chat rooms as I’m writing this 😇).
The rest is xml, c#, .net, hlsl, http…stuff the llms already know too well - at some point there’ll be no need for us to tell it what to do there exactly…

To get knowledge right is a huge task however, and it will be continuous work; also, this shouldn’t be a lone endeavour, because at some point you are asked opinions and have to decide on best style, common practices, „ideal“ solutions etc….also the amount of work is obviously a lot. I currently have 227 ocr-analyzed image descriptions from the gray book waiting to be checked by a human 🫩 (won’t do that before @kopffarben is back, maybe he’s done that already…..)

So I’m generally up for pooling efforts, I think it will be necessary; but since there are a number of vvvv library initiatives depending on community funding/contribution, which are not thriving as much as they probably should, I also (changed my mind on this and) think this should be made commercially viable from the get-go - for everybody involved - since it will not only consume time to curate/update the knowledge and improve the mcp, but also incur additional expenses through llms needed to do this well.
I’d happily be corrected here, but atm it seems like it’s more feasible to charge pros/studios than relying solely on community support. Ideally, some of that revenue could also be re-distributed to pro users who contributed indirectly to the knowledge base via packs, help files, forum answers, etc.
(Note that for this reason I have changed the license on the repo for now- it’s still free to use, there‘s no commercial license since you shouldn’t use it commercially yet, and I’m definitely not saying my approach is the way to go, but like this it leaves all options on the table.)

thanks for all your inputs on the topic! we wanted to give a little heads-up on what we’ve currently planned and are already working on in this space:

  • file format: an entirely new, compact, human readable file format for .vl documents: this one is well under way and we hope will be the basis of a fruitful collab with the machines
  • documentation:
    • for pack developers, a way to see what nodes are missing helps, so help can be easier completed
    • a way to export pack/node/pin infos for all nodes in a pack to get complete human and machine readable documentation
    • semantic search across any vvvv related docs
  • api: while vvvv does already have an API, it clearly needs a fresh look to become an easy entry-point for mcp servers

together those 3 components should provide a solid basis for next steps. we’re currently not sure if any of this will land in 8.0, but it should be save to expect things in 8.x. we’ll keep you posted as we progress!

Just wanted to join the discussion.

Super nice this work is done, i am looking forward to see how that can be for example incorporated with open source reasoning models. I think in the long run i willl be more interested in investing into those instead of centralized mega corporation.

Nevertheless i just completed a 3 month sprint for autonomous development with claude. So i had the chance to iterate long runs to build packs and patches,have them self evaluate themself and improve in continous sessions between a higher tier model that instructs sonnet agents for building and then tests the outcome and improves. That was in the context of a interesting task: we needed a custom hand tracking solution that is as good as proprietary vr hand tracking, but works with a typical depth and IR based audience facing sensor.

And my core findings from that is that claude has absolutly no problem building and compiling complex node sets, and then also using the xml of the vl file to successfully deliver the help patches, and also implement benchmarks to improve the tracking based on test data.

The first patches looked like a huge mess and it needed some basic explaining of vvvv patching best practices, such as simple rules for pin placement, submodules and also the use of custom datatypes to not end up with too many pins on the nodes.

But than that rules can be easily compiled as claude skill and next time it will directly be a nice patch

so effectivly, claude doesnt need any help like a extra interface.. xml seams to be quite workable

It also performed much better when starting out in a big projeect already, as opposed to a empty project. It would basicly just slot into the patching style of whats there already.

Which is interesting.. because a couple of months before i didnt get as good results from claude.

I somehow hoped that would stay that way.

Effectivly because i like visual programming i ended up building a vvvv style editor for my advanced comfui tools and a node based editor for microcontroller firmware development.. then i realized i just created two vvvv copycats for different purposes, the parches even look like vvvv and work remarkably well for its purpose.. it is a really good way to bridge the problem of usually ending up with a black box when building with ai - instead you build it to be a visual programming language to be modified by hand.

So, now just like any other software, anyone can basicly completly rip off vvvv as an idea and build it in no time.

Which brings up another topic. Because vvvv is - despite the briliance of our all mighty dev team - standing on some weaknesses, like not so great multi-core support and a aging graphics engine.

So, this goes maybe beyond that topics question per se, how do we as a community stand to the contribution of ai code.. like yes, anyone could spin off a autonomous run for a more modern graphics engine or even push out vvvv epsilon that runs on vulcan..

But in a couple of other forums there are already heated discussions. Arguments are that AI is undermining the social condtruct of which communities are build on. And lots of other points that are all giving me a bit of a headache..

just a quick note, if you have some tokens left, please tell your agent to check this out and merge/complement/improve this one:

it worked quite well for me too, but still has some quirks. there are some python tools that make common action in xml siple calls, which saves a lot of tokens. your work might could add some rules and details that are not yet covered there. especially for building help patches, this would be great, as these are often lacking in packages but have the biggest value for the ones learning the package.

and maybe you have additions to the other skills as well. it would be nice to have one central point where everything is concentrated and also kept up to date with latest developments in vvvv.

@lunanane You’ve got a bit of an AI fever

I really don’t see the point in using nodes for things that can be done with code. Gamma allows you to load code and projects written in C#. Yes, I used to complain that you couldn’t load code directly into VVVV, but with agent-based development, I’m ready to take those words back — just one C# project connected to VVVV Gamma, and you can write any nodes you need using code. This does raise the question: why have VVVV Gamma at all if everything can be written using agents and code? But I’m not suggesting we get sidetracked; I’d simply advise you to make use of the recommended skills for developing with VVVV Gamma.

Yeah, i actually mostly stunned by the discussion over at llllllines forum AI content within lines - should we update the policy? - #882 by billw - Meta - lines

Lots of interesting points raised, effectively they banned llm usage in the forum now - debatable, but the points are valid.

I do care about the social side of the creative coding communities i am in. At the same time i get it that professionals have to catch up on latest developments, this one particulalry..

Regarding why still use gamma?

I think it makes sense to keep as much interaktive control about your projects and node based editor and wrapping code into nodes is perfect for it.

There is lots of companies currently loosing track of their codebase and ending up in long debugging cycles because the llms and multiple people contributing causing trouble. And in deadline based work its even more critical, since every larger coding project will have some problems coming up towards the finish line..

And im of course interested, like is everyone okey receiving pull requests with large junks of llm code to their packs? Worth asking..

Edit: thanks for pointing it out @tonfilm

I’ve already tried developing in VVVV Gamma several times using the ‘a couple of C# projects + agent-based development’ approach. Then I assembled the project using Gamma nodes.

However, right now, I’m rebuilding those same projects from scratch without using VVVV at all. This is simply because it’s difficult to maintain, build and manage new features while ensuring that the old ones still work. In some cases, particularly graphics-intensive ones, VVVV is still the solution, but if the application is UI/UX-based, one should start with agent-based development using web technologies straight away. But I can see that even graphics-intensive projects will gradually drift towards something like Three.js in my implementation.

VVVV clearly needs to be rethought, but this is simply a coincidence. Nobody knew that agents would come along and completely replace code and that features would be implemented on demand rather than by writing code or connecting nodes.

I attempted to solve problems using nodes that could be solved with code in seconds, or even fractions of a second. On average, developing with nodes is thousands of times slower than writing code, not to mention using agents. Sometimes it seems to me that people write code as art instead of creating art through code, which is a real problem for progress.

However, the point you raise about the community is valuable; someone needed to ask this question.

Interestingly nobody speaks about the technical debt that raises by working with AI. This was already an issue with node based programming - in our case with vvvv - fast prototyping and dirty workarounds used to be the biggest issue till now. I can imagine now that this will skyrocket with the way code and progs are recently being written by AI agents. Probably a new model in the near future may take care of the mess that is being caused now. Anyways, I partially agree with @yar , that recent changes are affecting programming drastically and they also give this false (to my opinion) perception that node based tools will be soon deprecated. However, a hybrid approach where one is vibe coding in C# and nodes are being used directly in vvvv context is already a great combo for prototyping.

The title is a bit hyperbolic …

@nissidis It seems to me that, in the age of neural networks, node-based systems might look quite different. What used to speed up development – nodes, large pre-built blocks – is now actually slowing things down. How to overcome this slowdown is a major challenge!

I think VVVV Gamma needs to integrate more deeply with code and the agents that load code into VVVV. But I find it hard to describe exactly what needs to change to make it feel right; it’s just becoming clear that something has to change.

I think many people still haven’t realised just how much easier it is to solve 95 per cent of tasks without VVVV, although I’m personally a strong advocate and have always been in favour of VVVV, especially since Gamma came along. To be honest, I sometimes see more technical debt in complex VVVV patches than in code written by agents. Do you think I can understand my old projects as quickly as an agent can simultaneously understand and correct the behaviour of finished code? The quality of code produced by state-of-the-art models is already significantly higher than my own (particularly compared to the quality of my old patches), and any errors that do occur are no more frequent than those I make. At the same time, development speed has increased by a factor of 10 to 100, depending on the nature of the task.

Interesting thoughts here!

But i would actually disaggree thst node-based systems would slow things down.

What matter is the right take in my opinion.

Another factor, is that node based systems could significantly decrease inference costs. Already now because you can patch yourself and only do some missing nodes via llm inference, or work with llm to assist in patching, and then it is only a fracture of lines of codes to be processed by llm as well, since not everything has to be reinvented and we are are only touching xml/json structures.

On a future outlook, i did some (llm assisted) research and the initial assumption holds that much smaller models can be trained to do actual specialized “patching”, since its a much smaller set of paramters that is required and which could already run locally if such a patching model would be trained. Then the remaining inference costs for higher end coding or reasoning model can be a fraction of the costs while beeing eventually still very effective with building larger applications, especially with a human still doing satisfying and creative work, could be quite refreshing way of working.

Also we cant say that for sure, but its possible thst high end coding models get more and more expensive and are now just in a roll-out relativly cheap. But even at the current prices it would cost already 2-3 k a year for single developer. we often have to maintain codebases for longer and that creates a dependency on paid subscription to be able to do that. also the way of working stop and go on a prompt window might also do all kind of things with focus, motivation etc, personally not so down to accept this as a new way of replacing my creative coding routine

@lunanane Paid tools that cost thousands of dollars a year are nothing new. As a former motion designer, I was always left speechless by the cost of the software and plugins I needed for my work. And if you don’t renew your subscription, your only options are piracy or taking up a completely different, fascinating pursuit. It’s also worth adding the endless paid courses and tutorials to that total.

Working with nodes slows things down! I’ve seen this not only in the challenge, but also in my day-to-day work. For example, to create a USER-FRIENDLY app that can be quickly deployed at an event and which has an intuitive, natural interface and the features you’d expect by default from user-friendly software — in Gamma, you’ll have to manually connect a multitude of nodes, and in most cases, you won’t end up with even a tenth of the functionality. Now, I use Electron and within 10–15 minutes I have: a timer to hide the cursor, full-screen mode that’s saved system-wide, position and screen state saving, an advanced settings menu accessible via a hotkey or a ‘secret tap’ on the screen, and any behaviour or feature can be implemented or modified on request; a 100 MB size, an executable file with an icon, and a whole host of other things I’d get tired of listing—all of which in Gamma require a lot of effort to achieve. Yes, it’s possible to significantly improve the architecture of some of the nodes in Gamma and get similar functionality out of the box — that’s exactly what I’m talking about; we need to change something in Gamma. That said, I tried the ‘C# project + Gamma’ approach and at one point ended up with one or two connected nodes, which led me to ask the obvious question: what’s the point of Gamma at all if I can simply write the project entirely in C#? And in that case, why not just choose any other technology: Rust, TypeScript, Go – or indeed, anything at all?

I agree with @yar i have the same experience for sketching i currently use ai and whatever gets the job done blender three js p5 js so often web stuff or unity workflow is much faster because it is fully integrated, i think unity fits quiet well because it structures the code into smaller peaces using monobehaviors that you find and control in the inspector so you are less confronted with a huge black box.

On the other end I started to build my own visual programming tool out of curiousity last winter every patch is compilable c# here and the placement of the nodes is stored in a layout file, everything in the editor is mcp accessible the agents can write patches as code patch them selve make screenshots of anything check errors logs of shaders and the application so it is fully integrated and it works really well and fast it works with dx 12 has its own render backend and a lot of fuse functionality is already integrated and this while it is more a side project.

The big shift I see in programming is instead of building by enrichment meaning you put operators of programming languages to functions classes frameworks tools, you build by reduction you take the enourmous knowledge of the llms and bring it into shape where code is one way but i start to think more of knowledge models that describe for example computational desgin principles but can be materialized by any tool. Here i made an experiment where i scanned touchdesigner patches, shadertoys and processing sketches for overall higher level strategies and distill a common design grammar.

So I feel my self on the search for new paradigms and also wonder what does it make with communities with ai tools become less isolated islands it is no problem to translate anything from and to anything.

@texone I’m curious : since you have such a node-based tool at hand that integrates well with LLMs (which is, as far as I understand is the direction vvvv aims to take), what’s your take on visual programming? What benefits do you see in using visual programming in such an LLM-friendly setup as opposed to text coding, or even no coding at all (i.e “prompt in - software out black box”)?

As far as I’m concerned, I would love to benefit from both worlds. I still enjoy using vvvv and feel comfortable sketching things there, but would definitely love to benefit from the help of LLMs to either reason about algorithms or help me with tedious tasks, such as the ones @yar mentioned or more “back-end related” things like refactoring.

@sebescudie my motivation is as human to stay in the loop as fascinating the progress with the agents is it is also tiring and once i do code based sketches i accept to mainly access them through chat and user interfaces.

What I can say from my tool is that a more direct interaction with the agents seems possible where the patch is a second interaction area besides the chat window, it helps you to understand what the agents build from low to high level. The main objective in my opinion is to create readibility to help us understand what the agents build fast and decide up on it.

I would say the technical side works quiet well in my prototype already, what i looking into now is to shape the output of the agents not only into something working but also into something readible. This is often kind of okay but should be better, So I am currently working on something that maps design concepts onto operations and techniques to have a proper documented and flexible structured node set the user and the agent can interact on that leads to readible patches.

this is where i try to distill a grammar out of lots of design examples it summerized into on javascript lib to isolated individual building blocks, i am currently translating this into nodes and packages in the tool.

:popcorn:

2 Likes

I see a pattern emerging with all of this AI hype in general, where people stop collaborating on the same software and everybody just builds their own custom tailor-fit project which then eventually gets abandoned after a prototyping stage …