diff --git a/org-templates/molecule-dev/org.yaml b/org-templates/molecule-dev/org.yaml index 9e938ef3..040d48c4 100644 --- a/org-templates/molecule-dev/org.yaml +++ b/org-templates/molecule-dev/org.yaml @@ -16,7 +16,12 @@ defaults: # be ready yet. Keep it local: clone, read, memorize. Wait for tasks. initial_prompt: | You just started. Set up your environment silently — do NOT contact other agents yet. - 1. Clone the repo: git clone https://github.com/${GITHUB_REPO}.git /workspace/repo 2>/dev/null || (cd /workspace/repo && git pull) + 1. Clone the repo (authenticated when GITHUB_TOKEN is available, anonymous otherwise): + if [ -n "$GITHUB_TOKEN" ]; then + git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git" /workspace/repo 2>/dev/null || (cd /workspace/repo && git pull) + else + git clone "https://github.com/${GITHUB_REPO}.git" /workspace/repo 2>/dev/null || (cd /workspace/repo && git pull) + fi 2. Set up git hooks: cd /workspace/repo && git config core.hooksPath .githooks 3. Read /workspace/repo/CLAUDE.md to understand the project 4. Read your system prompt at /configs/system-prompt.md to understand your role