New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

codeprism

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeprism

Index your codebase locally and push AI knowledge cards to a codeprism engine

Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
10
900%
Maintainers
1
Weekly downloads
 
Created
Source

codeprism CLI

Index your codebase locally and push AI knowledge cards to a codeprism engine.

npx codeprism index
npx codeprism push --engine-url https://yourteam.codeprism.dev --api-key sk_xxx --delete

Install

npm install -g codeprism
# or use npx (no install needed)
npx codeprism --help

Commands

codeprism index

Indexes all repositories in your workspace using your own LLM key. Results are written to a local codeprism.db file.

CODEPRISM_LLM_PROVIDER=anthropic \
CODEPRISM_LLM_API_KEY=sk-ant-... \
codeprism index

Supported LLM providers: anthropic, openai, deepseek, gemini

Options:

  • --force — reindex everything regardless of git changes
  • --repo <name> — restrict to a single repo
  • --skip-docs — skip doc generation (faster)
  • --ticket <id> — bias indexing toward a ticket (e.g. ENG-123)

codeprism push

Upload a local codeprism.db to a hosted engine so your whole team benefits.

codeprism push \
  --engine-url https://yourteam.codeprism.dev \
  --api-key YOUR_TEAM_API_KEY \
  --delete

Options:

  • --engine-url — hosted engine URL (or CODEPRISM_ENGINE_URL env var)
  • --api-key — team API key (or CODEPRISM_API_KEY env var)
  • --db — path to local DB (auto-detected if omitted)
  • --delete — delete the local DB after a successful push

codeprism install-hook

Install git hooks in the current repo to sync file changes automatically after commits.

codeprism install-hook --engine-url https://yourteam.codeprism.dev

codeprism sync

Manually notify a running codeprism server about git changes.

codeprism check

LLM-powered PR diff checker against team rules.

codeprism rules list|add|delete

Manage team coding rules stored in the local engine DB.

Workspace config

Place codeprism.config.json at your workspace root to explicitly list repos:

{
  "repos": [
    { "path": "./api", "name": "my-api" },
    { "path": "./frontend", "name": "my-frontend" }
  ]
}

Without a config file, codeprism auto-discovers repos in sibling directories.

Environment variables

VariableDescription
CODEPRISM_LLM_PROVIDERLLM provider: anthropic, openai, deepseek, gemini
CODEPRISM_LLM_API_KEYYour personal LLM API key (used only for local indexing)
CODEPRISM_LLM_MODELOverride the default model
CODEPRISM_DB_PATHPath to the local SQLite DB (default: ./codeprism.db)
CODEPRISM_ENGINE_URLHosted engine base URL
CODEPRISM_API_KEYTeam API key for codeprism push

License

MIT

Keywords

mcp

FAQs

Package last updated on 02 Mar 2026

Related posts