Back to list

Open-sourcing Greenhouse: a shared AI brain for an organization

Jim Lin
AGIProductTech

Over the past six months I've written a string of posts that all make the same argument: an agent shouldn't be an efficiency tool bolted onto one step of the process. It should sit at the center of the organization, with information and judgment passing through it first by default (Individuals run on the first push, organizations on an intelligence hub). And the bottleneck was never model intelligence. It's whether you can correctly feed it all the scattered, implicit, spoken-only context inside an organization (Feed the whole organization to the agent).

At some point one question became impossible to avoid: what does all this actually look like in a real system?

Writing about ideas isn't enough. So for the past few months I've also been actually building one. It was meant to be an internal tool only, but I've now open-sourced it. It's called Greenhouse.

The name comes from LetPot. It's meant as an internal tool for the organization, and I hope it grows alongside LetPot and incubates more creative products and services inside the company.

One command gives you a fully self-hosted app. You hand out accounts to members so they can log in (no app to install), and every capability can also be called by external agents through MCP. This post isn't about how to use it. It's about its design philosophy: what I was protecting behind each architectural decision.

Let me put one line up front:

If the agent is the center of the organization, then the center of the product should be a tool layer. The tools your team uses in chat and the tools you expose to an external Claude or Cursor are the same set. Adding a capability means writing one file.

It doesn't fill the "personal productivity" gap

The open-source world already has plenty of agent projects, but most of them are stuck at "personal tool": one person runs it locally and loves it. It can connect to models, call tools, remember things. But put it inside an organization and a whole layer is missing: centralized management, data permission separation, auditing, collaboration. None of it is there.

And that layer is exactly what decides whether a company can really put agents to use. That's the gap Greenhouse fills: auditable, permissioned, centralized management of the company's data and knowledge base, collaboration, and a way for members' personal agents to plug in and work alongside it. It isn't yet another clever agent. It's the foundation of a manageable agent platform.

In AI agents will redefine SaaS I said agents will turn software from "tools" into "proxies". But before a proxy can act on behalf of an organization, there has to be a foundation that keeps it in check: who can call what, what gets logged when something changes, which data is open to whom. A personal tool doesn't need any of this; an organization can't do without it. What Greenhouse wants to be is an open-source reference implementation of that foundation.

Going AI native can only happen top-down

Today most AI enters organizations bottom-up: employees start using ChatGPT, Copilot, and various personal agents on their own. I'm not optimistic about that path, at least not about it carrying a whole organization across.

Bottom-up has an obvious ceiling. Employees use it for themselves, efficiency first, with limited reach. Everyone uses their own thing, and nothing accumulates at the organization level. Worse, it always hits the wall of data permissions and department silos: why should one employee's personal agent be able to see data across departments? Without top-down authorization, it can only spin around in its own little patch and never do anything with real leverage.

So my view is that to move an organization as a whole, the direction has to flip:

Tools and data should be opened up top-down. Getting started should be easy enough, and from day 1 it should come with tools and data that solve concrete business problems.

Only then does an employee's first use carry that game-changing feeling of "this thing can actually do my work for me", instead of being yet another toy you have to fiddle with for ages. That's also why Greenhouse treats centralized management, per-person tool distribution, and top-down permission grants as first-class citizens rather than features bolted on later. It's the same thing I said in intelligence hub: AI native means reshaping the organization into the shape of an agent. It's reshaping, not hanging an assistant beside the old process. And reshaping has to start from the top.

Tools: the agent's hands and feet

The most load-bearing judgment in the whole system's design is this:

Tool capabilities are the agent's hands and feet. They decide what it can see and what it can do, and they define its range of action. Most of an application's extension points should be here, and so should its permission boundaries.

In Anatomy of an agent harness I took apart an agent's harness: it's assembled from tools, knowledge, observation and permissions. Greenhouse is a harness at organization scale, and its weight rests on two of those: "tools" and "permissions". Get those two right, and what the agent can and can't do is settled.

Since the extension point is here, adding a capability should be light enough. In Greenhouse, one tool is one file: you state what it's called, what it does, whether it's read-only or changes data, and whether it's exposed externally. That's it. You don't touch anything else.

Once written, it shows up automatically in three places: the chat window team members use every day, the app's own agent, and external agents (like Claude or Cursor). You don't maintain a separate list in each of the three; they're all derived automatically from that one file. It looks like an engineering detail, but it's actually a principle: one definition, three entry points. The same capability will never slowly drift into two different versions across different entry points.

The permission boundary lives in this layer too, and it only goes one way: it can only narrow, never widen. The tools an agent can get are always a subset of the permissions the user behind it already has: only fewer, never more, with no way to conjure up new permissions out of nothing. Operations that change data are blocked by default; each one needs a person to confirm it, and each one leaves a record. There's also a bottom line: if security isn't configured (say, no access password set), the service simply won't start. There's never a back door of "forgot to configure it, so everything's open".

The boundary between external and internal is drawn here as well. The public-facing window only touches public data and public tools and can't reach the internal knowledge base; internal members see tools assembled dynamically from their role and assignments; the two are strictly isolated. The entry point opened to external agents is bound to an internal account with the fewest permissions, and can only subtract from there. It's precisely this "can only narrow" boundary that lets me open the organization's capabilities to external agents at all.

Generative UI: messages are more than text

Tools decide what the agent can do. The other half is how it hands results back to people. My view here: replying in plain text every time in a chat box isn't always efficient for people. A table, a chart, a set of clickable buttons are often far easier to read and use than a long block of text.

