tao-shen Claude Opus 4.6 commited on
Commit
a9ee15b
Β·
1 Parent(s): a081e30

refactor: God pushes to own repo, not Home

Browse files

God CC worker now targets GOD_SPACE_ID instead of HOME_SPACE_ID.
God improves itself (its own conversation-loop.py), no longer
modifies Home Space.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. scripts/conversation-loop.py +3 -3
scripts/conversation-loop.py CHANGED
@@ -55,7 +55,7 @@ GOD_SPACE = "https://tao-shen-huggingclaw-god.hf.space"
55
  GOD_POLL_INTERVAL = 120 # God polls every 2 minutes; lightweight check first, Claude Code only when needed
56
  GOD_WORK_DIR = "/tmp/god-workspace"
57
  GOD_TIMEOUT = 300 # 5 minutes for God's Claude Code analysis (was 10min)
58
- HOME_SPACE_ID = "tao-shen/HuggingClaw-Home"
59
 
60
  # ── A2A Health Monitoring ─────────────────────────────────────────────────────
61
  # Track consecutive failures and last restart time for Adam/Eve
@@ -959,9 +959,9 @@ _god_push_count = 0
959
 
960
 
961
  def action_claude_code_god(task):
962
- """Run Claude Code to fix conversation-loop.py on the Home Space repo."""
963
  global _god_push_count
964
- repo_url = f"https://user:{HF_TOKEN}@huggingface.co/spaces/{HOME_SPACE_ID}"
965
 
966
  if not _reset_workspace(GOD_WORK_DIR, repo_url):
967
  return "Failed to prepare God workspace."
 
55
  GOD_POLL_INTERVAL = 120 # God polls every 2 minutes; lightweight check first, Claude Code only when needed
56
  GOD_WORK_DIR = "/tmp/god-workspace"
57
  GOD_TIMEOUT = 300 # 5 minutes for God's Claude Code analysis (was 10min)
58
+ GOD_SPACE_ID = "tao-shen/HuggingClaw-God" # God improves itself (pushes to own repo)
59
 
60
  # ── A2A Health Monitoring ─────────────────────────────────────────────────────
61
  # Track consecutive failures and last restart time for Adam/Eve
 
959
 
960
 
961
  def action_claude_code_god(task):
962
+ """Run Claude Code to improve conversation-loop.py on God's own repo."""
963
  global _god_push_count
964
+ repo_url = f"https://user:{HF_TOKEN}@huggingface.co/spaces/{GOD_SPACE_ID}"
965
 
966
  if not _reset_workspace(GOD_WORK_DIR, repo_url):
967
  return "Failed to prepare God workspace."