Codeäffchen OS: Why We Built Our Own Agency Software

16 min read Auf Deutsch lesen

In short

Codeäffchen OS (CaOS) is our in-house agency software: a Laravel 13 app with Kanban boards, a knowledge base, a project log, a client portal, inbound and outbound mail, time tracking, planning, maintenance and an MCP endpoint for AI clients. We built it because tickets, knowledge and client communication were spread across several tools. It supports multiple tenants and is still small enough for us to maintain ourselves.

Until mid-November 2026, our tickets lived in Jira, our written knowledge in Confluence, and some of our clients’ work in their own Trello boards. Time, client mail and the state of maintenance contracts sat somewhere else again. Each tool was fine on its own. Put together, none of them could tell us what was actually happening in a project.

So we built Codeäffchen OS, or CaOS as we call it internally: one Laravel app that holds boards, knowledge, the project log, a client portal, mail, time tracking, planning and maintenance. This article opens a series. It covers why we built instead of bought, what is in the app, how it is put together, and when we would advise against doing the same. Ten follow-up articles go deep on the technical parts.

Where we started: plenty of tools, no shared picture

The CaOS documentation states the goal in one line: pull everything into one place and cut the number of tools. In practice that meant:

  • Jira Cloud for tickets, across a handful of projects with a modest number of issues.
  • Confluence for written knowledge, plus a plan to keep project notes in a team wiki inside a Git repository.
  • Trello on the client side. Some clients run their own board and want to keep doing so.
  • Time, client mail and maintenance status, each in a corner of its own.

The real trouble was the space between the tools. A ticket had no idea the client had asked about it by mail yesterday. A project note couldn’t tell you which card belonged to which deploy. And once we wanted AI clients to work alongside us, “what data is the model allowed to see?” had no clean answer across four tools with four permission models.

Build vs. buy: why we built

For most companies, buying is the right call. For us, a few things came together that tipped it the other way.

Our workflow has its own shape. An agency doesn’t just finish cards, it also bills them. Every column in CaOS therefore has a fixed type, and between “testing” and “done” there is “to bill”. Application logic only ever looks at the type, never at the label:

enum ColumnType: string
{
    case Backlog = 'backlog';
    case Planned = 'planned';
    case InProgress = 'in_progress';
    case Waiting = 'waiting';
    case Testing = 'testing';
    case ToBill = 'to_bill';
    case Done = 'done';

    public static function finished(): array
    {
        return [self::ToBill, self::Done];
    }
}

You can rename a column, and its type stays the same. Reminder mails, filters, the portal and AI jobs can all rely on waiting or to_bill, whatever a board calls its columns.

Clients should get a curated view. The portal is no window into our boards. A card only shows up there once someone switches it on for the client, and then with its own client-facing title and description. Internal comments, time and labels stay internal.

AI clients need a permission model. Through our own MCP server, an AI client works in CaOS with exactly the rights of the person who connected it. That only works because all the data sits in one app with one set of rules.

Building this kind of software is our job anyway. Laravel applications for clients are what we do every day. CaOS runs on the same stack, uses the same patterns and the same tooling. What we learn there flows into client projects, and the other way round.

We settled two things from day one. CaOS is an internal tool and will not become a SaaS. And CaOS supports multiple tenants. If you have ever retrofitted multi-tenancy, you know why that decision belongs at the start.

How CaOS came together

The tech stack document is dated 13 November 2026. The first commit in the repository is from 16 November 2026. According to the Git log, the board, live updates, notifications, the Jira import, the Trello sync, the MCP server and time tracking all landed on that first day. The knowledge base and the client portal followed on 17 November, the project log, handbook and maintenance area on 18 November, and planning, client onboarding, the audit log and deletion runs on 19 November.

Two things explain the pace. The planning was written down first, in Markdown documents covering the data model, roles, queues and open questions. And we built with AI assistance; part of the commits carry a Claude co-author trailer. Fast did not mean flawless, though. Early in the log you’ll find commits like “Stop Trello pushes from overwriting client changes” and “Fix Trello sync data loss and missed changes”. For the first few days the two-way sync overwrote client edits, until we tightened the conflict rules.

