Skip to content
Back to skills

Cairn Proxy

ASecurity

The opt-out bidirectional HTTP proxy between Claude Code and the Anthropic API: cache-safe context injection and Cairn artifact stripping.

  • 7 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 2, 2026
ai-agentsshellapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned October 2, 2026

npx -y skills add jimovonz/cairn --skill cairn-proxy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairn Proxy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairn Proxy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jimovonz-cairn-proxy/badge)](https://www.skillsdirectory.com/skills/jimovonz-cairn-proxy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairn-proxy
description: The opt-out bidirectional HTTP proxy between Claude Code and the Anthropic API: cache-safe context injection and Cairn artifact stripping.
---

## API proxy (artifact-free injection)

`cairn/proxy/` is an opt-out bidirectional HTTP proxy between Claude Code and the Anthropic API. It injects retrieved context into outbound requests **without disturbing the cacheable prefix** (Anthropic prompt cache stays byte-exact — a prompt-cache integrity guard verifies this) and strips every Cairn artifact (`<memory>`/`[cm]` blocks, `<cairn_context>`, system reminders) from inbound responses, capturing the stripped artifacts via `sidecar.py` for the hook pipeline. It is the artifact-hiding alternative to tag-stripping: capture/injection keep working even if Claude Code changes its tag rendering.

- `server.py` runs a detached daemon (`start`/`stop`/`restart`, port-specific PID file) on `127.0.0.1:8789` (`CAIRN_PROXY_PORT`). It `dup2`s fd0←/dev/null and fd1/fd2←log so it never holds an inherited stdout pipe open.
- `install.sh` enables it **by default** (opt out with `CAIRN_PROXY_ENABLED=0`), installs a `c` shell launcher (marked, idempotent rc block — `c` routes through the proxy, bare `claude` stays direct), and a `*/5` keep-alive cron (`start` is idempotent).
- Context is injected only on agentic requests.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.