Little Canary Prompt Sensor
Screen untrusted input with a powerless probe model before your host agent acts.
- Source repo
- hermes-labs-ai/little-canary
- Stars
- ★ 42
- Last updated
- 18d ago v0.5.1
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 80/100 · Good
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code · OpenAI API
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A team maintaining Claude Code workflows can screen submitted prompts at UserPromptSubmit and block unsafe turns.
- Not a fit if
- Teams that need screening across all history and tool results
- Teams that require PASS to prove content is harmless
- Website
- littlecanary.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-09latest release v0.5.1 (2026-10-20)
- Source review
- 80/100 · Good
What does this agent do, and when should you use it?
Little Canary is a preflight sensor for untrusted text: it sends input to a canary model with no tools or credentials, then checks whether the model's behavior changed. Its Python SecurityPipeline combines structural checks with behavioral probing and returns PASS, FLAG, BLOCK, or an insufficient-coverage state for the host to enforce. It ships as a CLI and Python library, plus a loopback-only local HTTP service, and documents integrations for hosts including Claude Code, Gemini CLI, and the OpenAI Agents SDK. The default live probe uses local Ollama and a selected model; StructuralFilter and the offline demo can run without a model call. It is a defense-in-depth layer: PASS means no covered signal was found in that inspection, not that the input is guaranteed safe.
It preflights text end to end: StructuralFilter checks locally for known suspicious patterns; when the canary is enabled, SecurityPipeline sends untrusted text to a model without tools or credentials, inspects the response for behavioral signals, and produces a verdict. Use little-canary demo for an offline replay of a packaged capture, or add --live to call Ollama. little-canary serve exposes /check and /health on 127.0.0.1:18421; it defaults to advisory mode, while --mode block opts into blocking policy. Python applications can call SecurityPipeline.check() directly, and little-canary screen checks JSONL items individually. Host integrations apply results at their own interception points, which may support only warnings or downstream tool restrictions.
- A team maintaining Claude Code workflows can screen submitted prompts at UserPromptSubmit and block unsafe turns.
- A Gemini CLI user can inspect the current prompt at BeforeAgent and choose whether screening failures warn or deny the run.
- An agent developer receiving web pages, email, or tool results can preflight that untrusted text before passing it to the primary model.
- A Python application team can integrate structural and behavioral checks through SecurityPipeline.check() or the local /check service.
- An operations team processing JSONL documents can use screen for independent item verdicts or experimental ingest for evidence-backed admission decisions.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install little-canary
- Runtime
- Python 3.9+
How do you install or deploy this agent?
Python 3.9+ is required; the offline demo and structural-only filter do not require a model download. Live canary screening requires Ollama, its server, and a pulled model. Install the package:
pip install little-canaryStart Ollama and pull the default model for live checks:
ollama serve
ollama pull qwen2.5:1.5bFor a host extension, the README documents Gemini CLI installation with:
gemini extensions install https://github.com/hermes-labs-ai/little-canaryHow do you use this agent?
Start with the offline demo. It replays a packaged capture and makes no model or network call:
little-canary demoRun the live Ollama demo:
little-canary demo --live --backend ollama --model qwen2.5:1.5b --endpoint http://127.0.0.1:11434Start the local service in blocking mode; advisory mode is the default:
little-canary serve --mode block --canary-model qwen2.5:1.5b --ollama-url http://127.0.0.1:11434Submit text to screen:
curl -sS http://127.0.0.1:18421/check \
-H 'Content-Type: application/json' \
-d '{"text":"untrusted text"}'A Python project can use the package's structural filter. This is pattern screening only, not a behavioral PASS:
from little_canary import StructuralFilter
screen = StructuralFilter()
result = screen.check("Summarize this quarterly report.")
print(result.blocked, result.reasons)Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- data-flow disclosure
- sensitive-data handling
What are this agent's strengths and limitations?
- Combines known-pattern checks with a behavioral probe that observes whether untrusted input changes a powerless canary's response.
- Includes StructuralFilter and an offline replay demo that need no model call, useful for a first run or structural-only screening.
- Offers Python, loopback HTTP, and several host integrations; its host capability matrix documents where each integration can block.
- The screen and experimental ingest workflows keep per-item results, while ingest separates detection from coverage before admission.
- Live behavioral screening requires Ollama and a local model by default; on CPU-only hardware, a demo call can take several minutes.
- Effectiveness depends on the selected canary model, policy, and attack; the README makes no Little Canary detection-rate claim.
- Structural rules can block quoted attack phrases, and behavioral rules can flag harmless canary acknowledgements.
- Blocking varies by host: OpenCode is advisory only, while Hermes Agent removes downstream tool authority but still passes the original prompt to the model.
How does this agent compare with similar options?
The README distinguishes structural pattern filtering from behavioral canary probing. It also discusses independent decision-model gates as a related but different method, and explicitly says those research results are not Little Canary product metrics.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Little Canary Prompt Sensor This agent | 80 · Good | CLIFree | ★ 42 | 18d ago | Python | Claude Code · OpenAI API |
| jes — Guardrails for AI Agents | 59 · Major gaps | Library / SDKFree + model costs | ★ 18 | 1mo ago | Python | Codex · Claude Code |
| Open Computer Use (MCP desktop service) | 79 · Good | CLIFree + model costs | ★ 3.1k | 4d ago | Swift | Codex · Claude Code |
| Gryph | 77 · Good | CLIFree | ★ 185 | 7d ago | Go | Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The code describes a tool-free, credential-free canary and defaults to loopback binding. README and security notes disclose that remote backends receive raw input, an optional judge receives canary output, and fail-open routing is marked degraded. Batch and ingest paths specify detailed limits and handling for text, metadata, summaries, and exports. Deductions: the library boundary is not an OS sandbox; serve defaults to advisory; there is no general human-confirmation or automatic rollback layer, and external-effect controls depend on the host. Publisher identity is unverified, and contributor attribution and maintenance channels are only partly clear.
README, AGENTS, and security notes consistently describe a sensor rather than a guarantee and document fail-open behavior and coverage states. CLI/server provide timeouts, health checks, size limits, and explicit error responses. Deduction: source documentation says failures may still route as safe=True; static evidence cannot establish runtime dependency availability or behavior.
Documentation covers library, HTTP, batch screening, experimental ingest, multiple host integrations, and block/advisory/full modes. It states that the tool cannot replace runtime controls and explains coverage states and host limits. Deduction: triggering and results still depend on structural rules, the canary model, and host interception; README makes no new detection-rate claim, and operators must account for the default mode.
Information architecture, installation instructions, CLI guidance, examples, limitations, and Apache-2.0 licensing are well documented. README gives concrete batch and ingest constraints, data forms, failure states, and rollback behavior. Deductions: README and CLAUDE show signs of differing architecture/mode descriptions; SECURITY still lists 0.3.x as supported while package metadata says 0.5.1; changelog and maintenance ownership are only partly evidenced in this packet.
Outputs include verdict, risk, signals, and coverage/degradation state; screen and ingest distinguish pass, flag, block, degraded, and unexercised, with hash-bound evidence for ingest exports. Behavioral probing may add value beyond structural screening. Deductions: canary calls can be slow, with a 600-second default per-call timeout, and no detection-rate headline is claimed for this product; utility depends on model and host configuration.
README explicitly separates external decision-model results from Little Canary claims and discloses withdrawal of a historical aggregate that did not reproduce. Package metadata, code, test fixtures, and security notes corroborate interfaces and risks, while documentation distinguishes claims, assumptions, and limits. Deduction: included tests and documentation are not execution or independent validation, and some claims appear only in README.
- This is an inbound risk sensor, not a security guarantee. Canary or analysis failures may fail open; treat degraded results as incompletely screened.
- Remote backends receive raw input; an enabled judge also receives canary output. Check that this data flow fits your requirements.
- serve defaults to advisory. Unless the host enforces the verdict, detection alone does not stop the primary model or its tools.
- The documented default timeout is 600 seconds per canary call; the project makes no product-specific detection-rate claim.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.5.1 Little Canary 0.5.1 — Ingest integrity and service lifecycle fixes
Release notes excerpt
A reliability patch for applications screening untrusted text with Little Canary. This release strengthens experimental Ingest publication and releases loopback-server sockets when the service exits. Ingest integrity - Verified runs reject configured callbacks and screen with an owned configuration snapshot, preventing later callback changes from mutating the screened probe. - No-clobber publication fails when hard links are unavailable. Rollback quarantines targets before checking ownership and preserves concurrent replacements or a logged recovery path. …View on GitHub ↗ -
v0.5.0 v0.5.0: Ingest surface
Release notes excerpt
Experimental ingest surface with the R1 exact-type/shadowing gate, plus the hardened 0.5.0 screening core. See CHANGELOG.md for details.View on GitHub ↗ -
v0.4.0 little-canary 0.4.0
Release notes excerpt
Little Canary 0.4.0 Added - Offline demo by default: little-canary demo runs a packaged replay fixture with zero extra dependencies (no Ollama pull). - --timeout flag on demo/serve paths; timeout-induced DEGRADED now names the knob. - Teaching Ollama errors: clear guidance when the canary backend is unreachable. Fixed - Claude Code plugin ships a single canonical manifest (plugins/claude-code/.claude-plugin/plugin.json); listing copy no longer implies Codex CLI coverage or a bundled local service. …View on GitHub ↗
FAQ
Do I need a paid model or API key?
Does PASS prove that an input is safe?
What happens if the canary or service check fails?
Can the canary access my tools or credentials?
Can every integration block an agent run?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.