GoliathOS is a standards-driven, microkernel-inspired Operating System layer designed to run directly inside your project workspaces. It governs, secures, and enhances AI coding agents (such as Claude Code, Antigravity/Gemini, GitHub Copilot, Cursor, and Windsurf) in any codebase.
- Microkernel Architecture: Strict separation between the kernel space (immutable governance, rules, configuration) and user space (evolvable skills, memory, commands).
- Flexible Agent Delegation: The primary agent acts as a Coordinator that can edit code directly, but can also delegate complex, multi-file architectures to specialized subagents if the host environment supports it.
- Cognitive Security Gates: No blind regex scanners. The OS enforces a strict pre-mutation cognitive security review, leveraging the LLM's natural reasoning to spot injection flaws, leaked credentials, and unsafe functions before writing to disk.
- Pragmatic Self-Healing: Instead of pretending to run background daemon scripts, the OS uses cognitive loop detection and troubleshooting checklists to break out of failure cycles and find root causes.
- Perception & Stack Discovery: The OS can actively profile your workspace (via
OS_COMMAND INFRA_DISCOVER) to detect tech stack drift, map sub-modules, and automatically synthesize new semantic rules or custom skills based on what it finds. - Idea-to-Code Scaffolding: Integrated
Architectskill that guides greenfield ideas from structured interview to architecture planning, code scaffolding, and environment config. - Native IDE Absorption: Bridges natively with your IDE's customization systems (like
.agents/skills.jsonandAGENTS.md) to guarantee that OS skills and semantic memory are absorbed immediately into the agent's context window. - Three-Tier Cognitive Memory: Maintains Episodic (what happened), Semantic (what we know), and Procedural (how we do things) memory across chat sessions via persistent markdown and JSON logs, preventing agent amnesia.
"Wait, if the agent reads the entire OS framework and memory on boot, won't that cost a fortune in tokens?"
No! GoliathOS is specifically designed to leverage Context Caching (supported natively by Claude 3.5, Gemini 1.5 Pro, and GPT-4o).
Because the core OS files (BOOT.md, project_knowledge.md, rules, and skills) are largely static between chats, they are cached by the LLM provider. This means:
- Near-Zero Latency: The agent absorbs the entire OS context in milliseconds.
- Fractional Cost: Cached input tokens cost ~90% less than raw input tokens (often fractions of a cent per boot). You get the power of a deeply context-aware OS without the massive token tax.
graph TB
%% Styling Definitions
classDef bridge fill:#3b82f6,stroke:#1d4ed8,stroke-width:2px,color:#fff;
classDef kernel fill:#ef4444,stroke:#b91c1c,stroke-width:2px,color:#fff;
classDef governance fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff;
classDef userspace fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff;
classDef database fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff;
classDef gate fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff;
%% Entry Bridges
subgraph MultiAgentBridges ["Multi-Agent Entry Bridges"]
direction LR
AG["AGENTS.md (Root/Codex)"]:::bridge
CL["CLAUDE.md (Claude Code)"]:::bridge
CO[".github/copilot-instructions.md"]:::bridge
CU[".cursor/rules/ai-os.md"]:::bridge
WI[".windsurfrules"]:::bridge
end
%% Kernel Space
subgraph KernelSpace ["KERNEL SPACE - Immutable"]
BOOT["BOOT.md<br>(Master Boot Prompt)"]:::kernel
MANIFEST["manifest.json<br>(System Configurations)"]:::kernel
INTEGRITY["kernel/integrity.md<br>(Self-Verification Checksums)"]:::kernel
subgraph GovernanceRules ["Governance Rules"]
RULES["ultimate_rules.md<br>(ISO 42001 Core Rules)"]:::governance
SECPOL["security_policy.md<br>(OWASP GenAI Defenses)"]:::governance
EVOPOL["evolution_policy.md<br>(Self-Update Constraints)"]:::governance
end
end
%% Perception Layer
subgraph PerceptionLayer ["Perception Layer"]
GENOME["project_genome.json<br>(Stack DNA File)"]:::database
ARCHETYPES["archetypes/*.json<br>(Hobby / Startup / Enterprise / Critical)"]:::database
end
%% User Space
subgraph UserSpace ["USER SPACE - Agent-Evolvable"]
direction TB
subgraph MemorySystem ["Memory System - 3-Tier Cognitive Model"]
EPISODIC["Episodic Memory<br>(decisions.jsonl + sessions.jsonl)"]:::database
SEMANTIC["Semantic Memory<br>(project_knowledge.md + patterns.json)"]:::database
PROCEDURAL["Procedural Memory<br>(workflows.json + playbooks.md)"]:::database
end
subgraph CoreSkills ["Core Skills - Registry"]
SEC_SK["security.sk<br>(Audit Gates)"]:::userspace
INF_SK["infra.sk<br>(Scaffold & CI/CD)"]:::userspace
TST_SK["testing.sk<br>(Validation Run)"]:::userspace
EVO_SK["evolution.sk<br>(PDCA Lifecycle)"]:::userspace
OBS_SK["observability.sk<br>(Audit Logs)"]:::userspace
HEAL_SK["self-healing.sk<br>(Cognitive Checklists)"]:::userspace
ARC_SK["architect.sk<br>(Greenfield Plan)"]:::userspace
end
subgraph Interface ["Interface"]
CMD_REG["commands/index.json<br>(Command Catalog)"]:::userspace
ALIASES["commands/aliases.json<br>(User Shortcuts)"]:::userspace
SHELL["progress.md<br>(Living Dashboard)"]:::userspace
end
end
%% Boot Redirection Flow
AG & CL & CO & CU & WI -->|Redirect / Load| BOOT
%% Initialization Sequence (The Boot Sequence)
BOOT -->|1. Run Check| INTEGRITY
INTEGRITY -->|2. Enforce| GovernanceRules
GovernanceRules -->|3. Scan Stack| GENOME
ARCHETYPES -->|Calibrate| GENOME
GENOME -->|4. Restore| MemorySystem
MemorySystem -->|5. Catalog Capabilities| CoreSkills
CoreSkills -->|Register Commands| CMD_REG
%% Runtime Invocation Loop
input([User Command / Natural Language Input]) --> ALIASES
ALIASES -->|Resolve| CMD_REG
CMD_REG -->|Route Execution| SEC_SK
SEC_SK -->|Pre-mutation Security Gate| ScanGate{"Security Scan Gate"}:::gate
ScanGate -->|Fail| BlockResponse["Block Write & Report Incident"]
ScanGate -->|Pass| TargetSkill["Target Execution Skill"]
%% Action Loop Details
TargetSkill -->|Perform Action| Action(["Write Code / Run Tool / Modify Workspace"])
Action -->|Verify & Trace| OBS_SK
OBS_SK -->|Commit Decision| EPISODIC
OBS_SK -->|Ingest Context| SEMANTIC
OBS_SK -->|Record Success| PROCEDURAL
%% Resilience
HEAL_SK -.->|Detect loops & run checklists| TargetSkill
EVO_SK -.->|Propose & verify self-updates| CoreSkills
goliath-os/
βββ .ai-os/ # The OS Kernel (Copy this to your project)
βββ .ai-os-installer/ # The Agentic Installer (Copy this to your project)
β βββ INSTALL_PROMPT.md # The script you feed to your AI
β βββ templates/ # Bridge file templates (CLAUDE.md, etc.)
βββ README.md
your-project/
βββ .ai-os/
β βββ BOOT.md # Master boot prompt
β βββ manifest.json # Project config & metadata
β βββ kernel/ # System self-verification checks
β βββ rules/ # ISO 42001 rules & OWASP safety policy
β βββ genome/ # Detected stack DNA & Archetypes
β βββ memory/
β β βββ episodic/ # decisions.jsonl + sessions.jsonl
β β βββ semantic/ # project_knowledge.md + patterns.json
β β βββ procedural/ # workflows.json + playbooks.md
β βββ agents/ # Custom specialized agent profiles
β βββ registry/ # Skill catalogs (.sk/)
β
βββ .gitignore # (Updated by installer to ignore OS noise)
βββ src/ # (Your actual app code)
β
βββ [Bridge File] # (Merged by the installer)
βββ CLAUDE.md # ...if using Claude Code
βββ .windsurfrules # ...if using Windsurf
βββ .cursor/rules/ai-os.md # ...if using Cursor
βββ .agents/AGENTS.md # ...if using Antigravity/Gemini
- Copy the
.ai-os/and.ai-os-installer/directories into your project root. - Open your project in your AI editor or launch your terminal assistant.
- Open your AI chat and type: "Please install the AI OS using the instructions in
.ai-os-installer/INSTALL_PROMPT.md" - The agent will act as an installer. It will safely merge the necessary bridge instructions into your existing rules (e.g.,
.windsurfrules,CLAUDE.md) without destroying them, clean up the installer directory, and boot up! - Upon its first boot, the OS will notice that your
manifest.jsonis unpopulated, which triggers the First-Boot Wizard. This wizard will ask for your project name and automatically run a perception scan (INFRA_DETECT_STACK) to map your tech stack.
To update an existing workspace to the latest version of GoliathOS while preserving your agent's learned memory and custom configurations, we use the Agentic Updater:
- Download the new version of GoliathOS and place the unzipped folder in your workspace (e.g.,
./goliath-update). - Open your AI chat and type: "Please update my AI OS using the instructions in
./goliath-update/.ai-os-installer/UPDATE_PROMPT.md" - The agent will act as a safe updater. It will intelligently copy the new Kernel, Rules, and Skills, while explicitly guarding your
memory/folder to ensure it never suffers amnesia. It will also carefully merge any new settings into yourmanifest.json.
How to get the most out of GoliathOS in your daily development:
- The Boot: While the bridge files (e.g.
AGENTS.md) naturally instruct the agent to read.ai-os/BOOT.mdin the background, LLMs don't act until spoken to. To guarantee a verified load of your project's memory and rules before you start coding, begin your first chat of the day with:> OS_COMMAND BOOT. - Daily Development: Code normally! You don't need to micromanage the OS. Just ask your agent to build features, fix bugs, or write tests. The OS's security and architecture rules govern it silently as it works.
- Complex Planning: If you have a massive architectural change, don't just tell the agent to code. Type
> OS_COMMAND plan. TheArchitectskill will engage in a structured interview with you to design the feature safely. - End of Session Consolidation: Before you close your IDE for the day, tell the agent: "Wrap up and consolidate memory." The agent will analyze everything you did today, extract architectural rules, and save them to
project_knowledge.mdso it never suffers from amnesia tomorrow!
Because GoliathOS stores all of its memory, skills, and governance in plain-text markdown and JSON files within your workspace, the OS state travels with your code.
- To Backup: Simply commit the
.ai-os/directory to your project's Git repository. - Merge Conflicts?:
- Append-only Logs (
decisions.jsonl): Git naturally auto-merges append-only logs very well. - Semantic Memory (
project_knowledge.md): If two agents learn conflicting architectural rules on different branches, Git will throw a merge conflict. This is a feature, not a bug! It forces the human developers to reconcile conflicting AI architectures just like conflicting code. - Noisy Files: The Agentic Installer automatically adds noisy, high-frequency files (like
sessions.jsonlandprogress.md) to your.gitignoreto prevent conflict hell.
- Append-only Logs (
- To Restore: When you clone your repo on a new laptop (or a teammate clones it), the host AI agent will instantly absorb the exact same episodic memories, architectural rules, and custom skills the moment they open the project! There are no hidden databases or cloud states to sync.
Once booted, you can direct the agent using standard commands or their aliases in your chat window (e.g., > OS_COMMAND audit):
| Command | Alias | Description | When to use |
|---|---|---|---|
STATUS |
status |
Show system health and memory stats | To check if the OS is booted and memory is loaded |
HELP |
View all available pragmatic commands | To explore OS capabilities |
| Command | Alias | Description | When to use |
|---|---|---|---|
SECURITY_AUDIT |
audit |
Full workspace cognitive vulnerability scan | Before committing major changes |
SECURITY_SCAN_FILE |
scan |
Cognitive security scan on a specific file | After writing a complex new file |
HEAL_DIAGNOSE |
fix |
Run troubleshooting checklist | When the agent is stuck in an error loop |
| Command | Alias | Description | When to use |
|---|---|---|---|
ARCHITECT_PLAN |
plan |
Interactive interview to plan a feature | Starting a massive new feature or greenfield app |
INFRA_DISCOVER |
discover |
Profile codebase to detect stack drift | When you add a new framework or major dependency |
INFRA_SCAFFOLD |
Generate boilerplate project structure | When initializing a new module |
| Command | Alias | Description | When to use |
|---|---|---|---|
LOG_DECISION |
Record architectural decision to memory | When you make a structural choice (e.g. "Use Redux") | |
MEMORY_CONSOLIDATE |
consolidate |
Extract rules into semantic memory | To ensure the agent remembers rules tomorrow |
| (Combined) | wrap |
Logs a decision AND consolidates memory | Run this at the end of every coding session! |
| Command | Alias | Description | When to use |
|---|---|---|---|
TEST_GENERATE |
test |
AI-assisted test generation | When you need robust unit tests for a specific file |
GoliathOS v1.0.0 β An operating system for the next generation of AI developers.