Skip to content
/ wave-toolkit Public template

Claude Code collaboration toolkit - philosophy, patterns, and dynamic scripts

Notifications You must be signed in to change notification settings

toolate28/wave-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌊 Wave Toolkit

"From one builder to another - philosophy, mechanics, and everything between."

Wave Toolkit Version License Platform

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.

SpiralSafe Coherence Status: Hope&&Sauced


πŸ—ΊοΈ Navigation

πŸ“š Documentation

πŸŒ€ Workflow Guides (New!)

πŸ”§ Special Docs

πŸ““ Interactive Tools

  • Project Book β€” Interactive Jupyter notebook for framework tooling and ecosystem integration

πŸŒ€ The SpiralSafe Ecosystem

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

🧩 Key Components

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

🀝 H&&S (Handshake & Sign) Protocol

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.svg

Documentation: 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

πŸ“‚ Project Structure

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

πŸš€ Quick Start

One-Step Install

# 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

Usage

PowerShell Tools

# 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

H&&S Protocol (TypeScript)

# 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>

πŸ”§ Core Scripts

Get-WaveContext.ps1

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)

New-ClaudeSystemPrompt.ps1

Generates a system prompt based on current context. Claude sees exactly what environment it's working in.

Invoke-ClaudeSession.ps1

Complete workflow: captures context β†’ generates prompt β†’ calls Claude β†’ saves log.

.\Invoke-ClaudeSession.ps1 -Task "Help me design a config system"

πŸ“ Wave.Logging Module

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-CollectSpiralLogs

🀝 The Trust Model

Wave 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

πŸ§ͺ Testing

PowerShell Tests

# Run tests with Pester
Invoke-Pester .\tests\

TypeScript Tests

# Run all tests
npm test

# Run with coverage report
npm run test:coverage

🀝 Contributing

We follow Hope&&Sauced principles.

  • Visible State: Use ATOM tags
  • Explicit Handoffs: Use H&&S:WAVE markers
  • Coherence: Ensure your docs don't "curl"

AI Agent Rules

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

Attribution

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 ✦

About

Claude Code collaboration toolkit - philosophy, patterns, and dynamic scripts

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •