Aegis

Aegis is a Rust CLI tool for system configuration management, built for the dirmacs ecosystem. It manages dotfiles, generates typed OpenCode configurations, and orchestrates the dirmacs toolchain — all from declarative TOML manifests.

Think of it as a modern, Rust-native alternative to shell-script-based dotfile managers, purpose-built for AI-native development environments.


Key Capabilities


Who is Aegis for?

AudienceUse Case
dirmacs developersManage system configs across dev machines with first-class toolchain support
AI/ML engineersGenerate and maintain complex OpenCode + oh-my-opencode configurations from clean TOML
DevOps / platformReproducible machine provisioning with idempotent bootstrap and version tracking

Quick Reference

SectionWhat You’ll Find
Getting StartedInstallation, quickstart, first aegis.toml
CLI ReferenceEvery command and flag
Configurationaegis.toml, module.toml, variables, profiles
OpenCodeTOML-to-JSON pipeline for opencode configs
ToolchainManaging the dirmacs ecosystem
GuidesModel triage with nimakai, setting up a new machine

Architecture

Aegis is a 4-crate Rust workspace:

aegis/
├── aegis-core        # Manifest parsing, module system, templates, diffing
├── aegis-opencode    # Typed TOML → opencode.json + oh-my-opencode.json
├── aegis-toolchain   # Dirmacs tool install, update, health checks
└── aegis-cli         # Clap-based CLI binary

Built with: clap, serde, toml, tera, tokio, similar, lancor, and console.