RAG-Powered Code Assistant

Understand any
codebase in minutes

Clone a Git repository, select a branch, and start asking questions. Get AI-powered answers with source citations from your actual code.

See How It Works
Git Knowledge
React Hooks Deep Dive
Response Style
Developer
Documentation
Debug
U
How does the useAuth hook handle token refresh?
AI
Token Refresh Flow:

useAuth()useEffect mounts → calculates timeUntilExpiry → sets setTimeout → triggers refreshToken() → updates authState

Pseudocode:
if (token.exp - now < 300s)
  newToken = await refresh()
  setState({ token: newToken })
U
How does the useAuth hook handle token refresh?
AI
useAuth Hook
Authentication state management with automatic token refresh.

Returns:
user - Current user object or null
isAuthenticated - Boolean auth status
login(credentials) - Async login function
logout() - Clears session

Source: src/hooks/useAuth.ts:24
U
Why isn't my token refreshing automatically?
AI
🔍 Root Cause Analysis:

Likely Issues:
1. refreshToken endpoint returns 401 → check if refresh token is expired
2. Timer cleanup missing in useEffect → causes memory leak
3. tokenExpiry parsed as string, not number

✓ Fix: Add parseInt() to expiry check on line 47
Ask a question about your code...

Everything you need to understand code

Powerful tools designed to help you navigate and understand any codebase quickly.

Semantic Search

Find code by meaning, not just keywords. Our AI understands your intent and finds relevant code across the entire repository.

Branch Selection

Choose which branch to analyze when adding a repository. Work with feature branches, releases, or main.

Source Citations

Every answer includes references to exact files, classes, and methods. Know exactly where the information comes from.

Resync Repos

Re-clone and re-embed repositories when your code changes. Keep your knowledge base up to date with one click.

Multiple Response Styles

Get answers in Developer, Documentation, or Debug mode. Each style is optimized for different use cases.

Export Responses

Export AI responses as Markdown, HTML, or PDF. Save documentation and share insights with your team.

Start understanding code in 4 steps

From repository URL to AI-powered insights in minutes.

1

Paste Git URL

Enter any GitHub, GitLab, or Bitbucket repository URL.

2

Select Branch

Choose which branch you want to analyze and embed.

3

AI Processing

We clone, parse, and create semantic embeddings of your code.

4

Start Chatting

Ask questions and get answers with source references.

Simple, transparent pricing

Start free, upgrade when you need more.

Personal

$0 /month

Perfect for exploring and personal projects.

  • Up to 2 repositories
  • All response styles
  • Export to Markdown
  • Branch selection

Ready to understand your code?

Start chatting with any repository in minutes. No credit card required.