@esotech/contextuate
v2.0.0
Published
**Standardized AI Context for Software Projects**
Maintainers
Readme
Contextuate Framework
Standardized AI Context for Software Projects
Contextuate provides a structured "brain" for your project that AI coding assistants (like Claude, Copilot, Cursor) can understand. It standardizes how AI agents receive context, follow coding standards, and execute tasks.
Quick Start
One-Line Install (Recommended)
curl -fsSL https://contextuate.md/install.sh | shInstall via npm
npm install -g @esotech/contextuateOr use directly with npx:
npx @esotech/contextuate initInstall from Source
Clone the repository and install globally:
git clone https://github.com/esotech/contextuate.git
cd contextuate
npm install
npm run build
npm linkInitialize Your Project
Navigate to your project directory and run:
contextuate initThe interactive installer will guide you through:
- Selecting which AI platforms to configure (Claude Code, Cursor, Copilot, Windsurf, etc.)
- Creating the
docs/ai/directory structure with framework files - Generating platform-specific configuration files
- Setting up symlinks for supported platforms (e.g.,
.claude/for Claude Code)
What is Contextuate?
Contextuate is a directory structure and set of conventions that helps AI agents work more effectively. It turns implicit project knowledge into explicit, structured context.
docs/ai/.contextuate/contextuate.md: The framework bootstrap file. It links to everything else.docs/ai/context.md: Your project-specific context (Identity, Tech Stack).docs/ai/project-structure.md: Auto-generated file tree map (created bycontextuate index).docs/ai/agents/: Specialized "personas" for your AI (e.g.,documentation-expert).docs/ai/standards/: Explicit coding standards and behavioral guidelines.docs/ai/quickrefs/: Condensed documentation optimized for AI token limits.docs/ai/tasks/: A workflow for managing multi-session AI tasks.
How LLMs Use Contextuate
- Discovery: The AI reads
docs/ai/.contextuate/contextuate.mdfirst. This file maps the project and links to all other resources. - Specialization: If acting as a specific agent, it reads
docs/ai/agents/<name>.mdto load specific capabilities and rules. - Execution: The AI follows the linked standards in
docs/ai/standards/and usesdocs/ai/quickrefs/for technical lookups. - Memory: If working on a long-running task, it tracks state in
docs/ai/tasks/<task-name>/to maintain context across sessions.
When using the contextuate run command, this context loading is automated based on the agent definition.
Repository Structure
This repository contains the source for the Contextuate framework.
docs/ai/.contextuate/: The core framework files distributed to users.agents/: Base agent definitions.templates/: Templates for new projects.tools/: AI tool guides.
Usage
Once installed, you customize the framework for your project:
- Edit
docs/ai/context.mdwith your project details (Identity, Tech Stack).- Note:
docs/ai/.contextuate/contextuate.mdis the framework entry point and typically shouldn't be edited.
- Note:
- Create custom agents in
docs/ai/agents/(using the Agent Creator tool). - Document coding standards in
docs/ai/standards/. - Generate quickrefs in
docs/ai/quickrefs/.
CLI Usage
Global Options
contextuate --help # Display all available commands
contextuate --version # Display the installed version
contextuate -V # Short form for versionCommand Reference
| Command | Description |
| :------------- | :--------------------------------------- |
| init | Initialize Contextuate in a project |
| install | Install templates (agents, standards) |
| run | Execute an agent |
| create-agent | Create a new agent definition |
| index | Generate a project file tree |
| add-context | Interactively add files to context |
| remove | Clean up framework files |
contextuate init
Initialize Contextuate in the current project.
# Interactive mode - prompts for platforms and agents
contextuate init
# Non-interactive - specify platforms directly
contextuate init claude cursor copilot
contextuate init all # Install all platforms
# With agents
contextuate init claude --agents archon base
contextuate init claude --agents all
# Force overwrite existing files
contextuate init claude --forceOptions:
-f, --force- Overwrite existing files-a, --agents <names...>- Install specific agents (e.g., "base archon" or "all")
Available Platforms: agents, antigravity, claude, cline, cursor, gemini, copilot, windsurf
contextuate install
Install templates from the global Contextuate repository. Supports both flag-style and subcommand-style usage.
# Interactive mode
contextuate install
# List available templates
contextuate install --list
# Install all templates
contextuate install --all
# Flag style - install specific items
contextuate install --agents archon base canvas
contextuate install --standards php javascript
contextuate install --tools quickref
# Subcommand style
contextuate install agents archon base
contextuate install agents --all
contextuate install standards php javascript python
contextuate install standards --all
contextuate install tools --all
# Force overwrite
contextuate install agents --all --forceOptions:
-a, --agents <names...>- Install specific agents-s, --standards <names...>- Install language standards-t, --tools <names...>- Install tools--all- Install all available templates-l, --list- List available templates-f, --force- Overwrite existing files
Subcommands:
install agents [names...]- Install agent templatesinstall standards [names...]- Install language standard templatesinstall tools [names...]- Install tool templates
contextuate run
Execute an agent definition with optional task context.
contextuate run documentation-expert
contextuate run archon --goal "Review the codebase structure"
contextuate run forge --task my-feature
contextuate run nexus --dry-runOptions:
--dry-run- Simulate execution without running logic--isolation <mode>- Isolation mode (worktree,none). Default:none--goal <text>- Goal or instructions for the agent--task <name>- Load a task context (scope and latest log)
contextuate create-agent
Create a new agent definition.
# Interactive mode
contextuate create-agent
# With name
contextuate create-agent my-custom-agent
contextuate new-agent my-custom-agent # Alias
# With description
contextuate create-agent api-expert --description "Expert in REST API design"Options:
-d, --description <text>- Description of the agent
contextuate index
Generate a project structure index for AI context.
contextuate index
contextuate index --depth 3
contextuate index --forceOptions:
-d, --depth <number>- Maximum depth of the file tree. Default:5-f, --force- Overwrite existing index
contextuate add-context
Interactively add files to docs/ai/context.md.
contextuate add-contextcontextuate remove
Remove unmodified platform jump files.
contextuate removeDocumentation
For full documentation, see contextuate.md or browse the docs/ai/.contextuate/ directory.
Changelog
See CHANGELOG.md for version history and release notes.
License
Credits
Powered by Esotech. Created by Alexander Conroy (@geilt).
