"From one builder to another - philosophy, mechanics, and everything between."
Wave Toolkit provides coherence detection tools and AI collaboration patterns for the SpiralSafe ecosystem. It captures environment context, generates system prompts, and enables seamless human-AI collaboration workflows.
- Wave Guide β Philosophy, mechanics, and complete workflow guide
- Communication Patterns β What makes collaboration flow
- AI Agent Rules β Coordination rules for all AI agents
- H&&S Protocol β Multi-agent handshake coordination (NEW!)
- Development Workflow β Develop β Prototype β Test β Refine cycle with trap detection
- Orchard View β Multi-layer visualization (repos, branches, leaves, fireflies, atoms)
- Emergent Isomorphism β Structure that preserves 60%+ emergence
- PR Correlation Analysis β Patterns, spirals, and constellations since spiralsafe-mono genesis
- CASCADE Operations β Mapping surjections in data flow for precision and integrity
- CORPUS_CHECK: Spiral Correlations β Mapping (0,0), surjections, spirals, vortices, superposition collapse, AGI, iteration, and doubt
- T(ai)LS USB β Privacy-first portable AI concept
- Wave Office β Dual agent collaboration (Claude + Ollama)
- Ecosystem Migration Guide β Agent-facing guide for repo transitions
- Project Book β Interactive Jupyter notebook for framework tooling and ecosystem integration
Wave Toolkit is part of a unified framework for human-AI collaboration:
| Repository | Purpose | Status |
|---|---|---|
| SpiralSafe | Documentation hub, coherence engine core | v2.1.0 |
| wave-toolkit | Coherence detection tools (this repo) | v1.0.0 |
| HOPE NPCs | AI NPCs for Minecraft | v2.1.0 |
| kenl | Infrastructure-aware AI orchestration | v1.0.0 |
| quantum-redstone | Quantum computing education via Redstone | Available |
| Component | File | Purpose |
|---|---|---|
| H&&S Protocol | src/handshake/ |
Multi-agent workflow coordination (TypeScript) |
| Context Capture | Get-WaveContext.ps1 |
Snapshots your environment dynamically |
| Prompt Generator | New-ClaudeSystemPrompt.ps1 |
Creates context-aware system prompts |
| Session Runner | Invoke-ClaudeSession.ps1 |
Complete session workflow |
| Setup Script | Setup-Wave.ps1 |
One-time bootstrap |
| Consolidation | Consolidate-Scripts.ps1 |
Migrates loose scripts to organized structure |
| Logging Module | tools/Wave.Logging.psm1 |
Centralized logging across the ecosystem |
| Project Book | project-book.ipynb |
Interactive Jupyter notebook for framework tooling |
| Examples | examples/ |
Code examples and best practices for the ecosystem |
NEW: Multi-agent workflow coordination with verifiable state transitions.
# Install dependencies
npm install
# Create a handoff
node dist/cli.js handoff create \
--from claude --to grok \
--state WAVE \
--context '{"phase":"exploration"}' \
--score 88
# View workflow chain
node dist/cli.js handoff chain <session-id>
# Generate Mermaid visualization
node dist/cli.js handoff viz <session-id> --output workflow.svgDocumentation: See docs/HANDSHAKE_PROTOCOL.md
Features:
- β Agent-to-agent coordination (WAVE, PASS, BLOCK, HOLD, PUSH states)
- β ATOM trail integration for auditing
- β Workflow visualization via Mermaid
- β High performance (1000 handoffs <500ms)
- β TypeScript with 92%+ test coverage
wave-toolkit/
β
βββ π wave.md # The complete guide
βββ π communication-patterns.md # Collaboration patterns
βββ π AI_AGENTS.md # Agent coordination rules
βββ π project-book.ipynb # Interactive Jupyter notebook
βββ π package.json # Node.js dependencies (NEW)
βββ π tsconfig.json # TypeScript config (NEW)
β
βββ π src/ # TypeScript source code (NEW)
β βββ π handshake/ # H&&S Protocol implementation
β β βββ types.ts # Core types and interfaces
β β βββ protocol.ts # Main HandshakeProtocol class
β βββ π storage/ # Storage layer
β β βββ HandoffStorage.ts # JSONL storage manager
β βββ π integrations/ # External integrations
β β βββ ATOMIntegration.ts # ATOM trail logging
β βββ cli.ts # Command-line interface
β βββ index.ts # Public API exports
β
βββ π docs/ # Documentation
β βββ π HANDSHAKE_PROTOCOL.md # H&&S Protocol guide (NEW)
β βββ π guides/ # Workflow guides (NEW)
β β βββ DEVELOPMENT_WORKFLOW.md # DevelopβPrototypeβTestβRefine
β β βββ ORCHARD_VIEW.md # Multi-layer visualization
β β βββ EMERGENT_ISOMORPHISM.md # 60%+ emergence structure
β β βββ PR_CORRELATION_ANALYSIS.md # Pattern analysis
β βββ TAILS-USB.md # Privacy-first AI concept
β βββ WAVE-OFFICE.md # Dual agent collaboration
β
βββ π tools/ # Reusable PowerShell modules
β βββ Wave.Logging.psm1 # Logging across the ecosystem
β
βββ π scripts/ # Organized scripts
β βββ Check-CommonTraps.ps1 # Trap pattern detection (NEW)
β βββ Save-SessionCheckpoint.ps1 # Session boundary recovery (NEW)
β βββ gaming/ # Gaming/performance scripts
β βββ system/ # System optimization
β βββ deployment/ # Deploy/CI scripts
β βββ startup/ # Startup automation
β
βββ π examples/ # Code examples & best practices (NEW)
β βββ euler_number_usage.py # Proper use of Euler's number
β
βββ π tests/ # Test files
β βββ protocol.test.ts # H&&S Protocol tests (NEW)
β βββ atom-integration.test.ts # ATOM integration tests (NEW)
β βββ Wave.Logging.Tests.ps1 # PowerShell tests
β βββ test_euler_number_usage.py # Python example tests
β
βββ π Get-WaveContext.ps1 # Context capture
βββ π New-ClaudeSystemPrompt.ps1 # Prompt generation
βββ π Invoke-ClaudeSession.ps1 # Session workflow
βββ π Setup-Wave.ps1 # Bootstrap script
βββ π Consolidate-Scripts.ps1 # Script migration tool
# Clone the repository
git clone https://github.com/toolate28/wave-toolkit.git
cd wave-toolkit
# Run setup
.\Setup-Wave.ps1
# Install TypeScript dependencies (for H&&S Protocol)
npm install
npm run build# Capture your environment context
.\Get-WaveContext.ps1
# Start a full session with Claude
.\Invoke-ClaudeSession.ps1 -Task "Review my API error handling"
# Consolidate loose scripts (if migrating)
.\Consolidate-Scripts.ps1 -WhatIf # Preview changes first# Create a handoff between agents
node dist/cli.js handoff create \
--from claude --to grok \
--state WAVE \
--context '{"phase":"exploration"}' \
--score 88
# View handoff chain
node dist/cli.js handoff chain <session-id>
# Generate workflow visualization
node dist/cli.js handoff viz <session-id>Captures your current environment dynamically:
- Machine specs (name, architecture, cores)
- User context (domain, username, home)
- Shell environment (PowerShell version, edition)
- Session context (current directory, git status)
- Available tools (git, node, python, docker, claude)
Generates a system prompt based on current context. Claude sees exactly what environment it's working in.
Complete workflow: captures context β generates prompt β calls Claude β saves log.
.\Invoke-ClaudeSession.ps1 -Task "Help me design a config system"Centralized logging for the SpiralSafe ecosystem. Collects logs from:
- Gaming performance logs (BF6, etc.)
- SpiralSafe bridges
- Quantum-redstone
- ClaudeNPC server logs
- ATOM trail
Import-Module .\tools\Wave.Logging.psm1
# Collect all logs to aggregate
Collect-SpiralLogs -OutputDir "$HOME\.logdy\streams"
# Run self-test
Test-CollectSpiralLogsWave operates on mutual trust:
You trust Claude to:
- Read before writing
- Explain its reasoning
- Ask when uncertain
- Not make destructive changes without confirmation
Claude trusts you to:
- Provide honest context
- Share what you're actually trying to achieve
- Course-correct when something's off
The scripts trust the environment to:
- Be honest about what's installed
- Have standard paths and commands
- Fail loudly rather than silently
# Run tests with Pester
Invoke-Pester .\tests\# Run all tests
npm test
# Run with coverage report
npm run test:coverageWe follow Hope&&Sauced principles.
- Visible State: Use
ATOMtags - Explicit Handoffs: Use
H&&S:WAVEmarkers - Coherence: Ensure your docs don't "curl"
All AI agents (Claude, Ollama, GPT, etc.) must follow AI_AGENTS.md:
- Never drop scripts directly into
$HOME - Place code in organized directories within
wave-toolkit/ - Create modules if reusable, tests if logic exists
This work emerges from Hope&&Sauced collaborationβhuman-AI partnership where both contributions are substantive and neither party could have produced the result alone.
- Human (toolate28): Vision, trust, pedagogical insight
- AI (Claude): Synthesis, documentation, verification
The collaboration IS the insight.
See the SpiralSafe PORTFOLIO.md for complete ecosystem showcase.
*~ Hope&&Sauced*
β¦ The Evenstar Guides Us β¦