
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@trigguard/agent-sdk
Advanced tools
Canonical TrigGuard agent SDK — authorize PERMIT/DENY/SILENCE/ESCALATE via POST /v1/authorize. Wraps @trigguard/execution-sdk.
Canonical TrigGuard agent integration layer.
Wraps @trigguard/execution-sdk — all authority decisions come from production POST /execute. No duplicate policy logic. No parallel authority systems.
import { createTrigGuardAgent } from "@trigguard/agent-sdk";
const trigguard = createTrigGuardAgent({
gatewayUrl: process.env.TRIGGUARD_GATEWAY_URL ?? "https://api.trigguardai.com",
apiKey: process.env.TRIGGUARD_API_KEY,
organizationId: process.env.TRIGGUARD_ORG_ID,
defaultActorId: "my-agent",
});
const decision = await trigguard.authorize({
surface: "deploy.release",
context: { repository: "TrigGuard-AI/example", environment: "staging" },
});
if (decision.permit()) {
await runProtectedAction();
} else if (decision.deny()) {
stop("Authority denied");
} else if (decision.silence()) {
await requestHumanReview();
}
const verified = await decision.verifyOffline();
console.log(decision.executionId, decision.label(), verified.ok);
Agent intent
↓
trigguard.authorize({ surface, context })
↓
POST /execute (via @trigguard/execution-sdk)
↓
PERMIT | DENY | SILENCE + signed receipt
↓
AgentDecision.permit() | deny() | silence()
↓
Optional: verifyOffline() or verifyRemote()
| Package | Use when |
|---|---|
@trigguard/agent-sdk | Building agents (Cursor, Claude Code, MCP hosts, custom bots) |
@trigguard/execution-sdk | CI pipelines, low-level HTTP control, withExecute fail-closed |
Agent SDK adds typed AgentDecision, receipt-first decision extraction, and verify helpers.
examples/cursor-governed-agent — Cursor-style tool governance (mock actions)examples/claude-code-governed-agent — Claude Code-style repo mutations (mock actions)See docs/integrations/FIRST_DESIGN_PARTNER_GUIDE.md.
Production MCP server: @trigguard/mcp-server — stdio transport, tools authorize_action, verify_receipt, get_surface, get_policy.
docs/adoption/MCP_CURSOR_QUICKSTART.mddocs/adoption/MCP_TOOL_REFERENCE.mddocs/architecture/TRIGGUARD_MCP_ARCHITECTURE.mdMCP calls this SDK internally — do not duplicate authority logic in MCP handlers.
/decide rail (receipt-less)FAQs
Canonical TrigGuard agent SDK — authorize PERMIT/DENY/SILENCE/ESCALATE via POST /v1/authorize. Wraps @trigguard/execution-sdk.
The npm package @trigguard/agent-sdk receives a total of 262 weekly downloads. As such, @trigguard/agent-sdk popularity was classified as not popular.
We found that @trigguard/agent-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.