/autonomous-research-loop:autonomous-research-loopfrom autonomous-research-loop
Runs Claude Code as an autonomous research agent with restart-with-state loops for long-running tasks that exceed context limits. Covers loop script, state tracking, cron auto-restart, heartbeat monitoring, backup, inflight task addition, and graceful quota handling.
Ships in autonomous-research-loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Long-running research or enumeration tasks exceed Claude Code's context window. Single sessions degrade over time with autocompact. You need autonomous operation for 12-24+ hours.
Instead of one long session, use a loop that:
RESEARCH_STATE.md)State file — Markdown checklist that agents read/write:
- [ ] pending, - [~] in progress, - [x] doneLoop script — Bundled Bash wrapper that:
claude --print; permission bypass requires an explicit environment opt-inmain/master by defaultcaffeinate to prevent sleepScheduler integration — Optional and operator-owned. If a cron entry is used,
wrap it in # BEGIN autonomous-research-loop and # END autonomous-research-loop
markers so the bundled removal script can delete only those entries.
Backup — Optional and operator-configured. Require an explicit destination, verify it is mounted, and test restoration before relying on scheduled copies.
Inflight task addition — Edit state file while loop is running. Next iteration picks up new tasks automatically.
SKILL_DIR=/path/to/autonomous-research-loop
tmux new-session -d -s research "$SKILL_DIR/scripts/research-loop.sh 0 60"
tmux attach -t research # optional: watch it work
# Detach: Ctrl-b d
The project must contain RESEARCH_STATE.md and RESEARCH_PROMPT.md. Run from
a clean, dedicated branch. Use environment variables documented by
scripts/research-loop.sh --help to change filenames or loop policy.
tmux kill-session -t research
"$SKILL_DIR/scripts/disable-crons.sh"
cat .research-heartbeattail agent-monitor.loggit log --onelinecat PROGRESS.mdtmux has-session -t research returns 0ps aux | grep "claude --print" shows active process.research-heartbeat updates every iterationgit log shows commits from the agent--max-budget-usd does NOT apply to Claude Max subscription accountsRESEARCH_LOOP_DANGEROUSLY_SKIP_PERMISSIONS=1 unless the user
explicitly authorizes unattended mutation and the prompt has concrete safety blocksscripts/research-loop.sh and scripts/disable-crons.shWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dmaynor/dmaynor-skills-marketplace --plugin autonomous-research-loop