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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperflash
3
- Version: 1.0.0
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
- [![PyPI](https://img.shields.io/pypi/v/hyperflash?style=for-the-badge&logo=pypi&color=3775A9)](https://pypi.org/project/hyperflash/)
46
+ [![PyPI - Version](https://img.shields.io/pypi/v/hyperflash?style=for-the-badge&logo=pypi&logoColor=white&color=3776AB)](https://pypi.org/project/hyperflash/)
47
47
  [![Stars](https://img.shields.io/github/stars/Virat-Ghatge/hyperflash?style=for-the-badge&logo=github&color=FFD700)](https://github.com/Virat-Ghatge/hyperflash/stargazers)
48
48
  [![Forks](https://img.shields.io/github/forks/Virat-Ghatge/hyperflash?style=for-the-badge&logo=github&color=60A5FA)](https://github.com/Virat-Ghatge/hyperflash/network/members)
49
49
  [![Issues](https://img.shields.io/github/issues/Virat-Ghatge/hyperflash?style=for-the-badge&color=34D399)](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 Antigravity in one command
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 and pre/post tool hooks.
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
- ```markdown
291
- # HyperFlash Reliability Constitution for Claude Code
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
- 1. GROUND FIRST: Never call file editing tools on an existing file without calling `View` or `Cat` first in this session.
294
- 2. ZERO CODE ELISION: Never emit `// ... rest of code`, `# ... existing code`, or `TODO: implement`. Every edit must be 100% complete.
295
- 3. CONTRACT BOUNDARY: Only mutate files explicitly discussed and approved for the current task. Do not touch external modules.
296
- 4. EVIDENCE OVER CLAIMS: Never declare a task complete or a bug fixed unless you have executed the project test command (`pytest`, `npm test`, `cargo test`) in this session and observed exit code 0.
297
- 5. CHUNKED DECODE: For files exceeding 200 lines, emit class/function skeletons first, then populate method bodies in surgical 100-150 line diffs.
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 2: Wire Pre-Commit Verification
301
- Run HyperFlash's standalone verification script inside Claude Code:
341
+ #### Step 3: Run Deterministic Verification
342
+ Execute HyperFlash's verification hierarchy directly from Claude Code:
302
343
  ```bash
303
- python -m src.skills.hyperflash.scripts.verify_hierarchy --tier 6
344
+ hyperflash verify --tier 6
304
345
  ```
305
346
 
306
347
  ---
307
348
 
308
349
  ### 3. OpenCode / OpenHands / SWE-Agent
309
350
 
310
- HyperFlash scripts can be invoked directly inside any autonomous agent container or Python environment:
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
- Scaffold full HyperFlash rules and MCP integration with one command:
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 & .cursor/mcp.json
337
- hyperflash init --target windsurf # Configures .windsurfrules & .windsurf/mcp.json
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
- Or manually configure your workspace:
341
- - **Rules file (`.cursorrules` or `.windsurfrules`):**
342
- ```markdown
343
- # HyperFlash Engineering Rules
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.0.0
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/>