✦ v3.1.0 — Resource Management

One .ai/ folder.
All your AI tools.
Always in sync. Always in context.

Stop maintaining separate config files for every AI coding tool. dotai manages Claude, Gemini, Copilot & Antigravity from a single directory — plus an 8-phase Spec-Driven Development workflow that keeps AI code traceable to human-reviewed specs.

$ npm install -g @nbslabs/dotai

Edit once. Every tool stays in sync.

dotai creates a .ai/ directory as your source of truth, then symlinks each file to where every AI tool expects it.

.ai/ ← Your source of truth (committed to git) ├── AI.md ──→ CLAUDE.md, GEMINI.md, AGENTS.md, │ .github/copilot-instructions.md ├── rules/ ──→ .claude/rules/, .gemini/rules/, │ .agents/rules/ ├── commands/ ──→ .claude/commands/ ├── commands-gemini/ ──→ .gemini/commands/ (Gemini uses .toml) ├── skills/ ──→ .claude/skills/, .gemini/skills/, │ .agents/skills/, .github/skills/ ├── workflows/ ──→ .agents/workflows/ ├── knowledge/ ──→ .claude/knowledge/, .gemini/knowledge/, .github/knowledge/ ├── settings/ │ ├── claude.json ──→ .claude/settings.json │ └── gemini.json ──→ .gemini/settings.json └── ignore/ └── .aiignore ──→ .geminiignore

Up and running in 30 seconds

# Install globally $ npm install -g @nbslabs/dotai # Initialize in your project $ cd your-project $ dotai init # That's it — .ai/ is your single source of truth # Symlinks are created for all selected tools
# After cloning a dotai-managed repo $ dotai init # reads .dotai.json, scaffolds missing files, links everything

4 tools. One config.

Every major AI coding tool is supported out of the box.

Claude Code .claude/

AI.md → CLAUDE.md, settings, commands, skills, knowledge

Gemini CLI .gemini/

AI.md → GEMINI.md, settings, commands (.toml), skills, ignore, knowledge

GitHub Copilot .github/

AI.md → copilot-instructions.md, prompts, instructions, skills, knowledge

Antigravity .gemini/

AI.md → GEMINI.md + AGENTS.md, settings, rules, workflows, skills, knowledge

Your AI agents never forget

AI agents reset their memory every conversation. dotai changes that — with a persistent knowledge layer that grows smarter with every commit and every session.

The result? Your AI starts every session already knowing your architecture, patterns, gotchas, and constraints.

🧠

Auto-Growing Memory

Agents automatically persist discoveries as they work. Patterns, gotchas, and architecture decisions accumulate across sessions — no manual effort.

Zero-Delay Context

Every agent session starts with full codebase context from line one. No warm-up, no re-explaining. Just instant, deep understanding.

🔄

AI-Driven Updates

Run /learn to let your AI agent deeply analyze the codebase and populate the knowledge base. The more you use it, the smarter it gets.

Learn how the Knowledge Base works →

Every line of code traces back to a spec

The SDD Toolkit introduces an 8-phase workflow where AI agents implement features from human-reviewed specifications. No more uncontrolled AI drift.

The result? Human-quality control over AI-speed development. Review at checkpoints, not after the damage is done.

1. INITIATE 👤 You write idea 2. SPECIFY 🤖 Requirements 👤 Review 3. DECOMPOSE 🤖 Task files 👤 Review 4. PLAN 🤖 Plans + eval 👤 Review 5. IMPLEMENT 🤖 Code it 6. EVALUATE 🤖 Pass/Fail 7. REVIEW 🤖🔍 Code review 👤 Review 8. SYNC 🤖 Knowledge ↺ retry if fail You AI Agent Human Review Checkpoint Retry on fail
🎯

Spec-First

Every line of code traces back to a human-reviewed specification. No hallucinated features, no unauthorized changes.

🔄

Built-in Retry

If an evaluation fails, the agent automatically retries implementation using the diagnosis. No manual intervention needed.

🛠️

Cross-Tool

28 command files generated in all 4 formats — Claude commands, Gemini commands, Copilot prompts, and Antigravity workflows.

Read the full SDD documentation →

Works everywhere

🍎 macOS

Standard filesystem symlinks. Works out of the box.

🐧 Linux

Standard filesystem symlinks. Works out of the box.

🪟 Windows

NTFS junctions for dirs, symlinks for files. No admin needed on Win 10+.

All symlinks use relative paths for portability — move or clone the repo anywhere.

From zero to AI-powered

Set up once, then let the knowledge grow automatically with every commit and every AI session.

One-time setup

1
Initialize project
$ dotai init

Creates .ai/ folder and symlinks for all your AI tools.

2
Initialize knowledge
$ dotai knowledge init

Scaffolds knowledge directory, scan skill, and /learn command.

3
Populate with AI
# Ask your AI agent: /learn

AI agent uses MCP tools to deeply analyze and persist findings.

Daily loop

Write Code Your business logic AI Agent Session Reads knowledge, starts smart Auto-Persist Findings knowledge_append via MCP /git-stage-commit Stage + commit locally (no push)
You Automatic

The more you use AI, the smarter it gets.

Frequently Asked Questions

Common questions about using dotai in your projects.

My project already has CLAUDE.md, GEMINI.md, commands, and skills. How do I use dotai with it?

dotai is designed for exactly this scenario. Run dotai init — it automatically detects your existing context files and merges their content into .ai/AI.md. Nothing is lost.

For existing commands and skills, copy them into .ai/, then run dotai link --force --backup. Your originals are saved as .dotai.bak files.

💡 Safe to revert: Run dotai unlink to remove all symlinks and restore originals.
Does dotai modify my existing config files?

No. By default, dotai skips any existing real file at a symlink target. It only replaces files when you explicitly use --force, which also creates a backup automatically.

What happens when a teammate clones the repo?

They run dotai init. It reads .dotai.json and auto-sets up everything — no prompts needed. Similar to how npm install reads package.json.

Can I use a different directory name instead of .ai/?

Yes. Use dotai init --dir .custom-name to specify a custom directory. The name is stored in .dotai.json and used for all subsequent commands.

Does dotai work on Windows?

Yes. On Windows 10+, dotai uses NTFS junctions for directories and standard symlinks for files. No administrator privileges are required.

How do I stop using dotai without breaking anything?

Run dotai unlink. It removes all symlinks and restores the original files from .dotai.bak backups. Your project goes back to its pre-dotai state.

📖 Ready to dive deeper?

Explore the full documentation — installation, configuration, knowledge base, CLI reference, and guides.

Read the Documentation