# Shark Loop

> Run shark.ps1/shark.sh loop enforcer with OS-level timeout per turn

- **Type:** Skill
- **Install:** `agentstack add skill-keugenek-shark-shark-loop`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [keugenek](https://agentstack.voostack.com/s/keugenek)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [keugenek](https://github.com/keugenek)
- **Source:** https://github.com/keugenek/shark/tree/main/commands/shark-loop

## Install

```sh
agentstack add skill-keugenek-shark-shark-loop
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Shark Loop (External Enforcer)

Run the shark loop enforcer script which wraps `claude --print` with a hard OS-level timeout per turn.

## Instructions

Parse the arguments:
- The main text is the TASK_DESCRIPTION
- `--max-loops N` sets SHARK_MAX_LOOPS (default: 50)
- `--timeout S` sets SHARK_LOOP_TIMEOUT in seconds (default: 25)

On Windows (PowerShell), run:
```powershell
$env:SHARK_MAX_LOOPS = ""
$env:SHARK_LOOP_TIMEOUT = ""
& "$SKILL_DIR\..\shark.ps1" ""
```

On Linux/Mac, run:
```
SHARK_MAX_LOOPS= SHARK_LOOP_TIMEOUT= bash "$SKILL_DIR/../shark.sh" ""
```

Report the result when complete.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [keugenek](https://github.com/keugenek)
- **Source:** [keugenek/shark](https://github.com/keugenek/shark)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-keugenek-shark-shark-loop
- Seller: https://agentstack.voostack.com/s/keugenek
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
