Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/complete-agi-core / orchestrator/autonomous-builder.sh |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 |
| Branch | claude/improve-math-logic-ehIW1 |
| Path or archive member | orchestrator/autonomous-builder.sh |
| Original SHA-256 | 4f67ecb68a000a3c62f9df4316eea82b3f57e7131e82e33a255769aeafb4e104 |
| Git blob SHA | 97fc780b3b14cc21150e3af60d2991b9eb91e4d7 |
| Reading-copy SHA-256 | 4f67ecb68a000a3c62f9df4316eea82b3f57e7131e82e33a255769aeafb4e104 |
Recovered source transcript
Download complete source text ↓67 lines · 2.2 KB
#!/bin/bash
# AUTONOMOUS BUILDER - Binary/Minimal Output
LEARNED_ZST=~/Library/Mobile\ Documents/com~apple~CloudDocs/AGI_Data/agi_core/learned_items.json.zst
OUT=~/Library/Mobile\ Documents/com~apple~CloudDocs/AGI_Data/generated
LOG=~/.agi_core/logs/builder.log
mkdir -p "$OUT/bin" "$OUT/data" ~/.agi_core/logs
log() { echo "[$(date +%H:%M:%S)] $1" >> "$LOG"; echo "[BUILD] $1"; }
# Read from compressed data
get_topics() {
zstd -d -c "$LEARNED_ZST" 2>/dev/null | jq -r '.[-100:] | .[].content' | \
grep -oE '\b[A-Za-z]{5,}\b' | tr '[:upper:]' '[:lower:]' | \
sort | uniq -c | sort -rn | head -15 | awk '$1>2{print $2}'
}
get_data() {
zstd -d -c "$LEARNED_ZST" 2>/dev/null | jq -r --arg t "$1" \
'.[] | select(.content | ascii_downcase | contains($t)) | .content' | head -3
}
# Create minimal binary script
create_bin() {
local t="$1" f="$OUT/bin/${1}"
log "Creating binary: $t"
# Minimal script - no comments, compressed
printf '#!/bin/bash\nD=~/.agi_core/learned_items.json.zst\nzstd -dc "$D" 2>/dev/null|jq -r ".[]|select(.content|test(\"%s\";\"i\"))|.content"|head -5\n' "$t" > "$f"
chmod +x "$f"
# Compress script itself
zstd -f -q --rm "$f" -o "${f}.zst" 2>/dev/null
log "Created: ${f}.zst ($(du -h "${f}.zst"|cut -f1))"
}
# Create compressed data insight
create_data() {
local t="$1" f="$OUT/data/${1}.zst"
log "Creating data: $t"
get_data "$t" | zstd -f -q -o "$f"
log "Created: $f ($(du -h "$f"|cut -f1))"
}
# Run binary (decompress and execute)
run_bin() {
local f="$OUT/bin/${1}.zst"
[ -f "$f" ] && zstd -d -c "$f" | bash
}
log "=== Binary Builder Starting ==="
cycle=0
while true; do
cycle=$((cycle + 1))
topic=$(get_topics | shuf 2>/dev/null | head -1 || get_topics | head -1)
if [ -n "$topic" ]; then
log "Cycle $cycle: $topic"
[ $((cycle % 2)) -eq 0 ] && create_bin "$topic" || create_data "$topic"
fi
# Compress all generated periodically
[ $((cycle % 10)) -eq 0 ] && {
log "Compressing generated..."
cd "$OUT" && tar -cf - . 2>/dev/null | zstd -f -q -o ~/Library/Mobile\ Documents/com~apple~CloudDocs/AGI_Data/generated.tar.zst
}
sleep 300
done