Autonomous Loops logo

Autonomous Loops

CommunityPopular
affaan-m
autonomous-loops

自動Claude Codeループのパターンとアーキテクチャ — シンプルな順序パイプラインからRFC駆動マルチエージェントDAGシステムまで。

Overview

Publisheraffaan-m
RepositoryECC
Skill nameautonomous-loops
Stars
261.1K
Forks
39.1K
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by affaan-m on GitHub. Read the source before you install it.

Installation

Install the Autonomous Loops AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/affaan-m/ECC.git /tmp/ECC
mkdir -p .claude/skills
cp -r /tmp/ECC/docs/ja-JP/skills/autonomous-loops .claude/skills/autonomous-loops
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Autonomous Loops in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Autonomous Loops on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Autonomous Loops is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

自動ループスキル

互換性に関する注記(v1.8.0):autonomous-loopsは1つのリリースのために保持されます。 正規スキル名はcontinuous-agent-loopです。新しいループガイダンスは そこで作成される必要があります。このスキルは既存のワークフローの破断を避けるために利用可能なままです。

Claude Codeをループで自動的に実行するためのパターン、アーキテクチャ、参照実装。シンプルなclaude -pパイプラインから完全なRFC駆動マルチエージェントDAGオーケストレーションまですべてをカバーします。

使用時期

  • 人間の介入なしで実行される自動化開発ワークフローを設定
  • 問題に対して正しいループアーキテクチャを選択(シンプル対複雑)
  • CI/CDスタイルの継続的開発パイプラインを構築
  • マージ調整を備えた平行エージェントを実行
  • ループ反復全体のコンテキスト永続性を実装
  • 品質ゲートとクリーンアップパスを自動化ワークフローに追加

ループパターンスペクトラム

最も単純なものから最も洗練されたものまで:

PatternComplexityBest For
順序パイプライン日次開発ステップ、スクリプト化されたワークフロー
NanoClaw REPLインタラクティブな永続的なセッション
無限エージェントループ平行コンテンツ生成、仕様駆動作業
継続的なClaude PRループCIゲートを備えた複数日の反復的プロジェクト
De-Sloppifyパターンアドオン任意の実装ステップ後の品質クリーンアップ
Ralphinho / RFC駆動DAG大規模機能、マージキューを備えた複数ユニット平行作業

1. 順序パイプライン(claude -p

**最も単純なループ。**日次開発を非対話的なclaude -p呼び出しの順序に分割します。各呼び出しは、明確なプロンプトを持つ焦点を絞ったステップです。

コア洞察

このようなループを理解できない場合、対話型モードでもLLMをコード修正に駆動することさえできないことを意味します。

claude -pフラグはClaude Codeを非対話的にプロンプト付きで実行し、完了時に終了します。パイプラインを構築するための呼び出しをチェーンします:

bash
#!/bin/bash
# daily-dev.sh — 機能ブランチの順序パイプライン

set -e

# ステップ1:機能を実装
claude -p "docs/auth-spec.mdのスペックを読む。src/auth/にOAuth2ログインを実装します。TDDを最初にテストを書いてください。新しいドキュメントファイルを作成しないでください。"

# ステップ2:De-sloppify(クリーンアップパス)
claude -p "前回のコミットで変更されたすべてのファイルを確認します。不要なタイプテスト、過度に防御的なチェック、またはテスト言語機能を削除します(例:TypeScriptジェネリクスが機能するテスト)。実際のビジネスロジックテストを保つ。クリーンアップ後にテストスイートを実行します。"

# ステップ3:検証
claude -p "完全なビルド、lint、型チェック、テストスイートを実行します。失敗を修正します。新しい機能を追加しないでください。"

# ステップ4:コミット
claude -p "ステージングされたすべての変更の従来的なコミットを作成します。メッセージとして「feat: add OAuth2 login flow」を使用します。"

主要な設計原則

  1. 各ステップは分離されているclaude -p呼び出しごとの新鮮なコンテキストウィンドウは、ステップ間でコンテキストブリードがないことを意味します。
  2. 順序が重要である — ステップは順序を実行します。各々は前回によって残されたファイルシステム状態に基づいています。
  3. ネガティブな指示は危険 — 「テスト型システムを実行しないでください」と言わないでください。代わりに、別のクリーンアップステップを追加してください(De-Sloppifyパターンを参照)。
  4. 終了コードは伝播するset -eは失敗でパイプラインを停止します。

モデルルーティングおよび他の高度な機能

詳細についてはドキュメントを参照してください。

Frequently asked questions

What does the Autonomous Loops AI skill do?

自動Claude Codeループのパターンとアーキテクチャ — シンプルな順序パイプラインからRFC駆動マルチエージェントDAGシステムまで。

Why use Autonomous Loops on TypingMind?

Because you install it once and use it with any model. Autonomous Loops is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Autonomous Loops in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/affaan-m/ECC/tree/main/docs/ja-JP/skills/autonomous-loops. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Autonomous Loops?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Autonomous Loops?

As many as you like. As long as a model supports skills, you can use Autonomous Loops with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Autonomous Loops AI skill free?

Yes. It is published on GitHub by affaan-m under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