lians-recall

lians-recall is a command for Claude Code from ebeirne/Lians2. It costs 19 tokens per session (402 once invoked), scanned A, original, from a forked repository, Apache-2.0.

A command for retrieving current facts stored in Lians memory, with an option to ask what was known at an earlier date. Lians is a memory system for an AI agent.

In plain words
What is it for?
Looking up relevant stored facts for a query or checking the recorded state as of a specific date. It can also surface erased records as erased instead of filling in guesses.
Why use it?
It reduces the risk of using outdated or superseded information. It also shows when facts were recorded and where they came from, and reports when nothing is found.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the lians plugin — 4 commands, 1 agent shipped together

Good fit Looking up relevant stored facts for a query or checking the recorded state as of a specific date. It can also surface erased records as erased instead of filling in guesses.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ebeirne/lians2/lians-recall
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ebeirne/Lians2

Made for: Claude Code.

Or install lians, the plugin that ships this one along with the rest of its 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lians-recall

README.md
[![agentmods](https://agentmods.dev/badge/commands/ebeirne/lians2/lians-recall/github.svg)](https://agentmods.dev/commands/ebeirne/lians2/lians-recall)
Your own site
<a href="https://agentmods.dev/commands/ebeirne/lians2/lians-recall"><img src="https://agentmods.dev/badge/commands/ebeirne/lians2/lians-recall/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lians-recall

Your own site · 80×15
<a href="https://agentmods.dev/commands/ebeirne/lians2/lians-recall"><img src="https://agentmods.dev/badge/commands/ebeirne/lians2/lians-recall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00402
Opus 5 $0.00010 $0.00201
Sonnet 5 $0.00004 $0.00080
Haiku 4.5 $0.00002 $0.00040

Measured 8d ago against content hash 5e27efe6ae70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

lians-recall scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/lians-plugin/commands/lians-recall.md · 41 lines

What it actually says

/lians-recall

Retrieve the facts Lians holds that are relevant to $ARGUMENTS. By default you get the current state — superseded/stale revisions are excluded at the database layer, so you never reason over contaminated context.

What to do

  1. Parse the query and any "as of " clause from $ARGUMENTS.
  2. Recall:
from lians import LiansClient  # or LocalLiansClient
mem = LiansClient(base_url=os.environ["LIANS_URL"], api_key=os.environ["LIANS_API_KEY"])

# Present state (default)
res = mem.recall(agent_id=os.environ.get("LIANS_AGENT_ID", "claude-session"),
                 query="<query>", k=5)

# Point-in-time — "what did we know on that date?"
res = mem.recall_at(agent_id=..., query="<query>",
                    as_of=datetime(YYYY, M, D, tzinfo=timezone.utc))

for m in res["memories"]:
    print(m["event_time"], m["content"])
  1. Present the facts with their event_time and source so the user can judge recency and provenance. If a fact's content is null, it was crypto-shredded (GDPR/HIPAA erasure) — say so rather than guessing.
  2. If nothing is found, say so plainly. Do not fabricate recalled facts.

When the user asks an audit-style question ("what did we know on X", "before the trade", "before the privilege cutoff"), always use recall_at with that date — this is the point-in-time guarantee mem0 and Zep cannot provide.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 41 lines · 19 tokens per session scan A 5e27efe6ae70

Subscribe to this mod's changes

lians-recall is a command published in the GitHub repository ebeirne/Lians2 (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 402 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.