context-engineer
v1.5.2
Published
Structured context management for AI coding agents. One command to install the .context/ system into any project.
Downloads
409
Maintainers
Readme
context-engineer
Structured context management for AI coding agents. Install the .context/ system into any project with a single command.
Quick Start
# Run without installing globally
npx context-engineer init
# — or — install globally and invoke anywhere
npm install -g context-engineer
context-engineer initThis installs the context engineering system into your current project directory. Then open Claude Code and run:
/bootstrap-contextThis analyzes your codebase and populates the context files with your project's specifics.
What Gets Installed
| Component | Contents | Default |
|-----------|----------|---------|
| Core | .context/ directory, scripts/, AGENTS.md | Always |
| Claude Code | .claude/ (skills, rules, hooks), CLAUDE.md | Yes |
| Cursor | .cursor/rules/, .cursorrules | Optional |
| GitHub | Copilot instructions, CI drift detection workflow | Optional |
Usage
Interactive Install
npx context-engineer initPrompts you to select which AI tool integrations to install.
Preset Install
# Core + Claude Code (most common)
npx context-engineer init --preset claude
# Everything
npx context-engineer init --preset all
# Core only (no tool integrations)
npx context-engineer init --preset core
# Core + Cursor
npx context-engineer init --preset cursorOptions
npx context-engineer init --force # Overwrite existing files
npx context-engineer init --dry-run # Preview without writing
npx context-engineer init --dir ./myapp # Install to a specific directoryUpdate Templates
npx context-engineer update # Smart update: framework files always, content files only if untouched
npx context-engineer update --check # Check for updates without applying
npx context-engineer update --force # Overwrite customized content too
npx context-engineer update --yes # Auto-confirm (non-interactive)Files are classified as:
- Framework (
.claude/,scripts/,CLAUDE.md) — always updated to latest version - Content (
.context/architecture/,business/,AGENTS.md, etc.) — preserved if customized since install
Non-TTY environments (Claude Code Bash tool, CI) auto-confirm prompts.
After Installation
- Claude Code: Run
/bootstrap-contextto populate templates from your codebase - Cursor: The
.cursor/rules/files activate automatically - GitHub Copilot: The
.github/copilot-instructions.mdactivates automatically - All tools: Read
AGENTS.mdfor the universal entry point
How It Works
The context system provides AI coding agents with structured project knowledge:
.context/constitution.md— Project identity, principles, and a route table that tells agents what to load.context/architecture/— Tech stack, data models, API surface, module graph.context/conventions/— Code style, patterns, testing, error handling.context/experience/— Lessons learned, debugging solutions, performance insightsscripts/— Drift detection, context sync, structure extraction
License
MIT
