Context Engineering CLI for Claude Code
Project description
EchoGraph CLI
Context Engineering CLI for Claude Code - scaffold, validate, and maintain your AI-assisted development workflow.
Installation
Recommended: Using uv (all platforms)
# Install uv first (if you don't have it)
# Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
# macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
# Then install echograph
uv tool install echograph
# With AI-assisted merge support (optional)
uv tool install echograph[ai]
# Upgrade to latest version
uv tool upgrade echograph
Alternative: Using pip
pip install echograph
# With AI-assisted merge support (optional)
pip install echograph[ai]
Note: On Windows, you may need to add the Scripts folder to your PATH. The installer will show the path (typically C:\Users\<username>\AppData\Roaming\Python\Python3XX\Scripts).
One-time usage (no install)
uvx echograph init
Quick Start
# Navigate to your project
cd /path/to/your-project
# Initialize Context Engineering
echograph init
# Check your setup
echograph doctor
# Validate context files
echograph validate
Commands
echograph init
Scaffold Context Engineering templates for your project.
# Interactive mode (asks questions)
echograph init
# Minimal setup (core files only)
echograph init --minimal
# Full setup (all templates and commands)
echograph init --full
# Merge missing sections into existing CLAUDE.md
echograph init --merge
# Overwrite existing files
echograph init --force
# Preview without creating files
echograph init --dry-run
# AI-assisted smart merge (requires echograph[ai])
echograph init --smart-merge
# Initialize a specific directory
echograph init /path/to/project
Created files (minimal):
CLAUDE.md- Project conventions (at project root).claude/PLANNING.md- Architecture and goals.claude/TASK.md- Task tracking
Additional files (full):
.claude/commands/- Slash commands.claude/skills/- Custom skills.claude/tasks/- Feature task templatesPRPs/- Product Requirement Prompts structure
Using --merge with existing projects:
If your project already has a CLAUDE.md, use --merge to add missing sections from the template without overwriting your existing content:
echograph init --merge
This will:
- Keep all your existing sections intact
- Add any sections from the template that you're missing (e.g., Response Optimization, Security Rules)
- Match sections case-insensitively (ignoring emojis)
Using --smart-merge for AI-assisted merging:
When you have existing files with customizations, use --smart-merge to let Claude intelligently merge your changes with new template features:
echograph init --smart-merge
This requires the [ai] extra (uv tool install echograph[ai]) and an Anthropic API key. On first use, you'll be prompted to enter your API key, which can be saved for future use.
The smart merge:
- Preserves your custom project names, paths, and sections
- Adds new template features you don't have
- Updates generic boilerplate with improved versions
- Shows a diff preview before applying changes
You can also choose smart merge interactively when handling conflicts (option 5).
echograph update
Update templates while preserving your customizations using three-way merge.
# Update templates
echograph update
# Preview changes without modifying files
echograph update --dry-run
How it works:
- Compares your current files with the original template version
- Merges in new template changes
- Preserves your customizations
- Marks conflicts for manual resolution (if any)
echograph validate
Check context files for completeness and valid references.
# Validate current directory
echograph validate
# Validate specific directory
echograph validate /path/to/project
# Treat warnings as errors
echograph validate --strict
Checks performed:
- Required files exist (CLAUDE.md at root, PLANNING.md and TASK.md in .claude/)
@imports reference existing files- CLAUDE.md has Project Context section
- TASK.md has required sections (In Progress, Pending, Completed)
echograph doctor
Diagnose your Claude Code setup.
echograph doctor
Checks performed:
- Claude Code CLI is installed (
claudecommand available) .claude/directory structure is correct- MCP configuration is valid (if present)
- Project is a git repository
- Template version is current
Configuration
The CLI auto-detects project configuration:
- Project name: From git remote or folder name
- Tech stack: From pyproject.toml, package.json, Cargo.toml, etc.
- Test framework: From pytest.ini, jest.config.js, etc.
Templates are customized based on detected configuration.
Coming Soon
These commands show a "coming soon" message:
echograph search- Semantic code searchechograph sync- Sync external sources (GitHub, Azure DevOps)echograph decision- Track architectural decisions
Development
# Clone the repository
git clone https://github.com/echograph/echograph
cd echograph
# Install dependencies
uv sync --all-packages
# Run tests
uv run pytest --cov
# Run linters
uv run ruff check packages/cli/
uv run mypy packages/cli/src/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file echograph-0.5.18.tar.gz.
File metadata
- Download URL: echograph-0.5.18.tar.gz
- Upload date:
- Size: 128.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e47db4f86843d5a7e657e491d676055a96acc6d15d7e9a66988cb56737bee20
|
|
| MD5 |
79160f1ab4eeae7893962bc5b0a96168
|
|
| BLAKE2b-256 |
f3a6c9d23a7b45a0558df4cdddf5e293b519c68aac2bc4cdf97a04a5d521a5b9
|
File details
Details for the file echograph-0.5.18-py3-none-any.whl.
File metadata
- Download URL: echograph-0.5.18-py3-none-any.whl
- Upload date:
- Size: 171.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f38dab28dda8f0c11bdd8b02c8cdcdf5e52c6ab2c3dd235045dc7c92df7469
|
|
| MD5 |
a948227a2e670bb0c7a4620170f00d9c
|
|
| BLAKE2b-256 |
8dfa339e513b561c4a282c7d3d5ba37d78f896441a5feda831d1f2b711f3614e
|