A revolutionary AI development assistant built with safety as the foundation - featuring mandatory abstraction of all concrete references, temporal memory with privacy protection, and comprehensive validation at every layer.
- Abstraction-First: All concrete references (paths, IDs, secrets) automatically abstracted
- Validation at Every Layer: Database, API, and application-level safety enforcement
- Privacy by Design: No personal or sensitive data stored in concrete form
- Fail-Safe Defaults: System refuses unsafe operations by design
CoachNTT.ai (Cognitive Coding Partner) revolutionizes software development through intelligent temporal memory, automated documentation, and structured workflow enforcement. Unlike traditional coding assistants, CCP maintains comprehensive context awareness through holistic memory storage, knowledge base integration, and proactive development guidance.
CoachNTT.ai introduces a groundbreaking security pattern for AI-assisted development: a mandatory abstraction framework that creates a protective barrier between AI tools and sensitive information. This innovation addresses a critical vulnerability in current AI coding assistants - the inadvertent leakage of sensitive project details through file paths, variable names, URLs, database schemas, and error messages.
Our abstraction framework operates as a systematic security layer:
Unlike traditional approaches that rely on:
- Manual sanitization (error-prone)
- Simple pattern filters (insufficient)
- Trust-based systems (risky)
- Avoiding AI for sensitive projects (limiting)
CoachNTT.ai enforces abstraction at every layer:
- Database Level: PostgreSQL triggers prevent storage of concrete references
- Application Level: Multi-stage validation pipeline with safety scoring
- API Level: Automatic abstraction in all responses
- Output Level: Real-time safety validation with quality metrics
The framework includes:
- Reference Extraction: Identifies all concrete references in content
- Pattern Generation: Creates consistent, safe abstractions
- Safety Scoring: Measures abstraction quality (≥0.8 threshold enforced)
- Temporal Consistency: Maintains abstraction patterns over time
- Database Enforcement: Impossible to bypass at data layer
This approach enables:
- Enterprise AI Adoption: Use AI tools without compromising security
- Regulatory Compliance: GDPR, HIPAA, SOC2 friendly by design
- Open Source Contribution: Share knowledge without exposing internals
- Team Collaboration: Safe knowledge sharing across organizations
The abstraction framework represents a potential new security primitive for AI tools - transforming how organizations can safely leverage AI assistance while maintaining complete information security.
- Reference Abstraction Engine: Automatically converts concrete references to safe patterns
- Multi-Stage Validation Pipeline: Structure → Abstraction → Safety → Temporal → Consistency
- Real-Time Safety Metrics: Quality scoring and monitoring with alerting
- Database-Level Enforcement: PostgreSQL triggers preventing unsafe data storage
- Safety Score: Maintains ≥0.8 safety threshold across all operations
- Temporal Memory System: Stores complete interaction contexts with time-weighted relevance
- Intent Analysis Engine: 12 intent types with semantic, temporal, and usage pattern analysis
- Memory Clustering: Hierarchical clustering with embeddings for semantic grouping
- Vector Embeddings: Sentence-transformers with intelligent caching (>80% cache hit rate)
- Memory Decay Management: Configurable temporal weight algorithms
- Knowledge Graph Builder: Semantic connections between memories and code
- AST Code Analysis: Python/JavaScript/TypeScript with pattern detection
- Graph Export: Multiple formats (Mermaid, JSON, D3, Cytoscape, GraphML)
- Subgraph Extraction: BFS-based traversal with configurable depth
- Performance: <500ms graph build, <50ms queries, <200ms visualization
- Obsidian Vault Sync: Bidirectional synchronization with conflict resolution
- Documentation Generator: Automated README, API docs, changelog generation
- Script Automation Framework: Safe execution with performance monitoring
- Checkpoint System: Git state capture with complexity analysis
- Template Processing: Safe variable substitution with validation
- Complete FastAPI Application: 15+ REST endpoints with JWT authentication
- Memory CRUD Operations: Create, read, update, delete with automatic abstraction
- Knowledge Graph API: Build, query, export, and subgraph operations
- Integration Endpoints: Checkpoint, vault sync, documentation generation
- Real-time WebSocket: Live updates with channel subscriptions and heartbeat
- Background Tasks: Progress tracking for long-running operations
- Advanced Middleware: Rate limiting (token bucket), authentication, safety validation
- Comprehensive Testing: Unit tests for all components with >90% coverage
- Performance Monitoring: Real-time metrics with safety score tracking
- Error Handling: Production-ready error abstraction with correlation IDs
- Configuration Management: 50+ settings with environment-based overrides
- Backend: Python 3.10+ with FastAPI, Pydantic, asyncio
- Database: PostgreSQL 15+ with pgvector extension for vector operations
- AI/ML: Sentence-transformers, scikit-learn for embeddings and clustering
- Knowledge Base: Obsidian vault integration with markdown processing
- Authentication: JWT with flexible token sources and auto-refresh
- Containerization: Docker & Docker Compose with security hardening
- API: RESTful with WebSocket support and comprehensive validation
- Testing: pytest with async support and comprehensive mocking
- Clone and Setup:
- Start Services:
- API Server:
- WebSocket Connection:
- POST /api/v1/memories/ - Create new memory
- GET /api/v1/memories/{memory_id} - Get memory by ID
- PUT /api/v1/memories/{memory_id} - Update memory
- DELETE /api/v1/memories/{memory_id} - Delete memory
- POST /api/v1/memories/search - Search memories with filters
- POST /api/v1/memories/{memory_id}/reinforce - Reinforce memory
- POST /api/v1/graph/build - Build knowledge graph
- GET /api/v1/graph/{graph_id} - Get graph metadata
- POST /api/v1/graph/{graph_id}/query - Query graph with filters
- POST /api/v1/graph/{graph_id}/export - Export graph (multiple formats)
- POST /api/v1/graph/{graph_id}/subgraph - Extract subgraph
- GET /api/v1/graph/ - List available graphs
- POST /api/v1/integrations/checkpoint - Create memory checkpoint
- POST /api/v1/integrations/vault/sync - Trigger vault synchronization
- POST /api/v1/integrations/docs/generate - Generate documentation
- GET /api/v1/integrations/status - Get integration service status
- GET /api/v1/integrations/tasks - List background tasks
- WebSocket /ws/realtime - Real-time updates and notifications
- Channels: memory_updates, graph_updates, integration_updates, system_notifications
- Abstraction Quality Score: 0.995/1.0 ✅
- Processing Time: <1ms average ✅
- Coverage: 100% reference detection ✅
- Validation: Multi-stage pipeline operational ✅
- Safety Enforcement: Database-level triggers active ✅
- JWT authentication with configurable expiration
- Rate limiting with token bucket algorithm
- Input validation and sanitization
- SQL injection prevention
- CORS configuration
- Environment-based secrets management
- Architecture Overview
- API Documentation
- Safety Framework
- Development Guide
- User Guide
- Performance Guide
Please read our Contributing Guide before submitting pull requests.
- Fork the repository
- Create a feature branch
- Run safety validation: python -m pytest tests/unit/safety/
- Ensure all tests pass: python -m pytest
- Submit pull request with comprehensive description
This project is licensed under the MIT License - see the LICENSE file for details.
- Phase 0: Safety Foundation (100%) - Abstraction framework operational
- Phase 1: Secure Foundation (100%) - Production-ready database and models
- Phase 2: Intelligence Layer (100%) - Intent analysis and embeddings
- Phase 3: Knowledge Integration (100%) - Graph builder and vault sync
- Phase 4: Integration & Polish (40%) - REST API and WebSocket support
- Session 4.2: CLI Interface Development (Planned)
- Session 4.3: Performance Optimization (Planned)
- Session 4.4: Security Hardening (Planned)
- Session 4.5: Production Deployment (Planned)
- Memory operations: <500ms
- Graph building: <1s for 100 nodes
- API responses: <200ms average
- WebSocket latency: <50ms
- Safety validation: <1ms
- Command-line interface for all operations
- Advanced performance optimization
- Enhanced security features
- Production deployment templates
- Advanced monitoring and alerting
For questions, issues, or contributions:
- GitHub Issues: Bug reports and feature requests
- Discussions: General questions and community support
- Documentation: Comprehensive guides in /docs
Built with safety-first principles and zero-tolerance for data leakage
.png)
![Problem, 7 Libraries (on the GPU) [video]](https://www.youtube.com/img/desktop/supported_browsers/edgium.png)

