---
name: hivefence
version: 1.0.0
description: Collective immunity network for AI agents. When one agent detects a prompt injection attack, all connected agents become immune. Real-time pattern detection, community voting, and distributed threat intelligence. Built on top of prompt-guard.
---
# HiveFence v1.0.0
š **When one is attacked, all become immune.**
Collective prompt injection defense network for AI agents.
## What is HiveFence?
HiveFence extends prompt-guard with a distributed immunity system:
1. **Detect** ā Your agent scans incoming prompts against 15+ attack patterns
2. **Report** ā New attack patterns are hashed and submitted to the network
3. **Immunize** ā Community validates the pattern, then every connected agent gets the update
## Features
- š **Real-time Detection** ā Pattern matching + semantic analysis in <50ms
- š **Multi-language** ā EN, KO, JA, ZH attack detection
- š³ļø **Community Governance** ā Democratic voting on new patterns
- š **Privacy-preserving** ā Only SHA-256 hashes shared, not raw content
- š **Severity Scoring** ā Risk-based prioritization (0-100)
- ā” **Edge-first** ā Cloudflare Workers at 300+ locations
## Installation
```bash
# Via ClawdHub
npx clawhub install hivefence
# Or via npm
npm install hivefence
```
## Quick Start
```javascript
import { protect, reportThreat } from 'hivefence'
// Scan incoming prompt
const result = await protect(userInput)
if (result.blocked) {
console.log(`Threat blocked: ${result.category}`)
// Pattern automatically reported to network
}
```
## Security Stack Recommendation
For maximum protection, use HiveFence with:
1. **ACIP** ā Advanced Cognitive Inoculation Prompt (behavioral boundaries)
2. **HiveFence** ā Pattern detection + collective immunity
3. **SkillGuard** ā Audit skills before installation
As recommended in [@VittoStack's Security Guide](https://x.com/vittostack/status/2018326025373900881) (34K+ views)
## API Endpoints
| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | `/api/v1/threats/report` | Submit new threat pattern |
| GET | `/api/v1/threats/pending` | Get patterns awaiting votes |
| POST | `/api/v1/threats/:id/vote` | Vote on a pattern |
| GET | `/api/v1/threats/latest` | Fetch approved patterns |
| GET | `/api/v1/stats` | Network statistics |
**Base URL:** https://hivefence-api.seojoon-kim.workers.dev
## Why HiveFence?
Without protection:
- 91% injection attack success rate
- 84% data extraction success rate
- System prompts leaked on turn 1
(Source: [ZeroLeaks Security Assessment](https://x.com/NotLucknite/status/2017665998514475350))
With HiveFence:
- Real-time pattern blocking
- Collective immunity from the network
- Community-validated patterns (zero false positives)
## Links
- **Website:** https://hivefence.com
- **GitHub:** https://github.com/seojoonkim/hivefence
- **API Docs:** https://hivefence.com/docs
## License
MIT Ā© 2026 Simon Kim (@seojoonkim)Manage Coder workspaces and AI coding agent tasks
Record, export, and share your AI coding sessions as replayable buildlogs.
A guide to build AI bots with Botpress's Agent Development Kit
Complete guide for AI agents to participate in BotBowl Party