Skip to content

A1cy/HiveCodeCli

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3,080 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

        β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
        β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•     β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
        β–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ–ˆβ•—    β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•
        β–ˆβ–ˆβ•‘ β•šβ•β• β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
        β•šβ•β•     β•šβ•β•β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β•      β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•
                                  v1.0
                    Free Offline Agents + Premium Cloud Models
                                by ERP team

100% Free | 100% Open | 100% Local

Version License Cost Status Powered by

πŸš€ Quick Start β€’ πŸ“– Documentation β€’ πŸ€– Meet the Agents β€’ πŸ’° Cost Comparison β€’ 🎯 Roadmap


🎯 What is MHG Code?

MHG Code is a production-ready AI-powered development assistant built on top of Claude Code with integrated AWS Bedrock support, providing access to cutting-edge language models including OpenAI GPT-OSS 120B, Amazon Nova Pro, and more.

Key Features

  • βœ… AWS Bedrock Integration: Direct access to premium models via AWS
  • βœ… OpenAI GPT-OSS 120B: Powerful open-source 120B parameter model
  • βœ… Perfect Arabic RTL Support: Native right-to-left text rendering
  • βœ… Production-Ready: Fully tested and deployed
  • βœ… Zero Configuration: Works out of the box with proper credentials

Vision

Build a production-ready agentic AI development system that:

  • Costs $0/month forever (100% free operation with local models)
  • Works completely offline (privacy-first, local Ollama primary)
  • Provides multi-agent coordination (5 specialized agents working in parallel)
  • Offers easy installation (one-command setup)
  • Maintains full customizability (open source, fork-friendly)

Foundation Strategy

HiveCode is built by forking HiveCode (Google's official CLI tool) and adding:

  • Agent Orchestration: 5 specialized agents (orchestrator, frontend, backend, tester, refactor)
  • SPARC Workflow: Multi-agent coordination methodology
  • Local-First Routing: 80% Ollama (free) β†’ 15% Gemini (free tier) β†’ 5% Groq (optional)
  • Hook System: Pre-tool, post-tool, notification hooks
  • TTS Integration: Optional voice announcements
  • Memory System: Cross-session context persistence

πŸ—οΈ Architecture Overview

User Input
    ↓
hivecode [command] [args]
    ↓
HiveCode CLI (forked from HiveCode)
β”œβ”€ Custom commands (prime|sparc|ask)
β”œβ”€ Agent orchestration layer
β”œβ”€ Hook system (pre-tool, post-tool)
β”œβ”€ TTS announcements (optional)
└─ Local-first routing strategy
    ↓
Model Routing
β”œβ”€ 80% β†’ Ollama (qwen2.5-coder, free, 3-5s)
β”œβ”€ 15% β†’ Gemini free tier (15 RPM, fast, free)
└─ 5% β†’ Optional Groq (complex tasks, free tier)
    ↓
Agent System (5 specialized)
β”œβ”€ Orchestrator (coordination)
β”œβ”€ Frontend (React/Vue/UI)
β”œβ”€ Backend (APIs/databases)
β”œβ”€ Tester (unit/integration tests)
└─ Refactor (cleanup/optimization)
    ↓
Results synthesized
    ↓
Output to user

πŸ’° Cost Comparison

Feature Claude Code GitHub Copilot HiveCode
Cost $20-100/month $10-20/month βœ… $0/month
AI Quality Best (Sonnet 4.5) Good ⚑ Good (qwen2.5-coder)
Agents Yes (56) No βœ… Yes (5 core)
Privacy Cloud Cloud βœ… 100% Local
Customizable Limited Limited βœ… Fully Open
Offline No No βœ… Yes

πŸ“š Documentation

Essential Reading

Development Journey

Attempt 1: OpenCode Foundation ❌

  • Selected for MCP native support and 29K stars
  • Rejected: Not 100% free (AWS Bedrock costs $12-15/month)
  • Lesson: "IM EXPECTING A CLI TO BE FULLY FREE!"

Attempt 2: Pure Python + Ollama ⚠️

  • Built from scratch: 1,425 lines, 5 agents, working CLI
  • Tested successfully with Ollama qwen2.5-coder
  • Rejected: "thats was bad steps! we need to fork somthing not start from scartch"
  • Result: Archived to archive/python-implementation branch for reference

Attempt 3: HiveCode Fork βœ… Current

  • Fork production-ready CLI (Google-maintained)
  • Customize with HiveCode features (agents, orchestration, hooks, TTS)
  • Keep 100% free with local Ollama primary
  • Benefit from existing architecture while maintaining full control

πŸ€– Planned Features

MVP (Phase 2-3)

  • βœ… 5 Specialized Agents: Orchestrator, Frontend, Backend, Tester, Refactor
  • βœ… 3 Core Commands: hivecode prime, hivecode ask, hivecode sparc
  • βœ… Local-First Routing: Ollama primary (80%), Gemini fallback (15%), optional Groq (5%)
  • βœ… SPARC Workflow: Multi-agent coordination methodology
  • βœ… Parallel Execution: 2-3 agents working simultaneously
  • βœ… One-Command Install: Automatic Ollama setup + model download

Phase 2+ Enhancements

  • ⏳ MCP Integration: 6 servers (memory, shadcn-ui, playwright, n8n, blender, clickup)
  • ⏳ Hook System: Pre-tool, post-tool, notification hooks
  • ⏳ TTS Integration: Voice announcements (Kokoro TTS)
  • ⏳ Memory System: 4-tier hierarchy (Global β†’ Project β†’ Session β†’ Task)
  • ⏳ Checkpoint/Rewind: Safe operation suggestions
  • ⏳ Web UI: Optional browser interface

πŸš€ Roadmap

Phase 1: Cleanup & Archive βœ… COMPLETE

  • βœ… Archive Python implementation to archive/python-implementation branch
  • βœ… Clean master branch of Python code
  • βœ… Update documentation for HiveCode pivot

Phase 2: Fork & Setup ⏳ NEXT

  • ⏳ Fork HiveCode repository to A1cy/HiveCode
  • ⏳ Rename project (gemini β†’ hivecode)
  • ⏳ Add HiveCode configuration structure (.mhgcode/ config)
  • ⏳ Verify base functionality and build system

Phase 3: Custom Features ⏳

  • ⏳ Integrate agent orchestration (5 agents)
  • ⏳ Implement model routing (Ollama, Gemini, Groq)
  • ⏳ Add custom commands (prime, ask, sparc)
  • ⏳ Implement parallel execution

Phase 4: Polish & Release ⏳

  • ⏳ One-command installation script
  • ⏳ Complete documentation rewrite
  • ⏳ Test on Ubuntu/WSL/macOS
  • ⏳ Release HiveCode v0.1.0

Target Release: Week 4


πŸ† Key Decisions

Why HiveCode?

Chosen for:

  • βœ… 100% free with Ollama primary routing
  • βœ… Open source (full TypeScript source code)
  • βœ… Production-ready (Google-maintained)
  • βœ… Easy to customize (fork and modify)
  • βœ… Apache 2.0 license (permissive)

Alternative Rejected: OpenCode.ai

  • ❌ Not 100% free (AWS Bedrock $12-15/month after free tier)
  • ❌ External binary (difficult to modify)

Why Fork (Not Build from Scratch)?

Lessons Learned:

  • Building CLI framework from scratch is time-intensive
  • Production-ready foundation provides reliability and trust
  • Fork strategy: faster to market + battle-tested architecture
  • User feedback: "we need to fork somthing not start from scartch"

Result: Python implementation archived as reference, fork strategy adopted

Why Ollama Primary?

Cost Priority:

  • Ollama: $0/month, unlimited usage, 100% offline
  • Gemini free tier: 15 RPM limit (fallback for complex tasks)
  • Speed trade-off: 3-5s Ollama vs <1s cloud (acceptable for free operation)

🀝 Contributing

HiveCode is currently in early development. Contributions will be welcome after v0.1.0 release.

Current Status: Pre-fork preparation Watch This Repo: Get notified when Phase 2 fork begins


πŸ“„ License

MIT License - See LICENSE for details.


πŸ™ Acknowledgments

  • Foundation: HiveCode by Google
  • Inspired by: A1xAI Framework and Claude Code
  • Powered by: Ollama - Amazing local LLM engine
  • Model: qwen2.5-coder - Specialized coding model

πŸ“ž Status & Updates

Current Phase: Phase 1 Complete β†’ Phase 2 Fork Preparation Last Updated: 2025-10-26 Next Milestone: HiveCode fork

For detailed development status, see STATUS.md


🐝 HiveCode - 100% Free | 100% Open | 100% Local

Phase 1 Complete | Phase 2 Next: Fork HiveCode

πŸ“– Development Status | 🎯 Project Plan | ⭐ Star on GitHub

About

100% Free Agentic AI Development System

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 97.4%
  • JavaScript 2.5%
  • Other 0.1%