Fenceline — Security skill for Claude Code
Audit coding-agent session logs for boundary violations after the fact — forbidden commands, escapes outside allowed roots, off-limits hosts — with scope filters so nightly gates only page on recent b.
How to install Fenceline
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pixle-codes/fenceline and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Fenceline does
Audit coding-agent session logs for boundary violations after the fact — forbidden commands, escapes outside allowed roots, off-limits hosts — with scope filters so nightly gates only page on recent behavior.
Alternatives in Security
- Sanyuan Skills — Expert code review skill: SOLID, security, performance, error handling, boundary conditions 2.7k ★
- OpenTag — Open-source, channel-native agent gateway for Slack 499 ★
- Memory Self Review — Mine recent agent history (claude-mem + usage stats) for recurring failures and repeated patterns, audit MEMOR 297 ★
README
fenceline
Post-hoc boundary auditor for coding agents.
You gave your autonomous agent hard boundaries: never sudo, stay inside $HOME, host X is off-limits, no listening ports. Those boundaries are prose in a prompt. fenceline turns them into a mechanical audit over the session logs your agent already wrote — every bash call, every file touch, replayed against policy, with evidence.
Runtime guardrails (hooks) prevent; fenceline **verifies**. It needs no integration, no SDK, no daemon: it reads opencode's sqlite store read-only (alongside a live agent), OpenAI Codex CLI rollouts, Claude Code transcripts, or any JSONL session log — offline, stdlib-only.
What it checks
| rule | severity | catches |
|---|---|---|
forbidden-command |
error | bash whose head token is forbidden (sudo, apt, systemctl, docker, useradd, shutdown…). Basename-normalized, so /usr/bin/sudo counts; echo sudo … does not. |
destructive-pattern |
error | mkfs, dd of=/dev/sd*, and rooted-at-/ forms of rm -r* / chmod 777. Anchored: rm -rf /tmp/x is fine. |
outside-root |
error | file-tool targets whose realpath escapes allowed roots (default $HOME). Symlink escapes resolve and get caught. |
remote-host |
error | opt-in (--remote-host): commands naming a restricted host without the required token (e.g. any storagebox access not under agent-backup). |
listen-server |
warn | http.server, nc -l, uvicorn, flask run, gunicorn, npx serve, npm dev. |
Assistant *prose* is never scanned — only tool calls. An agent discussing why sudo is forbidden stays clean.
Install
pip install . # or just run it from the checkout:
python3 -m fenceline --help
Python 3.11+, zero dependencies.
Usage
No arguments audits the default opencode store (`~/.local/share/opencode/opencode.db`) when present:
$ python3 -m fenceline --statusline --remote-host storagebox --remote-allow agent-backup
events:1974 violations:3+0w # exit 1
``
Related Skills
Hardstop Audit Log
Show recent entries from the Hardstop audit log, including blocked and allowed commands.
Review Cicd Pipeline
Audit CI/CD pipelines for missing quality gates, unpinned actions, secret exposure in logs, and deploy steps t
Review Iac Consistency
Audit infrastructure-as-code for per-environment drift, over-permissive IAM policies, unencrypted resources, a
Skill Quality Research
Craft-first quality review for Agent Skill repos — an LLM judges how well a skill is WRITTEN (trigger design,
Cost Plan
LLM cost guardrails & quota-abuse audit — plan only, no limits added until approved
Roblox Best Practices Skill
Framework-agnostic Roblox/Luau best-practices skill for AI agents. Performance, security, data, platform limit
Related Agents
Quorum Dev
The only agent allowed to write code during a Quorum run. Implements the plan or intent within the limits of t
Gads Keywords
Keyword research analyst. Uses KeywordPlanIdeaService to expand seed terms with monthly search volume, competi
Delivery Lead
Orchestrator and Scrum Master. Owns flow and gate transitions — no work advances between gates without its app