Repository-driven AI Engineering Framework
Engineer the workspace, not the prompt.
AIOS (Artificial Intelligence Operating System) is an open-source framework that helps AI coding assistants behave like repository-aware engineering partners.
Instead of relying only on chat prompts, AIOS keeps durable engineering context in the repository: operating rules, methodologies, workflows, prompts and structure.
AIOS provides the framework, not the content.
Your product knowledge, ADRs, backlogs and curricula stay in your repositories (or in optional packs).
- Why AIOS
- Philosophy
- Architecture
- Repository Structure
- Governance and Ownership
- How to Consume AIOS
- Capability Status
- Core Components
- AIOS Workflow
- Decision Guidance
- Repository Lifecycle
- Compatible With
- Quick Start
- Tooling Notes (
aiosctl) - Validation
- Roadmap
- Contributing
- License
- Vision
Modern AI coding assistants are powerful, yet they often:
- ignore repository conventions
- forget previous project decisions
- create inconsistent documentation
- modify unrelated files
- skip quality checks
- duplicate existing implementations
The problem is rarely “not enough prompt text”.
The real gap is missing persistent project context.
AIOS moves that context into the repository so humans and agents share the same operating contract.
AI doesn't become better because of longer prompts.
AI becomes better because of better repositories.
AIOS teaches assistants through engineering structure: rules, methods, reviews and explicit approval gates.
AIOS sits between your repository and your AI coding assistant as a governance and method layer.
Before rushing to code, assistants are expected to:
- understand
- analyze
- plan
- implement
- review
- document
Detailed layout and directory status: PROJECT_STRUCTURE.md
Product manifest: MANIFEST.md
Authoritative framework contract: docs/FRAMEWORK_CONTRACT.md
Agent operating manual (operationalizes the contract): AGENTS.md
AIOS/
├── AGENTS.md # Agent operating manual (operationalizes the contract)
├── MANIFEST.md # Product scope and navigation
├── PROJECT_STRUCTURE.md # Actual tree + status labels
├── ROADMAP.md # Framework evolution phases
├── docs/FRAMEWORK_CONTRACT.md # Authoritative architectural contract
├── rules/ # Syncable governance rules (aiosctl source)
├── methodology/ # RDIV, Architecture First, …
├── prompts/ # Reusable prompts (discovery active; others partial)
├── packs/education/ # Optional education pack (partial)
├── templates/ # Placeholders for reusable templates
├── checklists/ # Partial quality checklists
├── scripts/aiosctl.py # Rule sync CLI
├── assets/ # Branding and diagrams
├── lab/aios-demo-api/ # Demo app for CI smoke tests
├── knowledge/ # Planned
├── skills/ # Planned
├── workflows/ # Planned
├── tests/ # Planned (framework tests)
└── examples/ # Planned adoption examples
Empty directories are planned or reserved, not shipped engines.
docs/FRAMEWORK_CONTRACT.md is the authoritative architectural meta-document for AIOS boundaries, consumption models, ownership and instruction precedence.
AGENTS.md operationalizes that contract for AI coding agents. It is not a competing authority layer.
- Consumer-approved ADRs and product decisions take precedence over generic AIOS defaults.
- Consumer local policies remain consumer-owned.
- AIOS must not silently overwrite consumer decisions or artifacts.
- Applicable safety, legal, security, privacy, licensing and compliance constraints remain non-overridable.
AIOS uses a canonical L0–L7 precedence model (non-overridable constraints → user task instructions → consumer ADRs → consumer local policies → AIOS Core → adopted Packs → Module/methodology recommendations → external knowledge).
Full definition: docs/FRAMEWORK_CONTRACT.md §7 and AGENTS.md §2.
AIOS is designed to analyze project context and recommend relevant engineering Modules.
- The project owner retains decision authority.
- Modules are recommendations unless explicitly adopted as consumer local policy.
- This repository does not ship an autonomous module-selection engine today.
| Model | Meaning |
|---|---|
| Reference-only | Read AIOS guidance in place; do not copy AIOS-managed files into the consumer |
| Synced | Copy AIOS-managed artifacts under the sync contract (rules/*.md → .agents/ today) |
| Hybrid | Combination of reference-only and synced — not a separate runtime |
Synced .agents/ files are AIOS-derived guidance. Sync does not make AIOS the owner of consumer ADRs or product decisions.
Details: docs/FRAMEWORK_CONTRACT.md §8–§9.
- Framework Contract:
docs/FRAMEWORK_CONTRACT.md - Generic
AGENTS.mdoperating manual (L0–L7 operationalized) - Governance rules under
rules/ - Engineering methodologies under
methodology/ - Discovery prompt skeletons under
prompts/discovery/ - Generic architecture review prompt
aiosctl syncfor copyingrules/*.md→ consumer.agents/- OSS docs: license, contributing, security, code of conduct
- Optional preserved education manual:
packs/education/AGENTS.education.md
- Broader prompt library (many placeholder files)
- Templates and checklists (several empty)
- CI repository report + demo API tests
- Optional packs beyond the preserved education AGENTS copy
- Workflow library under
workflows/ - Skills and knowledge libraries
- Richer
aiosctlcommands (validate,doctor,init,version) - Framework contract tests under
tests/ - Engineering domain modules
- Deeper coding-agent integrations
See ROADMAP.md for phased direction.
| Component | Purpose | Status |
|---|---|---|
| docs/FRAMEWORK_CONTRACT.md | Authoritative framework contract | Available |
| AGENTS.md | Agent operating manual (operationalizes the contract) | Available |
| MANIFEST.md | Product scope and navigation | Available |
| PROJECT_STRUCTURE.md | Real layout + status | Available |
| rules/ | Syncable Core governance guidance | Available |
| methodology/ | RDIV and related methods | Available |
| prompts/ | Reusable prompt assets | Partial |
| packs/ | Optional domain packs (adopted = L5) | Partial |
| Modules | Reusable engineering capabilities | Planned (adaptive recommendations approved as design) |
| workflows/ | End-to-end flows | Planned |
| skills/ | Reusable engineering skills | Planned |
| knowledge/ | Shared reference knowledge | Planned |
| tests/ | Framework validation | Planned |
| lab/ | Demo API for CI | Demo only |
AIOS recommends RDIV:
- Review
- Decide
- Implement
- Verify
Details: methodology/rdiv.md
This is a documented method, not a separate installed runtime engine.
Before implementing, agents should evaluate:
- repository rules
- existing implementations
- workflow expectations
- approval gates
- quality standards
If a conflict exists, the agent should stop and request human approval instead of making unsafe assumptions.
- Instruction precedence (what is authoritative):
AGENTS.md§2 / Framework Contract §7 - Decision quality (which valid option is better):
rules/DECISION_RULES.md - Agent modes (behavior profiles, not document authority):
rules/AGENT_RULES.md
There is no separate automated “decision engine” binary in this repository today.
- Read the repository
- Understand the project
- Analyze the request
- Create a plan
- Implement changes
- Review the result
- Improve iteratively
- Commit safely
- Continuously evolve the repository
- Repository-Driven Engineering
- Architecture First
- Model-Agnostic AI
- Explicit Governance
- Human-in-the-Loop Decisions
- Adaptive to Project Context (recommend; do not impose)
- Consumer Ownership of ADRs and Product Decisions
- Framework, Not Content
AIOS is model-agnostic and is designed to work with modern AI coding assistants, including:
| AI Assistant | Status |
|---|---|
| ChatGPT | Designed for |
| Codex | Designed for |
| Claude Code | Designed for |
| Cursor | Designed for |
| GitHub Copilot | Designed for |
| Windsurf | Designed for |
| Continue.dev | Designed for |
| Roo Code | Designed for |
“Designed for” means governance documents are written to be assistant-neutral.
It does not claim automated certification of every tool on every release.
git clone https://github.com/fdeniz07/AIOS.git
cd AIOSAt minimum, copy or reference:
docs/FRAMEWORK_CONTRACT.mdAGENTS.mdMANIFEST.mdPROJECT_STRUCTURE.mdrules/methodology/
Optional:
prompts/discovery/packs/education/when building education-oriented repositories (Pack guidance applies only when adopted)
Read docs/FRAMEWORK_CONTRACT.md and AGENTS.md.
Respect consumer ADRs and local policies over generic AIOS defaults.
Follow L0–L7 instruction precedence.
Understand the repository before making changes.
Recommend Modules adaptively; do not impose them.
Wait for confirmation when standards or durable decisions conflict.
From the AIOS repository:
python scripts/aiosctl.py sync --project /path/to/your/projectThis copies rules/*.md into <project>/.agents/ and writes AIOS_VERSION.md.
| Item | Current behavior |
|---|---|
| Implemented command | sync |
| Source | rules/*.md |
| Destination | <project>/.agents/ |
| Skip logic | Content hash (unless --force) |
| Orphan cleanup | Not deleted automatically |
aiosctl.yaml |
May list helper project names; not read by the CLI today |
| Planned | validate, doctor, init, version |
Compatibility with existing consumers depends on keeping the current sync paths and rule filenames stable.
What exists today:
- Manual / convention-based validation by following
AGENTS.mdand methodologies - GitHub Actions CI that:
- writes a simple repository file-count report
- runs pytest for
lab/aios-demo-api
What is not claimed:
- A full automated AI behavior test framework
- Certified conflict-detection middleware
- Guaranteed enforcement inside third-party IDEs
Consumer learning repositories have been used to exercise AIOS conventions in practice; treat that as adoption experience, not as a formal conformance suite.
High-level direction (details in ROADMAP.md):
- Foundation and identity
- Framework contract
- CLI improvements
- Workflow and checklist system
- Skills and Knowledge
- Adaptive Project Intelligence
- Engineering modules
- Validation and automation
- Ecosystem and integrations
Phases are directional, not dated commitments.
Contributions are welcome — especially reusable workflows, skills, documentation and tests that preserve the framework contract.
Please read CONTRIBUTING.md and open an Issue before major architectural changes.
Released under the MIT License. See LICENSE.
AIOS is not another prompt dump.
It is not another AI wrapper.
It is not another coding assistant.
AIOS is an engineering framework that helps AI become a reliable long-term software development partner — across stacks, teams and tools.
Made with ❤️ for the AI Engineering community.




