Skip to content

Add auto-exploration capability for codebase questions#4

Open
khrees wants to merge 5 commits into
mainfrom
fix/codebase-review-fixes
Open

Add auto-exploration capability for codebase questions#4
khrees wants to merge 5 commits into
mainfrom
fix/codebase-review-fixes

Conversation

@khrees

@khrees khrees commented Jun 25, 2026

Copy link
Copy Markdown
Owner

This PR adds automatic codebase exploration capability when users ask "how is X done?" style questions in the AI chat.

New Features

  • Auto-exploration detection: Questions containing patterns like "how is auth done?", "how does X work?", or "can you explain X" now trigger code exploration guidance
  • Prompt injection protection: All question routes now detect and block common injection attempts (ignoring instructions, persona impersonation, secrets extraction, etc.)
  • Exploration guidance: When a question requires code exploration but no relevant files are visible, the AI receives guidance pointing to common file locations (e.g., auth → src/services/ai-credentials.ts, src/lib/api-security.ts)

And other fixes & improvements

khrees added 5 commits April 8, 2026 23:51
…nt, and cleanup

- Refactor useCommits from useInfiniteQuery to useQuery — removes misleading
  eager-fetch-all pattern and associated useEffect violations
- Replace store-reset useEffect with mount-triggered reset (zustand global)
- Move AIPanel render-phase sessionStorage writes into a proper useEffect
- Extract shared parseErrorMessage() helper in api-client.ts, removing
  duplicated nested-ternary error parsing in request() and postStream()
- Tighten COMMIT_SHA_REGEX from {7,64} to {7,40} (git max is 40 hex chars)
- Remove unused eslint-disable directives for inactive lint rule
- Remove dead code: src/lib/db.ts, localFirstRead/LocalFirstOptions
- Replace ID-based routing with `[owner]/[repo]` slug parameters
- Implement `api/repos/lookup` route for repository resolution
- Add `useRepoByName` hook for repository data fetching
- Update `ExplorePage` to redirect from legacy ID paths
- Update repository ID type to string across store and types
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grepbase Ready Ready Preview, Comment Jun 25, 2026 11:53am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant