Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A template for every state startup to start with ai configuration

Notifications You must be signed in to change notification settings

betagouv/agnostic-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agnostic AI - Unified Configuration for AI Coding Tools

πŸš€ Ultra-Simple Setup - One command, choose your IDE, and you're ready to code with AI!

Share one AI configuration across all your AI coding tools - write once, use everywhere

⚑ TLDR - Quick Start

# 1. Install agnostic-ai
curl -fsSL https://raw.githubusercontent.com/betagouv/agnostic-ai/main/install.sh | bash

# 2. Migrate your existing documentation (optional)
.ai/cli migrate             # Shows instructions

# 3. Use commands to build features
# In your IDE (Claude Code/Cursor):
/core:feature-create        # Scaffold new features with EPCT methodology
/core:command-create        # Create custom commands
/core:agent-create          # Create specialized agents

# 4. Enable MCP servers (optional - AI superpowers!)
.ai/cli mcp install         # Install MCP templates
.ai/cli mcp list            # See available servers (GitHub, Notion, Airtable, etc.)
.ai/cli mcp use github      # Enable GitHub MCP server
.ai/cli mcp unuse github    # Disable when not needed (saves tokens!)

That's it! Your AI configuration is ready and version-controlled in .ai/

🎯 The Problem

Modern development teams face a configuration nightmare when using AI assistants:

Different IDEs, Different Configs 🀯

  • Your team uses Claude Code, Cursor, Windsurf, or other AI tools
  • Each tool requires its own configuration format
  • You end up duplicating commands, agents, and guidelines across tools
  • Changes need to be manually synced everywhere
  • No single source of truth = configuration drift

✨ The Solution

AI CLI provides a single .ai/ folder that works with all AI coding tools, with a modular plugin system to install only what you need.

Key Benefits

  • βœ… Ultra-fast setup - One question: which IDE?
  • βœ… Modular plugins - Install only what you need
  • βœ… Write once, use everywhere - One configuration, all IDEs
  • βœ… Git-friendly - Commit only .ai/, configs are generated
  • βœ… Easy updates - .ai/cli update to get latest
  • βœ… Team synchronization - Everyone gets the same setup
  • βœ… Works everywhere - Any bash system (macOS, Linux, WSL)

πŸ“¦ Installation

One-Command Setup

curl -fsSL https://raw.githubusercontent.com/betagouv/agnostic-ai/main/install.sh | bash

What happens:

  1. Creates .ai/ structure

    • Sets up AGENTS.md (main configuration)
    • Creates context/, commands/, agents/, avatars/ folders
  2. Installs core plugin automatically

    • Essential commands: /core:migrate, /core:command-create, /core:agent-create, etc.
    • Essential agents: explore-codebase, prompt-engineering, fast-coder
  3. Creates .ai/config.jsonc (committed to git)

    • Stores installed plugins
    • Shared across the team with JSONC format (supports comments)
  4. Asks which IDE(s) you want to configure

    • Claude Code
    • Cursor
    • You can select multiple (e.g., "1 2" for both)
    • Creates symlinks for each selected IDE
    • Updates .gitignore automatically

Result

your-project/
β”œβ”€β”€ .ai/                          # βœ… Commit this (source of truth)
β”‚   β”œβ”€β”€ AGENTS.md                 # Main config file
β”‚   β”œβ”€β”€ config.jsonc              # βœ… Configuration (committed, supports comments)
β”‚   β”œβ”€β”€ cli                       # Plugin manager CLI
β”‚   β”œβ”€β”€ commands/                 # Commands (plugins + custom)
β”‚   β”‚   β”œβ”€β”€ core/                 # Core plugin
β”‚   β”‚   β”œβ”€β”€ git/                  # Git plugin
β”‚   β”‚   β”œβ”€β”€ github/               # GitHub plugin
β”‚   β”‚   └── my-command.md         # Custom command at root
β”‚   β”œβ”€β”€ agents/                   # Agents (plugins + custom)
β”‚   β”‚   β”œβ”€β”€ core/                 # Core plugin
β”‚   β”‚   β”œβ”€β”€ github/               # GitHub plugin
β”‚   β”‚   └── my-agent.md           # Custom agent at root
β”‚   β”œβ”€β”€ context/                  # Context (plugins + custom)
β”‚   β”‚   β”œβ”€β”€ core/                 # Core plugin
β”‚   β”‚   β”œβ”€β”€ lang-node/            # Lang-node plugin
β”‚   β”‚   └── my-context.mdc        # Custom context at root
β”‚   └── avatars/                  # AI behavior profiles
β”‚       └── my-avatar.md          # Custom avatar
β”‚
β”œβ”€β”€ .claude/                      # ❌ Generated (gitignored)
β”‚   β”œβ”€β”€ CLAUDE.md                 # β†’ .ai/AGENTS.md
β”‚   β”œβ”€β”€ commands/                 # β†’ .ai/commands/
β”‚   β”œβ”€β”€ agents/                   # β†’ .ai/agents/
β”‚   β”œβ”€β”€ context/                  # β†’ .ai/context/
β”‚   └── output-styles/            # β†’ .ai/avatars/
β”‚
└── .cursor/                      # ❌ Generated (gitignored)
    β”œβ”€β”€ rules/                    # Directory with symlinks
    β”‚   β”œβ”€β”€ main.mdc              # β†’ .ai/AGENTS.md
    β”‚   β”œβ”€β”€ core/                 # β†’ .ai/context/core/
    β”‚   β”œβ”€β”€ lang-node/            # β†’ .ai/context/lang-node/
    β”‚   └── *.md                  # β†’ .ai/context/*.md
    β”œβ”€β”€ commands/                 # β†’ .ai/commands/
    └── agents/                   # β†’ .ai/agents/

πŸ”Œ Plugin System

Available Plugins

# List all available plugins
.ai/cli plugins list

# Output:
#   βœ“ core (installed)
#     github
#     code-quality
#     git
#     image-manipulation
#     lang-node
#     lang-typescript
#     lang-go
#     lang-ruby
#     lang-vue

Plugin Overview

Plugin Description Contains
core Essential commands & agents /core:migrate, /core:command-create, /core:agent-create, /core:deep-search, fast-coder, explore-codebase
github GitHub workflow automation /github:code-issue-process, /github:code-pr-create, /github:code-pr-process-comments
code-quality Code analysis & optimization /code-quality:code-analyse, /code-quality:code-ci, /code-quality:code-clean, /code-quality:code-explain, /code-quality:code-optimize
git Git commit automation /git:code-commit
image-manipulation Image processing /image-manipulation:image2md
lang-node Node.js context & tools Node.js code style, dependencies, performance, testing, /lang-node:code-fix
lang-typescript TypeScript context TypeScript code style and best practices
lang-go Go context Go code style and idioms
lang-ruby Ruby context Ruby code style and conventions
lang-vue Vue.js context Vue.js patterns and best practices

Install Plugins

# Install a plugin
.ai/cli plugins add lang-node

# Install multiple plugins
.ai/cli plugins add lang-typescript
.ai/cli plugins add github
.ai/cli plugins add code-quality

# Plugins are added to .ai/ and listed in .ai/config.jsonc

Update

# Update agnostic-ai and all installed plugins
.ai/cli update

# Checks git status first (must be clean)
# Downloads latest version
# Re-installs your plugins
# Updates IDE configuration

πŸš€ Quick Start

1. Install

curl -fsSL https://raw.githubusercontent.com/betagouv/agnostic-ai/main/install.sh | bash

Or if .ai folder is already installed, use .ai/cli configure

2. Migrate Existing Documentation

# Run from terminal
.ai/cli migrate

# This will show instructions for your IDE
# Then open your IDE (Claude Code or Cursor) and run:
/core:migrate

This command:

  • Finds all documentation in your codebase
  • Extracts relevant sections
  • Organizes them into .ai/context/ files
  • Removes extracted content from original files

3. Add Plugins (Optional)

# See what's available
.ai/cli plugins list

# Install language support
.ai/cli plugins add lang-node
.ai/cli plugins add lang-typescript

# Install GitHub integration
.ai/cli plugins add github

4. Commit Your Configuration

git add .ai/
git commit -m "feat: add AI configuration"
git push

Note: .ai/config.jsonc is committed and shared across the team!

πŸ› οΈ CLI Commands

IDE Configuration

# Configure IDE symlinks (can run multiple times to add more IDEs)
.ai/cli configure

Plugin Management

# List available plugins
.ai/cli plugins list

# Install a plugin
.ai/cli plugins add <plugin-name>

# Examples
.ai/cli plugins add lang-node
.ai/cli plugins add github
.ai/cli plugins add code-quality

Update

# Update agnostic-ai and installed plugins
.ai/cli update

MCP Server Management

# Install MCP server templates
.ai/cli mcp install

# List available MCP servers
.ai/cli mcp list

# Enable MCP server(s) for your IDE(s)
.ai/cli mcp use <server-name> [server-name...]

# Examples
.ai/cli mcp use github              # Enable GitHub integration
.ai/cli mcp use notion airtable     # Enable multiple servers
.ai/cli mcp use filesystem sqlite   # Local tools

# Disable MCP server(s) - Don't forget to disable unused servers to save tokens!
.ai/cli mcp unuse <server-name> [server-name...]

# Examples
.ai/cli mcp unuse github            # Disable GitHub when not working on PRs
.ai/cli mcp unuse notion airtable   # Disable multiple servers

πŸ’‘ Tip: Only enable MCP servers you're actively using. Each enabled server consumes tokens in every conversation, so disable them when not needed to save costs!

Available MCP Servers (14 pre-configured):

  • airtable - Airtable database operations
  • context7 - Up-to-date library documentation
  • filesystem - File system operations
  • github - GitHub API integration
  • gmail - Gmail search and drafts
  • google-calendar - Calendar management
  • google-drive - Drive, Sheets, and Docs access
  • make - Make.com scenario integration
  • next-devtools - Next.js development tools
  • notion - Notion workspace integration
  • postgres - PostgreSQL database access
  • sqlite - SQLite database access
  • stripe - Stripe payment processing
  • trello - Trello board management

Setup: Add required API keys to .env.local (gitignored)

Help

# Show help
.ai/cli help

πŸ“š Core Plugin Commands

Once installed, you have access to these commands:

/core:migrate

Migrate existing documentation to .ai/context/ files (Run .ai/cli migrate from terminal first to see instructions)

/core:command-create

Create a new slash command

/core:agent-create

Create a new specialized agent

/core:context-cleanup

Optimize and clean up context files

/core:deep-search

Perform deep research on a topic

/core:avatar-create

Create a new AI personality/output style

/core:feature-create

Scaffold a new feature with EPCT methodology

πŸ”„ Daily Workflow

Adding a Plugin

# Discover available plugins
.ai/cli plugins list

# Install what you need
.ai/cli plugins add code-quality

# Commands appear instantly in your IDE
/code-quality:code-analyse

Updating

# Get latest updates
.ai/cli update

# Your installed plugins are automatically updated

Team Synchronization

# Pull changes
git pull

# Configuration is in .ai/config.jsonc - shared across the team
# If new plugins were added, they'll be automatically available

# Configure your IDE locally (each dev chooses their own IDE)
.ai/cli configure

Note: IDE configuration is local (gitignored) - each developer can use different IDEs!

🎯 IDE Support

IDE Status Configuration
Claude Code βœ… Full .claude/ (symlinks)
Cursor βœ… Full .cursor/ (symlinks)
Others πŸ”œ Coming Contribute!

⚑ Shell Aliases for Claude CLI

Speed up your Claude CLI workflow with convenient aliases:

alias cc="claude --dangerously-skip-permissions"
alias ccc="claude --dangerously-skip-permissions -c"

Why it's safe: The agnostic-ai configuration includes a PreToolsBash hook that intercepts potentially destructive commands before execution, giving you speed without compromising safety.

πŸ“– Full setup guide: templates/ides/claude/SHELL-SETUP.md

🀝 Contributing

Want to add support for your favorite IDE or create a plugin?

See templates/ides/CONTRIBUTE.md for IDE integration guide.

For plugins, just create a folder in templates/plugins/ with your plugin name and structure:

templates/plugins/my-plugin/
β”œβ”€β”€ commands/
β”‚   └── my-command.md
β”œβ”€β”€ agents/
β”‚   └── my-agent.md
└── context/
    └── MY-CONTEXT.md

πŸ™ Acknowledgments

Original Idea & Development

This project was created by:

Inspiration

This project was heavily inspired by @Melvynx's excellent aiblueprint. Thank you!

To get the most out of this project and AI-assisted development, we recommend Melvynx's AI Blueprint training to understand how to best work with AI assistants.

πŸ“„ License

MIT

πŸ’¬ Support


Made with ❀️ for developers who want to share AI configuration across all their AI coding tools

About

A template for every state startup to start with ai configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published