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.
git clone --depth 1 https://github.com/Codeblockz/langchain-community-pluginWrote 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.
[](https://agentmods.dev/commands/codeblockz/langchain-community-plugin/new-chain)<a href="https://agentmods.dev/commands/codeblockz/langchain-community-plugin/new-chain"><img src="https://agentmods.dev/badge/commands/codeblockz/langchain-community-plugin/new-chain/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.
<a href="https://agentmods.dev/commands/codeblockz/langchain-community-plugin/new-chain"><img src="https://agentmods.dev/badge/commands/codeblockz/langchain-community-plugin/new-chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.02309 |
| Opus 5.5 | $0.00006 | $0.00924 |
| Sonnet 5.5 | $0.00003 | $0.00462 |
| Haiku 4.5 | $0.00002 | $0.00231 |
Grade A, and why
new-chain 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.
New Chain Command
Create a new LCEL chain file for common patterns.
Workflow
-
Ask the user which chain type they want:
summarization- Summarize documents or textextraction- Extract structured dataclassification- Classify text into categoriestranslation- Translate between languages
-
Get filename from argument or ask user (default:
chain.py) -
Generate the chain file using the appropriate template below
-
Inform user about customization options
Templates
Summarization Template
"""
Summarization Chain
Install: pip install langchain langchain-openai
"""
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.output_parsers import StrOutputParser
from langchain_openai import ChatOpenAI
def create_summarization_chain(
model: str = "gpt-4o",
style: str = "concise",
max_points: int = 5,
):
"""
Create a summarization chain.
Args:
model: The model to use
style: Summary style (concise, detailed, bullet_points)
max_points: Maximum bullet points for bullet_points style
"""
style_instructions = {
"concise": "Provide a brief, 2-3 sentence summary.",
"detailed": "Provide a comprehensive summary covering all main points.",
"bullet_points": f"Provide a summary as {max_points} bullet points.",
}
prompt = ChatPromptTemplate.from_template("""
Summarize the following text.
{style_instruction}
Text:
{text}
Summary:
""")
llm = ChatOpenAI(model=model, temperature=0)
chain = (
prompt.partial(style_instruction=style_instructions.get(style, style_instructions["concise"]))
| llm
| StrOutputParser()
)
return chain
def main():
# Create chain
chain = create_summarization_chain(style="bullet_points", max_points=5)
# Example usage
text = """
Artificial intelligence (AI) is transforming industries across the globe.
From healthcare to finance, AI applications are improving efficiency and
enabling new capabilities. Machine learning, a subset of AI, allows systems
to learn from data without explicit programming. Deep learning, using neural
networks, has achieved remarkable results in image and speech recognition.
However, challenges remain around bias, interpretability, and ethical use.
"""
summary = chain.invoke({"text": text})
print(summary)
if __name__ == "__main__":
main()
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.
- 2mo ago First seen · 396 lines · 15 tokens per session scan A ca386e6f0718
new-chain is a command published in the GitHub repository Codeblockz/langchain-community-plugin (3 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 2,309 once invoked, about $0.0001 per session on Opus 5.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.
new-chain compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| new-chainCodeblockz/langchain-community-plugin | Command | 3 | 9mo ago | Apache-2.0 | A | 15 | Claude Code |
| expectyonatangross/orchestkit | Command | 299 | yesterday | MIT | A | 51 | Claude Code, Cursor |
| carefulyonatangross/orchestkit | Command | 299 | yesterday | MIT | C | 84 | Claude Code, Cursor |
| pm-roadmapVandanaAjayDubey111/great-pm | Command | 3 | 1mo ago | MIT | A | 28 | Claude Code |
| remembermajor7apps/pensyve | Command | 99 | yesterday | none | A | 11 | Claude Code |
| model-cardHabitat-Thinking/ai-literacy-superpowers | Command | 120 | 18d ago | none | A | 44 | Claude Code |
| pm-review-user-01-happyevb87-tech/corpus | Command | 1 | 6mo ago | MIT | A | 0 | Claude Code |