safety

safety is a skill for Claude Code, Codex from langchain-ai/deepagents. It costs 48 tokens per session (787 once invoked), scanned A, original, MIT.

A safety checklist for consequential coding actions such as committing, pushing, building containers, publishing, or adding dependencies.

In plain words
What is it for?
It checks sensitive files and diffs, push destinations, destructive Git commands, Docker image practices, and new dependencies before action.
Why use it?
It reduces the risk of exposing secrets, changing the wrong Git target, performing destructive operations, or shipping unsafe container and dependency changes.

Skill for Claude CodeCodex ✓ vendor

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

Good fit It checks sensitive files and diffs, push destinations, destructive Git commands, Docker image practices, and new dependencies before action.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langchain-ai/deepagents/safety
About the project

Deep Agents is an extensible agent harness that provides an out-of-the-box agent for long, multi-step tasks, with features such as planning, sub-agents, filesystem access, context management, memory, and human approval of tool calls. It is used by developers building agents with different language models, and its catalogue entries extend the harness with reusable skills, MCP servers, and instructions.

langchain-ai/deepagents · 30,344 stars · on GitHub · docs.langchain.com

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 langchain-ai/deepagents --skill safety
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/deepagents

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 safety

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/langchain-ai/deepagents/safety"><img src="https://agentmods.dev/badge/skills/langchain-ai/deepagents/safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 787 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 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.00048 $0.00787
Opus 5.5 $0.00019 $0.00315
Sonnet 5.5 $0.00010 $0.00157
Haiku 4.5 $0.00005 $0.00079

Measured 18d ago against content hash dc2a02657ebb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

safety 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 18d 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.

libs/talon/deepagents_talon/defaults/skills/safety/SKILL.md · 31 lines

How it starts

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

Safety preflight

Use these checks before the relevant action, not as a session-wide prerequisite. This is guidance, not a tool permission or an automatic approval gate. Respect the repository's instructions and existing approval controls; if a check cannot be completed, explain the uncertainty and do not claim it passed.

Secrets

  • Treat credentials, private keys, tokens, and secret-bearing files as sensitive, regardless of their names. Do not display values in chat, commands, logs, diffs, or tool arguments. Use environment-variable names, secret-store references, or file paths where the tool supports them. Do not print the environment or decode secrets just to inspect them.
  • A workflow may need to consume a secret: use its intended secret-store, environment, or file interface without copying the value into source, history, or a public artifact. If a tool requires a literal value in a logged command or other exposed input, stop and seek a safer interface. Check presence or metadata without exposing contents where possible.
  • Before committing or publishing, inspect changed paths and diffs for accidental secrets. Avoid dumping suspected values while investigating; if exposed, contain the leak and recommend rotation through the appropriate owner.

Git writes and destructive operations

  • Before committing, inspect git status, staged paths (git diff --cached --name-only), and the staged diff using a local scanner or redacted review if it may contain secrets. Confirm only intended files are staged and no credentials or local secret files are included. Unstage unwanted files without discarding local changes; do not rely on .gitignore to protect already tracked files.
  • Before pushing, inspect the actual destination (git remote get-url <remote>), branch and refspec. Specify the intended remote and branch explicitly. Stop for clarification when the destination is unexpected or its ownership is unclear; do not assume a particular organization or forbid legitimate forks.
  • Before force-pushing, resetting, cleaning, deleting branches or stashes, or other work-losing operations, inspect what would be overwritten or removed and identify the exact target. Prefer reversible alternatives and --force-with-lease where appropriate. Obtain explicit confirmation before discarding another person's work or unrecoverable local changes; never treat a preview as authorization.

Read the full file on GitHub · 31 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. 18d ago First seen · 31 lines · 48 tokens per session scan A dc2a02657ebb

Subscribe to this mod's changes

safety is a skill published in the GitHub repository langchain-ai/deepagents (30,344 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 787 once invoked, about $0.0002 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-09-29.