Thanks for your interest in contributing to aiOS! This project is building an AI-native Linux distribution where autonomous AI agents replace traditional system services.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/aiOS.git - Create a branch:
git checkout -b my-feature - Make your changes
- Test:
cargo test --workspace && cd python && python -m pytest tests/ -v - Commit:
git commit -m "[component] short description" - Push:
git push origin my-feature - Open a Pull Request
- Rust toolchain (stable, edition 2021)
- Python 3.12+
- Protocol Buffers compiler (
protoc) - SQLite 3
# Build all Rust crates
cargo build --workspace
# Install Python package in dev mode
cd agent-core && pip install -e ".[dev]"# Rust
cargo test --workspace
cargo clippy --workspace -- -D warnings
# Python
cd python && python -m pytest tests/ -vUse the format: [component] short description
Components: kernel, initd, agent-core, tools, memory, runtime, api-gateway, build, tests, docs
Examples:
[agent-core] add task decomposition for multi-step goals[tools] implement firewall rule management[docs] update memory system architecture guide
- Use
anyhowfor error handling in binaries,thiserrorin libraries - No
unwrap()in production code — use?or explicit error handling - All public APIs must have doc comments
- Run
cargo clippyandcargo fmtbefore committing
- Type hints on all function signatures
- Use
asynciofor all I/O operations - No bare
except:— always catch specific exceptions - Format with
ruff
- Bug fixes — Check the issues for reported bugs
- New tools — The tool registry (
tools/src/) is designed for extension - Agent types — New Python agents in
agent-core/python/aios_agent/agents/ - Documentation — Improvements to docs, examples, guides
- Tests — More test coverage is always welcome
- Performance — Profiling and optimization of hot paths
Before diving in, read these docs:
Open a Discussion or an Issue.