Spaces:
Running
Running
refactor: God pushes to own repo, not Home
Browse filesGod 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>
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 |
-
|
| 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
|
| 963 |
global _god_push_count
|
| 964 |
-
repo_url = f"https://user:{HF_TOKEN}@huggingface.co/spaces/{
|
| 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."
|