A standardized knowledge management system for AI-assisted development
AGP creates a persistent, context-rich development environment that works seamlessly across any AI programming assistant (ChatGPT, Claude, Cursor, etc.). By managing project knowledge through an isolated .agp
directory as a Git submodule, AGP ensures consistent agentic behavior regardless of platform or session.
- 🧠 Persistent AI Memory: Knowledge accumulates over time, enabling any AI to pick up work instantly
- 👥 Multi-User Collaboration: Session management prevents file conflicts when multiple users work with AI
- 🔄 Session Continuity: Resume work seamlessly across conversations and platforms
- 📚 Auto-Generated Documentation: AI creates and maintains comprehensive project knowledge
- 🎯 Context-Aware: AI understands project structure, patterns, and conventions automatically
npm install -g agp-cli
# Initialize AGP in your project
agp init
# Start your session
agp start
Once initialized, any AI assistant can:
- Read your project structure from
.agp/architecture/
- Understand implementation patterns from
.agp/patterns/
- Review session history from
.agp/sessions/
- Continue work without losing context
Command | Description |
---|---|
agp init |
Initialize AGP in your project with template setup |
agp start |
Start or resume your development session |
agp push |
Push session progress and knowledge to remote repository |
agp connect <tool> |
Configure AGP for AI tools (claude, cursor, chatgpt) |
AGP creates a .agp
directory structure that serves as persistent AI memory:
.agp/
├── instructions.md # AI workflows and system rules
├── .config.json # Local session configuration
├── architecture/ # Project structure and design decisions
├── patterns/ # Reusable implementation patterns
├── project/ # File-specific knowledge and context
└── sessions/ # User session tracking and history
-
Knowledge Accumulation: Every file modification generates corresponding knowledge in
.agp/project/
-
Pattern Recognition: Common solutions are extracted to
.agp/patterns/
for reuse - Session Tracking: Multiple users can work safely without conflicts
- Context Preservation: AI understands project history and conventions
AGP uses a .config.json
file (local-only) to track current session:
{
"session": {
"user": "alice",
"current": ".agp/sessions/alice/index.md"
}
}
AGP prevents collaboration conflicts through session management:
- Each user has their own session directory
- Active file locks prevent simultaneous edits
- Session history enables seamless handoffs
- Knowledge accumulates for the entire team
- AI-First Development: When you primarily work with AI assistants
- Knowledge-Heavy Projects: Complex codebases requiring context retention
- Team Collaboration: Multiple developers working with AI tools
- Long-Term Projects: Maintaining context across months or years
- Context Switching: Jumping between different features or areas
All documentation is auto-generated in your .agp
directory after running agp init
.
AGP works with any AI that can read files:
- Claude Code: Full integration with file reading capabilities
-
ChatGPT: Upload
.agp
files for context - Cursor: Built-in file understanding
- GitHub Copilot: Enhanced with project knowledge
- Any AI Tool: That supports file-based context
MIT License - see LICENSE for details.
Made with ❤️ for the AI development community