Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@agent-inspect/langchain

Latest version: v6.31.42

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: rajudandigam
213 Stars
56 Forks
72 Versions
4.0K Downloads
TypeScript Repo language

Scan summary

@agent-inspect/langchain was last scanned on 23 Nov 2026 at version 6.31.42. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 72 versions; the latest 5 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 6.31.42.
  • Downloads: 4,025 downloads.

Versions

72 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.31.42 LATEST 23 Nov 2026 No rules fired
6.31.41 23 Nov 2026 No rules fired
6.31.40 21 Nov 2026 No rules fired
6.31.39 20 Nov 2026 Not shown
6.31.38 19 Nov 2026 Not shown

No rules fired in 6.31.42

Findings

Findings for v6.31.42. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 6.31.42; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@agent-inspect/langchain

LangChain callback handler → local AgentInspect traces.

Support level: Supported — see SUPPORT-LEVELS.md.

When to use

  • LangChain or LangGraph apps using @langchain/core callbacks
  • You want persist: true local JSONL without a hosted backend
  • Evidence-first CI / TraceContract gates over LangGraph runs (init --framework langgraph)

When not to use

  • Raw LangGraph without LangChain callbacks (wire callbacks at integration points)
  • Hosted LangSmith as replacement

Install

npm install agent-inspect @agent-inspect/langchain @langchain/core

Peer: @langchain/core@^1.0.0

Example

import { AgentInspectCallback } from "@agent-inspect/langchain";

const handler = new AgentInspectCallback({
  traceDir: ".agent-inspect",
  runName: "my-chain",
  // persist omitted: enabled automatically when traceDir is set
});

// Pass handler to your chain / LangGraph invoke callbacks
await graph.invoke(input, { callbacks: [handler] });
await handler.flush(); // optional — awaitHandlers already drains persistence
await handler.close(); // serverless / unusual shapes — idempotent

const d = handler.getDiagnostics();
// counts only: lateEventCount, pendingRelationshipCount, finalized, …

Privacy

  • Local files only; metadata-only default
  • No AgentInspect network activity

API

Export Purpose
AgentInspectCallback LangChain BaseCallbackHandler (awaitHandlers, flush/finalize/close, getDiagnostics)
extractModelName, safePreview Metadata helpers

Fidelity

See LANGGRAPH-FIDELITY.md for the LangGraph/LangChain adapter contract (lifecycle, parents, tool identity, persist-by-intent).

CLI

With persist: true, use the same directory configured in traceDir:

npx agent-inspect list --dir ./.agent-inspect
npx agent-inspect view <run-id> --dir ./.agent-inspect --summary
npx agent-inspect report <run-id> --dir ./.agent-inspect

Persisted traces remain local. Before sharing an export or report, follow the safe trace sharing checklist and review the generated artifact for sensitive metadata.

Docs

Troubleshooting

  • Empty trace: Provide traceDir (persist-by-intent) or persist: true, and attach callbacks to invoke/stream
  • LangGraph: Prefer { callbacks: [handler] } on invoke/stream; tool nodes should forward runnable config
  • Incomplete run: Call await handler.finalize() / close() on shutdown; check getDiagnostics().lateEventCount
  • Unresolved parents: Expected for semantic labels like LangGraph / __start__ when no unique match exists — visible in step metadata

Version

Part of the fixed AgentInspect release line. See the npm badge / package manifest for the current version.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @agent-inspect/langchain

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229