New:Socket for Asana Is Now Available.Learn more
Get Started

@evolith/cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@evolith/cli

Evolith SDK CLI - Governance, standards validation, and AI agent integration for satellite repositories

Source
npmnpm
Version
2.0.0-beta.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Evolith CLI

Command-line interface for Evolith governance, standards validation, and AI agent integration.

Features

  • Governance: ADR management, standards tracking, agent installation
  • Validation: Repository compliance against Evolith standards
  • AI Integration: MCP server for AI agent tool calling
  • Observability: Structured logging, metrics, error reporting

Installation

npm install -g @evolith/cli

Manual

Download the latest binary from GitHub Releases and add to your PATH.

Verify Installation

evolith --version
# evolith version 1.0.0

Quickstart

1. Initialize a Repository

cd your-project
evolith init

This creates an evolith.yaml file with default configuration.

2. Run First Validation

evolith validate

Output:

✓ Validating repository...
✓ Repository is compliant with Evolith standards

3. Install an Agent

evolith agents install
# Select "standard" template when prompted

Commands

validate

Validate repository compliance against Evolith standards.

evolith validate [options]

Options:
  --satellite <path>    Path to satellite repository (default: cwd)
  --core <path>         Path to Evolith Core
  --format <format>     Output format: json, table, yaml, markdown
  --output <file>       Write output to file
  --ruleset <id>        Validate specific ruleset (acl, open-core, inheritance)

Examples:

# Basic validation
evolith validate

# JSON output for automation
evolith validate --format json

# Table output for humans
evolith validate --format table

# Validate specific ruleset
evolith validate --ruleset acl

adr

Manage Architecture Decision Records.

evolith adr <command>

Commands:
  create     Create new ADR
  list       List all ADRs
  get        Show ADR details
  update     Update existing ADR
  matrix     Show ADR matrix

Examples:

# Create new ADR
evolith adr create

# List all ADRs
evolith adr list

# Get specific ADR
evolith adr get ADR-0002

standards

Manage governance standards.

evolith standards <command>

Commands:
  init       Initialize standards directory
  list       List all standards
  get        Show standard details
  validate   Validate against standards
  export     Export standard to markdown/json

Examples:

# Initialize standards
evolith standards init

# List standards
evolith standards list

agents

Install and manage Evolith agents.

evolith agents <command>

Commands:
  install    Install new agent
  list       List installed agents
  remove     Remove agent
  validate   Validate agent ruleset
  upgrade    Upgrade agent

Examples:

# Interactive install
evolith agents install

# List agents
evolith agents list

history

View and manage command history.

evolith history [options]

Options:
  --list              List recent commands
  --get <id>          Show command details
  --search <query>    Search commands
  --stats             Show statistics
  --clear             Clear history

Examples:

# Show last 20 commands
evolith history

# Show statistics
evolith history --stats

# Search commands
evolith history --search validate

completion

Generate shell completion scripts.

evolith completion --install <shell>

Supported shells: bash, zsh, fish

Examples:

# Install bash completion
evolith completion --install bash

# Install zsh completion
evolith completion --install zsh

MCP Server (AI Agent Integration)

The Evolith CLI includes an MCP server for AI agent integration.

Starting the MCP Server

evolith mcp serve

The server communicates via stdio JSON-RPC.

Available MCP Tools

ToolDescription
evolith-validateValidate repository compliance
evolith-agent-installInstall new agent
evolith-agent-listList installed agents
evolith-agent-validateValidate agent ruleset
evolith-architecture-validateValidate architecture
evolith-sdlc-handoffGenerate phase handoff
evolith-sdlc-statusShow SDLC phase status
evolith-config-getGet configuration value
evolith-config-setSet configuration value
evolith-metricsGet MCP server metrics

Cursor AI Configuration

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "evolith": {
      "command": "evolith",
      "args": ["mcp", "serve"]
    }
  }
}

Claude Desktop Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "evolith": {
      "command": "evolith",
      "args": ["mcp", "serve"]
    }
  }
}

AI Agent Workflow Example

When integrated with an AI agent, you can have conversations like:

You: Validate my repository
Agent: Let me run the validation...

      await mcp.callTool('evolith-validate', {
        path: '/user/project',
        format: 'summary'
      })

Result: ✓ Repository is compliant with Evolith standards
        Rules checked: 12
        All gates passed

You: Show me the ADRs
Agent: Let me fetch the ADR list...

      await mcp.callTool('evolith-adr-list', {})

Result: Found 5 ADRs:
        - ADR-0001: Architecture Decision Record Template
        - ADR-0002: Hexagonal Architecture (accepted)
        - ADR-0003: Testing Pyramid (accepted)

Configuration

Evolith uses an evolith.yaml file in the repository root:

coreRef:
  version: "1.0.0"
  path: "../evolith"

governance:
  version: "1.0"
  adrRegistry:
    - id: "ADR-0001"
      status: "accepted"

product:
  name: "my-project"
  type: "library"
  runtime: "typescript"

Output Formats

All commands support multiple output formats:

# JSON (default for automation)
evolith validate --format json

# Table (human-readable)
evolith validate --format table

# YAML (pipeline integration)
evolith validate --format yaml

# Markdown (documentation)
evolith validate --format markdown

Troubleshooting

Command not found

If evolith is not found after installation, ensure npm's global bin is in your PATH:

# Add to ~/.bashrc or ~/.zshrc
export PATH="$(npm config get prefix)/bin:$PATH"

MCP server not responding

Ensure the MCP server is running:

evolith mcp serve &

Validation fails

Check your evolith.yaml exists and is valid:

cat evolith.yaml
evolith validate --verbose

Development

Building from Source

cd sdk/cli
npm install
npm run build
npm link  # Link globally for testing

Running Tests

npm test

Project Structure

sdk/cli/
├── src/
│   ├── commands/      # CLI commands (adr, validate, agents, etc.)
│   ├── application/   # Use cases
│   ├── domain/        # Business logic (services, entities)
│   ├── infrastructure/# External integrations (catalog, CLI)
│   └── core/          # Shared (DI, observability, errors, MCP)
├── shell/             # Shell completion scripts
├── templates/         # Configuration templates
└── docs/              # Documentation

Contributing

  • Fork the repository
  • Create a feature branch
  • Make changes with tests
  • Submit a pull request

License

ISC

Support

Keywords

evolith

FAQs

Package last updated on 06 Jun 2026

Related posts