Skip to content
Agentmart
Submit a tool

agent-loop-guardrails

Wrap agent loops in deterministic gates, scoped permissions and stop rules.

Skill by Sahil-SS9

IndexedMIT★ 62
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sahil-ss9-agent-loop-guardrails

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Wrap agent loops in deterministic gates, scoped permissions and stop rules.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agent-loop-guardrails

What's inside

Skill name
agent-loop-guardrails
Description
Wrap agent loops in deterministic gates, scoped permissions and stop rules.
License
MIT
Instructions
24 lines in SKILL.md · view on GitHub

Files (3)

  • LICENSE
  • NOTICE
  • SKILL.md

SKILL.md (first lines)

# Agent loop guardrails

## When to use
Any agent that takes actions, calls tools, or loops autonomously.

## Procedure
1. Scope permissions like a privileged tool: least privilege, sandbox where possible, approval gates on irreversible actions. Prompt injection is assumed, not hypothetical.
2. Deterministic feedback gates around nondeterministic behaviour: compilers, tests, schema validators, lint checks — failures feed back for self-correction before human review.
3. Loop bounds: turn budgets, cost budgets, and a hard stop list (what the agent may never do).
4. State design: what the agent must remember, what is transient, what is external — stale memory is a failure mode to design out.
5. Observability: every agent run logs inputs, actions, outputs, costs. An unobservable agent is unaccountable.

## Decision rules
- Autonomy is granted per-action-class, never wholesale; irreversible + unreviewed is never allowed.
- A capability without a stop rule does not ship.
- Success once proves nothing; require repeated eval passes before trusting a loop.

## Pitfalls
- Agent permissions granted for convenience and left standing.
- Turn budgets absent, so loops run away.

## Done
A scoped, gated, bounded, observable agent loop with designed failure modes.

From Sahil-SS9/agent-personas, MIT.

More from Sahil-SS9/agent-personas

Signals

Stars
62
Forks
4
Open issues
0
Last commit (this folder)
Sep 23, 2026 (1 month ago)
Last release
Oct 10, 2026 (18 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Sahil-SS9

Cite this page

agent-loop-guardrails skill. Agent Mart. https://agentmart.dev/skills/sahil-ss9-agent-loop-guardrails (last updated 2026-10-24)