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.
npx skills add 0xNyk/lacp --skill session-hardeninggit clone --depth 1 https://github.com/0xNyk/lacpWrote 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/skills/0xnyk/lacp/session-hardening)<a href="https://agentmods.dev/skills/0xnyk/lacp/session-hardening"><img src="https://agentmods.dev/badge/skills/0xnyk/lacp/session-hardening/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/skills/0xnyk/lacp/session-hardening"><img src="https://agentmods.dev/badge/skills/0xnyk/lacp/session-hardening.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.00065 | $0.00397 |
| Opus 5.5 | $0.00026 | $0.00159 |
| Sonnet 5.5 | $0.00013 | $0.00079 |
| Haiku 4.5 | $0.00006 | $0.00040 |
Grade C, and why
session-hardening scanned grade C with 5 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 3mo 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.
Sends data to an external URLlowData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
- Data exfiltration via `curl --data @.env` Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- `chmod 777` → suggests specific masks Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- `curl | python/node` download-first patterns Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Recursive force deletemediumDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
description: "Production hardening for agent sessions. Includes pretool guards (blocks rm -rf, co-author injection, publishing without approval, data exfiltration), continuous QA (runs tests every N file writes), and ses Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `curl | python/node` download-first patterns What it actually says
Session Hardening
This plugin provides three layers of production hardening:
Pretool Guard (PreToolUse)
Blocks dangerous operations before they execute:
rm -rf→ suggeststrashinstead- Co-author injection in commits
npm/cargo/pip publishwithout approvalcurl | python/nodedownload-first patternschmod 777→ suggests specific masksgit reset --hard,git clean -f- Data exfiltration via
curl --data @.env - Push to main on public repos
Continuous QA (PostToolUse)
Runs your project's test command at configurable intervals during work:
- Detects test command from package.json, Makefile, Cargo.toml, pyproject.toml
- Fires every N file writes (default: 10)
- Injects failure feedback without blocking
- Includes thinking prompt on failure (think mode)
Session Context (SessionStart)
Injects at every session start:
- Git branch, recent commits, modified files
- Focus brief (current problem, beliefs, decisions)
- Handoff artifact from previous session
- System health score
- Self-Memory System context
Configuration
| Env Var | Default | Purpose |
|---|---|---|
LACP_EVAL_CHECKPOINT_ENABLED |
0 |
Enable continuous QA |
LACP_EVAL_CHECKPOINT_INTERVAL |
10 |
Test every N writes |
LACP_CONTEXT_MODE |
`` | Active mode (tdd, debugging, sprint, etc.) |
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.
- 3mo ago First seen · 46 lines · 65 tokens per session scan C ed414ffda302
session-hardening is a skill published in the GitHub repository 0xNyk/lacp (311 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 397 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 5 findings (sends data to an external url, asks for root, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
session-hardening compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| session-hardening0xNyk/lacp | Skill | 311 | 1mo ago | MIT | C | 65 | Claude Code |
| refocusingmvschwarz/openrig | Skill | 9.0k | today | Apache-2.0 | A | 59 | Claude Code |
| requirements-writermvschwarz/openrig | Skill | 9.0k | today | Apache-2.0 | A | 28 | Claude Code, Codex |
| oversight-teammvschwarz/openrig | Skill | 9.0k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| oma-scholarfirst-fluke/oh-my-agent | Skill | 1.5k | today | MIT | A | 30 | Claude Code |
| oma-hwpfirst-fluke/oh-my-agent | Skill | 1.5k | today | MIT | A | 38 | Claude Code |
| conversion-reviewandrooAGI/starnet | Skill | 2.0k | today | MIT | A | 47 | Claude Code, Codex |