agent-operating-system
Discovered★ 4AOS — Agent Operating System: A personal file governance layer running on Claude Code-like agent harnesses (full DSH compatibility / universal AGENTS.md tool compatibility)
AOS — Agent Operating System
A file governance layer for AI coding agents.
AI coding tools write code and run commands, but they don't manage your files. Deliverables end up scattered across the workspace, knowledge gets saved in three contradictory copies, and constraints are lost when the session context is compressed. AOS addresses this layer: it gives your tools a set of conventions for where files go and where knowledge lives. These conventions are machine-checkable.
Your AI follows these rules inside an AOS workspace, regardless of which project it touches or which device it operates on once you authorize it. One deployment, everywhere.
Think of Jarvis in Iron Man — the suits change, Jarvis stays. Switch AI tools, and the structure and memory carry over.
What it provides
Directory charter: 8 numbered directories, each with a one-line responsibility and key constraints written into AGENTS.md. Your AI checks the conventions before creating any file, so you stop repeating "don't put that there." Full rules for file placement and naming are in docs/file-conventions.md. A validator script (scripts/check_placement.py) scans for misplaced files, non-standard naming, and structural drift.
Pointer-table memory: 04_MEMORY/INDEX.md maps every topic to a one-line pointer plus a short description, with a 32KB per-file cap. State-type memory (project facts, preferences) overwrites old values with change notes; record-type memory (experience, pitfalls) is append-only. History that outgrows the cap gets trimmed into the log directory with a pointer left behind.
Dual-layer logs: Process details live in your platform's session archives. Governance-level events (audits, incidents, decisions, deliveries) go into a human-readable log directory that moves with you across platforms.
Governance skills: File placement rules, knowledge intake checks, subagent dispatch decisions, inspection workflows — each is an on-demand skill file with gotchas distilled from real incidents. Mistakes get baked back into the relevant skill rather than corrected via prompts.
Environment alignment: A manifest registers all dependency components. Running one script on a new machine tells you what's missing and can auto-install it.
For how these mechanisms work together, from instruction to delivery, see the architecture reference.
Platform support
| Tier | Coverage | What you get |
|---|---|---|
| Full adaptation | DeepSeek Harness (DSH) | Skills auto-discovery, context compression anchor, session indexing — everything |
| Generic adaptation | Any tool that reads AGENTS.md (Claude Code, Codex, etc.) | Directory charter, pointer-table memory, placement conventions, validator scripts |
v2 was tested on DSH. Generic adaptation doesn't mean a second-class experience: hand the repository to your AI tool, and it can adapt these rules to its platform's format (for example, rewriting .dsh/skills/ entries into its own skill format).
Getting started
The fastest path: send this message to your AI tool (DSH, Claude Code, Codex, or any other):
Deploy AOS: clone https://github.com/MagicalYuYu/agent-operating-system to
, read the AGENTS.md at the repository root to understand the directory conventions, run python scripts/check_placement.pyto validate the structure and fix any errors, then tell me the key conventions I should know about.
Prefer manual steps:
- Requirements: any tool that reads
AGENTS.mdgives you generic adaptation (charter + scripts). Full adaptation (skills auto-loading) requires DSH; other platforms can adapt from.dsh/skills/. Scripts need Python 3.10+. - Place the repository anywhere (referred to as
{AOS_ROOT}). No hardcoded paths. - Validate:
python scripts/check_placement.py. Root is auto-derived from the script's location; override with--root. Exit code 1 means errors. - Align environment (optional): edit
.dsh/skill-manifest.jsonfor your dependencies, then runpython scripts/align_environment.py. Add--applyto install missing components. - Create your first project: follow the two-file pattern (AGENTS.md + README.md) in
01_PROJECTS/_example_cli_tool/, or copy any_example_*directory. Examples include runnable test commands. - Read the kernel:
AGENTS.md(~90 lines) — charter, 4 iron rules, placement table, behavioral invariants.
Directory overview
| Directory | Purpose |
|---|---|
01_PROJECTS/ | Project isolation (3 example projects included) |
04_MEMORY/ | Single source of truth for state (INDEX.md pointer table) |
05_CACHE/ | Agent intermediate artifacts (regenerable; never the sole copy) |
06_LOGS/ | Append-only logs, platform-independent narrative layer |
07_EXPORTS/ | Sole exit point for deliverables (per-project) |
08_INBOX/ | Staging area for large external inputs (processed → relocated, pointer left) |
09_REFERENCE/ | Single-copy knowledge base |
99_ARCHIVE/ | Immutable history (read-only, append-only) |
.dsh/skills/ | 7 governance skills |
scripts/ | check_placement / align_environment / session_analyzer / session_index_update |
docs/ | Documentation |
Documentation
- Architecture reference : how the system works, from components to end-to-end task flow
- Design rationale : why each design decision was made, with data and references
- File conventions : where every type of file goes, naming rules, lightweight vs. project tasks
- Migration from v1 : upgrade guide for v1 users, with a prompt to let AI handle the deployment
Full documentation is in Chinese; this README and the architecture reference have English versions. Remaining docs are being translated over time.
Feedback
Found a problem or have a suggestion? Open an Issue or start a Discussion.
License
MIT + additional terms (no standalone commercial repackaging). See LICENSE.
Comments
Loading…
Similar plugins
by Anionex
为 DeepSeek Harness 提供电脑控制插件:新鲜 Accessibility 观测、过期状态拒绝、作用域权限与安全输入(目前支持macos)|Accessibility-first macOS Computer Use bundle for DSH with fresh observations, stale-state rejection, scoped permissions, a
★ 54
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add @anionex/dsh-computer-useby icrefin
Edit the AGENTS.md instruction files DeepSeek Harness actually loads - user-global and per-workspace - from a left-sidebar panel in the GUI.
★ 0
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile web add dsh-agent-promptby svgop
Agent instruction manager for DSH — edit and template the AGENTS.md files the harness actually reads (global + per-workspace)
★ 0
MIT
JavaScript
Oct 5, 2026
dsh plugin --profile web add dsh-rich-contextby mjylfz
Adds a subagent_codex tool that delegates tasks to the local OpenAI Codex CLI, running the work in an isolated external process.
★ 5
MIT
JavaScript
Aug 25, 2026
dsh plugin --profile web add dsh-subagent-codexby flykit-cc
flykit for DeepSeek Harness — explorer with live file watch, agent terminals (Claude Code, Pi, Codex), DSH agent tools, a searchable model picker and a Claude-Code-style status line. Fly your agents.
★ 0
MIT
TypeScript
Sep 18, 2026
dsh plugin --profile web add dsh-flykitby MistyBridge
Multi-agent orchestration for DeepSeek Harness: turn isolated sessions into a team that assigns work, reviews output, and runs DAG workflows — durable task ledger, real reviewers, crash-safe recovery.
★ 6
↓ 118/wk
TypeScript
Sep 4, 2026
dsh plugin --profile web add dsh-agent-bus