autonomous
<div align="center">
Agent definition
autonomous.md<div align="center">
[π Home](../README.md) βΊ [Autonomous](./) βΊ **π Autonomous Agent**
[β Autonomous](./) ββββββββββββββββββββββββββββββββββββ [Multi-Window Context β](multi-window.md)
</div>
---
π Autonomous Agent
> **TL;DR:** Long-running agents that independently plan, execute, and adapt based on environment feedback. Maximum autonomy, but requires guardrails.
---
Diagram
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart TB
classDef user fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#ffffff
classDef data fill:#06b6d4,stroke:#0891b2,stroke-width:2px,color:#ffffff
classDef main fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
classDef state fill:#10b981,stroke:#059669,stroke-width:2px,color:#ffffff
classDef wizard fill:#14b8a6,stroke:#0d9488,stroke-width:2px,color:#ffffff
GOAL["πββοΈπ₯ Goal"]:::user --> PLAN["ππ Plan"]:::main
PLAN --> ACT["πβ‘ Act"]:::state
ACT --> ENV["π Environment"]:::data
ENV --> OBSERVE["ππ Observe"]:::data
OBSERVE --> REFLECT{"ππ Reflect"}:::wizard
REFLECT -->|"ππ Adjust"| PLAN
REFLECT -->|"πβΆοΈ Continue"| ACT
REFLECT -->|"πβ
Done"| DONE["πββοΈπ€ Result"]:::user---
The Agent Loop
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
stateDiagram-v2
[*] --> Planning: πββοΈπ₯ Receive goal
Planning --> Executing: ππ Create plan
Executing --> Observing: πβ‘ Take action
Observing --> Reflecting: ππ Get feedback
Reflecting --> Planning: ππ Adjust
Reflecting --> Executing: πβΆοΈ Continue
Reflecting --> [*]: πββοΈπ€ Goal achieved---
Key Insight
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π AUTONOMOUS AGENT: What Makes It Different β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Agents are emerging in production as LLMs mature in key capabilities: β
β β
β β
Understanding complex inputs β
β β
Engaging in reasoning and planning β
β β
Using tools reliably β
β β
Recovering from errors β
β β
β During execution, it's CRUCIAL for agents to gain "ground truth" β
β from the environment at each step (tool results, code execution) β
β to assess their progress. β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
---
Characteristics
| Characteristic | Description | |----------------|-------------| | **Goal-directed** | Works toward specified objective | | **Adaptive** | Adjusts based on environment feedback | | **Self-directed** | Decides next actions independently | | **Persistent** | Continues until goal achieved or stopping condition |
---
When to Use Agents
Agents can be used for **open-ended problems** where:
- It's difficult or impossible to predict the required number of steps
- You can't hardcode a fixed path
- The LLM will potentially operate for many turns
- You have some level of trust in its decision-making
| Domain | Example | Why Agent? | |--------|---------|------------| | **Coding** | SWE-bench tasks, multi-file edits | Can't predict which files need changes | | **Computer Use** | Claude uses a computer to accomplish tasks | Open-ended interaction | | **Research** | Complex investigations with unknown scope | Adaptive information gathering | | **Bug Investigation** | Tracing issues through codebase | Unknown path to root cause |
---
Example: Bug Investigation
Goal: "Fix the login timeout bug"
Agent:
1. PLAN: Need to find where timeout is set
2. ACT: Search codebase for "timeout" in auth
3. OBSERVE: Found 3 locations
4. REFLECT: Most likely in session config
5. ACT: Read session config file
6. OBSERVE: Default timeout is 30 minutes
7. REFLECT: User reported issue after 5 minutes
8. ACT: Check if there's an override
9. ...continues until resolved...
---
When NOT to Use Agents
- Predictable tasks with known steps (use Workflows)
- No rollback capability
- Tight time constraints
- Untrusted environments
---
Risk Management
**What a fence looks like in practice** β a declared permits boundary audited before the run (default-deny: everything not listed is refused):

