Stop losing context! Keep your AI assistants informed across all providers and projects.
Problem: AI assistants forget your project context between conversations. You repeat yourself constantly.
Solution: A universal context system that works with ALL AI providers:
- β Claude (Desktop & Web)
- β Cursor IDE
- β GitHub Copilot
- β Gemini CLI
- β OpenAI ChatGPT
- β Any AI tool that can read markdown files
npm install -g dotfiles-context
curl -sSL https://raw.githubusercontent.com/anivar/dotfiles-context/main/install.sh | bash
git clone https://github.com/anivar/dotfiles-context.git
cd dotfiles-context
./install.sh
# Store architecture decisions
context store architecture "Microservices with event sourcing"
# Store technical decisions
context store decisions "PostgreSQL for ACID compliance"
# Store API documentation
context store api "REST endpoints with JWT authentication"
# Track documentation with timestamps
context doc API.md "REST endpoint documentation"
# Get all context
context retrieve
# Search for specific information
context retrieve "database"
context retrieve "API"
# Check project status
context status
# Import existing AI configuration files
context import
# This imports content from:
# - CLAUDE.md
# - .cursorrules
# - .github/copilot-instructions.md
All context is stored in .ai-context/memory.md
:
# Project Context
## [architecture] 2024-01-15T10:30:00Z
Microservices with event sourcing and CQRS pattern
## [decisions] 2024-01-15T11:00:00Z
PostgreSQL for main database, Redis for caching
The system creates provider-specific files that reference the central memory:
Claude (CLAUDE.md
):
## Project Context
@.ai-context/memory.md
Cursor (.cursorrules
):
# Always check .ai-context/memory.md for project context
GitHub Copilot (.github/copilot-instructions.md
):
## Context Reference
../.ai-context/memory.md
Gemini (GEMINI.md
β symlink to memory.md)
- Works with any AI provider
- Persistent across conversations
- Project-specific context
- Automatically creates provider files
- Updates timestamps
- Handles existing configurations
- Warns about storing secrets
- Auto-adds to
.gitignore
- Validates all inputs
- Treats secrets like dotfiles
- Track docs with timestamps
- List recent changes
- Reference-based (no content duplication)
- XDG Base Directory compliant
- Atomic file operations
- Comprehensive logging
- Professional architecture
context store architecture "Next.js with TypeScript and Tailwind"
context store database "Prisma with PostgreSQL"
context store auth "NextAuth.js with Google OAuth"
context doc components/README.md "Component documentation"
context store platform "React Native with Expo"
context store state "Redux Toolkit for state management"
context store api "REST API with React Query"
context store architecture "Express.js microservices"
context store database "MongoDB with Mongoose ODM"
context store deployment "Docker containers on AWS ECS"
Add to claude_desktop_config.json
:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/your/projects"]
}
}
}
Works automatically! Cursor reads .cursorrules
files.
Works automatically! Copilot reads .github/copilot-instructions.md
.
Install the wrapper:
# The symlink approach works automatically
ls -la GEMINI.md # -> .ai-context/memory.md
Simply reference the context:
"Check my project context in .ai-context/memory.md and help me implement..."
Use these standard categories for consistency:
architecture
- System design decisionsrequirements
- Business/technical requirementsimplementation
- Code implementation detailsinfrastructure
- Deployment and infrastructuredecisions
- Technical decisions and rationaleissues
- Known issues and resolutionsdocs
- Documentation referencesapi
- API design and endpointsdatabase
- Database schema and decisionsauth
- Authentication and authorizationtesting
- Testing strategies and patterns
- Input validation and sanitization
- Automatic
.gitignore
management - Secret detection warnings
- Path traversal protection
- XDG directory compliance
# Good - Store references
context store api "AWS credentials in 1Password: ProjectName-Prod"
context store database "Connection string in .env.local"
# Bad - Store actual secrets
context store api "api_key=sk-abc123..." # Will warn!
context store <category> <content> # Store contextual information
context retrieve [filter] # Retrieve stored context
context status # Show system status
context import # Import existing AI files
context doc <file> [description] # Track documentation
context recent-docs [days] # List recent documentation
context sync # Force provider sync
context help # Show help
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file.
- π Report Issues
- π¬ Discussions
- π Documentation
Stop repeating yourself to AI assistants. Install dotfiles-context and keep them informed! π