<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq" -->

---
title: Seven AI Agents, One Merge Button: Building an...
description: Daedalus is an open-source multi-agent software organization built with seven specialized AI agents — Team Leader, PO, Architect, Developer, Tester, Reviewer,...
canonical: https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Seven AI Agents, One Merge Button: Building an Autonomous Software Team That Has to Prove Its Work | daily.dev
og:description: Daedalus is an open-source multi-agent software organization built with seven specialized AI agents — Team Leader, PO, Architect, Developer, Tester, Reviewer,...
og:url: https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq
og:image: https://api.daily.dev/og/posts/SLEeAL5wQ.png
og:image:alt: Seven AI Agents, One Merge Button: Building an Autonomous Software Team That Has to Prove Its Work
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Seven AI Agents, One Merge Button: Building an Autonomous Software Team That Has to Prove Its Work

**[viking zhang](https://daily.dev/sources/i7ztgjzruumfopekog4th)** · [@vikingzhang](https://daily.dev/vikingzhang) · 9 min read · 0 upvotes · 0 comments

## Summary

Daedalus is an open-source multi-agent software organization built with seven specialized AI agents — Team Leader, PO, Architect, Developer, Tester, Reviewer, and Ops Analyst — each running in its own Docker container and orchestrated via the AgentTeams platform. The system routes bugs, features, and incidents through role-specific pipelines, with hand-offs made through schema-validated artifacts rather than shared context. The author recounts a failure where every agent role approved a patch that invented a nonexistent API parameter, caught only by the official SWE-bench harness, which motivated design choices like independently-derived tests, real pytest execution, deterministic review coverage checks, capped rework budgets, and a mandatory human merge step. The piece lays out design principles including constrained tool access per role, config-driven role definitions, honest degradation of capabilities, and pinned dependency versions with documented rationale.

## Content

_Daedalus is not another coding-assistant demo. It's a small software company made of agents — with job descriptions, hand-off contracts, real test execution, and a quality gate that can say no._

_Seven roles, one table, zero humans writing code. In Daedalus the org chart is configuration, not headcount. _Daedalus is open source — [github.com/viking714/Daedalus](https://github.com/viking714/Daedalus). The craftsman never sleeps.

A while back, an AI "developer" on my agent team fixed a real bug in a Flask config loader. It found the root cause correctly: a config file was being opened in text mode, which breaks binary TOML parsing. Then it did what confident engineers sometimes do — it invented a public API. It added a `mode` parameter to `Config.from_file()`. The upstream contract is a boolean `text` flag.

Here is the part that still bothers me: **our tester ran the tests and they passed. Our reviewer read the diff and approved. The team declared success.** Every one of them had validated the patch against the developer's own invented API. The official SWE-bench harness rejected it in a single line:

```
TypeError: Config.from_file() got an unexpected keyword argument 'text'
```

A green self-assessment, it turned out, only proves internal consistency — not conformance to reality. That failure, more than any success, is why [Daedalus](https://github.com/viking714/Daedalus) looks the way it does.

Daedalus is a production-oriented, multi-agent software organization: seven specialized agents that take a real issue — a bug, a feature, or a production incident — and turn it into a tested, reviewed, merge-ready pull request. Here is the team, how I run it day to day, the gates that keep it honest, and the design principles I would keep even if I rebuilt it from scratch.

## **The demo problem**

You have seen the demos. A terminal window, a flurry of agent messages, one happy path, and a result narrated by the agents themselves. They impress exactly once, because nothing in them answers the questions that matter on a Tuesday afternoon:

- What happens when an agent is wrong?
- Who checks the checker?
- What survives a restart, a flaky network, a missing binary?
- Can you audit, next month, why a patch was accepted last month?

A demo optimizes for the screenshot. A product optimizes for the second run, the hundredth run, and the run that fails. Daedalus is designed around those four questions, and almost every structural choice below falls out of them.

## **Meet the team**

![architecture.png](https://media.daily.dev/image/upload/s--1VIcAMQ9--/f_auto/v1789352203/ugc/content_72d939d2-279f-4be2-969e-a4785145c6b7?_a=BAMAMicg0)

_The whole loop: issues enter from a chat room, a Jira listener, or an alert; the team resolves them; a merge-ready pull request leaves. Every step emits an auditable trace._

Seven roles, each running in its own Docker container, orchestrated by the [AgentTeams](https://github.com/agentscope-ai/AgentTeams) platform:

- **Team Leader** — parses the task envelope, routes the work, arbitrates rework, owns the final verdict.
- **PO** — clarifies requirements and writes the PRD. Never touches code, never makes technical choices.
- **Architect** — root-cause analysis for bugs; docs-first architecture design for features.
- **Developer** — implements the minimal patch against the PRD and the design doc.
- **Tester** — derives tests from the PRD _independently_, then executes them for real.
- **Reviewer** — the senior quality gate, backed by a deterministic coverage check.
- **Ops Analyst** — diagnoses production incidents strictly read-only, and routes code issues back as bugs.

Three pipelines, routed by task type:

```
feature / greenfield → PO → Architect → Developer → Tester → Reviewer
bug                  → Architect → Developer → Tester → Reviewer
incident             → Ops Analyst → becomes a bug, or escalates to a human
```

When the Reviewer rejects work, it does not just say "no". It emits a `failure_class` — code, design, requirement, environment, or visual — and the Team Leader routes the rework to the stage that actually owns the mistake. A design flaw goes back to design, not back to the developer who faithfully implemented a bad design. Rework with a diagnosis, not rework with a shrug.

## **How I actually use it**

The whole company boots on one machine:

```
cp deploy/config.env.example deploy/config.env   # API keys, admin password
make install    # database stack + MCP skill server + platform
make start      # the entire company, one command
make status     # who is alive, who is sleeping
```

There are two ways in, and I use both for different reasons.

**The team chat room** is the interactive mode. I send a task envelope to the Team Leader — task type, repo, commit, symptom — and then I just watch the room. Routing message, architect's diagnosis, developer's patch, tester's evidence, reviewer's verdict. Condensed and paraphrased, a mid-task room reads like this:

```
coordinator  task_type=bug · flask @ d8c37f · routing → architect
architect    root cause: config opened in text mode · 3 call sites affected
developer    patch v1 pushed (fix.diff, 2 files)
tester       pytest in eval container: 2 failed · evidence attached
reviewer     coverage 6/6 files · failure_class=code · verdict: reject
coordinator  rework → developing (round 2 of 3)
```

It is strangely effective as a management interface: because every hand-off is a message plus an artifact, disagreement between roles is visible instead of implicit.

`make swe-bench` is the objective mode. It drives real SWE-bench instances through the bug pipeline and validates the resulting patches with the official test harness — the agents never see the acceptance tests. This is the mode that caught the invented-API patch. No self-reporting involved, no vibes: pass or fail, decided by someone else's tests.

Under both modes, the plumbing is the same. The Team Leader clones the repo into shared storage; each role pulls what it needs, does its job, and pushes a schema-validated artifact — PRD, design doc, patch, test report, review verdict — which becomes the next role's input. Prompts evaporate when the session dies. Artifacts survive, and they are what you audit later.

## **Quality is a constraint, not a vibe**

![quality-gate.png](https://media.daily.dev/image/upload/s--hdzwkmCX--/f_auto/v1789352266/ugc/content_dfd52c4f-ccf3-4b4f-b1db-ce52942edce4?_a=BAMAMicg0)

The gate is allowed to slow the line down. That is the point.

Four rules do most of the work.

1. Tests come from the requirement, not from the patch. The Tester derives its test plan from the PRD, independently of the implementation. Tests derived from the code can only confirm what the code already believes — which is exactly how seven agents once agreed on an API that does not exist.
2. Tests actually run. Not static analysis, not "the code looks like it handles the edge case". The Tester starts the prebuilt evaluation container, applies the patch, runs pytest, and reads the return code. Evidence, or it did not happen.
3. Review coverage is deterministic. The Reviewer delegates file selection and rule resolution to open-code-review with zero extra model calls, and gets back a coverage manifest. The rule is blunt: coverage must equal 1.0 — every reviewable file reviewed, skips justified explicitly — or the review is invalid and gets rerun. If the tool is unavailable, the Reviewer may fall back to pure LLM judgment, but it must state in its verdict that coverage is unprovable. Degradation is allowed. Silent degradation is not.
4. Rework has a budget, and humans keep the merge button. At most two retries per stage and three rounds globally; beyond that, the task escalates to a human instead of looping forever. And even a fully passing task ends as a merge-ready pull request — the final click is mine. Autonomy without an exit condition is just a doom loop with good branding.

## **Design principles I would keep**

If I rebuilt Daedalus tomorrow, these are the choices I would make again:

- **Constrained autonomy.** Each role gets exactly the tools its job needs and no more: the Developer gets no search tools (it implements, it does not scope); Tester and Reviewer are read-only on the business repo; the Ops Analyst is read-only on production. Autonomy inside a fence beats autonomy everywhere.
- **Semantic tools for finding, shell for doing.** Architects and Reviewers search vectors, dependency graphs, and keywords through one hybrid tool; Developers and Testers use bash. Matching the tool to the verb stops agents from improvising with the wrong one.
- **The org chart is configuration.** Every role is a declarative YAML worker plus an entry in a versioned skill package. Adding an eighth role is a config change, not a codebase change.
- **Degrade honestly, fail loudly.** Optional capabilities — visual checks, deterministic review — have declared degraded modes. A missing binary downgrades a check and says so in the verdict; it never fabricates a pass.
- **Versions are decisions.** Dependencies are pinned in a version ledger that records _why_ each pin exists — because an open-ended `>=1.0` once resolved to an incompatible major at install time and broke the skill server. Demos do not need a ledger. Products do.

## **The cheapest lesson I ever bought**

The invented-API patch still hangs on my wall, metaphorically. Seven capable agents, each doing its job sincerely, produced a confident wrong answer — because nobody in the room was independent of the person being checked.

**An agent team without an independent judge is a group of strangers agreeing with each other.** Everything in Daedalus — the PRD-derived tests, the real pytest runs, the coverage manifest, the failure classes, the retry budget, the human at the merge button — is just that sentence, applied repeatedly.

The roadmap continues in the same spirit: a Jira listener so tickets flow in without me, engineering memory so the team learns from every resolved issue, canary releases with automated confirmation, full-link observability.

So here is my question for you: if your agent team shipped a wrong-but-self-consistent patch tomorrow, would you find out before your users do?

Daedalus is open source — [github.com/viking714/Daedalus](https://github.com/viking714/Daedalus). The craftsman never sleeps.

## Similar posts on daily.dev

- [Engineering Multi-Agent AI Teams That Build and Test Themselves](https://daily.dev/posts/engineering-multi-agent-ai-teams-that-build-and-test-themselves-ehcixev11) · Salesforce Engineering · 1 upvotes · 0 comments
- [AI Agent Fleet for CI/CD: How Docker Ships Faster](https://daily.dev/posts/ai-agent-fleet-for-ci-cd-how-docker-ships-faster-acrgrdbdx) · Docker · 29 upvotes · 0 comments
- [Meet My AI Dream Team: How I Actually Build Software Now](https://daily.dev/posts/meet-my-ai-dream-team-how-i-actually-build-software-now-rmriitb1j) · Medium · 0 upvotes · 0 comments
- [Using OpenClaw as a Force Multiplier: What One Person Can Ship with Autonomous Agents](https://daily.dev/posts/using-openclaw-as-a-force-multiplier-what-one-person-can-ship-with-autonomous-agents-fkcin5dlj) · Towards Data Science · 1 upvotes · 0 comments
- [Multi-Agent AI Systems: A Smarter Way to Detect and Manage Technical Debt](https://daily.dev/posts/multi-agent-ai-systems-a-smarter-way-to-detect-and-manage-technical-debt-oyjqjurtk) · Syncfusion · 0 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#open-source](https://daily.dev/tags/open-source), [#ai-agents](https://daily.dev/tags/ai-agents), [#ai-coding](https://daily.dev/tags/ai-coding)

[View this post on daily.dev](https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq","headline":"Seven AI Agents, One Merge Button: Building an Autonomous Software Team That Has to Prove Its Work","text":"Daedalus is an open-source multi-agent software organization built with seven specialized AI agents — Team Leader, PO, Architect, Developer, Tester, Reviewer, and Ops Analyst — each running in its own Docker container and orchestrated via the AgentTeams platform. The system routes bugs, features, and incidents through role-specific pipelines, with hand-offs made through schema-validated artifacts rather than shared context. The author recounts a failure where every agent role approved a patch that invented a nonexistent API parameter, caught only by the official SWE-bench harness, which motivated design choices like independently-derived tests, real pytest execution, deterministic review coverage checks, capped rework budgets, and a mandatory human merge step. The piece lays out design principles including constrained tool access per role, config-driven role definitions, honest degradation of capabilities, and pinned dependency versions with documented rationale.","url":"https://daily.dev/posts/seven-ai-agents-one-merge-button-building-an-autonomous-software-team-that-has-to-prove-its-work-sleeal5wq","datePublished":"2026-09-14T02:20:06.135Z","dateModified":"2026-09-14T02:20:31.311Z","author":{"@type":"Person","name":"viking zhang","url":"https://daily.dev/vikingzhang","image":"https://avatars.githubusercontent.com/u/13830321?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"image":"https://media.daily.dev/image/upload/s--LEWnYZI2--/f_auto/v1789352407/posts/SLEeAL5wQ?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/i7ztgjzruumfopekog4th","name":"viking zhang"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"viking zhang","item":"https://daily.dev/sources/i7ztgjzruumfopekog4th"},{"@type":"ListItem","position":3,"name":"Seven AI Agents, One Merge Button: Building an Autonomous Software Team That Has to Prove Its Work"}]}
```

