You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add cloud execution options for long-running agent
Documents three approaches for running the agent without a local
terminal session: headless mode (simplest), Claude Agent SDK (most
flexible), and GitHub Actions (cloud, event-driven). Includes SDK
vs CLI comparison, requirements to port skills, and a concrete
GitHub Actions workflow triggered by PR comments.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/agentic-test-iteration-ideas.md
+130Lines changed: 130 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -330,3 +330,133 @@ Where notifications fire in each skill:
330
330
- Step 12: `flaky_found` — during flakiness probe
331
331
- Step 13: `iteration_done` — final summary
332
332
- Any step: `blocked` — on REAL_REGRESSION
333
+
334
+
---
335
+
336
+
## Cloud Execution: Long-Running Autonomous Agent
337
+
338
+
**Problem**: The current setup requires a local machine with an active Claude Code CLI session. Long CI polling (~2h per run) causes session timeouts, and the user must keep a terminal open.
339
+
340
+
### Option 1: Claude Code Headless Mode (simplest)
341
+
342
+
Run Claude Code non-interactively without a TTY:
343
+
344
+
```bash
345
+
claude --print --dangerously-skip-permissions \
346
+
-p "/iterate-ci-flaky pr=860 confirm-runs=5"
347
+
```
348
+
349
+
-`--print` / `-p`: non-interactive, outputs result and exits
350
+
-`--dangerously-skip-permissions`: skips all approval prompts (use only in sandboxed environments)
351
+
- Can run in `tmux`, `nohup`, GitHub Actions, or any CI runner
352
+
- Uses the same tools, skills, and CLAUDE.md as interactive mode
353
+
- Limitation: single-shot execution — runs the prompt and exits
354
+
355
+
**Deployment**: `nohup claude --print ... > output.log 2>&1 &` on any machine, or in a GitHub Actions runner.
356
+
357
+
### Option 2: Claude Agent SDK (most flexible)
358
+
359
+
The Agent SDK (`@anthropic-ai/claude-code`) is a Node.js/TypeScript library that embeds Claude Code as a programmable agent:
360
+
361
+
```typescript
362
+
import { Claude } from"@anthropic-ai/claude-code";
0 commit comments