Thskyshield for Agents
Your agent can only do what you said it could.
Thskyshield gives every agent run a declared boundary — which tools it may call, whether it may write, and hard limits on loop, steps and time. The check happens before the call fires.
Watch an agent hit its boundary — no signup, no key, no network
$ npx @thsky-21/thskyshield-demoAbout four seconds, on your own machine.
The integration
Five lines. Drop into any agent loop.
agent/run.ts
import { Thskyshield, ShieldKilledError } from '@thsky-21/thskyshield'
const shield = new Thskyshield({ siteId, apiKey })
const run = await shield.beginRun({
iterationLimit: 30,
loopThreshold: 5,
allowedTools: ['search', 'read_file'],
maxMutationClass: 'reversible',
})
try {
while (!done) {
const { requestId } = await run.beforeStep({
stepType: 'tool',
toolName: 'search',
mutationClass: 'read_only',
promptInput: currentPrompt,
})
await callYourTool(currentPrompt)
await run.afterStep({ requestId })
}
} catch (e) {
if (e instanceof ShieldKilledError) {
// e.reason: 'killed_scope_tool' | 'killed_scope_mutation' | 'killed_loop'
// | 'killed_iterations' | 'killed_timeout'
console.log(`Agent stopped: ${e.reason}`)
}
} finally {
await run.end()
}Works with LangGraph · CrewAI · OpenAI Agents SDK · AWS Strands · or any custom agent loop.
Kill reasons — thrown as ShieldKilledError
What gets killed.
killed_scope_toolTool not on the list.
Denied before the call fires.
killed_scope_mutationWrite too destructive.
Denied before the call fires.
killed_loopSame prompt fingerprint repeated 5×.
Loop detected and killed.
killed_timeoutRun exceeded time limit.
Killed after T seconds.
killed_iterationsIteration limit reached.
Agent stopped at step N.
Get help
Want a hand wiring this in?
- A personal audit of your first boundary, before you flip enforce on.
- 30-minute integration call — we wire it into your agent with you.
- A direct line if something doesn't behave the way the docs say it should.
Talk to us →or email akash@thskyshield.com directly
Works with LangGraph · CrewAI · OpenAI Agents SDK · AWS Strands · or any custom agent loop.