---
version: 4.1.0-fractal
name: autonomous-agent-patterns-ab987841a134
description: "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."
---

# 🕹️ Autonomous Agent Patterns

> Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI Codex](https://github.com/openai/codex).

## When to Use This Skill

Use this skill when:

- Building autonomous AI agents
- Designing tool/function calling APIs
- Implementing permission and approval systems
- Creating browser automation for agents
- Designing human-in-the-loop workflows

---

## 1. Core Agent Architecture

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [1.1 Agent Loop](./sub-skills/11-agent-loop.md)
### 2. [1.2 Multi-Model Architecture](./sub-skills/12-multi-model-architecture.md)
### 3. [2.1 Tool Schema](./sub-skills/21-tool-schema.md)
### 4. [2.2 Essential Agent Tools](./sub-skills/22-essential-agent-tools.md)
### 5. [2.3 Edit Tool Design](./sub-skills/23-edit-tool-design.md)
### 6. [3.1 Permission Levels](./sub-skills/31-permission-levels.md)
### 7. [3.2 Approval UI Pattern](./sub-skills/32-approval-ui-pattern.md)
### 8. [3.3 Sandboxing](./sub-skills/33-sandboxing.md)
### 9. [4.1 Browser Tool Pattern](./sub-skills/41-browser-tool-pattern.md)
### 10. [4.2 Visual Agent Pattern](./sub-skills/42-visual-agent-pattern.md)
### 11. [5.1 Context Injection Patterns](./sub-skills/51-context-injection-patterns.md)
### 12. [5.2 Checkpoint/Resume](./sub-skills/52-checkpointresume.md)
### 13. [6.1 MCP Server Pattern](./sub-skills/61-mcp-server-pattern.md)
### 14. [Agent Design](./sub-skills/agent-design.md)
### 15. [Safety](./sub-skills/safety.md)
### 16. [UX](./sub-skills/ux.md)


---
Source attribution: Dokhacgiakhoa
Original project: https://github.com/Dokhacgiakhoa/antigravity-ide/blob/c4a059bbf7a8d6b2162071f0fbfe74053faa6d20/.agent/skills/autonomous-agent-patterns/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Dokhacgiakhoa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================
UNIVERSAL ACKNOWLEDGEMENTS & REFERENCES
================================================================================

This project is authored and maintained by Dokhacgiakhoa.
Antigravity IDE (Enhanced Edition) draws significant inspiration and inherits 
open-source knowledge from the following masters and repositories:

1. Antigravity Kit (Core Reference)
   - Original Author: vudovn
   - Link: https://github.com/vudovn/antigravity-kit

2. Antigravity Awesome Skills (Skill Metadata Reference)
   - Original Author: sickn33
   - Link: https://github.com/sickn33/antigravity-awesome-skills

3. UI/UX Pro Max (Design Philosophy Reference)
   - Original Author: sickn33
   - Link: https://github.com/sickn33/ui-ux-pro-max

4. Model Context Protocol (MCP) standards
   - Authors: Anthropic & Ecosystem Contributors
   - Link: https://modelcontextprotocol.io/

5. High-Performance Web Standards
   - Inspiration: Vercel Engineering & Anthony Fu (antfu)

6. Strategic Knowledge Extraction
   - Inspiration: Fabric Patterns (danielmiessler)

*Note: All trademarks and copyrights belong to their respective owners. 
The references above reflect research-level inspiration and antecedent 
contributions. These parties are not involved in the management of this repository.*



# Mega AI Hub resource metadata

Creator / publisher: Dokhacgiakhoa
Original project: https://github.com/Dokhacgiakhoa/antigravity-ide/blob/c4a059bbf7a8d6b2162071f0fbfe74053faa6d20/.agent/skills/autonomous-agent-patterns/SKILL.md
Attribution basis: Source repository record

Fields of work: Design, Development & Engineering, Product Management
Roles: Backend Developer, ML / AI Engineer, Product Manager, Technical Product Manager, UX Designer
Specialties: API, Backend
Tools: Cline
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e6ed841673e00fae3d20e5e8ffcd25a6375d1886ce16ea429bc56eccbb17c960