So Greenhouse's chat messages don't just display plain text. When the agent's answer contains content in a specific format (a chunk of data, a chart, an action that needs your confirmation), the interface automatically "upgrades" it into a component you can actually use: a sortable, searchable table, a chart, or a set of confirm buttons you can click right away. That way a message isn't just a wall of text; it's clear to read and you can act on it.

The trade-off here: the agent only ever deals with text. It doesn't need to understand the interface. It just emits a chunk of fixed-format content in its answer, and what component that content finally becomes is entirely up to the interface layer. It's the same thinking as what I keep saying, "tools are capability descriptions; the model only produces output", just moved from the "input" side to the "output" side. And the view updates as it's generated: a chart that's already drawn won't flicker just because more text is still streaming out after it.

Going further, those "confirm" buttons aren't just for show. They connect your click back to the step where the agent stopped and is waiting: only after you click "confirm" does the agent move on. So here this isn't just about "looking nice". It weaves human actions directly into the agent's workflow. In A three-layer architecture for agent interaction I said agent interaction has to be thought through from input to output to feedback, and this approach in Greenhouse is what the output and feedback layers look like when they actually ship.

Agent Profile: distilling best practices into virtual coworkers

If the tool layer is the hands and feet, who decides "how to go about a specific job"? In Greenhouse, it's the profile.

Every member can create their own agent profile: give it a name, give it a face (there really is an avatar, with adjustable colors and accessories), write a role description, pick the set of tools it can use, and define a few common actions. This distills "how I do this job" into a virtual coworker. More importantly, it can be shared: share it with everyone in one click, and others can make a copy (fork) and then rework and improve it, iterating toward a better version.

This is exactly the logic from An agent's ceiling isn't the model, it's the compression ratio, in a different setting. A profile is a compressed workflow: one person's domain experience and best practices squeezed into a unit that can be reused, spread, and further improved by others. The difference is that this time, what's being compressed and spread isn't a Skill but "how a role does its job".

Add automation and the loop closes: schedule a virtual coworker to run a task, and the daily repetitive work, like the morning data check or periodic reports, it runs by itself. The longer a team uses it, the more good profiles accumulate, and the stronger the organization's "virtual staff" becomes. It's something that compounds over time.

Built for agents, and built by agents

The last layer, I think, deserves its own section: Greenhouse's implementation was written almost entirely by agents, but I set the top-level design. Some of the design in between was co-created with agents, but a human always made the call. This matches my conclusion in Loop engineering: execution can be handed off wholesale; direction can't.

Building it gave me a much more concrete feel for "generative development". Writing code itself isn't hard anymore. What's hard is writing code that keeps adapting to new requirements and stays maintainable. The deepest pit I fell into: code gets generated so fast that a mountain of garbage code piles up in no time, and the moment you want to keep building on top of it, your hands are tied. Even a complete test suite can't stop it, because once features pile up past a certain point, some product design assumptions start conflicting with each other and stop being clean, leaving invisible bugs I call "drift points". So this repo has been through many large-scale refactors. My response is to design in layers as much as possible and capture conventions wherever they can be formed. It's a gradual process.

That's also why this repo, besides being friendly to humans, is itself very well suited for AI to keep building on. Every layer has a manual written for AI (AGENTS.md) that spells out that layer's conventions, boundaries and rules. That's the harness prepared for "the agent that builds it". I even wrote a dedicated section on "anti-entropy discipline", naming "only adding, never deleting, and reinventing the wheel" as the biggest source of entropy in generative development, and setting hard rules: when you delete something, you must delete its docs at the same time and clean up everything that still points to it; if you want to write another similar implementation, first explain why the old one can't be reused. With these conventions in place, agents can keep developing, testing and releasing to the project's standards, instead of letting entropy climb another notch with every feature.

A product built for agents should itself be a product agents can keep building. These are the same capability.

Getting started is simple: git clone it, self-host with a single docker compose up, MIT license, and adding your own first tool is writing one file. Teams that want to build their own AI native internal platform can use it as a foundation; developers who want to understand how an agent platform should be put together can use it as a reference implementation.

My take

Having built it and open-sourced it, a few things are clearer to me.

First, an enterprise agent platform is won or lost on the harness, not the model. Models are shared; anyone can call them. What really decides how much work an agent platform can do, and whether it's safe, is how extensible its tool layer is, how clean its permission boundaries are, and how it hands results back in a way people can take in efficiently (generative UI). It's the same as the harness moat I've talked about: the parts that can accumulate and create differentiation are exactly the parts engineering controls.

Second, going AI native is a top-down engineering project, not bottom-up seepage. Bottom-up can make a few people happy, but it can't move an organization, because it can't get past data permissions and department silos. To move as a whole, tools and data must be opened up from the top, and employees have to taste real business problems getting solved the very first time they use it.

Third, a profile is what "compression" looks like at the organization level. Distill one person's way of working into a virtual coworker that can be shared and forked and improved, and best practices spread through the organization with compounding returns. That has far more leverage than "giving everyone a generic agent", because what it captures is role experience, not generic capability.

Fourth, a product built for agents should itself be built by agents. The hard part isn't writing code; it's writing code that keeps adapting to new requirements and stays maintainable. That requires people to step back to the design and decision layer, and to capture conventions and boundaries in AGENTS.md as rules for the agent that builds it. What people step out of is execution, not responsibility.

So my own position has changed too: hand off everything that can be handed off. What's left, designing the tool layer, drawing the permission boundaries, setting direction, is what I still have to guard myself. Greenhouse is my answer to "what does an agent at the center of an organization actually look like".

References