Skip to content
offflinerpsyPublic

About

Local-first operating system for AI-powered agencies: Hermes, Codex, durable workers, layered memory, and evidence-first execution.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

AgencyOS

The Local-First Operating System for AI-Powered Agencies

One owner interface. Federated client workspaces. Durable memory. Independent AI workers. Evidence before “done.”

Architecture Execution Memory Implementation Discuss

AgencyOS local-first AI agency operating system

Run an entire agency from a conversation — without turning the conversation into your database.


What is AgencyOS?

AgencyOS is a local-first operating layer for a real multi-client digital agency. It connects the owner’s natural-language requests with the systems where work actually happens: websites, SEO and GEO research, analytics, content, documents, spreadsheets, CRM workflows, browser sessions, repositories, project databases, and specialized AI workers.

It is not a prompt collection. It is not a chatbot pretending to be a project manager. It is not a single infinite conversation that slowly forgets what happened.

AgencyOS is a working control plane designed around five practical truths:

  1. The owner needs one simple place to ask for work.
  2. Different clients must never become one undifferentiated context blob.
  3. Routine work should be fast, while risky work should be controlled.
  4. A model response is not proof that a task is complete.
  5. Memory must point back to durable sources, not summaries of summaries.

The result is an AI agency system that feels conversational on the surface and behaves like disciplined infrastructure underneath.

Chat is the intake surface. Project files, databases, evidence, and verified artifacts are the source of truth.

Why we built it

A full-service agency does not have one workflow. It has hundreds:

  • build and maintain websites;
  • research keywords, entities, competitors, and AI-search visibility;
  • publish and update content;
  • audit analytics and conversion paths;
  • manage client documents and KPI spreadsheets;
  • work inside authenticated browser sessions;
  • coordinate parallel specialists;
  • remember decisions made months ago;
  • prove what changed, where, and why;
  • recover when a model session, browser, network path, or worker fails.

Traditional chat-based agents can perform many of these actions individually. The hard problem is making them work together, repeatedly, across multiple clients, without losing boundaries or operational truth.

That is the problem AgencyOS solves.

How AgencyOS works

AgencyOS architecture diagram showing the owner surface, Hermes routing, direct and managed execution, and six memory layers

The architecture deliberately separates the human experience from the technical lifecycle.

1. The owner speaks naturally

The owner can start in the communication surface the organization already uses, continue inside a dedicated channel, space, or thread, or work directly through Codex Desktop/CLI. A US agency can use Slack as the primary Command Center; Microsoft 365 organizations can use Teams; Google Workspace teams can use Google Chat. Telegram remains an excellent low-friction option for founder-led and private operations.

There is no requirement to translate business intent into internal machinery. The system resolves:

owner request → client → project → workstream → capability → execution lane

The owner sees human statuses such as:

accepted → routed → working → ready
or
accepted → blocked: exact reason

Internal implementation terms stay out of the way unless something fails.

2. Hermes becomes the operating surface

Hermes is the always-available operator layer. It owns the conversational route, loads the right skills and tools, retrieves bounded context, and keeps the owner informed.

Its job is not to hoard every task inside one endless model turn. Its job is to understand intent, select the right lane, and preserve continuity.

Stable channels, spaces, or topics represent long-lived human workstreams such as:

  • Website & CMS
  • SEO / GEO / AI Search
  • KPI & Reporting
  • Content Operations
  • Research
  • Internal Agency Engineering

A human-facing thread is a durable route. A model session is a replaceable technical episode.

Channel-agnostic by design

AgencyOS does not make a messenger the database. Every integration maps its native conversation identifiers onto the same canonical route:

organization → client → project → workstream → thread

