{"slug": "guardflow-an-open-source-python-sdk-for-llm-input-guardrails", "title": "GuardFlow — An Open-Source Python SDK for LLM Input Guardrails", "summary": "An independent developer released GuardFlow, an open-source Python SDK that inspects untrusted inputs before they reach LLM applications, and published an interactive demo called GuardFlow Agent Prompt Firewall as a Hugging Face Space. GuardFlow provides modular components for PII detection and redaction using Presidio and Flair, prompt-injection detection, secrets detection, input sanitization, and token-limit checks. The developer says the project is in early stages and is seeking collaborators on detection coverage, adversarial test cases and benchmarks, agent-framework integrations, and performance.", "body_md": "Hi Hugging Face community!\n\nI’ve released **GuardFlow**, an open-source Python SDK for inspecting untrusted inputs before they reach LLM applications.\n\nTo make it easier to explore, I’ve now published **GuardFlow Agent Prompt Firewall**, an interactive Hugging Face Space.\n\n **Try the live demo:**\n\n **GitHub:**\n\nConsider an AI assistant receiving a user prompt containing personal information, an exposed credential, or instructions intended to override its original behavior.\n\nInstead of forwarding every input directly to a model, applications can introduce a configurable guardrail layer.\n\nGuardFlow provides components for:\n\nPII detection and redaction using Presidio and Flair\n\nPrompt-injection detection\n\nSecrets detection\n\nInput sanitization\n\nToken-limit checks\n\nThe aim is to make these checks modular and reusable in Python-based AI applications.\n\nGuardFlow is still in its early stages, and I’d love to collaborate with developers working on Python, NLP, LLM security, and agent frameworks.\n\nPotential contribution areas include:\n\nImproving detection coverage and reducing false positives\n\nAdding adversarial test cases and benchmarks\n\nBuilding integrations with agent frameworks\n\nImproving performance and developer experience\n\nIf you’re exploring input safety for AI agents, I’d be interested to hear which controls you consider most important.", "url": "https://wpnews.pro/news/guardflow-an-open-source-python-sdk-for-llm-input-guardrails", "canonical_source": "https://discuss.huggingface.co/t/guardflow-an-open-source-python-sdk-for-llm-input-guardrails/192553#post_1", "published_at": "2026-11-25 15:34:15+00:00", "updated_at": "2026-11-25 15:45:11.637567+00:00", "lang": "en", "topics": ["ai-safety", "ai-agents", "developer-tools", "large-language-models", "ai-tools"], "entities": ["GuardFlow", "GuardFlow Agent Prompt Firewall", "Hugging Face", "Presidio", "Flair", "GitHub"], "also_reported_by": [], "takeaway": "GuardFlow lets Python LLM apps insert a configurable pre-model layer that runs PII redaction via Presidio and Flair, prompt-injection detection, secrets detection, sanitization and token-limit checks on untrusted input.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/guardflow-an-open-source-python-sdk-for-llm-input-guardrails", "markdown": "https://wpnews.pro/news/guardflow-an-open-source-python-sdk-for-llm-input-guardrails.md", "text": "https://wpnews.pro/news/guardflow-an-open-source-python-sdk-for-llm-input-guardrails.txt", "jsonld": "https://wpnews.pro/news/guardflow-an-open-source-python-sdk-for-llm-input-guardrails.jsonld"}}