An Agentuity demo agent showcasing the LLM-as-Judge/Guardrail pattern using dual streams for confidential information detection and redaction.
This agent demonstrates an internal company assistant for SoleStep (a fictional shoe company) that helps employees while automatically detecting and redacting company secrets in real-time:
- Financial data (revenue, margins, costs)
- Unreleased product information (codenames, features, launch dates)
- R&D details (formulas, prototypes, materials)
- Internal contacts (employee emails, phone extensions)
- Strategic plans (market expansion, pricing, M&A)
The agent creates two simultaneous streams:
- Main Stream - Sanitized content with confidential info redacted
- Guardrail-Audit Stream - Real-time status log showing detection activity
User Prompt → Claude (Content) → Buffer Chunks → Groq (Detection) → Redaction → Output
↓ ↓
Audit Log [REDACTED:TYPE]
- Claude generates streaming responses
- Chunks accumulate until threshold (~200 chars)
- Groq analyzes buffer for confidential information
- Confidential items are replaced with
[REDACTED:TYPE]markers - Sanitized content flows to main stream
- Audit stream logs detection activity
- Chunk Buffering - Smart accumulation with configurable thresholds
- Boundary Protection - 64-char overlap to catch split secrets
- Fast Detection - Groq's GPT-OSS 20B model with structured outputs
- Precise Redaction - String replacement with typed markers
- Bun: Version 1.2.4 or higher
- Agentuity CLI: Latest version
Before using Agentuity, you need to authenticate:
agentuity loginThis command will open a browser window where you can log in to your Agentuity account.
agentuity project importRun your project in development mode with:
agentuity devThis will start your project and open a new browser window connecting your agent to Agentuity in DevMode, allowing you to test and debug your agent in real-time.
When you're ready to deploy your agent to the Agentuity Cloud:
agentuity deployThis command will bundle your agent and deploy it to the cloud, making it accessible via the Agentuity platform.