One plan changed along the way. Originally Jira was to be mirrored for a while through a one-way sync. What we built instead is a one-off import per project in the browser, with a dry run, status mapping, and worklogs carried over as time entries. Card keys from Jira are kept, and new cards continue after the highest Jira number. CaOS only ever reads from Jira and never writes to it.

What CaOS covers

The code is organised by domain under app/Domain/*. These are the main modules as they exist in the code:

Area What it does
Boards One Kanban board per project with fixed column types, keyed cards like CA-142, checklists, links between cards, recurring cards, filters across all projects, full-text search
Knowledge Markdown pages in a tree, general or tied to projects and clients, with every version kept; plus a handbook and a project file per project, created from a fixed template
Project log Per-project entries for changes, deploys, decisions and lessons learned, written by people or by AI clients
Client portal Magic-link login, the client view of released cards, client tasks with reminders, a request form feeding a triage inbox, project kick-off onboarding
Mail The shared project mailbox fetched over IMAP and matched to clients; outgoing client mail through a throttled queue
Time tracking Timer and manual entries on cards, reports per client and project, a Raycast extension
Planning Capacity per person, absences and public holidays, a weekly plan, milestones, planned vs. actual from time tracking
Maintenance Maintenance contracts per site, backup and update status through a connector API, maintenance reports
MCP Our own MCP server, through which AI clients act with the user’s permissions

A few details show how much day-to-day agency work went into these modules. Planning is explicitly not a performance tool: no rankings, no comparisons between people, and lists of people are always alphabetical. The maintenance area knows nothing about WordPress or Laravel. It gets its data from connectors that are separate projects, which keeps it generic. And time tracking allows exactly one running timer per person, enforced by the database itself:

// One running timer per user, enforced by the database. MariaDB has no
// partial indexes, so a stored generated column carries the user id only
// while the entry runs; NULL values don't conflict in a unique index.
$table->uuid('running_user_id')
    ->storedAs('IF(ended_at IS NULL, user_id, NULL)')
    ->nullable();
$table->unique('running_user_id');

The project log replaced the Git wiki idea, by the way. What happened in a project now sits next to its cards. What holds for good (setup, deploys, where logins are kept, known pitfalls) goes into the project file in the knowledge base. Credentials themselves are never stored in CaOS, only a note on where to find them.

Stack and key architecture decisions

Layer Choice
Backend Laravel 13 on PHP 8.5
Frontend Inertia.js 3, Vue 3 with TypeScript, Tailwind CSS 4
UI primitives Reka UI (headless), with the component source kept in our own repo
Drag & drop vue-draggable-plus
Realtime Laravel Reverb and Laravel Echo
Queues Laravel Horizon on Redis
Database MariaDB 11.8 LTS
AI Laravel AI SDK (laravel/ai), MCP via laravel/mcp
Hosting A single cloud server in Germany, files on local disk

Why Inertia and Vue. The first feature was a Kanban board with drag and drop, optimistic updates and live changes from other users. That needs real state in the browser. Inertia gives you that without building a separate API, and routing, validation, auth and policies stay in Laravel. The docs list the rejected options with reasons. Livewire meant a server round trip for every interaction on the board. A standalone SPA with a Laravel API would have meant two deployments, token auth and validation written twice. Filament is excellent for back-office screens, as we describe in Laravel Filament: admin panels in days, not weeks, but hard to bend into a Kanban-first UI with our own design.

Domain folders and actions. Controllers stay thin and the logic lives in actions under app/Domain/*/Actions. That pays off in the MCP server: every tool calls the same action as the matching controller. A change made by an AI client looks exactly like a click in the app.

One place per rule. What a kind of user may do is answered by a single enum, Capability. Policies, dashboard widgets, shared props and MCP tools all ask it instead of checking roles themselves:

$user->may(Capability::ViewFigures);

A new rule for a role becomes one line in that enum.

Queues by kind of work. A slow AI run must never hold up live updates. So there are separate queues for realtime, default, ai, reports, mail and sync, each with its own Horizon supervisor. The mail queue runs with exactly one process so the gap between two mails holds. An architecture test makes sure nobody slips in an undocumented queue:

test('the queue attribute only uses the documented queues', function () {
    $queues = collect(appClasses())
        ->flatMap(fn (string $class) => (new ReflectionClass($class))->getAttributes(Queue::class))
        ->map(fn (ReflectionAttribute $attribute) => $attribute->newInstance()->queue)
        ->unique();

    expect($queues->diff(['realtime', 'default', 'ai', 'reports', 'mail', 'sync'])->all())->toBe([]);
});

The same pattern shows up all over the codebase. Architecture tests check that every route is authorised, that client mail only leaves through the outbound queue, and that every new model is registered with the audit log. A rule that only lives in the docs gets forgotten eventually. A failing test gets noticed right away.

Strict Eloquent outside production. Lazy loading and reading attributes that weren’t selected throw an exception locally and in tests. An N+1 query fails the test instead of quietly running extra queries.

If you want the longer argument for Laravel as a base for this kind of internal system, read Why Laravel for custom business software.

The topics in this series

Each follow-up article digs into a problem we actually ran into while building CaOS. Here they are, grouped by area.

Board and realtime

Reordering cards by drag and drop sounds trivial until you notice that integer positions rewrite half a column on every move. CaOS uses fractional indexing with string keys, so a move only touches the card that moved. The catch is in MariaDB: without a binary collation, the column sorts case-insensitively and gets the order wrong. The details are in the article on fractional indexing for drag and drop.

When someone moves a card, everyone else sees it right away, with no polling. The domain events stay plain; a subscriber builds the payload during the request and hands it to Reverb through the realtime queue. Since several workers broadcast in parallel, updates can arrive out of order, so the browser remembers the latest timestamp per card. More in the article on realtime boards with Laravel Reverb.

A small violet dot marks cards that changed since you last opened them. For that we store, per user and card, when it was last opened. The interesting part is answering this for a whole board in one query rather than checking card by card. That is the subject of the article on unread markers without N+1 queries.

Integrations and AI

The MCP server is one of the main reasons CaOS exists. Claude Code, the Claude apps or Cursor sign in over OAuth and then work with the rights of the person who connected them. Client users get no access, and tools for areas a user can’t use don’t even show up. There are more than a hundred tools by now. How we built this with laravel/mcp and Passport is covered in the article on building an MCP server for AI clients.

Trello stays in the picture. A CaOS board can be linked to a client’s Trello board when it is created, and from then on it syncs both ways. Changes from CaOS appear in Trello under the team member’s real name rather than a bot account, and if both sides edited the same field, Trello wins. The mistakes we made getting there are in the article on two-way sync with an external API.

The first AI feature in CaOS suggests a refined description for cards, with goal, scope, acceptance criteria and open questions. A cheap model first checks whether a card needs it at all, and a scheduled job only sends cards that changed since the last result. The suggestion never edits the card by itself. A person decides whether to accept or discard it. More in the article on AI suggestions with the Laravel AI SDK.

Client communication

Client users in CaOS have no password. They sign in with a magic link that works once and expires after 30 minutes. We planned for one trap from the start: mail scanners such as Outlook Safe Links open every link in advance and would have used it up. So the link only shows a button, and the actual sign-in happens on the click. The full flow is in the article on magic-link login for a client portal.

Every mail to a client goes through a queue, one mail per recipient, throttled, and at most once per mail, even across restarts. An architecture test stops code outside that module from sending client mail directly with Mail::to(). The exceptions, such as the login link someone is waiting for right now, are named and explained. The setup is described in the article on an outbound mail queue in Laravel.

Traceability and data protection

Who changed what, when, and from where: the app, an AI client, the API, or the system itself? CaOS keeps one central audit log for that, and modules don’t build logs of their own. Personal fields are only recorded as “changed”, without their content. How we make sure no new model slips through is explained in the article on a central audit log.

Once data has passed its retention period, CaOS deletes or anonymises it by itself, files included. Every kind of data has its own rule and period, and where commercial or tax law sets a minimum, no setting can go below it. Records that are still needed elsewhere are held and shown as such. More in the article on automated data retention in Laravel.

An honest verdict: when is custom software worth it?

We wouldn’t hold CaOS up as a template for “let’s build everything ourselves”. It works for us for reasons that don’t apply everywhere.

It tends to pay off when:

  • your workflow has a shape that standard tools only cover with contortions. For us, that’s the link between board, time, client portal and billing status.
  • several tools hold the same data and keeping them in sync eats real time.
  • you need one consistent permission model across your data, for example because AI clients should work with it.
  • someone in-house can and wants to look after the software for the long run. For us that’s the default, because building and running Laravel software is our business.

It tends not to pay off when:

  • a standard tool already covers most of your workflow. Jira, Confluence and Trello are good products. If they work for you, stay with them.
  • nobody has time for maintenance. Your own software means framework upgrades, dependencies, security reviews, backups and a server. Next to the app, CaOS runs Horizon, Reverb and the scheduler as separate processes, and we keep a dedicated security checklist for the server. With a SaaS tool, the vendor handles all of that.
  • knowledge about the software sits with one person. If they are out, the tool everyone works in stands still. That’s why we keep the docs in the repository current and pin rules down as architecture tests, so they don’t only exist in someone’s head.
  • you expect what standard tools ship as a matter of course: mobile apps, hundreds of ready-made integrations, vendor support. Each of these you either build yourself or consciously leave out.

That a system like CaOS can now be stood up in days with AI assistance doesn’t change the second half of this list. Building has become faster. Maintaining it afterwards takes as long as it always did, for as long as the tool is in use.

If you are somewhere in between, there is a middle path: keep your standard tools and only close the gap between them, with a small client portal or a sync. What that involves is covered in our article on customer portal development.

What to take into your own project

  • Buying is the default. Building pays off when your workflow has its own shape and someone can maintain the software for years.
  • Set boundaries early. Whether a tool stays internal and whether it needs multi-tenancy is a decision for the start, not for year two.
  • Attach business logic to types, not labels. Fixed column types keep the portal, filters and automations independent of what a board calls its columns.
  • Write rules as tests. Queues, authorisation, client mail and the audit log are all guarded by architecture tests in our codebase.
  • Connect existing tools where other people depend on them. Our clients keep their Trello.

All articles in the series

The follow-up articles are published one at a time, and this list grows with them:

  • Codeäffchen OS: Why We Built Our Own Agency Software

Wondering whether custom software would pay off for your workflow, or looking to connect your existing tools properly? We build custom software and Laravel applications using the same patterns as CaOS. If a portal for your own clients is on the table, customer portal development is a good place to start.

Frequently Asked Questions

What is Codeäffchen OS?

Codeäffchen OS, or CaOS for short, is the internal software of the agency Codeäffchen. It combines a Kanban board per project, a knowledge base with a team handbook, a project log, a client portal with magic-link login, inbound and outbound mail, time tracking, capacity planning and maintenance contracts. AI clients such as Claude Code connect through its own MCP server and act with the permissions of the person who connected them.

Why didn't Codeäffchen just keep using Jira and Confluence?

Tickets, knowledge, time and client communication were spread over several tools, and none of them matched how an agency works, for example a dedicated column for cards that are finished but not yet billed. We build Laravel software for clients every day, so a single app shaped around our own workflow was a more realistic option for us than another round of configuring off-the-shelf tools.

What tech stack does Codeäffchen OS use?

Laravel 13 on PHP 8.5, with Inertia.js 3, Vue 3 and TypeScript on the frontend, Reka UI as the component base and Tailwind CSS 4. Live updates run over Laravel Reverb, every queue goes through Laravel Horizon on Redis, and the database is MariaDB 11.8. AI features use the Laravel AI SDK, and the MCP server is built with laravel/mcp and OAuth via Laravel Passport.

Is Codeäffchen OS for sale?

No. CaOS is deliberately an internal tool and will not become a SaaS product. It has team users and, for the client portal, client users. The software supports multiple tenants, but we don't sell it.

What about clients who work in their own Trello board?

They keep working in Trello. A project board in CaOS can be linked to the client's Trello board when it is created and then syncs both ways: cards, lists, labels, comments, checklists and attachments. Changes made in CaOS show up in Trello under the real name of the team member who made them. When both sides changed the same field, the Trello value wins.

When does custom software beat off-the-shelf tools for an agency or a mid-sized company?

When your workflow keeps fighting the standard tools, when several tools hold the same data and keeping them in step costs real time, and when someone in-house can look after the software for years. It is the wrong call when a standard tool already covers most of your workflow, when nobody has time for updates and security, or when everything the software depends on lives in one person's head.

Tobias Bobreck
Tobias Bobreck

Sr. Full-Stack Developer

Frontend & Backend. Builds scalable web applications with a focus on clean architecture and maintainability.