ctx-loop

Generates an autonomous loop script to orchestrate iterative AI tasks.

74|14|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/ActiveMemory/ctx --skill ctx-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ctx-loop
Source: https://github.com/ActiveMemory/ctx/tree/main/internal/tpl/claude/skills/ctx-loop
Command: npx skills add https://github.com/ActiveMemory/ctx --skill ctx-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates a ready-to-use autonomous loop shell script that coordinates iterative AI tasks to run unattended within a project.

Core Features & Use Cases

  • Automates the creation of a loop script (loop.sh) that orchestrates prompts, tools, and iterations.
  • Supports configurable options such as --tool, --prompt, --max-iterations, --completion, and --output with clear safety checks.
  • Validates prerequisites (PROMPT.md presence and .context directory) and reports generated script paths for easy execution.

Quick Start

Run the ctx loop command to generate the loop script for your project in one step.

Frequently Asked Questions about ctx-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative AI tasks to run unattended in a project?

To automate iterative AI tasks, you can generate an autonomous loop script that orchestrates prompts, tools, and iterations. This creates a ready-to-use shell script that coordinates unattended AI development for your project.

What is an autonomous loop script and how does it coordinate AI workflows?

An autonomous loop script is a generated shell script that coordinates iterative AI tasks. It orchestrates prompts, tools, iterations, and outputs to run unattended, applying configurable options like max-iterations and completion checks.

Do I need a PROMPT.md file to generate an autonomous loop script?

Yes, generating an autonomous loop script requires a PROMPT.md file and a .context directory. The script creation enforces these prerequisites and reports an error if they are missing, ensuring safe unattended execution.

How do I configure max iterations and output paths for an AI loop script?

You configure max iterations and output paths using options like --max-iterations, --output, --tool, and --completion when generating the loop script. These settings define the execution boundaries and results storage.

What happens after I generate the loop.sh script?

After generating the loop script, the system makes it executable and returns the script path with basic run instructions. You can then execute this shell script to start your unattended iterative AI tasks.

Can I specify which AI tool the autonomous loop uses for unattended development?

Yes, you can specify the AI tool by applying the --tool option when generating the loop script. This allows the autonomous loop to orchestrate iterative tasks using your designated tool.