*One executable take on this section's advice: the [`agent:` verb](https://github.com/supernovae-st/nika/blob/main/examples/23-code-review.nika.yaml) carries its own budget and a default-deny tool whitelist β autonomy inside a fence.*
> **Warning:** The autonomous nature of agents means higher costs, and the potential for compounding errors. We recommend extensive testing in sandboxed environments, along with appropriate guardrails.
---
Essential Guardrails
| Guardrail | Purpose | Implementation | |-----------|---------|----------------| | **β±οΈ Iteration Limit** | Prevent infinite loops | Max turns, timeout | | **πββοΈ Human Checkpoints** | Maintain oversight | AskUserQuestion at key decisions | | **π Action Scope** | Limit blast radius | Tool restrictions, sandboxing | | **β©οΈ Rollback** | Enable recovery | Git commits, state snapshots | | **π Logging** | Audit trail | Record all agent actions |
Read more
<div align="center">
[π Home](../README.md) βΊ [Autonomous](./) βΊ **π Autonomous Agent**
[β Autonomous](./) ββββββββββββββββββββββββββββββββββββ [Multi-Window Context β](multi-window.md)
</div>
---
π Autonomous Agent
> **TL;DR:** Long-running agents that independently plan, execute, and adapt based on environment feedback. Maximum autonomy, but requires guardrails.
---
Diagram
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart TB
classDef user fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#ffffff
classDef data fill:#06b6d4,stroke:#0891b2,stroke-width:2px,color:#ffffff
classDef main fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
classDef state fill:#10b981,stroke:#059669,stroke-width:2px,color:#ffffff
classDef wizard fill:#14b8a6,stroke:#0d9488,stroke-width:2px,color:#ffffff
GOAL["πββοΈπ₯ Goal"]:::user --> PLAN["ππ Plan"]:::main
PLAN --> ACT["πβ‘ Act"]:::state
ACT --> ENV["π Environment"]:::data
ENV --> OBSERVE["ππ Observe"]:::data
OBSERVE --> REFLECT{"ππ Reflect"}:::wizard
REFLECT -->|"ππ Adjust"| PLAN
REFLECT -->|"πβΆοΈ Continue"| ACT
REFLECT -->|"πβ
Done"| DONE["πββοΈπ€ Result"]:::user---
The Agent Loop
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
stateDiagram-v2
[*] --> Planning: πββοΈπ₯ Receive goal
Planning --> Executing: ππ Create plan
Executing --> Observing: πβ‘ Take action
Observing --> Reflecting: ππ Get feedback
Reflecting --> Planning: ππ Adjust
Reflecting --> Executing: πβΆοΈ Continue
Reflecting --> [*]: πββοΈπ€ Goal achieved---
Key Insight
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π AUTONOMOUS AGENT: What Makes It Different β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β β β Agents are emerging in production as LLMs mature in key capabilities: β β β β β Understanding complex inputs β β β Engaging in reasoning and planning β β β Using tools reliably β β β Recovering from errors β β β β During execution, it's CRUCIAL for agents to gain "ground truth" β β from the environment at each step (tool results, code execution) β β to assess their progress. β β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
---
Characteristics
| Characteristic | Description | |----------------|-------------| | **Goal-directed** | Works toward specified objective | | **Adaptive** | Adjusts based on environment feedback | | **Self-directed** | Decides next actions independently | | **Persistent** | Continues until goal achieved or stopping condition |
---
When to Use Agents
Agents can be used for **open-ended problems** where:
- It's difficult or impossible to predict the required number of steps
- You can't hardcode a fixed path
- The LLM will potentially operate for many turns
- You have some level of trust in its decision-making
| Domain | Example | Why Agent? | |--------|---------|------------| | **Coding** | SWE-bench tasks, multi-file edits | Can't predict which files need changes | | **Computer Use** | Claude uses a computer to accomplish tasks | Open-ended interaction | | **Research** | Complex investigations with unknown scope | Adaptive information gathering | | **Bug Investigation** | Tracing issues through codebase | Unknown path to root cause |
---
Example: Bug Investigation
Goal: "Fix the login timeout bug" Agent: 1. PLAN: Need to find where timeout is set 2. ACT: Search codebase for "timeout" in auth 3. OBSERVE: Found 3 locations 4. REFLECT: Most likely in session config 5. ACT: Read session config file 6. OBSERVE: Default timeout is 30 minutes 7. REFLECT: User reported issue after 5 minutes 8. ACT: Check if there's an override 9. ...continues until resolved...
---
When NOT to Use Agents
- Predictable tasks with known steps (use Workflows)
- No rollback capability
- Tight time constraints
- Untrusted environments
---
Risk Management
**What a fence looks like in practice** β a declared permits boundary audited before the run (default-deny: everything not listed is refused):

*One executable take on this section's advice: the [`agent:` verb](https://github.com/supernovae-st/nika/blob/main/examples/23-code-review.nika.yaml) carries its own budget and a default-deny tool whitelist β autonomy inside a fence.*
> **Warning:** The autonomous nature of agents means higher costs, and the potential for compounding errors. We recommend extensive testing in sandboxed environments, along with appropriate guardrails.
---
Essential Guardrails
| Guardrail | Purpose | Implementation | |-----------|---------|----------------| | **β±οΈ Iteration Limit** | Prevent infinite loops | Max turns, timeout | | **πββοΈ Human Checkpoints** | Maintain oversight | AskUserQuestion at key decisions | | **π Action Scope** | Limit blast radius | Tool restrictions, sandboxing | | **β©οΈ Rollback** | Enable recovery | Git commits, state snapshots | | **π Logging** | Audit trail | Record all agent actions |
Agentic systems explained with chickens β because AI orchestration doesn't have to be scary Main Agent spawns Subagents like a hen with her chicks ππͺΊπ¦
Other agents on agentic-ai-systems.
More agents from other plugins.
codemod-runner
Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2β¦
MIGRATION_SUMMARY
Complete migration plan for converting command-based system to intelligent agent-based system
task-checker
Use this agent to verify that tasks marked as 'review' have been properly implemented according to their specifications. Thisβ¦
Questions about autonomous.
- Which coding agents can use autonomous?
- autonomous installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.

