autonomous-agent-patterns
Design patterns for building autonomous coding agents. Covers tool integration, permission systems, browser automation, and human-in-the-loop workflows. Use when building AI agents, designing tool APIs, implementing permission systems, or creating autonomous coding assistants.
Author
Category
AI Skill DevelopmentInstall
Hot:7
Download and extract to your skills directory
Copy command and send to OpenClaw for auto-install:
Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-autonomous-agent-patterns&locale=en&source=copy
Autonomous Agent Patterns
Overview of Capabilities
Autonomous Agent Patterns is a set of design patterns for building autonomous coding agents, covering core practices such as tool integration, permission systems, browser automation, and human–computer collaboration workflows.
Applicable Scenarios
When you need to create AI agents capable of autonomously completing complex programming tasks, this set of patterns provides complete guidance from architecture design to tool integration. It includes key patterns such as agent loop design, multi-model architecture selection, and context management.
When developing tool interfaces for LLM applications, refer to the tool design patterns, precise editing tool patterns, and MCP (Model Context Protocol) integration patterns to ensure tools are both efficient and secure.
When you need to add safety controls to AI agents, this set of patterns provides tiered permission design, approval UI patterns, and sandbox execution patterns to help balance autonomy and safety.
Core Features
Provides the Think-Decide-Act-Observe agent loop pattern and multi-model architecture patterns, supporting the selection of appropriate models for different tasks (lightweight models for quick decisions, powerful models for complex reasoning).
Covers foundational tool patterns such as file operations, code understanding, terminal execution, and browser automation, including precise file-editing tool design and conflict detection mechanisms.
Defines a four-level permission system (auto-approve, session-level approval, per-action approval, forbid execution), and provides sandbox execution, risk assessment, and approval UI design patterns.
Supports Playwright/Puppeteer-based browser tool patterns, and visual agent patterns that use vision models to understand web pages and locate elements.
Provides context injection patterns like @file, @folder, @url, as well as checkpoint save-and-restore mechanisms for long-running tasks.
Supports dynamic discovery and use of MCP server tools, enabling "add a tool..." hot-loading capability.
Frequently Asked Questions
What are Autonomous Agent Patterns?
This is a set of design patterns distilled from projects such as Cline and OpenAI Codex, intended to guide developers in building AI agents that can autonomously write code. It covers the full development guide from architecture design to tool integration, and from permission control to human–computer collaboration.
How should I design a permission system for AI agents?
It is recommended to adopt a four-level permission model: low-risk operations (e.g., reading files) can be auto-approved; medium-risk operations (e.g., writing files) are approved once per session; high-risk operations (e.g., executing commands) require approval each time; dangerous operations (e.g., formatting a disk) are always forbidden. Combine this with a risk assessment function to dynamically determine an operation’s risk level.
What is MCP (Model Context Protocol)?
MCP is a standard protocol that allows AI agents to dynamically discover and use external tools. Through the MCP integration pattern, an agent can connect to various MCP servers, retrieve lists of available tools, and dynamically load new tools at runtime, achieving an "add a tool" extensibility.