Skip to content
Back to skills

Install Agent Looper

ASecurity

Install and wire @dancingteeth/agent-looper in a consumer repo — dependency, agent-loop-init, scripts, and first dogfood run. Use when adding the harness or debugging why the CLI is missing.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 20, 2026
ai-agentsgoshellbashnodedebugginggitdocumentation

Works with

  • cursor
  • terminal
  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 20, 2026

npx -y skills add dancingteeth/agent-looper --skill install-agent-looper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Install Agent Looper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Install Agent Looper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dancingteeth-install-agent-looper/badge)](https://www.skillsdirectory.com/skills/dancingteeth-install-agent-looper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: install-agent-looper
description: Install and wire @dancingteeth/agent-looper in a consumer repo — dependency, agent-loop-init, scripts, and first dogfood run. Use when adding the harness or debugging why the CLI is missing.
tags:
  - agentic_ai
  - agents
  - documentation
  - loops
---

# Install Agent Looper

This plugin does **not** ship the harness binary. Install the npm package.

## Dependency

```bash
pnpm add -D @dancingteeth/agent-looper @cursor/sdk
# optional workers / judges:
# pnpm add -D @cline/sdk
# pnpm add -D @opencode-ai/sdk opencode-ai
# pnpm add -D @earendil-works/pi-coding-agent
# pnpm add -D @openai/codex-sdk
# pnpm add -D @muse-code/sdk
```

Node **22+**. Package: `@dancingteeth/agent-looper` (GitHub: `dancingteeth/agent-looper`).

## Scaffold

```bash
pnpm exec agent-loop-init
# or, from an idea: pnpm exec agent-loop-prompt --out .cursor/loops/<task>
```

Then edit:

- `.cursor/agent-loop.repo.json` — HITL, notify, `syncCommand`, `defaultBranch`, and `defaults` (runtime/models/review). Humans: `pnpm exec agent-loop-setup` once; agents skip the TUI.
- `.cursor/loops/example-fix/` — replace with a real GOAL + verify (`loop.json` only needs `verify` plus per-loop overrides)

`agent-loop-init` also copies **check-running-loops** to `.cursor/skills/check-running-loops/` and `.agents/skills/check-running-loops/` (heartbeat script included). Re-run init after upgrading the package if those dirs are missing.

## Scripts (recommended)

```json
{
  "scripts": {
    "agent:loop": "doppler run -- agent-loop run",
    "agent:check": "doppler run -- agent-check cursor",
    "agent:init": "agent-loop-init"
  }
}
```

## Dogfood this harness repo

Build `dist/` (`pnpm build`) and run via repo scripts — see `docs/dogfood.md`.

## Confirm install

```bash
pnpm exec agent-loop --help
npm view @dancingteeth/agent-looper version
```

## Long runs from Cursor chat

### Local Agent

**You start the loop in this chat.** Do not print `pnpm agent:loop …` and tell the human to run it.

Do **not** background `agent-loop` (`block_until_ms: 0` or the IDE background button). Cursor reaps those shells at ~5 min (`aborted` / pnpm 255) while the worker is still going.

1. **This chat (default):** Shell attached, `block_until_ms` ≥ `2700000` (45m). `notify_on_output` on `^AGENT_LOOP_DONE `.
2. **Only if the human asked to walk away:** their terminal (`pnpm agent:loop …`); Telegram / HITL wake them.
3. On `AGENT_LOOP_DONE`, parse the JSON and read `runReport` / `run-report.md`.

Disable the sentinel with `--no-completion-signal` or `AGENT_LOOP_NO_COMPLETION_SIGNAL=1`.

### Cloud Agents

Cloud Shell **does not expose `notify_on_output`**, so you cannot attach that watcher even though the harness still prints `AGENT_LOOP_DONE` (before time-capped webhook/`notifyCommand`/PR comment). Prefer `notifyWebhook` / `notifyPrComment` / Telegram / HITL. After a loop, commit `.cursor/loop-exports/<slug>/` on the PR branch so meta-review can see reviews. OpenCode workers use `promptAsync` + heartbeats (0.1.10+); do not treat `layer=transport` as loop done. Meta-review: `--review-runtime opencode` when Cursor judge keys fail. Revisit in-chat wake only if Cursor adds Cloud Shell `notify_on_output`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.