LangChain Middleware & HITL

LangChain Middleware & HITL is a skill for Claude Code, Codex from jackjin1997/ClawForge. It costs 63 tokens per session (2,017 once invoked), scanned A, original, no licence file.

A guide to LangChain middleware, which is code that runs around an agent's main work, and human-in-the-loop controls, where a person approves selected actions. It also covers custom hooks and structured results shaped by defined schemas.

In plain words
What is it for?
Use it to add approval steps, write custom middleware, resume paused agents, handle structured output, and validate results with Pydantic or Zod.
Why use it?
It helps control agent behavior, require approval for risky tool calls, and keep outputs in a predictable format.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jackjin1997/clawforge/langchain-middleware
Any agent
npx skills add jackjin1997/ClawForge --skill langchain-middleware
Clone the repo
git clone --depth 1 https://github.com/jackjin1997/ClawForge

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 LangChain Middleware & HITL

README.md
[![agentmods](https://agentmods.dev/badge/skills/jackjin1997/clawforge/langchain-middleware.svg)](https://agentmods.dev/skills/jackjin1997/clawforge/langchain-middleware)
Your own site
<a href="https://agentmods.dev/skills/jackjin1997/clawforge/langchain-middleware"><img src="https://agentmods.dev/badge/skills/jackjin1997/clawforge/langchain-middleware.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,017 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00063 $0.02017
Opus 5 $0.00032 $0.01009
Sonnet 5 $0.00013 $0.00403
Haiku 4.5 $0.00006 $0.00202

Measured 3d ago against content hash bb9c56c42409, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

LangChain Middleware & HITL 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 3d 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.

skills/langchain-middleware/SKILL.md · 303 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 3d ago First seen · 303 lines · 63 tokens per session scan A bb9c56c42409

Subscribe to this mod's changes

LangChain Middleware & HITL is a skill published in the GitHub repository jackjin1997/ClawForge (12 stars, last pushed 2mo ago), with no licence file. It adds 63 tokens to every session and 2,017 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-30.

Related

Other skills, from other repositories

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

officecli-data-dashboard

Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to…

iOfficeAI/OfficeCLI · 157 tokens

invest

First-time fork users: run the invest-setup skill first to initialize. The main flow lives in this skill (the AI agent uses the CLI/MCP to view the portfolio / run the committee / replay decision history). The Web GUI has been retired (2026-07) — every capability is exposed via CLI subcommands / MCP tools. The backend…

longsizhuo/openInvest · 261 tokens

pentest-api-deep

Deep OWASP API Security Top 10 testing for REST, GraphQL, gRPC, and WebSocket APIs — BFLA, mass assignment, rate limiting, and unsafe consumption.

jd-opensource/JoySafeter · 43 tokens

cortex-mem-mcp

Persistent memory enhancement for AI agents. Store conversations, search memories with semantic retrieval, and recall context across sessions. Use this skill when you need to remember user preferences, past conversations, project context, or any information that should persist beyond the current session. Provides…

sopaco/cortex-mem · 72 tokens

invest-backup

Back up / restore openInvest's local state — memory/ (holdings, strategy, user profile, committee records, dream logs) + db/ (trade ledger, job run history, market-data cache) + .env (SMTP/API credentials) + userprofile.json. All of this data is .gitignore'd with no historical versions in git, so a single accidental…

longsizhuo/openInvest · 202 tokens