Surface Best fit AgencyOS experience
Slack US agencies, digital teams, startups, and client collaboration Command Center channel, workstream channels, task threads, interactive actions, and Slack Connect
Microsoft Teams Enterprise and Microsoft 365 organizations Teams and channels, threaded work, bot conversations, approvals, and Adaptive Cards
Google Chat Google Workspace-first companies Spaces, threads, Chat app actions, and status cards
Telegram Founder-led operations, private teams, and mobile-first control Forum topics, fast bot interaction, voice, media, and owner controls
WhatsApp, SMS, and email Low-friction client intake, approvals, and alerts Short requests and notifications linked back to the canonical task or Plane view
Codex Desktop / CLI Engineering and implementation work Direct access to the same project boundaries, memory, tools, and evidence contract

The current reference installation uses Telegram and Codex. Other surfaces are deployment adapters: changing the front door does not migrate project data, duplicate memory, or create a second lifecycle authority.

Plane or a branded web dashboard provides the visual command view: active work, ownership, status, blockers, and delivery progress. It is a projection of AgencyOS state, not a competing source of truth. Conversation remains the fastest way to direct the system; the dashboard remains the fastest way to see the portfolio.

3. Project truth stays where it belongs

AgencyOS is federated by design. Each client/project keeps its own:

  • operational database;
  • Git repositories;
  • documents and spreadsheets;
  • CMS and analytics state;
  • instructions and SOPs;
  • evidence and delivery artifacts.

The central system knows how to route work and track lifecycle. It does not flatten every client into one universal database or silently copy entire workspaces into model context.

Two execution lanes

One of the most important AgencyOS decisions is that not every task deserves a workflow engine.

AgencyOS task lifecycle from owner intent through direct or managed execution to a verified outcome

Direct Lane — fast by default

Hermes works directly inside the stable project/workstream route for:

  • questions and explanations;
  • research and analysis;
  • read-only website or analytics checks;
  • copywriting and editing;
  • document and spreadsheet work;
  • source-backed retrieval;
  • local reversible file or configuration changes;
  • short specialist-agent assistance coordinated inside the active turn.

The Direct Lane avoids unnecessary task/run/outbox ceremony. It opens the right sources, performs the work, saves durable artifacts where they belong, and returns the result to the same topic.

Why it matters: AI automation becomes useful only when small tasks remain small.

Managed v2 Lane — durable when it matters

AgencyOS escalates work into Managed v2 when at least one of these is true:

  • an external client system will be changed;
  • the work should continue outside the owner’s active chat turn;
  • retry and crash recovery are required;
  • multiple workers must operate in parallel;
  • strict evidence and independent review are required;
  • the owner explicitly requests background execution.

Managed execution follows a durable lifecycle:

Task → Outbox → Dispatcher → Ephemeral Codex Worker → Evidence → Review → Done

The central SQLite control plane owns the task, run, lease, fencing generation, runtime control, evidence references, and review state. The Command Center returns a task ID and becomes available for the next request. The worker lives independently from the owner chat.

Why both lanes are necessary

Direct Lane Managed v2 Lane
Optimized for speed Optimized for recoverability
Runs in the active workstream route Runs independently from the owner turn
No heavyweight lifecycle for routine reads Durable task/run/outbox lifecycle
Proportional evidence Formal evidence contract
Best for research, content, files, analysis Best for external writes, background and parallel work

The system does not confuse “more orchestration” with “better automation.” It applies the smallest reliable mechanism that matches the risk.

Six layers of memory

AgencyOS memory is not one giant vector database and it is not the chat transcript. Each layer has a narrow responsibility.

AgencyOS six-layer memory model

Layer Owns Why it exists
1. HOT Core Bounded verified rules and facts for owner/client/project scopes Start a fresh session quickly without rereading the world
2. Continuity Work Packet Objective, exact instruction, constraints, decisions, verified result, artifacts, open loops, next action Continue work without repeating discovery
3. Events & Evidence Append-only events, receipts, hashes, checkpoints, proof artifacts Reconstruct what actually happened
4. Scoped Recall FTS5/BM25 retrieval over explicitly approved sources Find older decisions without cross-client leakage
5. Project Truth Client DB, Git, Vault, Docs, Sheets, CMS state Preserve the canonical business and implementation record
6. Cold History Raw sessions, transcripts, archives, old reports Forensic recovery and audit — never primary authority

AgencyOS remembers

  • verified decisions and operating rules;
  • the latest exact owner instruction;
  • current phase, constraints, and next executable action;
  • artifact paths, versions, sizes, and hashes;
  • task/run/review lifecycle;
  • source-backed facts inside the exact project scope.

AgencyOS refuses to promote into truth

  • speculative model reasoning;
  • an unverified summary;
  • data from a neighboring client;
  • passwords, tokens, cookies, or credentials;
  • enormous tool output with no durable artifact receipt;
  • “success” without evidence.

This design reduces context bloat and protects the system from the classic long-session failure: a compressed summary gradually becoming more authoritative than the underlying work.

Explore the memory architecture →

Evidence before “done”

AgencyOS treats completion as a verifiable state transition, not a sentence generated by a model.

For controlled work, the system can require:

  • an exact client/project/resource scope;
  • a compatible native capability;
  • a current lease and fencing token;
  • preflight evidence;
  • a restorable backup;
  • a bounded change intent;
  • host-created artifact receipts;
  • post-change validation;
  • an independent supervisor review.

A worker can finish its execution and still stop at review. The task becomes done only when the evidence contract passes.

This matters for websites, CMS operations, analytics settings, CRM data, documents, spreadsheets, and every other system where “the command returned successfully” is not the same as “the client outcome is correct.”

Safety without paralyzing the agency

Safety is risk-based:

  • Routine reads remain direct and fast.
  • Reversible local edits use lightweight verification.
  • External writes use exact scope, backup, rollback, and post-checks.
  • Broad, destructive, financial, credential, domain, DNS, security, or irreversible actions require explicit owner authority.

Runtime controls support multiple operational intentions:

  • stop new — accept intake but do not claim new work;
  • drain — stop new claims while active work reaches a safe boundary;
  • hard revoke — revoke active write authority and terminate the affected lifecycle;
  • pause/cancel — control an individual client, project, task, or run.

The owner surface remains available for status and recovery even when execution is paused.

Read the safety and recovery model →

Local-first infrastructure

AgencyOS runs on the agency’s own machines and uses the agency’s existing authenticated environments.

Component Role
Hermes Channel-agnostic operator, workstream routing, tools, continuity, owner reporting
Codex Desktop / CLI Engineering work, code/file operations, ephemeral workers
AgencyOS v2 Durable task/run/control/review authority
SQLite Local transactions, lifecycle, memory, recall, usage observability
Plane / web dashboard Visual portfolio, task, status, and blocker projection
Skills + MCP Typed capabilities for browser, files, analytics, documents, CMS and project tooling
Project DB + Git + Docs Canonical client truth
Private Agent Bridge Signed machine-to-machine requests and handoffs without becoming lifecycle authority
Model-free proxy recovery Restore the AI network path even when the model cannot respond

One model path, no silent degradation

The production operator uses an authenticated Codex model path with no silent fallback provider. If the required model/auth path is unavailable, the system reports the failure instead of quietly switching to an unknown local model or lower-trust provider.

Two machines, one engineering conversation

The Windows and Mac AgencyOS installations can exchange signed, durable requests over a private network bridge.

The bridge provides:

  • message IDs and correlation IDs;
  • bounded payloads and payload hashes;
  • signed envelopes;
  • durable inbox/outbox storage;
  • explicit acknowledgements;
  • retry, backoff, deduplication, and dead-letter handling;
  • optional wake/status visibility through a guarded communication channel.

The bridge never executes shell commands and never becomes a second task authority. Each host decides locally whether a transported request is allowed to become work.

Built for real agency work

AgencyOS supports the full lifecycle around services such as:

Website & CMS operations

Page creation, content updates, reusable blocks and patterns, forms, media, responsive QA, authenticated admin work, backups, rollback, and visual post-checks.

SEO, GEO & AI-search operations

Technical audits, entity and topical analysis, keyword research and clustering, internal linking, content briefs, AI-search visibility, competitor research, source-backed reports, and implementation tracking.

