lians-integrate

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

A test-first workflow for adding Lians as a persistent memory layer to an existing coding agent. It detects the agent framework, installs the matching Lians package, and connects memory recall before model calls with memory storage after responses.

In plain words
What is it for?
Use it to integrate Lians with LangChain, LangGraph, CrewAI, the OpenAI Agents SDK, AutoGen, or a raw agent loop, including replacing a vector store with time-aware memory.
Why use it?
It adds long-term or compliance-oriented memory without requiring the whole agent application to be rewritten or its existing architecture to be replaced.

Skill for Claude CodeCodex

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

Good fit Use it to integrate Lians with LangChain, LangGraph, CrewAI, the OpenAI Agents SDK, AutoGen, or a raw agent loop, including replacing a vector store with time-aware memory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lians-ai/lians/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 Lians-ai/Lians --skill lians-integrate
Clone the repo
git clone --depth 1 https://github.com/Lians-ai/Lians

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/lians-ai/lians/lians-integrate/github.svg)](https://agentmods.dev/skills/lians-ai/lians/lians-integrate)
Your own site
<a href="https://agentmods.dev/skills/lians-ai/lians/lians-integrate"><img src="https://agentmods.dev/badge/skills/lians-ai/lians/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/lians-ai/lians/lians-integrate"><img src="https://agentmods.dev/badge/skills/lians-ai/lians/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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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 12d ago against content hash 0cd7d6dc15bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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

Copies of this mod

1 near-identical copy found in the catalogue:

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. 12d ago First seen · 66 lines · 53 tokens per session scan A 0cd7d6dc15bb

Subscribe to this mod's changes

lians-integrate is a skill published in the GitHub repository Lians-ai/Lians (11 stars, last pushed 5d 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.