Little Canary Prompt Sensor

Screen untrusted input with a powerless probe model before your host agent acts.

Stars
★ 42
Last updated
18d ago v0.5.1
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLILibrary / SDKSelf-hosted service
Works with
Universal · cross-platformClaude Code · OpenAI API
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
Python 3.9+OllamaShell / CLINetwork accessLocal filesystem
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.

  1. A team maintaining Claude Code workflows can screen submitted prompts at UserPromptSubmit and block unsafe turns.
  2. A Gemini CLI user can inspect the current prompt at BeforeAgent and choose whether screening failures warn or deny the run.
  3. An agent developer receiving web pages, email, or tool results can preflight that untrusted text before passing it to the primary model.
  4. A Python application team can integrate structural and behavioral checks through SecurityPipeline.check() or the local /check service.
  5. 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-canary

Start Ollama and pull the default model for live checks:

ollama serve
ollama pull qwen2.5:1.5b

For a host extension, the README documents Gemini CLI installation with:

gemini extensions install https://github.com/hermes-labs-ai/little-canary

How do you use this agent?

Start with the offline demo. It replays a packaged capture and makes no model or network call:

little-canary demo

Run the live Ollama demo:

little-canary demo --live --backend ollama --model qwen2.5:1.5b --endpoint http://127.0.0.1:11434

Start 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:11434

Submit 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • data-flow disclosure
  • sensitive-data handling

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Good
80/ 100 5-point scale 4.0 / 5
Trust 21/29
Reliability 11/14
Adaptability 15/18
Convention 16/18
Effectiveness 10/13
Verifiability 7/8
Why each dimension lost points
Trust21 / 29 · 3.6/5

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.

Reliability11 / 14 · 3.9/5

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.

Adaptability15 / 18 · 4.2/5

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.

Convention16 / 18 · 4.4/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability7 / 8 · 4.4/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 7045f3188204 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/little-canary.svg)](https://followagents.com/en/agents/little-canary)
<a href="https://followagents.com/en/agents/little-canary"><img src="https://followagents.com/badge/little-canary.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
The documented default live path uses a local Ollama model. The offline demo and StructuralFilter need no model call. The README does not state a hosted-service fee or required subscription.
Does PASS prove that an input is safe?
No. It means the inspection found no covered compromise signal; a novel attack may still pass.
What happens if the canary or service check fails?
Results can report DEGRADED or UNSCREENED coverage. A fail-open route may let the host continue, but that is not a behavioral PASS.
Can the canary access my tools or credentials?
The canary is designed without tools or credentials, but the README says it is powerless at the application layer, not isolated by an OS sandbox.
Can every integration block an agent run?
No. Claude Code and Gemini CLI can reject at documented hooks; OpenCode only warns, while Hermes Agent handles BLOCK by removing downstream tool authority.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts