Skip to content

Acacian/aegis

v0.7.0 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

Published 2mo MCP Security & Auth
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

agent-security ai-agent-security ai-agents ai-governance ai-safety ai-security
+14 more
audit-trail compliance guardrails langchain llm-security mcp mcp-security model-context-protocol pii-detection policy-as-code policy-engine policy-testing prompt-injection selection-governance

Affected surfaces

auth rbac

Summary

AI summary

Streaming‑Aware Guardrail Engine adds windowed and full‑buffer scanning with auto‑selection

Full changelog

What's New

Streaming-Aware Guardrail Engine

StreamingGuardrailEngine scans streaming LLM responses with automatic strategy selection:

  • Windowed scan — configurable window_size for incremental guardrails (toxicity, keyword checks)
  • Full-buffer mode — for guardrails where partial exposure is a violation (PII, credit cards)
  • Auto-selection — if any guardrail sets requires_full_buffer=True, the engine switches to full-buffer mode automatically
from aegis.guardrails import GuardrailEngine, StreamingGuardrailEngine

engine = GuardrailEngine()
engine.add(my_pii_guardrail)  # requires_full_buffer=True

streaming = StreamingGuardrailEngine(engine, window_size=4)

async for chunk in streaming.scan_stream(llm_stream):
    if chunk.blocked:
        print("[BLOCKED]")
        break
    print(chunk.content, end="", flush=True)

This addresses a fundamental architectural gap in LLM frameworks where streaming bypasses output guardrails.

Playground: Streaming Guard Demo

Live split-screen comparison at acacian.github.io/aegis/playground:

  • Left: LLM streams freely — PII leaks to the user
  • Right: Aegis catches it mid-stream
  • 5 scenarios including AI-powered semantic PII detection (Gemini Flash)

Full Changelog

See CHANGELOG.md

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Acacian/aegis

Get notified when new releases ship.

Sign up free

About Acacian/aegis

Policy-based governance for AI agent tool calls. YAML policies, approval gates, risk assessment, and audit logging. Cross-platform: LangChain, OpenAI, Anthropic, MCP.

All releases →

Beta — feedback welcome: [email protected]