| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Languages: English | 简体中文
A lightweight Node.js CLI that brings deep code retrieval to your terminal — no Python, no MCP protocol at runtime.
codebase-skill wraps the official DeusData/codebase-memory-mcp engine into a simple codebase command. Indexes live inside your project under .codebase/, sessions are auto-detected, and everything works over plain CLI.
Quick links: Install · Quick start · Optional skill · Development · GitHub publishing
| Area | Decision |
|---|---|
| Language | Node.js (zero Python dependency) |
| Index storage | Project-local .codebase/<uuid>/ |
| Runtime model | Local CLI, no MCP protocol at runtime |
| Upstream engine | DeusData/codebase-memory-mcp |
| Primary interface | codebase shell command |
| Agent integration | Optional ~/.agents/skills/codebase/SKILL.md |
| Target workflow | Codex, Claude Code, OpenCode, Copilot, shell |
codebase-memory-mcp is the real indexer and graph engine. This repo adds:
Use the upstream tool directly if you want raw behavior. Use this repo if you want a pragmatic local retrieval workflow.
For teams and individuals who want code-index retrieval without turning every lookup into an MCP round trip:
Node.js >= 19 is required. Install it with your preferred method:
# macOS
brew install node
# Linux (Ubuntu)
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
# Or use nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
nvm install 22curl -fsSL https://raw.githubusercontent.com/hzy9738/codebase-skill/main/scripts/install.sh | bashThe installer will:
git clone https://github.com/hzy9738/codebase-skill.git
cd codebase-skill
bash scripts/install.shcodebase index --mode moderate # First time: build the index
codebase func login # Find functions named "login"
codebase calls login --direction both # See callers and callees
codebase snippet login # Show the source
codebase search-code redis --file-pattern '*.go' # Text search
codebase detect-changes # What changed since last index?
codebase refresh # Update stale indexesUseful diagnostics:
codebase self-check # Verify environment is wired correctly
codebase status # Show current session index status
codebase --version # Should print v0.6.1codebase writes indexes under the current working directory:
<project>/.codebase/
d0f7ca83-c52c-450e-8cc0-4f4f2f3313b8/
index/*.db
metadata.json
019da154-2915-7413-852c-230622b512f4/
index/*.db
metadata.json
Typical workflow:
Session behavior:
A skill file tells AI agents (Claude Code, Codex, OpenCode) how to use the codebase CLI. The installer will prompt you during setup, or you can install it manually:
bash scripts/install-skill.sh| Tool | Default path |
|---|---|
| General | ~/.agents/skills/codebase/ |
| Claude Code | ~/.claude/skills/codebase/ |
| Codex | ~/.codex/skills/codebase/ |
| OpenCode | ~/.opencode/skills/codebase/ |
After installation, the agent gets a skill stub with:
# Check upstream health
codebase index-status
# Architecture overview
codebase architecture
# Run a raw graph query
codebase query-graph
# Ingest runtime traces
codebase ingest-traces traces.jsongit clone https://github.com/hzy9738/codebase-skill.git
cd codebase-skill
# Run locally
node bin/codebase --version
node bin/codebase --help
# Install from local clone
bash scripts/install.sh
# Run smoke test
bash tests/smoke_test.shbin/codebase # The CLI entry point (standalone Node.js)
src/cli.js # Modular CLI implementation
scripts/install.sh # One-line installer
scripts/install-skill.sh # Skill stub installer
skill/SKILL.md # Agent skill definition
tests/ # Smoke tests
See GITHUB_PUBLICATION.md for detailed publishing instructions.
Quick checklist:
See RELEASING.md for the full release workflow.
Contributions are welcome! See CONTRIBUTING.md for guidelines.
| Back | FazBrowse Home | New Git URL |