AgentLoom

作者 linora-u已验证

Simple, flexible workflow orchestration for multi-agent AI apps, with YAML configuration, runtime safety, observability, and resume support.

100
Stars
11
Forks
Python
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/linora-u/AgentLoom

快速入门

使用 AgentLoom 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

English | 简体中文

AgentLoom

Build multi-agent applications from YAML. Operate them from an evidence-aware terminal Studio.

Typed Workers, permissioned edits, resumable Runs, explicit Goal budgets, and review-gated memory share one runtime truth.

tests python >=3.12 version 1.0.1

AgentLoom Application Studio running in a real terminal

Real reduced-motion terminal session using the current Chinese UI. The Studio indexes Applications, Skills, validation state, Runs, and commands from the project.

AgentLoom treats a multi-agent system as an Application with an execution contract. YAML defines the Supervisor, typed Workers, models, tools, Skills, Hooks, permissions, and runtime policy. Application Studio can change that contract, show the Diff, request permission for side effects, run it, read structured evidence, and continue repairing failures.

Why AgentLoom

Workers become typed tools

A Worker declares agent_function_schema; the runtime turns it into a validated callable tool for its Supervisor. Workers can use different models and tools, run concurrently, and expose stable input/output contracts instead of relying on prompt conventions.

Runs produce evidence, not terminal guesses

Every allocated Run receives an immutable run_id, manifest, and versioned lifecycle events, with bounded file logs when enabled plus audit records and artifacts. A logical task_id survives resume. The TUI, CLI JSON/JSONL, and Python API read the same canonical state. Preflight rejection occurs before a Run or its storage is allocated.

Long-running work has an explicit owner

Goal Mode keeps one root Supervisor objective active across continuation segments and Worker delegation. Only that Supervisor can mark the Goal complete with evidence. An optional token budget covers the whole Agent tree. When checkpointing is enabled, budget_limited preserves recovery state for a later resume.

Memory has review boundaries

Self-Learning v6 stores searchable history and evidence-gated memory separately. Fact and experience candidates pass evidence gates and the configured scope-approval policy; promotion to Project scope is always initiated by a person.

Extensions do not silently gain authority

Skills are model-context packages loaded on demand. Hooks are separately and explicitly authorized runtime code. Built-in tool metadata is discoverable without importing implementations, while actual tool, file, Shell, and MCP access remains governed by Agent configuration and permissions.

Quick start

The source installer builds the TUI and prepares a locked Python environment for the current checkout:

git clone https://github.com/linora-u/AgentLoom.git
cd AgentLoom
./install

It currently supports macOS and Linux shells and requires Git and Bash. It installs missing uv and Bun through their official installers, then places the compatible unit under ~/.agentloom. Open a new terminal and verify it:

agentloom --version
agentloom --snapshot

Create the local model configuration:

cp config/llm.example.yaml config/llm.yaml
model:
  default_model_type: powerful
  powerful:
    model: "openai/<model-id>"
    api_key: "<api-key>"
    base_url: "https://<openai-compatible-endpoint>"  # optional for OpenAI
    tool_choice: "auto"
  fast:
    model: "openai/<fast-model-id>"
    api_key: "<api-key>"
    base_url: "https://<openai-compatible-endpoint>"
    tool_choice: "auto"

config/llm.yaml is ignored by Git and is the only model catalog used by both Studio and Application Agents. Start the Studio from any AgentLoom project:

agentloom

# Or inspect another checkout
agentloom --project /path/to/project

Try a request with explicit roles and acceptance criteria:

Create an Application named release_review.
Use one Supervisor and two Workers for API review and test review.
Choose model types from config/llm.yaml.
Validate it and ask before the first real Run.

Studio edits the selected Application directly and shows each Diff. Its loop is:

inspect → edit → validate → request Run permission → execute → inspect evidence → repair

If execution is not approved, Studio reports “configuration validated, not run.” It does not turn static validation into a success claim.

Application Studio

The TUI is an Applications-first control plane, not a thin log viewer.

  • Application workspace: browse Effective Config, Supervisor/Worker topology, source attribution, models, Tools, Skills, Hooks, MCP, permissions, and validation.
  • Agent Loop: inspect the project, modify the selected Application, display Tool and Diff cards, ask business questions, run smoke checks, and diagnose failed Runs.
  • Permission boundary: Application Only permits project reads and writes inside the selected Application. Shell, global files, other Applications, and unknown new paths require a visible decision. Full Access is an explicit Session toggle and resets on exit.
  • Session continuity: switching Applications keeps Studio conversation memory; /new starts fresh and /compact compresses the active context while preserving completed file changes and durable history.
  • Revision safety: each Run pins its Application content hash. Later edits change the Working Revision but never hot-switch an active Running Revision.
  • Run diagnostics: summaries expose terminal state, Goal progress, token usage, completion evidence, and recovery actions without dumping raw events.
ActionKey / command
Send a Studio messageEnter
Search Applications, Agents, Skills, Runs, models, permissions, and commandsCtrl+X
Start a fresh conversation/new
Compact the current conversation/compact
Select a Studio model/models
Refresh the project index/refresh
Diagnose the selected failed Runa
Close detail, reject a decision, or interrupt the Agent LoopEsc

See Application Studio for screen behavior, architecture, updates, schedules, and contributor commands.

Define an Application

An Application keeps its Supervisor, Workers, prompts, optional tools, and outputs together:

