[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71360":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},71360,"superagent","superagent-ai\u002Fsuperagent","superagent-ai","Superagent protects your AI applications against prompt injections, data leaks, and harmful outputs. Embed safety directly into your app and prove compliance to your customers.","https:\u002F\u002Fsuperagent.sh",null,"TypeScript",6627,959,59,6,0,5,13,37,15,39.95,"MIT License",false,"main",true,[27,28,29,30,31,32,33],"ai","anthropic","guardrails","llm","openai","prompt-injection","security","2026-06-12 02:02:51","\u003Cp align=\"center\">\n  \u003Cimg src=\"logo.png\" width=\"80\" alt=\"Superagent\" \u002F>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Superagent SDK\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>Make your AI apps safe.\u003C\u002Fstrong>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fsuperagent.sh\">Website\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fdocs.superagent.sh\">Docs\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FspZ7MnqFT4\">Discord\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\">HuggingFace\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FY%20Combinator-Backed-orange\" alt=\"Y Combinator\" \u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fsuperagent-ai\u002Fsuperagent?style=social\" alt=\"GitHub stars\" \u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue\" alt=\"MIT License\" \u002F>\n\u003C\u002Fp>\n\n---\n\nAn open-source SDK for AI agent safety. Block prompt injections, redact PII and secrets, scan repositories for threats, and run red team scenarios against your agent.\n\n## Features\n\n### Guard\n\nDetect and block prompt injections, malicious instructions, and unsafe tool calls at runtime.\n\n**TypeScript:**\n\n```typescript\nimport { createClient } from \"safety-agent\";\n\nconst client = createClient();\n\nconst result = await client.guard({\n  input: userMessage\n});\n\nif (result.classification === \"block\") {\n  console.log(\"Blocked:\", result.violation_types);\n}\n```\n\n**Python:**\n\n```python\nfrom safety_agent import create_client\n\nclient = create_client()\n\nresult = await client.guard(input=user_message)\n\nif result.classification == \"block\":\n    print(\"Blocked:\", result.violation_types)\n```\n\n### Redact\n\nRemove PII, PHI, and secrets from text automatically.\n\n**TypeScript:**\n\n```typescript\nconst result = await client.redact({\n  input: \"My email is john@example.com and SSN is 123-45-6789\",\n  model: \"openai\u002Fgpt-4o-mini\"\n});\n\nconsole.log(result.redacted);\n\u002F\u002F \"My email is \u003CEMAIL_REDACTED> and SSN is \u003CSSN_REDACTED>\"\n```\n\n**Python:**\n\n```python\nresult = await client.redact(\n    input=\"My email is john@example.com and SSN is 123-45-6789\",\n    model=\"openai\u002Fgpt-4o-mini\"\n)\n\nprint(result.redacted)\n# \"My email is \u003CEMAIL_REDACTED> and SSN is \u003CSSN_REDACTED>\"\n```\n\n### Scan\n\nAnalyze repositories for AI agent-targeted attacks such as repo poisoning and malicious instructions.\n\n**TypeScript:**\n\n```typescript\nconst result = await client.scan({\n  repo: \"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\"\n});\n\nconsole.log(result.result);  \u002F\u002F Security report\nconsole.log(`Cost: $${result.usage.cost.toFixed(4)}`);\n```\n\n**Python:**\n\n```python\nresult = await client.scan(repo=\"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\")\n\nprint(result.result)  # Security report\nprint(f\"Cost: ${result.usage.cost:.4f}\")\n```\n\n### Test\n\nRun red team scenarios against your production agent. *(Coming soon)*\n\n```typescript\nconst result = await client.test({\n  endpoint: \"https:\u002F\u002Fyour-agent.com\u002Fchat\",\n  scenarios: [\"prompt_injection\", \"data_exfiltration\"]\n});\n\nconsole.log(result.findings);  \u002F\u002F Vulnerabilities discovered\n```\n\n## Get Started\n\nSign up at [superagent.sh](https:\u002F\u002Fsuperagent.sh) to get your API key.\n\n**TypeScript:**\n\n```bash\nnpm install safety-agent\n```\n\n**Python:**\n\n```bash\nuv add safety-agent\n```\n\n**Set your API key:**\n\n```bash\nexport SUPERAGENT_API_KEY=your-key\n```\n\n## Integration Options\n\n| Option | Description | Link |\n|--------|-------------|------|\n| **TypeScript SDK** | Embed guard, redact, and scan directly in your app | [sdk\u002Ftypescript](sdk\u002Ftypescript\u002FREADME.md) |\n| **Python SDK** | Embed guard, redact, and scan directly in Python apps | [sdk\u002Fpython](sdk\u002Fpython\u002FREADME.md) |\n| **CLI** | Command-line tool for testing and automation | [cli](cli\u002FREADME.md) |\n| **MCP Server** | Use with Claude Code and Claude Desktop | [mcp](mcp\u002FREADME.md) |\n\n## Why Superagent SDK?\n\n- **Works with any model** — OpenAI, Anthropic, Google, Groq, Bedrock, and more\n- **Open-weight models** — Run Guard on your infrastructure with 50-100ms latency\n- **Low latency** — Optimized for runtime use\n- **Open source** — MIT license with full transparency\n\n## Open-Weight Models\n\nRun Guard on your own infrastructure. No API calls, no data leaving your environment.\n\n| Model | Parameters | Use Case |\n|-------|------------|----------|\n| [superagent-guard-0.6b](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-0.6b) | 0.6B | Fast inference, edge deployment |\n| [superagent-guard-1.7b](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-1.7b) | 1.7B | Balanced speed and accuracy |\n| [superagent-guard-4b](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-4b) | 4B | Maximum accuracy |\n\nGGUF versions for CPU: [0.6b-gguf](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-0.6b-gguf) · [1.7b-gguf](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-1.7b-gguf) · [4b-gguf](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai\u002Fsuperagent-guard-4b-gguf)\n\n## Resources\n\n- [Documentation](https:\u002F\u002Fdocs.superagent.sh)\n- [Discord Community](https:\u002F\u002Fdiscord.gg\u002FspZ7MnqFT4)\n- [HuggingFace Models](https:\u002F\u002Fhuggingface.co\u002Fsuperagent-ai)\n- [Twitter\u002FX](https:\u002F\u002Fx.com\u002Fsuperagent_ai)\n\n## License\n\nMIT\n","Superagent 是一个用于保护 AI 应用免受提示注入、数据泄露和有害输出的开源 SDK。其核心功能包括实时检测并阻止恶意指令与工具调用（Guard）、自动移除文本中的个人身份信息及敏感数据（Redact）、分析代码仓库以发现针对 AI 代理的攻击（Scan）以及即将推出的对生产环境中的代理进行红队测试的能力。这些功能通过 TypeScript 和 Python 实现，旨在为开发者提供直接嵌入应用的安全解决方案，并帮助他们向客户证明合规性。适用于需要增强 AI 系统安全性、隐私保护或满足特定法规要求的各种场景。",2,"2026-06-11 03:37:20","high_star"]