Skip to content

OneCode182/AgentsAI

Β 
Β 

Repository files navigation

19+ AI Agents Zero Drift 1 Hub

πŸ€– Universal Context Architecture

Stop "Context Drift" in Multi-Agent AI Teams


Use this template


One source of truth for Cursor, Claude Code, GitHub Copilot, Gemini, Amazon Q, and 16+ AI coding assistants.


Quick Start Β· How It Works Β· Supported Tools Β· Customize




πŸ€” The Problem

We're in the era of Multi-Vendor AI Development. Your team might be using:

πŸ–±οΈ
Cursor
πŸ€–
Claude Code
πŸ™
GitHub Copilot
πŸ’Ž
Gemini CLI
☁️
Amazon Q
βž•
13 more...

The catch? Every tool has its own config file. They all drift apart over time.

😡 Before: Chaos
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ .cursorrulesβ”‚  β”‚  CLAUDE.md  β”‚  β”‚  GEMINI.md  β”‚  β”‚ copilot.md  β”‚
β”‚   v1.2      β”‚  β”‚   v1.5      β”‚  β”‚   v1.0      β”‚  β”‚   v1.3      β”‚
β”‚  (outdated) β”‚  β”‚  (current)  β”‚  β”‚  (wrong)    β”‚  β”‚  (missing)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      ↓                ↓                ↓                ↓
   Different        Different        Different        Different
   conventions      conventions      conventions      conventions

You end up with duplicated rules, conflicting instructions, and AI assistants that hallucinate different project conventions.




πŸ’‘ The Solution

Governor & Consumer Pattern

Instead of maintaining 19 different config files, use a hub-and-spoke architecture:

✨ After: Harmony
                         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                         β”‚     AGENTS.md       β”‚
                         β”‚     (The Hub)       β”‚
                         β”‚  Single Source of   β”‚
                         β”‚      Truth          β”‚
                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                    β”‚
           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
           β”‚            β”‚           β”‚           β”‚            β”‚
           β–Ό            β–Ό           β–Ό           β–Ό            β–Ό
     .cursorrules  CLAUDE.md   GEMINI.md   copilot.md    19 more...
        β”‚            β”‚           β”‚           β”‚            β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                      "Read AGENTS.md first"

Every vendor-specific config contains just one instruction:

"System: Read /AGENTS.md before doing anything."




πŸ—‚οΈ Architecture

πŸ“ Your Project
β”‚
β”œβ”€β”€ 🎯 AGENTS.md                      ← THE HUB: Entry point for all AI agents
β”‚
β”œβ”€β”€ πŸ“‚ .agent/
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“š skills/                ← KNOWLEDGE (Atomic, Reusable)
β”‚   β”‚   β”œβ”€β”€ git.md                   "Here are our Git commands"
β”‚   β”‚   β”œβ”€β”€ db.md                    "Here's how to run migrations"
β”‚   β”‚   β”œβ”€β”€ test.md                  "Here's how to run tests"
β”‚   β”‚   └── review-checklist.md      "Here's the PR checklist"
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ”„ workflows/             ← PROCESSES (Step-by-step)
β”‚   β”‚   β”œβ”€β”€ feature-dev.md           Plan β†’ Code β†’ Test
β”‚   β”‚   β”œβ”€β”€ bug-fix.md               Reproduce β†’ Fix β†’ Verify
β”‚   β”‚   β”œβ”€β”€ deploy.md                Lint β†’ Build β†’ Ship
β”‚   β”‚   └── pr-review.md             Fetch β†’ Review β†’ Approve
β”‚   β”‚
β”‚   └── 🎭 sub-agents/            ← PERSONAS (Specialized Roles)
β”‚       β”œβ”€β”€ qa.md                    "I am the QA Engineer"
β”‚       β”œβ”€β”€ devops.md                "I am the DevOps Engineer"
β”‚       └── tech-lead.md             "I am the Tech Lead"
β”‚
β”œβ”€β”€ πŸ“‚ .specify/memory/           ← GOVERNANCE (The Law)
β”‚   β”œβ”€β”€ constitution.md              Tech Stack & Rules
β”‚   └── plan.md                      Current Tasks & Sprint
β”‚
└── πŸ“‚ [Pointer Files]            ← REDIRECTORS (Thin Wrappers)
    β”œβ”€β”€ .cursorrules                 β†’ "Read AGENTS.md"
    β”œβ”€β”€ CLAUDE.md                    β†’ "Read AGENTS.md"
    β”œβ”€β”€ GEMINI.md                    β†’ "Read AGENTS.md"
    └── ... (19 total)               β†’ "Read AGENTS.md"



πŸš€ Quick Start

Step 1️⃣ Β  Use This Template

Click the button below to create your own copy:

Use this template

Step 2️⃣ Β  Define Your Constitution

Edit .specify/memory/constitution.md:

# Your Tech Stack
Frontend: React 18 + TypeScript + Tailwind
Backend:  Node.js + Express + Prisma
Database: PostgreSQL
Cloud:    AWS

# Your Rules
- TypeScript everywhere, no `any`
- All functions must be documented
- Tests required for new features

Step 3️⃣ Β  Set Your Plan

Edit .specify/memory/plan.md:

## Current Sprint: User Authentication

### In Progress
- [ ] Implement OAuth2 flow
- [ ] Add password reset

### Up Next
- [ ] Two-factor authentication

Step 4️⃣ Β  Start Coding

Open your project in any AI-powered IDE. The AI will automatically:

  1. πŸ“– Read the pointer file (.cursorrules, CLAUDE.md, etc.)
  2. 🎯 Navigate to AGENTS.md
  3. πŸ“œ Load your constitution and plan
  4. βœ… Follow your rules consistently



πŸ”Œ Supported AI Tools

IDE / CLI Config File Status
Cursor .cursorrules βœ…
Windsurf .windsurfrules βœ…
Roo Code / Cline .clinerules βœ…
GitHub Copilot .github/copilot-instructions.md βœ…
Claude Code CLAUDE.md βœ…
Gemini CLI GEMINI.md βœ…
Amazon Q AMAZON_Q.md βœ…
Auggie CLI .auggie.md βœ…
CodeBuddy .codebuddy βœ…
Qoder .qoder/context.md βœ…
OpenCode .opencode βœ…
Amp .amp.md βœ…
Kilo Code .kilo βœ…
Qwen Code .qwen βœ…
IBM Bob .bob/config βœ…
Jules .jules βœ…
SHAI .shai βœ…
Codex CLI CODEX.md βœ…
Goose GOOSE.md βœ…



🧠 How It Works

πŸ“š Skills πŸ”„ Workflows 🎭 Sub-Agents πŸ“œ Governance

Atomic knowledge modules

Each skill is a reusable piece of domain knowledge.

git.md
β”œβ”€ Branch naming
β”œβ”€ Commit format
└─ PR process

Step-by-step processes

Workflows chain skills into complete procedures.

feature-dev.md
β”œβ”€ Step 1: Plan
β”œβ”€ Step 2: Code
└─ Step 3: Test ↗️
         └── test.md

Specialized personas

Sub-agents are experts that use specific skills & workflows.

qa.md
β”œβ”€ Uses: test.md
β”œβ”€ Uses: bug-fix.md
└─ Focus: Quality

The source of truth

Constitution = the law Plan = current state

memory/
β”œβ”€ constitution.md
β”‚  └─ "Never ignore me"
└─ plan.md
   └─ "Here's what we're doing"



✨ Before vs After

😡 Before ✨ After

❌ 19 config files to maintain

❌ Rules drift between tools

❌ Duplicated documentation

❌ AI invents conventions

❌ Context gets lost mid-task

❌ Team members get different AI behavior

βœ… 1 hub file + thin pointers

βœ… Consistent rules everywhere

βœ… Single source of truth

βœ… AI follows YOUR conventions

βœ… Context is preserved

βœ… Same AI behavior for everyone




πŸ› οΈ Customization

βž• Adding a New AI Tool

Create a new pointer file for any AI tool:

# [Tool Name] Configuration

> System: Read /AGENTS.md before doing anything.

---

## Instructions

Before performing any task, you MUST:

1. Read `AGENTS.md` β€” The central hub for all project context
2. Read `.specify/memory/constitution.md` β€” The rules and tech stack
3. Check `.specify/memory/plan.md` β€” Current tasks and priorities

---

*This file redirects [Tool Name] to the Universal Context Architecture.*
πŸ“š Adding a New Skill
  1. Create a file in .agent/skills/
  2. Start with a tagline: > Here is how to [do X].
  3. Add commands, conventions, examples
  4. Reference it from relevant workflows

Example:

# Docker Skill

> Here is how to build and run containers.

## Commands

\`\`\`bash
docker build -t myapp .
docker run -p 3000:3000 myapp
\`\`\`
πŸ”„ Adding a New Workflow
  1. Create a file in .agent/workflows/
  2. Define numbered steps
  3. Reference skills with links
  4. Keep it action-oriented

Example:

# Hotfix Workflow

> Step 1: Branch. Step 2: Fix. Step 3: Deploy.

## Step 1: Create Hotfix Branch

Reference: `.agent/skills/git.md`

\`\`\`bash
git checkout -b hotfix/critical-issue main
\`\`\`

## Step 2: Apply Fix
...
🎭 Adding a New Sub-Agent
  1. Create a file in .agent/sub-agents/
  2. Define the persona and role
  3. List which skills and workflows it uses
  4. Add specific instructions

Example:

# Security Engineer Sub-Agent

> I am the Security Engineer. I review code for vulnerabilities.

## My Skills
- `.agent/skills/review-checklist.md`

## My Focus
- OWASP Top 10
- Input validation
- Authentication flows



🌟 Star History

If this helps your team, consider giving it a ⭐


Built with ❀️ for the Multi-Agent AI Era

Stop context drift. Start shipping.


Use this template



Inspired by Spec-Kit and the Governor & Consumer pattern

About

Universal Context Architecture. One source of truth for Cursor, Claude Code, GitHub Copilot, Gemini, Amazon Q, and 15+ AI coding assistants.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 65.9%
  • TypeScript 15.5%
  • Shell 11.8%
  • CSS 6.8%