Back to Home
PatrickSys icon

codebase-context

Verified Safe

by PatrickSys

Overview

Provides AI coding agents with real-time, context-rich insights into a codebase's patterns, libraries, architecture, and conventions to improve code generation quality and alignment with team standards.

Installation

Run Command
npx codebase-context /path/to/your/project

Environment Variables

  • EMBEDDING_PROVIDER
  • OPENAI_API_KEY
  • EMBEDDING_MODEL
  • CODEBASE_ROOT
  • CODEBASE_CONTEXT_DEBUG

Security Notes

The server primarily operates locally, processing files within the specified project root. External network calls are limited to OpenAI (if configured and `OPENAI_API_KEY` is provided) for embeddings. Local `git log` commands are executed via `child_process.exec`, but arguments are fixed and not user-controlled, mitigating injection risks. No `eval` or obvious obfuscation is present. Overall, risks are well-managed for an on-device code analysis tool.

Similar Servers

Stats

Interest Score48
Security Score9
Cost ClassMedium
Avg Tokens750
Stars21
Forks3
Last Update2026-01-18

Tags

AICode AnalysisDeveloper ToolsSemantic SearchPattern Detection