Skip to content

Add agent tool execution guardrails skill and prompt - #99

Merged
rmkr-dev merged 2 commits into
mainfrom
add-llm-agent-tool-execution-guardrails
Nov 16, 2026
Merged

rmkr-dev merged 2 commits into
mainfrom
add-llm-agent-tool-execution-guardrails

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Adds one Skillbook entry and one Promptbook entry for tool-calling agents (Spring AI, LangChain4j, MCP).

Skill: llm-agent-tool-execution-guardrails

  • One tool registry with risk classes and closed argument schemas; narrow tools instead of shell, SQL, or URL tools; per-user tool filtering
  • Tools run as the user; tenant and identity come from context (e.g. Spring AI ToolContext), never from model arguments
  • Irreversible writes become pending actions and run only after a single-use approval bound to the exact argument hash
  • Idempotency keys on writes, no blind retries, dry-run mode
  • MCP annotations treated as hints; remote tool definitions pinned by hash
  • Caps on turns, tool calls, time, and tokens; tests for authz, approval tampering and replay, injection, and caps

Prompt: gate-llm-agent-tool-calls

  • Step-by-step task prompt that inventories tools and applies the registry, authorization, approval, idempotency, limits, and tests

Labeled for Copilot, Claude Code, and Codex with file locations for each. node scripts/site-check.mjs passes locally (catalogs 61/61).

@rmkr-dev
rmkr-dev merged commit 3c99666 into main Nov 16, 2026
1 check passed
@rmkr-dev
rmkr-dev deleted the add-llm-agent-tool-execution-guardrails branch November 16, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant