stratagem-x7 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +325 -342
  2. package/dist/cli.mjs +382 -256
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,344 +1,327 @@
1
- # XETH--7
2
-
3
- XETH--7 is an open-source cyberpunk coding-agent CLI for cloud and local model providers.
4
-
5
- Use OpenAI-compatible APIs, Gemini, GitHub Models, Codex OAuth, Codex, Ollama, Atomic Chat, and other supported backends while keeping one terminal-first workflow: prompts, tools, agents, MCP, slash commands, and streaming output.
6
-
7
- [![PR Checks](https://github.com/EstarinAzx/XETH--7/actions/workflows/pr-checks.yml/badge.svg?branch=main)](https://github.com/EstarinAzx/XETH--7/actions/workflows/pr-checks.yml)
1
+ <div align="center">
2
+
3
+ ```
4
+ ██████ ████████ ██████ █████ ████████ █████ ██████ ███████ ███ ███
5
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████
6
+ █████ ██ ██████ ███████ ██ ███████ ██ ███ █████ ██ ████ ██
7
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
8
+ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ███████ ██ ██
9
+ ═══ X 7 ═══
10
+ ```
11
+
12
+ **A cyberpunk agentic coding CLI. Multi-provider. Terminal-first. No leash.**
13
+
14
+ [![npm](https://img.shields.io/npm/v/stratagem-x7?color=ff2a6d&label=npm)](https://www.npmjs.com/package/stratagem-x7)
8
15
  [![Release](https://img.shields.io/github/v/tag/EstarinAzx/XETH--7?label=release&color=0ea5e9)](https://github.com/EstarinAzx/XETH--7/tags)
16
+ [![License](https://img.shields.io/badge/license-MIT-2563eb)](LICENSE)
9
17
  [![Discussions](https://img.shields.io/badge/discussions-open-7c3aed)](https://github.com/EstarinAzx/XETH--7/discussions)
10
- [![Security Policy](https://img.shields.io/badge/security-policy-0f766e)](SECURITY.md)
11
- [![License](https://img.shields.io/badge/license-MIT-2563eb)](LICENSE)
12
-
13
- Primary repository:
14
- [github.com/EstarinAzx/XETH--7](https://github.com/EstarinAzx/XETH--7)
15
-
16
- [Quick Start](#quick-start) | [Setup Guides](#setup-guides) | [Providers](#supported-providers) | [Source Build](#source-build-and-local-development) | [VS Code Extension](#vs-code-extension) | [Community](#community)
17
-
18
- ## Star History
19
-
20
- [![Star History Chart](https://api.star-history.com/chart?repos=EstarinAzx/XETH--7&type=date&legend=top-left)](https://www.star-history.com/?repos=EstarinAzx%2FXETH--7&type=date&legend=top-left)
21
-
22
- ## Why XETH--7
23
-
24
- - Use one CLI across cloud APIs and local model backends
25
- - Save provider profiles inside the app with `/provider`
26
- - Run with OpenAI-compatible services, Gemini, GitHub Models, Codex OAuth, Codex, Ollama, Atomic Chat, and other supported providers
27
- - Keep coding-agent workflows in one place: bash, file tools, grep, glob, agents, tasks, MCP, and web tools
28
- - Use the bundled VS Code extension for launch integration and theme support
29
-
30
- ## Quick Start
31
-
32
- ### Install
33
-
34
- ```bash
35
- npm install -g @gitlawb/openclaude
36
- ```
37
-
38
- If the install later reports `ripgrep not found`, install ripgrep system-wide and confirm `rg --version` works in the same terminal before starting XETH--7.
39
-
40
- ### Start
41
-
42
- ```bash
43
- xeth7
44
- ```
45
-
46
- Inside XETH--7:
47
-
48
- - run `/provider` for guided provider setup and saved profiles
49
- - run `/onboard-github` for GitHub Models onboarding
50
-
51
- ### Fastest OpenAI setup
52
-
53
- macOS / Linux:
54
-
55
- ```bash
56
- export CLAUDE_CODE_USE_OPENAI=1
57
- export OPENAI_API_KEY=sk-your-key-here
58
- export OPENAI_MODEL=gpt-4o
59
-
60
- xeth7
61
- ```
62
-
63
- Windows PowerShell:
64
-
65
- ```powershell
66
- $env:CLAUDE_CODE_USE_OPENAI="1"
67
- $env:OPENAI_API_KEY="sk-your-key-here"
68
- $env:OPENAI_MODEL="gpt-4o"
69
-
70
- xeth7
71
- ```
72
-
73
- ### Fastest local Ollama setup
74
-
75
- macOS / Linux:
76
-
77
- ```bash
78
- export CLAUDE_CODE_USE_OPENAI=1
79
- export OPENAI_BASE_URL=http://localhost:11434/v1
80
- export OPENAI_MODEL=qwen2.5-coder:7b
81
-
82
- xeth7
83
- ```
84
-
85
- Windows PowerShell:
86
-
87
- ```powershell
88
- $env:CLAUDE_CODE_USE_OPENAI="1"
89
- $env:OPENAI_BASE_URL="http://localhost:11434/v1"
90
- $env:OPENAI_MODEL="qwen2.5-coder:7b"
91
-
92
- xeth7
93
- ```
94
-
95
- ### Using Ollama's launch command
96
-
97
- If you have [Ollama](https://ollama.com) installed, you can skip the env var setup entirely:
98
-
99
- ```bash
100
- ollama launch xeth7 --model qwen2.5-coder:7b
101
- ```
102
-
103
- This automatically sets `ANTHROPIC_BASE_URL`, model routing, and auth so all API traffic goes through your local Ollama instance. Works with any model you have pulled — local or cloud.
104
-
105
- ## Setup Guides
106
-
107
- Beginner-friendly guides:
108
-
109
- - [Non-Technical Setup](docs/non-technical-setup.md)
110
- - [Windows Quick Start](docs/quick-start-windows.md)
111
- - [macOS / Linux Quick Start](docs/quick-start-mac-linux.md)
112
-
113
- Advanced and source-build guides:
114
-
115
- - [Advanced Setup](docs/advanced-setup.md)
116
- - [Android Install](ANDROID_INSTALL.md)
117
-
118
- ## Supported Providers
119
-
120
- | Provider | Setup Path | Notes |
121
- | --- | --- | --- |
122
- | OpenAI-compatible | `/provider` or env vars | Works with OpenAI, OpenRouter, DeepSeek, Groq, Mistral, LM Studio, and other compatible `/v1` servers |
123
- | Gemini | `/provider` or env vars | Supports API key, access token, or local ADC workflow on current `main` |
124
- | GitHub Models | `/onboard-github` | Interactive onboarding with saved credentials |
125
- | Codex OAuth | `/provider` | Opens ChatGPT sign-in in your browser and stores Codex credentials securely |
126
- | Codex | `/provider` | Uses existing Codex CLI auth, XETH--7 secure storage, or env credentials |
127
- | Ollama | `/provider`, env vars, or `ollama launch` | Local inference with no API key |
128
- | Atomic Chat | advanced setup | Local Apple Silicon backend |
129
- | Bedrock / Vertex / Foundry | env vars | Additional provider integrations for supported environments |
130
-
131
- ## What Works
132
-
133
- - **Tool-driven coding workflows**: Bash, file read/write/edit, grep, glob, agents, tasks, MCP, and slash commands
134
- - **Streaming responses**: Real-time token output and tool progress
135
- - **Tool calling**: Multi-step tool loops with model calls, tool execution, and follow-up responses
136
- - **Images**: URL and base64 image inputs for providers that support vision
137
- - **Provider profiles**: Guided setup plus saved `.openclaude-profile.json` support
138
- - **Local and remote model backends**: Cloud APIs, local servers, and Apple Silicon local inference
139
-
140
- ## Provider Notes
141
-
142
- XETH--7 supports multiple providers, but behavior is not identical across all of them.
143
-
144
- - Anthropic-specific features may not exist on other providers
145
- - Tool quality depends heavily on the selected model
146
- - Smaller local models can struggle with long multi-step tool flows
147
- - Some providers impose lower output caps than the CLI defaults, and XETH--7 adapts where possible
148
-
149
- For best results, use models with strong tool/function calling support.
150
-
151
- ## Agent Routing
152
-
153
- XETH--7 can route different agents to different models through settings-based routing. This is useful for cost optimization or splitting work by model strength.
154
-
155
- Add to `~/.claude/settings.json`:
156
-
157
- ```json
158
- {
159
- "agentModels": {
160
- "deepseek-chat": {
161
- "base_url": "https://api.deepseek.com/v1",
162
- "api_key": "sk-your-key"
163
- },
164
- "gpt-4o": {
165
- "base_url": "https://api.openai.com/v1",
166
- "api_key": "sk-your-key"
167
- }
168
- },
169
- "agentRouting": {
170
- "Explore": "deepseek-chat",
171
- "Plan": "gpt-4o",
172
- "general-purpose": "gpt-4o",
173
- "frontend-dev": "deepseek-chat",
174
- "default": "gpt-4o"
175
- }
176
- }
177
- ```
178
-
179
- When no routing match is found, the global provider remains the fallback.
180
-
181
- > **Note:** `api_key` values in `settings.json` are stored in plaintext. Keep this file private and do not commit it to version control.
182
-
183
- ## Web Search and Fetch
184
-
185
- By default, `WebSearch` works on non-Anthropic models using DuckDuckGo. This gives GPT-4o, DeepSeek, Gemini, Ollama, and other OpenAI-compatible providers a free web search path out of the box.
186
-
187
- > **Note:** DuckDuckGo fallback works by scraping search results and may be rate-limited, blocked, or subject to DuckDuckGo's Terms of Service. If you want a more reliable supported option, configure Firecrawl.
188
-
189
- For Anthropic-native backends and Codex responses, XETH--7 keeps the native provider web search behavior.
190
-
191
- `WebFetch` works, but its basic HTTP plus HTML-to-markdown path can still fail on JavaScript-rendered sites or sites that block plain HTTP requests.
192
-
193
- Set a [Firecrawl](https://firecrawl.dev) API key if you want Firecrawl-powered search/fetch behavior:
194
-
195
- ```bash
196
- export FIRECRAWL_API_KEY=your-key-here
197
- ```
198
-
199
- With Firecrawl enabled:
200
-
201
- - `WebSearch` can use Firecrawl's search API while DuckDuckGo remains the default free path for non-Claude models
202
- - `WebFetch` uses Firecrawl's scrape endpoint instead of raw HTTP, handling JS-rendered pages correctly
203
-
204
- Free tier at [firecrawl.dev](https://firecrawl.dev) includes 500 credits. The key is optional.
205
-
206
- ---
207
-
208
- ## Headless gRPC Server
209
-
210
- XETH--7 can be run as a headless gRPC service, allowing you to integrate its agentic capabilities (tools, bash, file editing) into other applications, CI/CD pipelines, or custom user interfaces. The server uses bidirectional streaming to send real-time text chunks, tool calls, and request permissions for sensitive commands.
211
-
212
- ### 1. Start the gRPC Server
213
-
214
- Start the core engine as a gRPC service on `localhost:50051`:
215
-
216
- ```bash
217
- npm run dev:grpc
218
- ```
219
-
220
- #### Configuration
221
-
222
- | Variable | Default | Description |
223
- |-----------|-------------|------------------------------------------------|
224
- | `GRPC_PORT` | `50051` | Port the gRPC server listens on |
225
- | `GRPC_HOST` | `localhost` | Bind address. Use `0.0.0.0` to expose on all interfaces (not recommended without authentication) |
226
-
227
- ### 2. Run the Test CLI Client
228
-
229
- We provide a lightweight CLI client that communicates exclusively over gRPC. It acts just like the main interactive CLI, rendering colors, streaming tokens, and prompting you for tool permissions (y/n) via the gRPC `action_required` event.
230
-
231
- In a separate terminal, run:
232
-
233
- ```bash
234
- npm run dev:grpc:cli
235
- ```
236
-
237
- *Note: The gRPC definitions are located in `src/proto/openclaude.proto`. You can use this file to generate clients in Python, Go, Rust, or any other language.*
238
-
239
- ---
240
-
241
- ## Source Build And Local Development
242
-
243
- ```bash
244
- bun install
245
- bun run build
246
- node dist/cli.mjs
247
- ```
248
-
249
- Helpful commands:
250
-
251
- - `bun run dev`
252
- - `bun test`
253
- - `bun run test:coverage`
254
- - `bun run security:pr-scan -- --base origin/main`
255
- - `bun run smoke`
256
- - `bun run doctor:runtime`
257
- - `bun run verify:privacy`
258
- - focused `bun test ...` runs for the areas you touch
259
-
260
- ## Testing And Coverage
261
-
262
- XETH--7 uses Bun's built-in test runner for unit tests.
263
-
264
- Run the full unit suite:
265
-
266
- ```bash
267
- bun test
268
- ```
269
-
270
- Generate unit test coverage:
271
-
272
- ```bash
273
- bun run test:coverage
274
- ```
275
-
276
- Open the visual coverage report:
277
-
278
- ```bash
279
- open coverage/index.html
280
- ```
281
-
282
- If you already have `coverage/lcov.info` and only want to rebuild the UI:
283
-
284
- ```bash
285
- bun run test:coverage:ui
286
- ```
287
-
288
- Use focused test runs when you only touch one area:
289
-
290
- - `bun run test:provider`
291
- - `bun run test:provider-recommendation`
292
- - `bun test path/to/file.test.ts`
293
-
294
- Recommended contributor validation before opening a PR:
295
-
296
- - `bun run build`
297
- - `bun run smoke`
298
- - `bun run test:coverage` for broader unit coverage when your change affects shared runtime or provider logic
299
- - focused `bun test ...` runs for the files and flows you changed
300
-
301
- Coverage output is written to `coverage/lcov.info`, and XETH--7 also generates a git-activity-style heatmap at `coverage/index.html`.
302
- ## Repository Structure
303
-
304
- - `src/` - core CLI/runtime
305
- - `scripts/` - build, verification, and maintenance scripts
306
- - `docs/` - setup, contributor, and project documentation
307
- - `python/` - standalone Python helpers and their tests
308
- - `vscode-extension/openclaude-vscode/` - VS Code extension
309
- - `.github/` - repo automation, templates, and CI configuration
310
- - `bin/` - CLI launcher entrypoints
311
-
312
- ## VS Code Extension
313
-
314
- The repo includes a VS Code extension in [`vscode-extension/openclaude-vscode`](vscode-extension/openclaude-vscode) for XETH--7 launch integration, provider-aware control-center UI, and theme support.
315
-
316
- ## Security
317
-
318
- If you believe you found a security issue, see [SECURITY.md](SECURITY.md).
319
-
320
- ## Community
321
-
322
- - Use [GitHub Discussions](https://github.com/EstarinAzx/XETH--7/discussions) for Q&A, ideas, and community conversation
323
- - Use [GitHub Issues](https://github.com/EstarinAzx/XETH--7/issues) for confirmed bugs and actionable feature work
324
-
325
- ## Contributing
326
-
327
- Contributions are welcome.
328
-
329
- For larger changes, open an issue first so the scope is clear before implementation. Helpful validation commands include:
330
-
331
- - `bun run build`
332
- - `bun run test:coverage`
333
- - `bun run smoke`
334
- - focused `bun test ...` runs for touched areas
335
-
336
- ## Disclaimer
337
-
338
- XETH--7 is an independent community project and is not affiliated with, endorsed by, or sponsored by Anthropic.
339
-
340
- XETH--7 originated from the Claude Code codebase and has since been substantially modified to support multiple providers and open use. "Claude" and "Claude Code" are trademarks of Anthropic PBC. See [LICENSE](LICENSE) for details.
341
-
342
- ## License
343
-
344
- See [LICENSE](LICENSE).
18
+
19
+ </div>
20
+
21
+ ---
22
+
23
+ ## What is Stratagem X7?
24
+
25
+ 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.
26
+
27
+ 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.
28
+
29
+ ```
30
+ ┌──────────────────────────────────────────┐
31
+ │ Provider Ollama │
32
+ │ Model qwen2.5-coder:32b │
33
+ Uplink http://localhost:11434/v1 │
34
+ ├──────────────────────────────────────────┤
35
+ local buffer ready /help │
36
+ └──────────────────────────────────────────┘
37
+ STRATAGEM X7 v0.3.2 // breach link stable
38
+ ```
39
+
40
+ ---
41
+
42
+ ## Install
43
+
44
+ ```bash
45
+ npm install -g stratagem-x7
46
+ ```
47
+
48
+ Then launch:
49
+
50
+ ```bash
51
+ stx7
52
+ ```
53
+
54
+ That's it. Run `/provider` inside to configure your backend, or set environment variables before launching.
55
+
56
+ > **Node 20+** required. If you get a `ripgrep not found` warning, install ripgrep system-wide (`rg --version` should work in the same terminal).
57
+
58
+ ---
59
+
60
+ ## Quick Setup
61
+
62
+ ### OpenAI
63
+
64
+ ```bash
65
+ export CLAUDE_CODE_USE_OPENAI=1
66
+ export OPENAI_API_KEY=sk-your-key
67
+ export OPENAI_MODEL=gpt-4o
68
+ stx7
69
+ ```
70
+
71
+ ### Local Ollama
72
+
73
+ ```bash
74
+ export CLAUDE_CODE_USE_OPENAI=1
75
+ export OPENAI_BASE_URL=http://localhost:11434/v1
76
+ export OPENAI_MODEL=qwen2.5-coder:7b
77
+ stx7
78
+ ```
79
+
80
+ ### Ollama Launch (zero config)
81
+
82
+ ```bash
83
+ ollama launch stx7 --model qwen2.5-coder:7b
84
+ ```
85
+
86
+ ### Windows (PowerShell)
87
+
88
+ ```powershell
89
+ $env:CLAUDE_CODE_USE_OPENAI="1"
90
+ $env:OPENAI_API_KEY="sk-your-key"
91
+ $env:OPENAI_MODEL="gpt-4o"
92
+ stx7
93
+ ```
94
+
95
+ ### Interactive Setup
96
+
97
+ Don't want to touch environment variables? Just run:
98
+
99
+ ```bash
100
+ stx7
101
+ # then type: /provider
102
+ ```
103
+
104
+ The `/provider` command walks you through guided setup and saves profiles to disk.
105
+
106
+ ---
107
+
108
+ ## Supported Providers
109
+
110
+ | Provider | Setup | Notes |
111
+ |----------|-------|-------|
112
+ | **OpenAI** | `/provider` or env vars | GPT-4o, o1, o3, etc. |
113
+ | **Ollama** | `/provider`, env vars, or `ollama launch` | Local inference, no API key |
114
+ | **Gemini** | `/provider` or env vars | API key, access token, or ADC |
115
+ | **DeepSeek** | `/provider` or env vars | OpenAI-compatible |
116
+ | **GitHub Models** | `/onboard-github` | Interactive onboarding |
117
+ | **Codex** | `/provider` | OAuth or CLI auth |
118
+ | **OpenRouter** | `/provider` or env vars | OpenAI-compatible multi-model gateway |
119
+ | **Groq / Mistral** | `/provider` or env vars | OpenAI-compatible |
120
+ | **LM Studio** | `/provider` or env vars | Local OpenAI-compatible server |
121
+ | **Bedrock / Vertex** | env vars | AWS and GCP provider integrations |
122
+ | **Any `/v1` compatible** | env vars | Point `OPENAI_BASE_URL` at it |
123
+
124
+ ---
125
+
126
+ ## Features
127
+
128
+ ### 🔧 Tool-Driven Coding
129
+ Bash execution, file read/write/edit, grep, glob, web search, web fetch — all as structured tool calls the agent orchestrates automatically.
130
+
131
+ ### 🤖 Autonomous Buffer Modes
132
+ Three autonomy levels via `shift+tab`:
133
+ - **`BUFFER:OFF`** Ask permission for everything
134
+ - **`BUFFER:SMART`** Auto-approve safe operations
135
+ - **`BUFFER:AGGRESSIVE`** Full autonomy including self-command injection
136
+
137
+ ### Self-Command Injection
138
+ 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.
139
+
140
+ ### 🐝 Agent Swarms
141
+ Spawn multi-agent teams that work in parallel. Route different agents to different models. Coordinate via message injection.
142
+
143
+ ### 🔌 MCP Support
144
+ Full Model Context Protocol support. Connect external tools, data sources, and services.
145
+
146
+ ### 📡 Cockpit API Rotation
147
+ Built-in API key rotation system for high-throughput operations. Monitors rate limits and rotates keys automatically.
148
+
149
+ ### 🎮 Cyberpunk TUI
150
+ 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.
151
+
152
+ ### 📋 Plan Mode
153
+ Enter plan mode to explore, research, and design before writing code. Stratagem presents a structured plan for your approval before executing.
154
+
155
+ ### 🔍 Web Search & Fetch
156
+ DuckDuckGo-powered web search works out of the box on all providers. Optional Firecrawl integration for JS-rendered pages.
157
+
158
+ ### 💾 Session Persistence
159
+ Conversations are saved to disk. Resume any session with `/resume`. Start fresh with `/new`.
160
+
161
+ ---
162
+
163
+ ## Slash Commands
164
+
165
+ | Command | Description |
166
+ |---------|-------------|
167
+ | `/help` | Show all available commands |
168
+ | `/provider` | Guided provider setup |
169
+ | `/model` | Switch active model |
170
+ | `/compact` | Compress conversation context |
171
+ | `/new` | Start a fresh session |
172
+ | `/clear` | Same as `/new` |
173
+ | `/resume` | Resume a previous session |
174
+ | `/config` | View/edit configuration |
175
+ | `/memory` | Edit memory files |
176
+ | `/stats` | Usage statistics |
177
+ | `/status` | System status and connectivity |
178
+ | `/onboard-github` | GitHub Models setup |
179
+
180
+ ---
181
+
182
+ ## Agent Routing
183
+
184
+ Route different agents to different models for cost optimization:
185
+
186
+ ```json
187
+ {
188
+ "agentModels": {
189
+ "deepseek-chat": {
190
+ "base_url": "https://api.deepseek.com/v1",
191
+ "api_key": "sk-your-key"
192
+ },
193
+ "gpt-4o": {
194
+ "base_url": "https://api.openai.com/v1",
195
+ "api_key": "sk-your-key"
196
+ }
197
+ },
198
+ "agentRouting": {
199
+ "Explore": "deepseek-chat",
200
+ "Plan": "gpt-4o",
201
+ "default": "gpt-4o"
202
+ }
203
+ }
204
+ ```
205
+
206
+ Add to `~/.claude/settings.json`. When no routing match is found, the global provider is the fallback.
207
+
208
+ > ⚠️ `api_key` values in `settings.json` are stored in plaintext. Keep this file private.
209
+
210
+ ---
211
+
212
+ ## Web Search
213
+
214
+ `WebSearch` uses DuckDuckGo by default on all non-Anthropic providers — free, no API key needed.
215
+
216
+ For better reliability and JS-rendered page support, set up [Firecrawl](https://firecrawl.dev):
217
+
218
+ ```bash
219
+ export FIRECRAWL_API_KEY=your-key-here
220
+ ```
221
+
222
+ Free tier includes 500 credits.
223
+
224
+ ---
225
+
226
+ ## Headless gRPC Server
227
+
228
+ Run Stratagem as a headless service for CI/CD, custom UIs, or programmatic access:
229
+
230
+ ```bash
231
+ npm run dev:grpc # Start server on localhost:50051
232
+ npm run dev:grpc:cli # Test CLI client
233
+ ```
234
+
235
+ | Variable | Default | Description |
236
+ |----------|---------|-------------|
237
+ | `GRPC_PORT` | `50051` | Server port |
238
+ | `GRPC_HOST` | `localhost` | Bind address |
239
+
240
+ Proto definitions: `src/proto/openclaude.proto`
241
+
242
+ ---
243
+
244
+ ## Build From Source
245
+
246
+ ```bash
247
+ git clone https://github.com/EstarinAzx/XETH--7.git
248
+ cd XETH--7
249
+ bun install
250
+ bun run build
251
+ node dist/cli.mjs
252
+ ```
253
+
254
+ ### Dev Commands
255
+
256
+ | Command | Description |
257
+ |---------|-------------|
258
+ | `bun run dev` | Build + launch |
259
+ | `bun run dev:ollama` | Launch with Ollama profile |
260
+ | `bun test` | Run tests |
261
+ | `bun run test:coverage` | Coverage report |
262
+ | `bun run smoke` | Build + version check |
263
+ | `bun run doctor:runtime` | System diagnostics |
264
+ | `bun run verify:privacy` | Verify no telemetry |
265
+
266
+ ---
267
+
268
+ ## Project Structure
269
+
270
+ ```
271
+ src/ Core CLI runtime
272
+ src/tools/ Tool implementations (Bash, FileEdit, UserInput, etc.)
273
+ src/components/ TUI components (Ink/React)
274
+ src/screens/ Main screens (REPL, Doctor)
275
+ src/utils/ Utilities and helpers
276
+ src/commands/ Slash command handlers
277
+ scripts/ Build and maintenance scripts
278
+ bin/ CLI launchers (stx7, openclaude)
279
+ docs/ Documentation
280
+ ```
281
+
282
+ ---
283
+
284
+ ## Contributing
285
+
286
+ Contributions welcome. For larger changes, open an issue first.
287
+
288
+ Before submitting:
289
+
290
+ ```bash
291
+ bun run build
292
+ bun run smoke
293
+ bun test
294
+ ```
295
+
296
+ ---
297
+
298
+ ## Security
299
+
300
+ Found a vulnerability? See [SECURITY.md](SECURITY.md).
301
+
302
+ ---
303
+
304
+ ## Community
305
+
306
+ - [GitHub Discussions](https://github.com/EstarinAzx/XETH--7/discussions) Q&A, ideas, conversation
307
+ - [GitHub Issues](https://github.com/EstarinAzx/XETH--7/issues) Bugs and feature requests
308
+
309
+ ---
310
+
311
+ ## Disclaimer
312
+
313
+ Stratagem X7 is an independent community project. Not affiliated with, endorsed by, or sponsored by Anthropic.
314
+
315
+ 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](LICENSE) for details.
316
+
317
+ ---
318
+
319
+ <div align="center">
320
+
321
+ ```
322
+ STRATAGEM X7 // breach shell // protocol online.
323
+ ```
324
+
325
+ **[Install](#install) · [Setup](#quick-setup) · [Providers](#supported-providers) · [Features](#features) · [Build](#build-from-source)**
326
+
327
+ </div>