hyperflash 1.0.0__tar.gz → 1.1.1__tar.gz
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.
- {hyperflash-1.0.0 → hyperflash-1.1.1}/PKG-INFO +103 -42
- hyperflash-1.0.0/src/hyperflash.egg-info/PKG-INFO → hyperflash-1.1.1/README.md +699 -663
- {hyperflash-1.0.0 → hyperflash-1.1.1}/pyproject.toml +1 -1
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash/__init__.py +1 -1
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash/cli.py +68 -3
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash/polyglot.py +161 -14
- hyperflash-1.0.0/README.md → hyperflash-1.1.1/src/hyperflash.egg-info/PKG-INFO +724 -638
- hyperflash-1.1.1/tests/test_cli.py +264 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/tests/test_core.py +22 -0
- hyperflash-1.0.0/tests/test_cli.py +0 -115
- {hyperflash-1.0.0 → hyperflash-1.1.1}/LICENSE +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/setup.cfg +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash/core.py +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash/mcp_server.py +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash.egg-info/SOURCES.txt +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash.egg-info/dependency_links.txt +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash.egg-info/entry_points.txt +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash.egg-info/requires.txt +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/src/hyperflash.egg-info/top_level.txt +0 -0
- {hyperflash-1.0.0 → hyperflash-1.1.1}/tests/test_mcp.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyperflash
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Universal Engineering Reliability Runtime & Multi-Agent Verification Guardrails
|
|
5
5
|
Author: Virat Ghatge
|
|
6
6
|
License: MIT
|
|
@@ -43,7 +43,7 @@ Dynamic: license-file
|
|
|
43
43
|
|
|
44
44
|
<br/>
|
|
45
45
|
|
|
46
|
-
[](https://pypi.org/project/hyperflash/)
|
|
47
47
|
[](https://github.com/Virat-Ghatge/hyperflash/stargazers)
|
|
48
48
|
[](https://github.com/Virat-Ghatge/hyperflash/network/members)
|
|
49
49
|
[](https://github.com/Virat-Ghatge/hyperflash/issues)
|
|
@@ -74,6 +74,10 @@ HyperFlash is a **model-agnostic, harness-agnostic engineering reliability runti
|
|
|
74
74
|
|
|
75
75
|
Whether you are using fast economy engines (**Gemini 3.8 Flash**, **Claude 3.5 Haiku**, **GPT-4o-mini**) or frontier reasoning models (**Claude 3.7 Sonnet**, **OpenAI o1/o3**, **Gemini 3 Pro / Hydrogen**, **DeepSeek-R1**), HyperFlash guarantees that code modifications are surgical, complete, type-safe, and empirically verified before completion is ever granted.
|
|
76
76
|
|
|
77
|
+
> [!NOTE]
|
|
78
|
+
> **Origins & Multi-Platform Evolution:**
|
|
79
|
+
> HyperFlash was originally conceived and engineered specifically with **Google Antigravity** in mind to solve the notorious `/boost` token burn, lazy code truncation (`// ... rest of code`), and premature victory hallucinations. Having achieved rock-solid reliability in Antigravity through native lifecycle hooks and permission asymmetry, we are now actively expanding HyperFlash to bring that same disciplined engineering rigor to **all major platforms**—including **OpenCode**, **Claude Code**, **Cursor**, **Windsurf**, and standalone CLI workflows.
|
|
80
|
+
|
|
77
81
|
---
|
|
78
82
|
|
|
79
83
|
## 🌐 Universal Model & Harness Compatibility
|
|
@@ -177,7 +181,7 @@ pip install hyperflash
|
|
|
177
181
|
Scaffold your preferred IDE or agent harness in 1 second:
|
|
178
182
|
|
|
179
183
|
```bash
|
|
180
|
-
# Configure Cursor, Claude Code, Windsurf, Git Hooks, and
|
|
184
|
+
# Configure Cursor, Claude Code, Windsurf, Git Hooks, Antigravity, and OpenCode in one command
|
|
181
185
|
hyperflash init
|
|
182
186
|
|
|
183
187
|
# Or target your specific harness:
|
|
@@ -186,6 +190,25 @@ hyperflash init --target claude
|
|
|
186
190
|
hyperflash init --target windsurf
|
|
187
191
|
hyperflash init --target git
|
|
188
192
|
hyperflash init --target antigravity
|
|
193
|
+
hyperflash init --target opencode
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 🚀 Universal Agent Launcher
|
|
197
|
+
Launch your preferred coding environment with the native HyperFlash agent persona pre-activated:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
# Launch OpenCode with native HyperFlash agent
|
|
201
|
+
hyperflash launch opencode
|
|
202
|
+
|
|
203
|
+
# Launch Antigravity terminal session with HyperFlash agent
|
|
204
|
+
hyperflash launch antigravity # or: hyperflash launch agy
|
|
205
|
+
|
|
206
|
+
# Launch Claude Code with HyperFlash rules and /hyperflash command
|
|
207
|
+
hyperflash launch claude
|
|
208
|
+
|
|
209
|
+
# Launch Cursor or Windsurf with HyperFlash agent rules
|
|
210
|
+
hyperflash launch cursor
|
|
211
|
+
hyperflash launch windsurf
|
|
189
212
|
```
|
|
190
213
|
|
|
191
214
|
### 🔌 Universal MCP Server Integration
|
|
@@ -227,6 +250,18 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
|
|
|
227
250
|
}
|
|
228
251
|
```
|
|
229
252
|
|
|
253
|
+
#### In OpenCode (`opencode.json`):
|
|
254
|
+
```json
|
|
255
|
+
{
|
|
256
|
+
"mcpServers": {
|
|
257
|
+
"hyperflash": {
|
|
258
|
+
"command": "hyperflash",
|
|
259
|
+
"args": ["mcp"]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
230
265
|
### Or Clone & Run Local Shell Installer
|
|
231
266
|
If you are developing locally without `pip`:
|
|
232
267
|
|
|
@@ -282,32 +317,59 @@ HyperFlash integrates directly into the Antigravity Desktop IDE and the terminal
|
|
|
282
317
|
|
|
283
318
|
### 2. Claude Code (Anthropic CLI)
|
|
284
319
|
|
|
285
|
-
You can bring HyperFlash's invariants into Claude Code using project memory
|
|
286
|
-
|
|
287
|
-
#### Step 1: Add HyperFlash Constitution to `CLAUDE.md`
|
|
288
|
-
Add the following to your project's `CLAUDE.md` or `~/.claude/CLAUDE.md`:
|
|
320
|
+
You can bring HyperFlash's invariants into Claude Code using project memory, pre/post tool hooks, and native slash commands.
|
|
289
321
|
|
|
290
|
-
|
|
291
|
-
|
|
322
|
+
#### Step 1: Automatic Setup via CLI
|
|
323
|
+
```bash
|
|
324
|
+
hyperflash init --target claude
|
|
325
|
+
```
|
|
326
|
+
This automatically configures:
|
|
327
|
+
- `CLAUDE.md`: System reliability constitution.
|
|
328
|
+
- `.claude.json`: Local stdio MCP server for safe patching and AST symbol graphs.
|
|
329
|
+
- `.claude/commands/hyperflash.md`: Dedicated agent slash command.
|
|
292
330
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
331
|
+
#### Step 2: Activate HyperFlash in Claude Code
|
|
332
|
+
Inside any Claude Code terminal session, simply run:
|
|
333
|
+
```text
|
|
334
|
+
/hyperflash
|
|
335
|
+
```
|
|
336
|
+
Or launch Claude Code directly with HyperFlash active:
|
|
337
|
+
```bash
|
|
338
|
+
hyperflash launch claude
|
|
298
339
|
```
|
|
299
340
|
|
|
300
|
-
#### Step
|
|
301
|
-
|
|
341
|
+
#### Step 3: Run Deterministic Verification
|
|
342
|
+
Execute HyperFlash's verification hierarchy directly from Claude Code:
|
|
302
343
|
```bash
|
|
303
|
-
|
|
344
|
+
hyperflash verify --tier 6
|
|
304
345
|
```
|
|
305
346
|
|
|
306
347
|
---
|
|
307
348
|
|
|
308
349
|
### 3. OpenCode / OpenHands / SWE-Agent
|
|
309
350
|
|
|
310
|
-
|
|
351
|
+
OpenCode supports dedicated named agents natively. HyperFlash installs as a first-class persona with custom system prompts and tools.
|
|
352
|
+
|
|
353
|
+
#### Step 1: Automatic Setup via CLI
|
|
354
|
+
```bash
|
|
355
|
+
hyperflash init --target opencode
|
|
356
|
+
```
|
|
357
|
+
This configures:
|
|
358
|
+
- `OPENCODE.md`: OpenCode engineering constitution.
|
|
359
|
+
- `.opencode/agents/hyperflash.json`: Dedicated agent persona definition.
|
|
360
|
+
- `opencode.json`: Declares `agent: "hyperflash"`, registers agent configuration, and wires the `hyperflash` stdio MCP server.
|
|
361
|
+
|
|
362
|
+
#### Step 2: Launch OpenCode with HyperFlash Persona
|
|
363
|
+
```bash
|
|
364
|
+
# Direct OpenCode CLI
|
|
365
|
+
opencode --agent hyperflash
|
|
366
|
+
|
|
367
|
+
# Or via the universal runner
|
|
368
|
+
hyperflash launch opencode
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
#### Step 3: Custom Agent Harnesses (Python / Containers)
|
|
372
|
+
HyperFlash guardrails can also be evaluated programmatically inside any agent container:
|
|
311
373
|
|
|
312
374
|
```python
|
|
313
375
|
# In your custom agent loop or OpenHands execution environment
|
|
@@ -331,34 +393,25 @@ def run_hyperflash_guards(tool_call: dict) -> bool:
|
|
|
331
393
|
|
|
332
394
|
### 4. Cursor & Windsurf IDEs
|
|
333
395
|
|
|
334
|
-
|
|
396
|
+
HyperFlash delivers always-on rule enforcement and tool capabilities for modern AI-native IDEs.
|
|
397
|
+
|
|
398
|
+
#### Step 1: Automatic Setup via CLI
|
|
335
399
|
```bash
|
|
336
|
-
hyperflash init --target cursor # Configures .cursorrules
|
|
337
|
-
hyperflash init --target windsurf # Configures .windsurfrules
|
|
400
|
+
hyperflash init --target cursor # Configures .cursorrules, .cursor/rules/hyperflash.mdc, .cursor/mcp.json
|
|
401
|
+
hyperflash init --target windsurf # Configures .windsurfrules, .windsurf/rules/hyperflash.md, .windsurf/mcp.json
|
|
338
402
|
```
|
|
339
403
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
- Always view the entire target file before proposing edits.
|
|
345
|
-
- Never truncate code with comments like `// existing code remains the same`. Write the entire functional block.
|
|
346
|
-
- Always include exhaustive static type annotations on all parameters and return values.
|
|
347
|
-
- Before claiming a task is done, run terminal commands to verify compilation and tests.
|
|
348
|
-
- Emit a `decision:` and `pre_mortem:` YAML block before multi-file edits.
|
|
349
|
-
```
|
|
350
|
-
- **MCP Server (`.cursor/mcp.json` or `.windsurf/mcp.json`):**
|
|
351
|
-
```json
|
|
352
|
-
{
|
|
353
|
-
"mcpServers": {
|
|
354
|
-
"hyperflash": {
|
|
355
|
-
"command": "hyperflash",
|
|
356
|
-
"args": ["mcp"]
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
404
|
+
#### Step 2: Launch IDE with HyperFlash
|
|
405
|
+
```bash
|
|
406
|
+
hyperflash launch cursor
|
|
407
|
+
hyperflash launch windsurf
|
|
360
408
|
```
|
|
361
409
|
|
|
410
|
+
#### What Gets Configured:
|
|
411
|
+
- **Cursor Rules MDC (`.cursor/rules/hyperflash.mdc`):** Enforces `alwaysApply: true` so Cursor Composer and Agent mode strictly observe the 8 Invariants across all edits.
|
|
412
|
+
- **Windsurf Rules (`.windsurf/rules/hyperflash.md` & `.windsurfrules`):** Guides Cascade Agent with zero-elision and ground-before-mutating constraints.
|
|
413
|
+
- **MCP Integration (`mcp.json`):** Exposes `hyperflash_safe_patch`, `hyperflash_verify`, and `hyperflash_get_symbol_graph` directly to the IDE agent.
|
|
414
|
+
|
|
362
415
|
---
|
|
363
416
|
|
|
364
417
|
### 5. Git Pre-Commit & CI/CD Quality Gates
|
|
@@ -374,7 +427,7 @@ hyperflash init --target git
|
|
|
374
427
|
```yaml
|
|
375
428
|
repos:
|
|
376
429
|
- repo: https://github.com/Virat-Ghatge/hyperflash
|
|
377
|
-
rev: v1.
|
|
430
|
+
rev: v1.1.1
|
|
378
431
|
hooks:
|
|
379
432
|
- id: hyperflash-zero-elision
|
|
380
433
|
- id: hyperflash-verify
|
|
@@ -603,6 +656,14 @@ hyperflash/
|
|
|
603
656
|
<b>Yes.</b> HyperFlash is completely harness-agnostic. The repository includes configurations, constitutions, and CLI scripts for <b>Claude Code</b>, <b>OpenCode / OpenHands</b>, <b>Cursor</b>, <b>Windsurf</b>, standalone terminal workflows, and Git pre-commit hooks.
|
|
604
657
|
</details>
|
|
605
658
|
|
|
659
|
+
<details>
|
|
660
|
+
<summary><b>Wasn't HyperFlash originally built for Google Antigravity?</b></summary>
|
|
661
|
+
<br/>
|
|
662
|
+
<b>Yes!</b> HyperFlash was originally created specifically for Google Antigravity to solve real-world autonomous coding frustrations: ungrounded mutations, code truncation, and the heavy token burn of Antigravity's default <code>/boost</code> swarm.
|
|
663
|
+
<br/><br/>
|
|
664
|
+
However, software engineering reliability is a universal challenge across all AI developer tools. We are actively bringing HyperFlash to the entire ecosystem—supporting <b>OpenCode</b>, <b>Claude Code</b>, <b>Cursor</b>, <b>Windsurf</b>, and custom agent runtimes through our universal <code>hyperflash init</code> CLI and local MCP server.
|
|
665
|
+
</details>
|
|
666
|
+
|
|
606
667
|
<details>
|
|
607
668
|
<summary><b>How does HyperFlash physically prevent code truncation (`// ... rest of code`)?</b></summary>
|
|
608
669
|
<br/>
|