Content production

Research, outlines, copywriting, editorial review, structured content assembly, asset preparation, publication evidence, and content memory.

Analytics & KPI reporting

Tracking audits, event design, attribution checks, KPI definitions, spreadsheet work, dashboards, anomaly investigation, and client-facing reporting.

Documents and knowledge operations

Google Docs, Sheets, local documents, structured source registries, curated project memory, handoffs, decision records, and evidence archives.

Agency engineering

Skills, MCP integrations, browser tooling, routing contracts, model policies, proxy recovery, observability, tests, backups, and controlled self-improvement.

See detailed use cases →

Live architecture snapshot

The public snapshot is based on a live local deployment, not a hypothetical diagram.

As of July 15, 2026, the inspected Windows control plane reported:

  • database integrity: OK;
  • foreign-key violations: 0;
  • durable tasks: 53;
  • recorded runs: 77;
  • outbox events: 55;
  • reviews: 38;
  • worker instances: 35;
  • task events: 369;
  • worker-instance events: 175;
  • scoped recall documents: 131;
  • active/stale write authority at snapshot time: 0 / 0;
  • independent dispatcher: running.

These numbers are evidence of an operating system in active development and use. They are not a promise that the architecture is frozen.

What this repository contains

This repository is an architecture and product showcase. It includes:

  • a high-level architecture map;
  • the execution model;
  • the memory model;
  • safety and recovery principles;
  • example agency workflows;
  • the deployment philosophy;
  • the commercial engagement model.

It intentionally excludes:

  • proprietary source code;
  • database migrations and internal schemas;
  • production prompts and private skills;
  • credentials, cookies, tokens, bot IDs, private IPs, and service identities;
  • client data and private project documents;
  • commands that grant or bypass production authority.

Documentation

Document What it explains
Architecture Authority boundaries, routing, execution, federation, workers, and observability
Memory The six memory layers, continuity, scoped recall, and context efficiency
Safety Write control, capability attestation, fencing, evidence, pause, and recovery
Deployment Local-first topology, model path, browser/auth, multi-host bridge, and backup
Use cases Website, SEO/GEO, content, analytics, documents, and agency engineering
Engagement model How a custom AgencyOS is audited, designed, deployed, and adopted
FAQ Practical answers about scope, memory, workers, clients, and commercial use

Commercial availability

AgencyOS is a proprietary system offered as a custom implementation, not an open-source framework.

Every deployment is shaped around the client organization:

  • team structure and decision rights;
  • active clients and project portfolio;
  • Slack, Teams, Google Chat, Telegram, WhatsApp, SMS, email, or a branded web owner surface;
  • CRM, CMS, analytics, documents, spreadsheets, and browser workflows;
  • existing repositories and databases;
  • security constraints and approval boundaries;
  • preferred model/provider strategy;
  • local machines, cloud infrastructure, or hybrid topology.

A typical engagement

  1. Operational audit — map real work, bottlenecks, systems, risks, and sources of truth.
  2. Architecture design — define owner surface, project contours, memory, execution lanes, tools, and gates.
  3. Foundation deployment — install the local operator, routing, durable control plane, memory, and observability.
  4. Client onboarding — connect projects one by one without migrating data unnecessarily.
  5. Workflow automation — implement the highest-value website, SEO, content, analytics, and document workflows.
  6. Proof and hardening — canaries, failure tests, backup/rollback, security boundaries, and owner training.
  7. Continuous improvement — expand capabilities based on measured operational value.

Contact

Interested in building a private AgencyOS for your agency or company?

Tell us how your team works today. We will show you how to turn it into an AI operating system without throwing away the systems that already work.


AgencyOS

Fast where it can be. Controlled where it must be. Remembered where it matters.

Architecture showcase only · Proprietary implementation · All rights reserved

About

Local-first operating system for AI-powered agencies: Hermes, Codex, durable workers, layered memory, and evidence-first execution.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors