npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

stratagem-x7

v0.3.27

Published

STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers

Readme

 ██████  ████████ ██████   █████  ████████  █████   ██████  ███████ ███    ███
██          ██    ██   ██ ██   ██    ██    ██   ██ ██       ██      ████  ████
 █████      ██    ██████  ███████    ██    ███████ ██   ███ █████   ██ ████ ██
     ██     ██    ██   ██ ██   ██    ██    ██   ██ ██    ██ ██      ██  ██  ██
██████      ██    ██   ██ ██   ██    ██    ██   ██  ██████  ███████ ██      ██
                              ═══ X 7 ═══

A cyberpunk agentic coding CLI. Multi-provider. Terminal-first. No leash.

npm Release License Discussions


What is Stratagem X7?

Stratagem X7 is an autonomous coding agent that lives in your terminal. It reads your codebase, writes code, runs commands, manages files, searches the web, and orchestrates multi-agent swarms — all from a single TUI with a cyberpunk aesthetic.

It works with any provider: OpenAI, Gemini, Ollama, DeepSeek, Groq, Mistral, GitHub Models, Codex, LM Studio, OpenRouter, and any OpenAI-compatible API. Cloud or local. Your choice.

┌──────────────────────────────────────────┐
│ Provider  Ollama                         │
│ Model     qwen2.5-coder:32b             │
│ Uplink    http://localhost:11434/v1      │
├──────────────────────────────────────────┤
│ ● local    buffer ready — /help          │
└──────────────────────────────────────────┘
 STRATAGEM X7 v0.3.2 // breach link stable

Install

npm install -g stratagem-x7

Then launch:

stx7

That's it. Run /provider inside to configure your backend, or set environment variables before launching.

Node 20+ required. If you get a ripgrep not found warning, install ripgrep system-wide (rg --version should work in the same terminal).


Quick Setup

OpenAI

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_API_KEY=sk-your-key
export OPENAI_MODEL=gpt-4o
stx7

Local Ollama

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=qwen2.5-coder:7b
stx7

Ollama Launch (zero config)

ollama launch stx7 --model qwen2.5-coder:7b

Windows (PowerShell)

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key"
$env:OPENAI_MODEL="gpt-4o"
stx7

Interactive Setup

Don't want to touch environment variables? Just run:

stx7
# then type: /provider

The /provider command walks you through guided setup and saves profiles to disk.


Supported Providers

| Provider | Setup | Notes | |----------|-------|-------| | OpenAI | /provider or env vars | GPT-4o, o1, o3, etc. | | Ollama | /provider, env vars, or ollama launch | Local inference, no API key | | Gemini | /provider or env vars | API key, access token, or ADC | | DeepSeek | /provider or env vars | OpenAI-compatible | | GitHub Models | /onboard-github | Interactive onboarding | | Codex | /provider | OAuth or CLI auth | | OpenRouter | /provider or env vars | OpenAI-compatible multi-model gateway | | Groq / Mistral | /provider or env vars | OpenAI-compatible | | LM Studio | /provider or env vars | Local OpenAI-compatible server | | Bedrock / Vertex | env vars | AWS and GCP provider integrations | | Any /v1 compatible | env vars | Point OPENAI_BASE_URL at it |


Features

🔧 Tool-Driven Coding

Bash execution, file read/write/edit, grep, glob, web search, web fetch — all as structured tool calls the agent orchestrates automatically.

🤖 Autonomous Buffer Modes

Three autonomy levels via shift+tab:

  • BUFFER:OFF — Ask permission for everything
  • BUFFER:SMART — Auto-approve safe operations
  • BUFFER:AGGRESSIVE — Full autonomy including self-command injection

⚡ Self-Command Injection

On BUFFER:AGGRESSIVE, Stratagem can invoke its own slash commands — /compact when context gets full, /new to start fresh sessions, /model to switch models mid-task. No human in the loop.

🐝 Agent Swarms

Spawn multi-agent teams that work in parallel. Route different agents to different models. Coordinate via message injection.

🔌 MCP Support

Full Model Context Protocol support. Connect external tools, data sources, and services.

📡 Cockpit API Rotation

Built-in API key rotation system for high-throughput operations. Monitors rate limits and rotates keys automatically.

🎮 Cyberpunk TUI

Not your average terminal app. Custom BREACH PROTOCOL splash screen, STATUS BUS footer with live model/cockpit indicators, and a color scheme that looks like it belongs in Night City.

📋 Plan Mode

Enter plan mode to explore, research, and design before writing code. Stratagem presents a structured plan for your approval before executing.

🔍 Web Search & Fetch

DuckDuckGo-powered web search works out of the box on all providers. Optional Firecrawl integration for JS-rendered pages.

💾 Session Persistence

Conversations are saved to disk. Resume any session with /resume. Start fresh with /new.


Slash Commands

| Command | Description | |---------|-------------| | /help | Show all available commands | | /provider | Guided provider setup | | /model | Switch active model | | /compact | Compress conversation context | | /new | Start a fresh session | | /clear | Same as /new | | /resume | Resume a previous session | | /config | View/edit configuration | | /memory | Edit memory files | | /stats | Usage statistics | | /status | System status and connectivity | | /onboard-github | GitHub Models setup |


Agent Routing

Route different agents to different models for cost optimization:

{
  "agentModels": {
    "deepseek-chat": {
      "base_url": "https://api.deepseek.com/v1",
      "api_key": "sk-your-key"
    },
    "gpt-4o": {
      "base_url": "https://api.openai.com/v1",
      "api_key": "sk-your-key"
    }
  },
  "agentRouting": {
    "Explore": "deepseek-chat",
    "Plan": "gpt-4o",
    "default": "gpt-4o"
  }
}

Add to ~/.claude/settings.json. When no routing match is found, the global provider is the fallback.

⚠️ api_key values in settings.json are stored in plaintext. Keep this file private.


Web Search

WebSearch uses DuckDuckGo by default on all non-Anthropic providers — free, no API key needed.

For better reliability and JS-rendered page support, set up Firecrawl:

export FIRECRAWL_API_KEY=your-key-here

Free tier includes 500 credits.


Headless gRPC Server

Run Stratagem as a headless service for CI/CD, custom UIs, or programmatic access:

npm run dev:grpc        # Start server on localhost:50051
npm run dev:grpc:cli    # Test CLI client

| Variable | Default | Description | |----------|---------|-------------| | GRPC_PORT | 50051 | Server port | | GRPC_HOST | localhost | Bind address |

Proto definitions: src/proto/openclaude.proto


Build From Source

git clone https://github.com/EstarinAzx/XETH--7.git
cd XETH--7
bun install
bun run build
node dist/cli.mjs

Dev Commands

| Command | Description | |---------|-------------| | bun run dev | Build + launch | | bun run dev:ollama | Launch with Ollama profile | | bun test | Run tests | | bun run test:coverage | Coverage report | | bun run smoke | Build + version check | | bun run doctor:runtime | System diagnostics | | bun run verify:privacy | Verify no telemetry |


Project Structure

src/            Core CLI runtime
src/tools/      Tool implementations (Bash, FileEdit, UserInput, etc.)
src/components/ TUI components (Ink/React)
src/screens/    Main screens (REPL, Doctor)
src/utils/      Utilities and helpers
src/commands/   Slash command handlers
scripts/        Build and maintenance scripts
bin/            CLI launchers (stx7, openclaude)
docs/           Documentation

Contributing

Contributions welcome. For larger changes, open an issue first.

Before submitting:

bun run build
bun run smoke
bun test

Security

Found a vulnerability? See SECURITY.md.


Community


Disclaimer

Stratagem X7 is an independent community project. Not affiliated with, endorsed by, or sponsored by Anthropic.

Stratagem X7 originated from the Claude Code codebase and has been substantially modified to support multiple providers and open use. "Claude" and "Claude Code" are trademarks of Anthropic PBC. See LICENSE for details.


◢ STRATAGEM X7 // breach shell // protocol online. ◣

Install · Setup · Providers · Features · Build