Settings

Theme

Show HN: Agent Swarm – Multi-agent self-learning teams (OSS)

github.com

63 points by tarasyarema 14 days ago · 51 comments

Reader

itmitica 14 days ago

Interesting project.

Interesting readings in the project, such as https://github.com/desplega-ai/advanced-context-engineering-....

I'm not sure why, but I keep trying to reject this, subconsciously. Like, there is something I can't define that is not right.

I think it revolves around two things

No actual future benefits from abandoning the problem solving to a temporary swarm construct that will have a solution ready but potentially having learned nothing from the experience, that could be used in the future.

Shifting the engineering from stable sourcecode and frameworks to ephemeral prompting one-shot-and-done solutions.

Has programming become too meta?

  • edg5000 14 days ago

    I think the concept can and will work and become the norm, but there is a lot of refinement and first-principles rethinking still needed. The ideas we see today are still unripe and need work. But we are on to something here.

    • tarasyaremaOP 14 days ago

      100%. I believe the best thing to do now is find ways to push the limits of what works and what not, which will help find the following limits, and keep going

  • tarasyaremaOP 14 days ago

    Yes, I spent too much time meta programming while working on desplega.ai (my startup). And I believe currently the best approach is a mix.

    Have the swarm work on stuff you could delegate to an intern and basically have the feedback loop with it in slack and github.

    On the other hard locally focus on the hard things you want to control.

    • itmitica 14 days ago

      I too was convinced at one point the spec is the program.

      That it doesn't matter the implementation stack.

      But, after wasting too much time in the meta, with nothing really to show for, I returned to controlling the programming process in fine detail. Progressive agentic/vibe coding, if I was to give it a name.

      But it could be that I'm slow to understand how it can be done in a better way.

      • edg5000 14 days ago

        I think this progressive/gentic vide coding would work better if the tools were better and storing the history in a good immutable way, kind of like an email program. I have very valuable sessions where I give the agent a good ephemeral spec, something not sensible to persist in the codebase, but important enough to track it somewhere. Throwing away history is a big no no. Bad GUIs/TUIs discourage from relying on the history. When I close a session, I feel I'm throwing away the history. I keep many terminals open, but eventually have to close them. Tools will get way, way better to facilitate this "general on the frontlines commanding the agents" style of work.

      • tarasyaremaOP 14 days ago

        I believe that it’s a matter of evolution. You start small and find what works fir you and the project. Then iterate and see how to remove yourself from it more.

        I actually wrote about this concept here if that’s something the might interest you: https://www.tarasyarema.com/blog/2026-02-18-introducing-sema...

        • itmitica 14 days ago

          I like your content very much, let me point this out first.

          I'm not sure all aspects are covered in the approach.

          For instance, controlling the agents takes a big chunk of the interest. The agentic system architecture is also big in view.

          But, the way I see, more important staff is: project structure, coding best practices, testing strategies. All still deterministic. All still very tough to get agentic to do it right.

          I think agentic should just be means to an end: project quality and project ease of management. If not, it's just an indulgence that costs money.

          • tarasyaremaOP 14 days ago

            First of all, thanks!

            And agree on the open questions. Our goal is to keep experimenting and actually figure out how we agentic coding falls short in different scenarios and how that could be solved.

            For instance, on our own projects, in some cases it requires different approaches. E.g. in our core product we power-use stuff like pm2, AGENTS.md special instructions, testing strategies dogfooding our own qa-use and special claude code commands that we found work best. In other repos, we have slightly different approaches.

            Still we are far from autopiloting a lot of the stuff we build. But at the same time we are getting to a point where changes are done much faster, and the agents have more of a complete toolset for their validation, which makes it easier to supervise too.

_pdp_ 14 days ago

The core issue remains: where do you apply this.

It all has hypothetical benefit at this stage. The only examples I can think of where sub-agents where used extensively and documented is to write a barely working c compiler and barely working browser. Both are coding tasks that do require a lot of processing.

What I am trying to say is that it clear you can speed up the delivery but benefit of this approach is not clear.

This also matches my own experience.

  • tarasyaremaOP 14 days ago

    I use this a lot for multi-tasking, let me explain.

    Currently at my startup (and in the past when I worked on a bigger company) I have ton of random tasks I need to tackle during the day: from Sentry issues, to analytics on usage, roadmap implementation, customer support. Some of them required deep focus, some of them don't.

    Since we have the swarm running for our company my day to day hasn't changed that much in terms of the work I do locally. What it changed is that I can start delegating a lot of my backlog and chores to the swarm. It will do it, iterate, delegate, review, and finally send me a PR or report to check. I check those in the morning and night, and that's it.

    I added it to our customer channels, were it has scoped access to the customer setup, and help me debug the issues, and offer a frontline ultra-personalized support.

    I see it as a team of interns that just do stuff for you. And good thing: they learn from their mistakes to (hopefully) do not make them again (compounds).

    As a random bonus: given the swarm knows what we do and how we work, I just ask them to go out there and figure out any relevant news or posts I should check each morning, and I get a personalized digest to read while I make coffee.

    • _pdp_ 14 days ago

      Yah. You are describing basically every youtube I have seen on openclaw use-cases: news digests, morning debriefs, etc. I am sure this is useful but not something that you specifically need sub-agents for.

      In the context of coding assistants sub-agents are mostly useful to breakdown a more complex tasks in smaller chunks so that refactoring can be done without loosing context. But this is a completely different problem domain that requires burning through a lot of tokens.

      In theory I get why it might be useful but what I am trying to say that applications at the moment are limited due to the fact that it is just overkill for most AI interactions.

    • rob 14 days ago

      Did you set them up to respond to any HN comments automatically?

      https://news.ycombinator.com/item?id=46110024

      The two "this is an example reply" and "another" comments you made seem like some sort of automation test there.

      • tarasyaremaOP 14 days ago

        jaja no, the replies to this post I did them manually. The ones from your link were a test I did a while ago unrelated to the swarm :D

        funny you found that XD

mercutio93 14 days ago

The persistent identity files are interesting but there's a cost problem. A recent paper (arxiv 2602.11988 https://arxiv.org/html/2602.11988v1) found context files increase inference cost by 20%+ with marginal performance gains; LLM-generated ones actually decreased success rates slightly.

Four identity files per agent injected every session feels like monkey patching coherence with context. Context isn't memory, it's just more tokens. The hard unsolved problem is cross-session learning without the bloat.

Curious if you've measured the token overhead of the identity files vs the performance gain they provide.

  • selridge 14 days ago

    That paper is hard to evaluate because their modal example of a “context file” is a bad practice that arose from early attempts at text-based agent guidance before we recognized that contextual instruction was the aim, not just “context.”

    With a “context file” you’re almost guaranteed to add bloat without useful behavior change because it’s just a pre-set list of things that could be good to know about.

    So the results of the study don’t generalize to every text file used for instruction or even most.

  • tarasyaremaOP 14 days ago

    Yeah, saw that paper. And I have the following notes on it:

    1. Agents update those files themselves, but currently with my oversight and guidelines (from the UI you can even see it's contents)

    2. Measuring this is extremely hard, if not impossible. One of the goals of the swarm is to help me on random tasks that can span a lot of different pieces, not just implementing a feature.

    Before last week, we did not have the memory and identity files. And, from an empirical pov, I can say that the general feel improved a lot. I see that in similar situations it does not perform the same mistakes. Also, what is stored in those files generally is something that the agent CAN NOT find using it's tools (like the paper suggest to avoid) which actually helps.

    In any case, the swarm created a research on this topic a few days ago https://github.com/desplega-ai/agent-swarm/pull/86 maybe I'll iterate on it and see what we can get :D

tarasyaremaOP 14 days ago

Hello there HN!

We've been building agent-swarm since November last year, and we wanted to share an update on its capabilities, specially focused on the self-learning part.

After all the hype with OpenClaw, I thought that the existing architecture needed a rewrite to make it compounding. Hence, last week we implemented a self-learning core to the swarm so that it can compound.

It follows really similar ideas to the OpenClaw where there's a SOUL.md and IDENTITY.md. As it's docker based, it has some personal and shared volumes that persist, so those are used to track re-usable scripts and notes. We also added SQLite based memory that agents can write to and query. The interesting part about it is that there's personal and shared memory, which allows the lead to propagate learnings across the swarm!

We've been using it non-stop for the last week, and I already see the compounding effects. E.g. we have a morning scheduled task that makes the lead assess the previous day work, and figure out ways to improve it's processes, and it got better!

To end, note that it's fully OSS and it's as easy as deploying a docker compose to a VPS, or even locally. It's core is based on an MCP that the lead and all workers share, which allows you to impersonate the lead locally to control the swarm from your coding agent too!

We implemented a super simple UI at app.agent-swarm.dev that runs in the browser only so you can put your API url and key to see it in action.

P.S.: It uses the claude CLI only now, so there should be no issue with the Anthropic terms, and it's really thought to be self-hostable.

P.S.2: Obviously, all the agent swarm code has been written at 95% by agent swarm via Slack :D

If you have doubts or questions about the architecture, or what we are planning to build next, happy to chat in the comments section!

  • marknutter 14 days ago

    Literally just started building something exactly like this yesterday with my openclaw installation (it seems lots of people are in fact). I'm loving your implementation, there's lots to learn from there. Keep up the great work!

    • tarasyaremaOP 14 days ago

      Thanks! In fact yes, initially when we built this openclaw was not there yet. And after trying it was clear that I could adapt swarm to have a similar approach. I believe the self improvements part is really key.

      Today I did the audio note test, it literally installed all needed and adapted its memory to use that whenever I send followup audio notes from Slack :D

  • sschueller 14 days ago

    I would love to see this run with a less expensive model like GLM-5 or so.

    • tarasyaremaOP 14 days ago

      I have to give it a try. Will need to check for Anthropic compatible APIs (I know openrouter have one) and see how it works. Will def try it out and post some benchmarks in the repo!

boluwatifedeli 14 days ago

This mirrors a lot of what I saw while experimenting with constrained agent runtimes. Notes here if helpful: https://github.com/nullclaw/nullclaw

edg5000 14 days ago

This is amazing. I think systems like this will power many things in the future; especially professional use of desktop systems. Basiscally most types of desk work, be it low or high skill.

  • tarasyaremaOP 14 days ago

    Thanks! I too believe this, unsure how it will actually look, but the pattern of AI employees is clearly rising.

mohsen1 14 days ago

Had similar ideas [1] but I think leaving this to Claude[2] is probably better for me personally

[1] https://github.com/mohsen1/claude-code-orchestrator

[2] https://code.claude.com/docs/en/agent-teams

  • tarasyaremaOP 14 days ago

    Yeah, I saw different approaches to solve this problem. On the native one I think it's really limited now. The main pain point is that the teams are scoped to a single session, which feel really off to me. Also, it's local only. But we'll see what Boris will ship I guess...

MaikaDiHaika 14 days ago

Hmm, didn't Anthropic forbid people to use OAUTH with these kind of applications?

_joel 14 days ago

"my CPU is a neural net processor, a learning computer"

jbverschoor 14 days ago

Isn't this what subagents are supposed to do?

  • tarasyaremaOP 14 days ago

    This may not run in your machine, and you can interact with it from channels like Slack or Github.

newsicanuse 14 days ago

Useless until you built rebenue generating app usong just this. Just another cog in the hype cycle.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection