Skip to content

zied-jlassi/harmony-ai-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

114 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Harmony Framework

A self-improving AI dev framework for Claude Code, Cursor & more

Smart agent routing Β· Error memory Β· Verifiable quality gates

npm version License: MIT Node.js GitHub stars

πŸš€ Quick Start β€’ 🧠 How It Works β€’ πŸ“š Docs β€’ 🧩 Patterns

🌐 Language: English · Français


Harmony is an AI development framework that makes your AI assistant route the right agent, remember every bug it has seen, and prove quality instead of assuming it β€” across Claude Code, Cursor, Windsurf and more. It lives inside your project and adapts to your code: load only what's needed, when it's needed.

"Other frameworks help you build fast. Harmony helps you build right."


πŸ† The Three Pillars

╔═══════════════════════════════════════════════════════════════════════════════╗
β•‘                      THE THREE PILLARS OF HARMONY                             β•‘
╠═══════════════════════════════════════════════════════════════════════════════╣
β•‘                                                                               β•‘
β•‘   πŸ”’ GUARDIAN           πŸ›‘οΈ SENTINEL           βœ… HQVF                         β•‘
β•‘   ─────────────        ───────────           ──────────                       β•‘
β•‘   Intent Detection     Error Memory          Quality Gates                    β•‘
β•‘   Agent Routing        Circuit Breaker       Use Case Verifiables             β•‘
β•‘   Workflow Protection  Pattern Learning      Triple Validation                β•‘
β•‘                                                                               β•‘
β•‘   "Right agent,        "Never repeat         "Quality you can                 β•‘
β•‘    right time"          the same bug"         prove, not assume"              β•‘
β•‘                                                                               β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

…but Harmony is more than three pillars: 50+ specialized agents, domain specialties, tech-stack profiles, multi-IDE support, security guards and JIT context loading. πŸ‘‰ See the full picture β†’ docs/how-it-works.md


πŸš€ Quick Start

# Install (requires jq + yq)
npx harmony-ai --full

# Start coding
/go                    # Session kickoff
/harmony               # Interactive menu (30 commands)
/harmony sentinel      # Error memory dashboard

30 seconds to install. A lifetime of saved debugging time.

πŸ“– Full installation guide β†’ Β· All 30 commands β†’


πŸ€– The Self-Improving Loop

╔═══════════════════════════════════════════════════════════════════════════════╗
β•‘                    πŸ”„ THE SELF-IMPROVING LOOP                                 β•‘
╠═══════════════════════════════════════════════════════════════════════════════╣
β•‘                                                                               β•‘
β•‘      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”                      β•‘
β•‘      β”‚   AI    β”‚ ──────► β”‚ HARMONY β”‚ ──────► β”‚   AI    β”‚                      β•‘
β•‘      β”‚  Makes  β”‚         β”‚ Learns  β”‚         β”‚ Better  β”‚                      β•‘
β•‘      β”‚ Mistake β”‚         β”‚ Pattern β”‚         β”‚  Next   β”‚                      β•‘
β•‘      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                      β•‘
β•‘                                                                               β•‘
β•‘   πŸ’‘ Feed the framework with errors β†’ It feeds you with solutions             β•‘
β•‘                                                                               β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Harmony lives in your project, learns your patterns, adapts to your style. The contribution cycle, zero-context-loss across sessions (UCVs), and JIT context loading are all detailed here πŸ‘‰ docs/how-it-works.md


πŸ“Š What Makes Us Different

Feature πŸ›οΈ Traditional πŸ›‘οΈ Harmony
🧠 Error Memory ❌ Start fresh every time βœ… Learns from mistakes
πŸ”„ Circuit Breaker ❌ Repeat failures endlessly βœ… Stops after 3 failures
🎯 Intent Detection ❌ Manual agent selection βœ… Auto-routing
βœ… Quality Gates ❌ "It works" = done βœ… Triple validation (DEV+TEST+QA)
πŸ’Ύ Context Persistence ❌ Lost between sessions βœ… 3-tier memory
πŸ“ˆ Pattern Learning ❌ No learning βœ… Gets smarter over time
πŸ›‘οΈ Security Guards ❌ Blind trust βœ… Supply-chain + injection filtering

πŸ”Œ Works Everywhere

Any IDE Any Stack Any Team Size
Claude Code 🟒 Β· Cursor Β· Windsurf Β· Continue Β· Cody TypeScript Β· Python Β· Go Β· Rust Β· React Β· Node Β· Django Solo β†’ Enterprise (500+)

🎯 Auto-detection: profiles & specialties activate from your project context β€” and they're portable (not tied to Harmony, not IDE-locked). πŸ‘‰ IDE support, profiles & specialties β†’


πŸ›‘οΈ Security Guards

Guards that screen what runs, what enters, and what gets installed β€” and say so out loud when they fire:

Guard Default Protects against
rules-enforcer βœ… on Destructive commands (rm -rf /, DROP DATABASE, fork bombs), shell-injection (curl | bash), secrets written to files
supply-chain-guard βœ… on Vulnerable / typosquatted packages, unpinned MCP servers, cooling-period packages, missing lock files
llm-output-sanitizer βœ… on Prompt injection, data exfiltration, hidden Unicode, leaked secrets in external content

Each pass prints visible proof (πŸ›‘οΈ Rules: clean β€” no interdiction); a block stops the action with its reason. Silence it anytime with HARMONY_HOOK_UI=off.

/hf:security:guards status     # See current state
/hf:security:guards off        # Disable supply-chain + sanitizer (zero perf impact)

⚠️ Defense-in-depth, not a silver bullet. Pattern-based detection β€” keep it updated and always combine with human review. πŸ“– Security Guards docs β†’


πŸ“‹ Prerequisites

Tool Version Required?
Node.js v18+ βœ… Runtime (npx)
Bash 4.0+ βœ… (macOS: brew install bash)
jq 1.6+ βœ… JSON processing
yq v4+ (mikefarah) βœ… YAML processing
Bun / Python 3.8+ latest / 3.8+ βšͺ Optional (speed / Prompt Monitor)

πŸ“– Detailed setup & verification β†’


πŸ“š Documentation

πŸ“– Guide Description
πŸš€ Getting Started 5-minute tutorial
🧠 How It Works The full picture β€” diagrams, flows, JIT, UCVs
πŸ’‘ Core Concepts The three pillars explained
πŸ—οΈ Architecture Technical deep-dive
⌨️ Commands All 30 commands
πŸ€– Agents The agent ecosystem
πŸ“ˆ Impact & ROI Estimated gains (from real experience)

πŸ’¬ What We Experienced Dogfooding Harmony

These are our own observations building Harmony with Harmony β€” your mileage will vary.

  • Recurring bugs dropped sharply once Sentinel started remembering past errors.
  • Debug time on known issues went from ~10 min to under a minute.
  • "Works on my machine" stopped being a thing thanks to triple validation (DEV+TEST+QA).
  • Agent confusion disappeared with Guardian auto-routing.

πŸ“ˆ Detailed estimates (token savings, time/cost projections) β€” clearly labeled as experience-based estimates β€” live in docs/enterprise.md.


🀝 Community

Report bugs Β· Ideas & help

πŸ“„ License

Released under the MIT License β€” SPDX: MIT.

Β© 2025 Harmony AI Team. Use it anywhere β€” contribute back if you can.

🏒 Enterprise & AI Consulting

Need production deployment with data security as top priority? Secure multi-env integration, LLM cost optimization, custom agents, data-security hardening. πŸ“¬ Details & contact β†’


πŸ›‘οΈ Stop repeating bugs. Start building right.

Get Started β€’ How it works β€’ Docs

⭐ Star us if Harmony saves you time!

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors