Repomind
An open-source, AI-powered application using Agentic CAG to chat with any public GitHub repository or developer profile, offering deep code analysis, visual architecture maps and security audits
Install / Use
/learn @403errors/RepomindREADME
RepoMind
<p align="center"><strong>Stop reading code. Start talking to it.</strong></p> <p align="center"> <a href="https://github.com/403errors/repomind"><img src="https://img.shields.io/github/stars/403errors/repomind?style=social" alt="GitHub stars" /></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="MIT License" /></a> <a href="https://nextjs.org/"><img src="https://img.shields.io/badge/Next.js-16-black" alt="Next.js" /></a> <a href="https://ai.google.dev/"><img src="https://img.shields.io/badge/Gemini-3_Flash_Preview-blue" alt="Gemini" /></a> </p> <p align="center"> <a href="https://repomind.in"><strong>Try RepoMind Live</strong></a> · <a href="https://repomind.in/repo/facebook/react"><strong>See React Analyzed</strong></a> · <a href="https://github.com/403errors/repomind/issues"><strong>Contribute</strong></a> </p>RepoMind is an open-source, AI-powered platform for understanding public GitHub repositories and developer profiles with Agentic CAG. It combines deep code reasoning, architecture visualization, and security scanning into a fast, browser-first experience.
Why RepoMind
- Zero setup for public repos: paste a repo or profile and start immediately.
- Context-aware analysis: selects full, relevant files instead of fragmented vector chunks.
- Visual understanding: generates architecture maps and flow diagrams for faster onboarding.
- Security scanning built in: quick/deep scans with verification-focused reporting.
- Live step feedback: chat shows real-time processing stages (selecting files, reading files, preparing answer).
- Contributor-friendly codebase: clear TypeScript services, tests, and modular features.
Product Highlights
Landing Experience
- Trending Repositories: Discover popular and highly-active public repositories directly from the landing page.
- Real-Time Global Search: Instant, optimized repository search with auto-complete suggestions for seamless navigation.

Repo Profile Intelligence

Core Capabilities

Agentic CAG Architecture
RepoMind uses Agentic Context-Augmented Generation (CAG). Instead of relying only on embeddings, it prunes and loads coherent source context to answer architecture and implementation questions reliably.


Architecture Flowcharts
These diagrams provide a quick mental model of how RepoMind processes queries, optimizes performance, and validates security findings.
1) Query + Context Pipeline
flowchart TD
A[User enters repo or profile query] --> B[Context-Aware Engine]
B --> C[Repository/Profile metadata fetch + file tree]
B --> D[File selection via GEMINI_FILE_SELECTOR_MODEL]
D --> E[25 files for Lite or 50 files for Thinking]
E --> F[Fetch selected files with SHA-aware cache reuse]
F --> G[Build context with repo folder structure + selected files]
G --> H[Answer generation via Lite or Thinking model]
H --> I[Streaming response with text-only live steps]
2) Caching + Retrieval Strategy
flowchart TD
A[Request selected files] --> B{SHA-keyed file cache hit?}
B -->|Yes| C{Compressed entry?}
C -->|Yes| D[Decompress]
C -->|No| E[Return cached payload]
D --> E
B -->|No| F[Fetch only missing/new files from GitHub API]
F --> G{Payload <= 2MB?}
G -->|Yes| H[Gzip + store in KV]
G -->|No| I[Skip cache write]
H --> J[Return full context]
I --> J
J --> K[Cache query -> selected files - 24h]
J --> L[Cache query answer - 24h]
3) Security Scan + Verification Flow
flowchart TD
A[Start scan] --> B{Quick or Deep}
B --> C[Collect scoped files + dependencies]
C --> D[Deterministic security engine]
C --> E[OSV API live vulnerability check]
D --> F{AI assist enabled?}
E --> F
F -->|Yes| G[AI validation pass]
F -->|No| H[Verification gate]
G --> H
H --> I{Verified true?}
I -->|Yes| J[Show finding in report]
I -->|No| K[Hide as rejected/inconclusive]
Security Scanning
RepoMind includes a verification-first scanning flow for application and dependency risks.
- Quick scan for fast triage
- Deep scan for broader coverage
- Real-time dependency checks: Integrated with OSV.dev API for latest CVE data
- Verified-first reporting pipeline
- Actionable fixes inside repo chat flow

Dashboard Experience




Getting Started
Use Hosted App
- Open repomind.in
- Enter
owner/repoor a GitHub username - Ask architecture, code, or security questions
Run Locally
Prerequisites
- Node.js 18+
- npm
- GitHub token
- Gemini API key
Setup
git clone https://github.com/403errors/repomind.git
cd repomind
npm install
cp .env.example .env.local
npm run dev
Open http://localhost:3000.
Model Environment Variables
Repo chat now uses separate models for file selection and answer generation:
GEMINI_FILE_SELECTOR_MODEL(default:gemini-3.1-flash-lite-preview)GEMINI_LITE_MODEL(default:gemini-3.1-flash-lite-preview)GEMINI_THINKING_MODEL(default:gemini-3-flash-preview)
Realtime Chat Feedback
Both repo chat and profile chat stream backend activity as live text status updates (no progress bar), including:
- Selecting files
- Reading repository context
- Preparing answer
- Tool activity (for example: fetching commits, fetching repos by age, Google search usage)
Repo Chat Commit Tooling
fetch_recent_commitsis available in both Lite and Thinking modes.- When commit context is needed, repo chat fetches up to latest 10 commits for the current repository.
- Assistant messages can include:
Commits checked: just noworcached N min agoTools used: ...
Profile Chat Tooling
- Profile chat supports anonymous and logged-in usage.
- Profile context preloads latest 20 commits across repos, cached for 15 minutes.
- If a repo is explicitly asked for, tooling can fetch latest 10 commits for that repo.
fetch_repos_by_agesupports:oldest(10 repos)newest(10 repos)journey(up to 20 repos, evenly spaced over repo age timeline)
- Cross-repo context is available via a chat-input toggle for logged-in users.
Auth Tiers, Limits, and Budgets
- Anonymous users:
- Can use Lite mode in repo/profile chat
- Cannot use Thinking mode
- Cannot enable cross-repo profile context
- Tool budget: 10/day per scope (
repo,profile) - File-cache write budget: 10MB/day
- File cache TTL: 30 minutes
- Max cacheable file size: 128KB, except files used in two consecutive anonymous queries (can be cached up to 2MB)
- Logged-in users:
- Can use Lite + Thinking
- Can enable cross-repo profile context
- Tool budget: 30/day per scope (
repo,profile) - File-cache write budget: 20MB/day
- File cache TTL: 1 hour
When anonymous usage limits are exceeded, UI prompts login with context-specific benefits.
When authenticated usage limits are exceeded, chat returns a contact message for extended limits.
Cache Isolation Rules
- Public repo file cache is shared by repository namespace.
- Private repo file cache is actor-scoped (non-shared).
- Query-to-selected-files cache TTL: 24h
- Query answer cache TTL: 24h
Developer Commands
npm run dev # local dev server
npm run lint # lint checks
npm run test # test suite
npm run test:security # security-focused tests
npm run build # production build
Contributing
We want RepoMind to be one of the best OSS projects for AI-assisted code intelligence. Contributions of all sizes are welcome.
Why contribute
- Work on practical agentic AI for real repositories
- Improve developer tooling used by public users
- Ship visible features quickly with direct product impact
High-Impact Areas
- Query pipeline and reasoning quality: improve file selection, prompting, and response quality
- Security scanner and verification: improve detection accuracy and reduction of false positives
- Dashboard and DevTools UX: improve discoverability, workflows, and performance
- Docs, tests, and reliability: strengthen onboarding and confidence for contributors
Contribution Workflow
- Fork the repository
- Create a branch:
git checkout -b feature/your-change - Make focused changes with tests
- Run
npm run lintandnpm run test - Open a pull request with context, screenshots, and validation notes
Pull Request Expectations
- Keep scope clear and reviewable
- Add or update tests when behavior changes
- Update docs when introducing user-visible changes
- Include before/after screenshots for UI work
Changelog
Recent major updates are tracked in CHANGELOG.md, including improvements through v1.3.6 (2026-02-23).
Tech Stack
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
96.8kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
async-pr-review
99.8kTrigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR review.

