Skip to content

chipoto69/HeroDash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HeroDash - Hero Core Command Centre

    โ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
    โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—    โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•
    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  
    โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•  
    โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•    โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
    โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•      โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•
                                [ by Quantropy ]

๐Ÿš€ Overview

Hero Core is a comprehensive terminal-based dashboard that provides real-time monitoring of AI systems, development tools, and system resources. It features a beautiful, flicker-free interface with lazy refresh capabilities for optimal performance.

Terminal Dashboard Version Platform

๐Ÿ“š Documentation

This repository contains both the original Hero Core Dashboard and an optimized, fixed version with significant performance improvements:

Original Documentation

Optimized Version Documentation

Key Improvements in Optimized Version

  • 20-30% CPU Usage Reduction through command caching
  • 15-25% Faster Response Times with intelligent caching
  • 40-50% Fewer System Calls by reducing redundant operations
  • Fixed Stability Issues that caused immediate crashes
  • Enhanced Compatibility with older bash versions

โœจ Features

๐Ÿค– AI Systems Monitoring

  • Claude Code: Active instances tracking with working directories
  • Token Usage: Real-time Claude token consumption with visual progress bar
  • Qwen-code: Runtime status monitoring
  • VS Code: Helper process tracking

๐Ÿ“Š GitHub Integration

  • 21-Day Activity Graph: Visual representation of your contributions
  • Contribution Stats: Total contributions and current streak
  • Activity Levels: Color-coded visualization

๐Ÿง  Knowledge Base Systems

  • Graphiti/Neo4j: Temporal knowledge graph monitoring
  • Redis: Key-value store metrics
  • Docker: Container status and count
  • Archive Files: JSON data file tracking

๐Ÿ’ป System Metrics

  • CPU Usage: Real-time percentage with visual bar
  • Memory Usage: System memory consumption
  • Network: Active connection monitoring

๐Ÿ“ฆ Installation

Prerequisites

  • macOS (tested on Darwin 24.5.0)
  • Python 3.x
  • Bash 4.0+

Optional Dependencies

  • Redis
  • Neo4j
  • Docker
  • Claude monitor (ccm)

Quick Setup

  1. Clone the repository:
git clone https://github.com/yourusername/HeroDash.git
cd HeroDash
  1. Make scripts executable:
chmod +x hero launch_hero.sh hero_core.sh
chmod +x monitors/*.py utils/*.sh
  1. Launch the dashboard:
./hero

๐ŸŽฎ Usage

Launch Methods

# Quick start (original)
./hero

# With system checks (original)
./launch_hero.sh

# Direct execution (original)
./hero_core.sh

# Optimized version
./hero_optimized

# Optimized version with setup
./setup_optimized_fixed.sh

Keyboard Commands

Key Action Description
T Refresh Tokens Force update token/GitHub data
G Graphiti Details Show knowledge graph statistics
N Neo4j Browser Open http://localhost:7474
C Claude Monitor Launch ccm tool
H Help Show command list
R Refresh Force full screen refresh
Q Quit Exit dashboard

๐Ÿ“ Project Structure

HeroDash/
โ”œโ”€โ”€ hero                      # Quick launcher
โ”œโ”€โ”€ launch_hero.sh           # Launcher with system checks
โ”œโ”€โ”€ hero_core.sh            # Main dashboard application
โ”œโ”€โ”€ hero_core_optimized_fixed.sh # Optimized dashboard (recommended)
โ”œโ”€โ”€ launch_hero_optimized_fixed.sh # Optimized launcher
โ”œโ”€โ”€ hero_optimized          # Symlink to optimized launcher
โ”œโ”€โ”€ monitors/               # Python monitoring scripts
โ”‚   โ”œโ”€โ”€ claude_usage_monitor.py
โ”‚   โ”œโ”€โ”€ github_activity_monitor.py
โ”‚   โ””โ”€โ”€ graphiti_monitor.py
โ”œโ”€โ”€ utils/                  # Utility scripts
โ”‚   โ”œโ”€โ”€ dashboard_control.sh
โ”‚   โ””โ”€โ”€ dashboard_diagnostics.sh
โ””โ”€โ”€ docs/                   # Documentation
    โ”œโ”€โ”€ DOCUMENTATION.md    # Technical documentation
    โ”œโ”€โ”€ USER_GUIDE.md       # User guide
    โ”œโ”€โ”€ OPTIMIZED_VERSION_FIXED.md # Optimized version docs
    โ””โ”€โ”€ PROGRESS_LOG.md     # Development progress log

๐Ÿ”ง Configuration

Hero Core stores its configuration and cache in:

~/.hero_core/
โ”œโ”€โ”€ hero.log              # Activity log
โ””โ”€โ”€ cache/                # Data cache
    โ”œโ”€โ”€ claude_usage.json
    โ”œโ”€โ”€ github_activity.json
    โ””โ”€โ”€ graphiti_stats.json

Refresh Rates

  • Fast Updates (3 seconds): AI systems, system metrics
  • Lazy Updates (30 seconds): Token usage, GitHub activity

๐Ÿ› ๏ธ Utilities

System Diagnostics

./utils/dashboard_diagnostics.sh

Dashboard Control

# Stop all dashboards
./utils/dashboard_control.sh stop

# Check status
./utils/dashboard_control.sh status

๐Ÿ“ˆ Performance

  • CPU Usage: ~0.1-0.5% idle, ~1-2% during updates (optimized version 20-30% lower)
  • Memory: ~10-15 MB for bash, ~30 MB per Python monitor
  • Update Method: Cursor-based rendering (no screen flicker)
  • Data Collection: Asynchronous Python monitors with JSON caching

๐Ÿ” Troubleshooting

Common Issues

  1. "Loading token data..." - Press T to force refresh
  2. Screen flickers - Ensure terminal supports ANSI escape codes
  3. High CPU usage - Increase REFRESH_RATE in hero_core.sh

View Logs

tail -f ~/.hero_core/hero.log

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“ License

This project is open source and available under the MIT License.

๐Ÿ™ Credits

Created by Quantropy

Technologies Used

  • Bash scripting with ANSI escape codes
  • Python for data collection
  • JSON for inter-process communication
  • Terminal-based UI rendering

๐ŸŒŸ Features Roadmap

  • Real GitHub API integration
  • Claude API integration
  • Historical data persistence
  • Multi-platform support (Linux, Windows)
  • WebSocket real-time updates
  • Custom alert thresholds
  • Theme customization

Hero Core v1.0 | Terminal Dashboard Excellence

About

Hero Core - Terminal dashboard for AI systems, token usage, and development monitoring

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •