ai-frames
v0.5.2
Published
AI context manager for multi-repo workspaces
Readme
ai-frames
Centralized AI context manager for multi-repo workspaces.
Define your rules, agents, skills and resources once — every repository in your workspace automatically gets the same context, regardless of which AI assistant you use.
Website: ai-frames.org
What is ai-frames?
ai-frames lets you manage a single resources repository that holds all your AI context (rules, agents, skills, prompts, MCP configs). It syncs that repo to your local workspace and distributes the right files to each AI assistant — Claude Code, GitHub Copilot, Cursor, Windsurf — automatically.
Resources repo (git)
└── .aicontext/
├── rules/ ← shared rules for all assistants
│ ├── .claude/ ← Claude-specific overrides
│ └── .copilot/ ← Copilot-specific overrides
├── agents/
├── skills/
├── prompts/
└── mcps/
↓ ai-frames sync
Local workspace
├── .aicontext/ ← local copy (source of truth)
├── .claude/ ← generated for Claude Code
├── .github/ ← generated for GitHub Copilot
├── .cursor/ ← generated for Cursor
└── .windsurf/ ← generated for WindsurfFeatures
- Web UI — configure everything from a local browser interface
- Multiple contexts — separate configs for work, personal projects, clients
- Git-backed — resources live in your own repo; sync tracks commit hashes
- Marketplace — browse and select rules, agents, skills, prompts and templates
- Templates — install bundles of resources with one click
- Multi-provider — GitHub, GitLab, Bitbucket
- Secure auth — tokens stored in
~/.ai-frames/contexts/<id>/.tokenwith0600permissions - Per-assistant dirs — enable Claude, Copilot, Cursor or Windsurf independently
- Custom mappings — map any repo path to any local directory
- i18n — English, Spanish, Polish
Requirements
- Node.js 18+
- Git
Getting started
# Install
npm install -g ai-frames
# Launch
ai-framesThe first time you run it, a setup wizard opens in your browser to configure:
- Context name — e.g.
work,personal,client-x - Git provider — GitHub, GitLab or Bitbucket
- Resources repository — the repo that holds your AI context files
- Authentication — personal access token or SSH key
- Workspace directory — where your project repos live
Development
git clone https://github.com/susocode/ai-frames-cli.git
cd ai-frames-cli
npm install
# Start dev server (hot reload on http://localhost:3000)
npm run devProject structure
ai-frames-cli/
src/
app/
(dashboard)/ — dashboard pages (overview, workspace, marketplace…)
api/ — Next.js API route handlers
setup/ — setup wizard page
layout.tsx — root layout (theme + i18n providers)
page.tsx — boot page (redirects to /setup or /overview)
components/ — React components
i18n/ — EN / ES / PL translations
lib/
services/ — config, sync, marketplace, assistants
utils/ — errors, logger, repo helpers
styles/ — global CSS
theme/ — ThemeContext
utils/ — path and repo validation helpers
index.ts — CLI entry point (commander)
server.ts — HTTP server wrapping Next.js
next.config.tsHow sync works
ai-frames clones your resources repo into ~/.ai-frames/contexts/<id>/repo/ and tracks the current commit in lock.yaml.
~/.ai-frames/
config.yaml
contexts/
<uuid>/
context.yaml ← context config
.token ← access token (mode 0600, never committed)
lock.yaml ← { hash, synced_at }
selections.yaml ← which marketplace items to sync
assistants.yaml ← enabled assistants with their prefix
repo/ ← git clone of your resources repo
.aicontext/Pressing Sync in the UI:
- Fetches the remote repo
- Pulls if there are new commits
- Copies only the selected items to your workspace
Releases
Releases are fully automated via semantic-release. Every push to main that contains a feat: or fix: commit automatically:
- Bumps the version (
fix:→ patch,feat:→ minor,BREAKING CHANGE→ major) - Updates
CHANGELOG.md - Publishes to npm
- Updates the Homebrew tap formula
- Creates a GitHub Release
Install via Homebrew
brew tap susocode/tap
brew install ai-framesRoadmap
- [ ] Install — transform
.aicontext/to native assistant formats - [ ] Repository management — clone project repos with context symlinks
- [ ] MCPs marketplace page
- [ ] App Contexts page
- [ ] Summary / Deploy page
License
MIT
