lians-integrate

lians-integrate is a skill for Claude Code, Codex from ebeirne/Lians2. It costs 53 tokens per session (699 once invoked), scanned A, a copy of lians-integrate, Apache-2.0.

A guide for adding Lians, a persistent memory service, to an existing AI agent codebase. It connects memory to the agent’s conversation flow without rewriting the application.

In plain words
What is it for?
Use it to add persistent or compliance-related memory to agents built with frameworks such as LangChain, LangGraph, CrewAI, or the OpenAI Agents SDK. It also covers raw agent loops and several other supported frameworks.
Why use it?
It removes the need to design the integration from scratch and helps keep the change small and test-first. It can also replace a vector store, which is a system that searches stored data by similarity, with Lians’ time-aware memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add persistent or compliance-related memory to agents built with frameworks such as LangChain, LangGraph, CrewAI, or the OpenAI Agents SDK. It also covers raw agent loops and several other supported frameworks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ebeirne/lians2/lians-integrate
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.

Any agent
npx skills add ebeirne/Lians2 --skill lians-integrate
Clone the repo
git clone --depth 1 https://github.com/ebeirne/Lians2

Made for: Claude Code, Codex.

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-integrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/ebeirne/lians2/lians-integrate/github.svg)](https://agentmods.dev/skills/ebeirne/lians2/lians-integrate)
Your own site
<a href="https://agentmods.dev/skills/ebeirne/lians2/lians-integrate"><img src="https://agentmods.dev/badge/skills/ebeirne/lians2/lians-integrate/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-integrate

Your own site · 80×15
<a href="https://agentmods.dev/skills/ebeirne/lians2/lians-integrate"><img src="https://agentmods.dev/badge/skills/ebeirne/lians2/lians-integrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 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 100% copy Near-identical to another mod in the catalogue.
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.00053 $0.00699
Opus 5 $0.00026 $0.00349
Sonnet 5 $0.00011 $0.00140
Haiku 4.5 $0.00005 $0.00070

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

Security

Grade A, and why

lians-integrate 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.

Origin

This is a copy

100% identical to lians-integrate — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/lians-integrate/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrate Lians into this repository

A pipeline skill: add Lians as the memory layer for the agent in this repo. Add a memory layer; don't rewrite the app. Work test-first.

Procedure

  1. Survey the agent loop. Find where the model is called, where context is assembled, and where a turn completes. Detect the framework in use.

  2. Branch. git checkout -b lians-integration before editing.

  3. Install the matching package:

    • LangChain → pip install lians-sdk[langchain]
    • LangGraph → pip install lians-sdk[langgraph]
    • CrewAI → pip install lians-sdk[crewai]
    • OpenAI Agents SDK → pip install lians-sdk[openai-agents]
    • AutoGen → pip install lians-sdk[autogen]
    • raw / unknown → pip install lians-sdk (use the harness)
  4. Wire memory in.

    Raw loop — use the harness:

    from lians import LiansClient, LiansMemoryHarness
    harness = LiansMemoryHarness(
        LiansClient(base_url=os.environ["LIANS_URL"], api_key=os.environ["LIANS_API_KEY"]),
        agent_id="<this-agent>",
        domain="finance",   # or healthcare / legal
    )
    # before model call: context = harness.recall_context(user_query)
    # after model call:  harness.remember(response)
    # or both:           answer = harness.run_turn(user_query, generate=call_model)
    

    Framework — import its integration module:

    from lians.langchain_integration import LiansChatHistory, build_tools
    from lians.langgraph_integration import create_recall_node, create_remember_node
    from lians.crewai_integration import build_crewai_tools
    from lians.openai_agents_integration import build_openai_agent_tools
    from lians.autogen_integration import build_autogen_tools
    
  5. Test (required). Add a test using LocalLiansClient (no server/API key) that proves: (a) a remembered fact is recalled, and (b) a superseding write hides the stale fact from recall but recall_at(as_of=...) still sees it. Run the suite.

  6. Report. Summarize the diff, the env vars required (LIANS_URL, LIANS_API_KEY, LIANS_AGENT_ID), and how to verify locally. Do not commit — leave the branch for review.

Read the full file on GitHub · 66 lines

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 · 66 lines · 53 tokens per session scan A d278261c6ccd

Subscribe to this mod's changes

lians-integrate is a skill published in the GitHub repository ebeirne/Lians2 (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 699 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to lians-integrate, differing in 8 lines, and is treated as a copy.

Related

Other skills, from other repositories

brain-write

How to write to the INITE Brain knowledge graph from an agent loop — recordfact (with the conversationId / evidence[] grounding inputs), ingestdocument, linkentities, retractfact, recordfeedback, and the detectcontradiction preflight. Covers confidence picking, claim grounding, retract vs forget semantics, identityof…

inite-ai/inite-brain-service · 97 tokens

brain-bitemporal

How to query the INITE Brain knowledge graph across time — the asOf parameter, validFrom/validUntil semantics, reading retracted facts, and the memorydiff "what changed between two cursors" surface. Use when the user's question has a temporal dimension ("on X date", "before Y", "what's new since last conversation").

inite-ai/inite-brain-service · 74 tokens

brain-conflict

How to detect and resolve conflicting beliefs in the INITE Brain knowledge graph — the COMPETING fact status, getcompetingfacts, detectcontradiction preflight, and the human-in-the-loop adjudication workflow. Use when the timeline shows two facts disagreeing on the same predicate, or when an agent needs to decide what…

inite-ai/inite-brain-service · 78 tokens

brain-recall

Recall everything brain knows about one specific entity — current profile, full bitemporal timeline, graph neighbours, and unresolved disagreements. Use when the user names a person/company/thing and asks "tell me about them", "what's their history", or "what do we still disagree about?". For a single-shot LLM…

inite-ai/inite-brain-service · 81 tokens

gctrl

Use the connected GCTRL knowledge base as long-term memory over MCP. Trigger BEFORE answering any factual question about the user's organization, projects, people, systems, decisions, history, or file locations — including "what do we know about X", unfamiliar proper nouns, and "our/we" references — and AFTER…

GCTRL-TECH/platform · 100 tokens

kaeru

Cognitive memory layer for LLM agents — typed graph + bi-temporal substrate + curator API, reached through the kaeru MCP server. Use when the user wants to capture, recall, reason, or trace persistent thoughts across sessions; when re-entering a multi-session project; or when the user explicitly asks to "remember"…

LamantinAI/kaeru · 91 tokens