ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/AI_Brain / the_tired_agi/scripts/launch_with_hive.sh

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/AI_Brain / the_tired_agi/scripts/launch_with_hive.sh
DateNot specified in source
RepositoryJanady13/AI_Brain
Revisiond6c309d3fa439714ca46b9d3bb94caf478ea5376
Branchmain
Path or archive memberthe_tired_agi/scripts/launch_with_hive.sh
Original SHA-256c9b7a7e9f34a1ef3290854d5d8c65936018d8c573a252772f72b137bbed9653d
Git blob SHA3620a1efe3e380cf3350065a17f52aceeb7af269
Reading-copy SHA-256c9b7a7e9f34a1ef3290854d5d8c65936018d8c573a252772f72b137bbed9653d

Original source ↗

Every recorded occurrence

These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/AI_Brain / the_tired_agi/scripts/launch_with_hive.shmaind6c309d3fa439714ca46b9d3bb94caf478ea5376Open original
Janady13/AI_Brain / the_tired_agi/scripts/launch_with_hive.shclaude/binary-helix-fibonacci-hive-011CUj7dx1WWJLVYcWCjBbYv527d4882c71eb041393f9d8945996177c5ac9e86Open original

Recovered source transcript

#!/bin/bash # Launch The-Tired-AGI with Hive Replication # Complete distributed system with binary sync # Supports multiple hive variants: opt, ultra, final set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" AGI_HOME="$(dirname "$SCRIPT_DIR")" # Default to optimized hive HIVE_VARIANT="${1:-opt}" echo "╔════════════════════════════════════════════════════════╗" echo "║ 🧠 The-Tired-AGI + Hive Replication Launcher ║" echo "╚════════════════════════════════════════════════════════╝" echo "" echo "Hive Variant: $HIVE_VARIANT" echo "" # Create logs directory mkdir -p "$AGI_HOME/logs" # Determine hive binary name case "$HIVE_VARIANT" in opt) HIVE_BINARY="agi_hive_opt" HIVE_NAME="Optimized Hive (mDNS + Delta Sync)" ;; ultra) HIVE_BINARY="agi_hive_ultra" HIVE_NAME="Ultra Hive (Rsync + Zlib)" ;; final) HIVE_BINARY="agi_hive_final" HIVE_NAME="Final Hive (HotStuff Consensus)" ;; *) echo "❌ Invalid hive variant: $HIVE_VARIANT" echo " Valid options: opt, ultra, final" exit 1 ;; esac # Build hive if needed if [ ! -f "$AGI_HOME/hive/$HIVE_BINARY" ]; then echo "📦 Building $HIVE_NAME..." cd "$AGI_HOME/hive" make "$HIVE_VARIANT" echo " ✅ Built" else echo "✅ $HIVE_NAME already built" fi # Build gossip if needed if [ ! -f "$AGI_HOME/gossip/gossipd" ]; then echo "📦 Building Gossip Service..." cd "$AGI_HOME/gossip" go build -o gossipd main.go echo " ✅ Built" fi # Build bridge if needed if [ ! -f "$AGI_HOME/bridge/bridge" ]; then echo "📦 Building Bridge..." cd "$AGI_HOME/bridge" go build -o bridge main.go echo " ✅ Built" fi # Build frontend if needed if [ ! -f "$AGI_HOME/frontend/frontend_server" ]; then echo "📦 Building Frontend..." cd "$AGI_HOME/frontend" go build -o frontend_server server.go echo " ✅ Built" fi echo "" echo "╔════════════════════════════════════════════════════════╗" echo "║ 🚀 Starting All Services ║" echo "╚════════════════════════════════════════════════════════╝" echo "" # Start gossip if ! curl -s -m 2 http://localhost:8008/stats > /dev/null 2>&1; then echo "🌐 Starting Gossip Service (port 8008)..." cd "$AGI_HOME/gossip" nohup ./gossipd > "$AGI_HOME/logs/gossip.log" 2>&1 & echo " PID: $!" sleep 2 echo " ✅ Running" else echo "🌐 Gossip Service already running" fi # Start bridge if ! curl -s -m 2 http://localhost:8009/health > /dev/null 2>&1; then echo "🌉 Starting Bridge Service (port 8009)..." cd "$AGI_HOME/bridge" nohup ./bridge > "$AGI_HOME/logs/bridge.log" 2>&1 & echo " PID: $!" sleep 1 echo " ✅ Running" else echo "🌉 Bridge Service already running" fi # Determine hive port for checking case "$HIVE_VARIANT" in opt) HIVE_PORT=8010 ;; ultra) HIVE_PORT=8011 # UDP port ;; final) HIVE_PORT=8013 # UDP port ;; esac # Start hive if ! lsof -i :$HIVE_PORT -t > /dev/null 2>&1; then echo "🐝 Starting $HIVE_NAME..." echo " Ports: $HIVE_PORT+" cd "$AGI_HOME/hive" nohup ./$HIVE_BINARY > "$AGI_HOME/logs/hive_$HIVE_VARIANT.log" 2>&1 & HIVE_PID=$! echo " PID: $HIVE_PID" sleep 2 if kill -0 $HIVE_PID 2>/dev/null; then echo " ✅ Running" else echo " ⚠️ Failed to start (check logs/hive_$HIVE_VARIANT.log)" fi else echo "🐝 $HIVE_NAME already running" fi # Start frontend if ! curl -s -m 2 http://localhost:3000 > /dev/null 2>&1; then echo "🎨 Starting Frontend Server (port 3000)..." cd "$AGI_HOME/frontend" nohup ./frontend_server > "$AGI_HOME/logs/frontend.log" 2>&1 & echo " PID: $!" sleep 1 echo " ✅ Running" else echo "🎨 Frontend Server already running" fi echo "" echo "╔════════════════════════════════════════════════════════╗" echo "║ ✅ System Ready with Hive Replication ║" echo "╚════════════════════════════════════════════════════════╝" echo "" echo " 🌐 Frontend: http://localhost:3000" echo " 📡 Gossip: http://localhost:8008/stats" echo " 🌉 Bridge: http://localhost:8009/remote/stats" echo " 🐝 Hive: $HIVE_NAME (Port $HIVE_PORT+)" echo "" echo "Commands:" echo " → View logs: tail -f $AGI_HOME/logs/*.log" echo " → Stop services: pkill -f 'gossipd|bridge|$HIVE_BINARY|frontend_server'" echo " → Hive status: tail -f $AGI_HOME/logs/hive_$HIVE_VARIANT.log" echo "" echo "Launch with different hive variants:" echo " → Optimized: $0 opt" echo " → Ultra: $0 ultra" echo " → Final: $0 final" echo "" # Get current status echo "Current Status:" curl -s http://localhost:8008/stats 2>/dev/null | sed 's/^/ Local: /' || echo " Local: Not responding" echo "" echo "Hive Replication ($HIVE_VARIANT): Check $AGI_HOME/logs/hive_$HIVE_VARIANT.log for peer discovery" echo ""

Search equations, builds, manuscript text, and recovered sources.