applications/release_review/
├── workflows/
│   ├── release_review_agent.yaml
│   └── worker_agents/
│       ├── api_reviewer.yaml
│       └── test_reviewer.yaml
├── config/system.yaml          # optional Application overlay
├── skills/                     # optional private Skills
└── sysprompt/                  # optional prompt templates

A Supervisor references Worker definitions:

name: "release_review"
description: "Review an API release and its test evidence."
model_type: "powerful"
tool_call_type: "tool_call"

worker_agents:
  - path: "applications/release_review/workflows/worker_agents/api_reviewer.yaml"
  - path: "applications/release_review/workflows/worker_agents/test_reviewer.yaml"

workflow: |
  Ask both Workers for evidence, reconcile conflicts, and return one release decision.

tools: []
max_steps: 12
goal:
  enabled: true
  token_budget: 120000

Each Worker exposes the contract seen by its Supervisor:

name: "api_reviewer"
description: "Review API compatibility risks."
model_type: "fast"
tool_call_type: "tool_call"

agent_function_schema:
  description: "Review one release request."
  inputs:
    request:
      description: "Release scope and API diff."
      required: true
  output:
    description: "Evidence-backed compatibility findings."

workflow: |
  Review the request, cite evidence, and return prioritized findings.

tools: []
worker_agents: []
max_steps: 8

Run the Supervisor directly:

uv run loom run applications/release_review/workflows/release_review_agent.yaml

Or ask a Skill-aware coding assistant to read agentloom-framework-skill/SKILL.md, create the files, validate them, run the Application, and inspect .agentloom evidence.

Runtime model

AgentLoom runtime architecture

The Python runtime owns model routing, Worker-tool generation, concurrency, permissions, Hooks, checkpoints, and evidence. Deterministic preprocessing, validation, caching, and output writing remain ordinary Python code.

Runtime storage separates attempts from recoverable tasks:

.agentloom/
├── runs/<application_id>/<run_id>/
│   ├── manifest.json
│   ├── logs/runtime.log
│   ├── audit/
│   └── artifacts/
├── checkpoints/<application_id>/<task_id>/
│   ├── checkpoint.json
│   ├── workers/<worker>/calls/<index>/checkpoint.json
│   ├── todos.json
│   ├── goal.json
│   ├── context_store/
│   └── file-history/
└── workspaces/agents/<application_id>/<agent_path>/
    ├── insights.md
    └── tasks/<task_id>/{context.md,trace.md}

Goal, Todo, context-store, file-history, and Recall files appear only when the corresponding feature is configured or used.

Run and integrate

Run the included code-review Application without creating a new Application:

uv run loom run applications/ai_quality_analysis/workflows/code_review_agent.yaml

Use machine-readable lifecycle events when another program owns execution:

uv run loom run <workflow> --output-format json
uv run loom run <workflow> --output-format jsonl

For programmatic execution, execute_app() returns an ApplicationRunResult with output, timestamps, structured Goal state, and a RunInfo receipt:

from src.runner import execute_app

result = execute_app("applications/release_review/workflows/release_review_agent.yaml")
print(result.output, result.run.run_id)

Post-allocation failures carry the same receipt; preflight rejection emits run.rejected before storage exists. See Structured Run API.

Durable schedules use the same Application contract and Run lifecycle. Their automatic firing is a separate foreground service, so closing the TUI does not leave a hidden daemon:

agentloom schedules --project /path/to/project serve

Example Applications

ApplicationDemonstrates
ai_quality_analysisTwelve specialized Workers coordinated into staged code review
unit_test_studioStrict pytest generation with a deterministic Python entrypoint
repo_mapDeterministic preprocessing, bottom-up Agent analysis, batching, and progress persistence
codex_exec_demoLocal codex exec exposed as normal Agent tools with fixed arguments
goal_mode_validationExplicit Goal completion, budget accounting, and resumable terminal states
self_learning_smokeSession history, memory proposals, evidence, and review boundaries

Documentation

DocumentCovers
Configuration OverviewConfiguration layers, merging, and isolation
Agent ConfigurationSupervisor and Worker YAML fields
Tool CatalogLazy implementation loading, toolsets, metadata, and extension rules
SkillsDiscovery, on-demand activation, and permission boundaries
HooksExplicit authorization, events, transforms, and failure semantics
Goal ModeContinuation, completion ownership, budgets, resume, and schedules
Checkpoint and Runtime StorageRun/task identity, evidence, recovery, and retention
Self-Learning v6History, candidates, review, approval, and promotion
Structured Run APIPython receipts, typed failures, JSON, and JSONL

Development and support

# Framework
uv run pytest tests -q

# TUI
cd agentloom-tui
bun test
bun run typecheck

If AgentLoom helps your project, consider starring the repository or contributing a focused Application, fix, or validation case.

常见问题

What is AgentLoom?

AgentLoom is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by linora-u. Simple, flexible workflow orchestration for multi-agent AI apps, with YAML configuration, runtime safety, observability, and resume support. It has 100 GitHub stars.

Is AgentLoom safe to use?

Yes. AgentLoom passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install AgentLoom?

Clone the repository with "git clone https://github.com/linora-u/AgentLoom" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is AgentLoom written in?

AgentLoom is primarily written in Python. It is open-source under linora-u on GitHub, so you can review or fork the full source.

Are there alternatives to AgentLoom?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh AgentLoom against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情