portcall: Instructions file for Claude Code

CLAUDE.md

portcall CLAUDE.md is an instructions file for Claude Code from pizza6899-crypto/portcall. It costs 850 tokens per session, scanned A, original, MIT.

A Claude Code instruction file for a live macOS service, covering safe process control, test instances, secrets, and read-only operations.

In plain words
What is it for?
It is for operating the service safely, including identifying exact process IDs, managing launchd services, and keeping test instances separate.
Why use it?
It reduces the risk of accidentally stopping the production daemon or affecting live traffic while testing or changing it.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths.

This is pizza6899-crypto/portcall's own configuration. It tells Claude Code how to work on portcall itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything portcall configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pizza6899-crypto/portcall. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pizza6899-crypto/portcall/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/pizza6899-crypto/portcall

Made for: Claude Code.

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 portcall CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pizza6899-crypto/portcall/claude-md/github.svg)](https://agentmods.dev/instructions/pizza6899-crypto/portcall/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/pizza6899-crypto/portcall/claude-md"><img src="https://agentmods.dev/badge/instructions/pizza6899-crypto/portcall/claude-md/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 portcall CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pizza6899-crypto/portcall/claude-md"><img src="https://agentmods.dev/badge/instructions/pizza6899-crypto/portcall/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 850 This file is loaded in full into every session.
When invoked 850 The same file — it is already loaded in full.
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.00850 $0.00850
Opus 5.5 $0.00340 $0.00340
Sonnet 5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

Measured 3d ago against content hash f8c110e5e16b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-24, from the pricing page.

Security

Grade A, and why

portcall CLAUDE.md 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 3d 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.

CLAUDE.md · 71 lines

What it actually says

portcall

이 저장소는 실서비스 데몬입니다. com.portcall.gateway 가 launchd 로 상시 떠 있고 mcp.sukelo.com 으로 외부에 열려 있습니다. 로컬 실험 대상이 아니라 지금 트래픽을 받는 프로세스라는 걸 전제로 작업합니다.

프로세스를 죽일 때

패턴으로 죽이지 않습니다. pkill -f, killall 은 프로세스 표에 대한 추측이고, 추측은 틀립니다.

쓰지 말 것   pkill -f 'dist/src/server.js.*'
             killall node
             lsof -ti tcp:PORT | xargs kill

대신         pgrep -fl <패턴>      ← 먼저 무엇이 걸리는지 눈으로 본다
             kill <확인한 PID>     ← 그 PID 만 죽인다

2026-09-20 에 위 첫 줄로 운영 데몬을 두 번 죽였습니다. 테스트 인스턴스를 정리하려던 명령이 운영 프로세스까지 잡았습니다. KeepAlive 가 살려내서 피해는 10초 남짓한 다운타임이었지만, 재시작은 열려 있는 연결을 끊고 guard 의 메모리 상태를 지웁니다 — 인증 실패 차단이 함께 풀립니다.

.claude/hooks/daemon-kill-guard.py 가 이걸 강제합니다. launchd 가 관리 중인 PID 에 걸리는 kill 은 실행 전에 막힙니다. 훅에 막히면 우회할 방법을 찾지 말고 PID 를 확인하는 절차를 따르십시오.

데몬 자체를 다뤄야 할 때는 kill 이 아니라 launchctl 입니다.

재시작   launchctl kickstart -k gui/$(id -u)/com.portcall.gateway
정지     launchctl bootout gui/$(id -u)/com.portcall.gateway
기동     launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.portcall.gateway.plist

plist 의 환경변수를 바꿨다면 kickstart 로는 반영되지 않습니다. bootout 후 bootstrap 이어야 합니다.

테스트 인스턴스

운영과 같은 포트(7100)를 쓰지 않습니다. 빈 포트에 별도로 띄우고, 정리할 때는 그 인스턴스의 PID 를 직접 붙잡아 죽입니다.

PORTCALL_PORT=7199 PORTCALL_VAULT_PATH=<임시> node dist/src/server.js &
TEST_PID=$!
...
kill "$TEST_PID"

비밀값

ps, launchctl list, plist 덤프, 캐시 파일 덤프는 그 자체로 비밀을 흘립니다. cloudflared 는 터널 토큰을 명령줄 인자로 들고 있고, LaunchAgent plist 에는 PORTCALL_TOKEN 과 KIS 자격증명이 들어 있습니다.

점검할 때는 볼 필드를 먼저 정하고 나머지는 걷어냅니다. 키 이름을 블랙리스트로 거르는 방식은 쓰지 않습니다 — 토큰 캐시의 키 이름이 value 라서 'token' in key 필터를 그대로 통과한 적이 있습니다.

값이 필요하면 길이나 해시만 출력합니다. 실제 값은 클립보드나 파일 같은 경로로 전달하고 대화에는 남기지 않습니다. 이 저장소는 공개 입니다.

조회 전용

KIS 플러그인에는 매수·매도·정정·취소가 없고, 앞으로도 추가하지 않습니다. 읽기 전용은 세 겹으로 강제돼 있습니다(주문 툴 미구현, 경로 허용목록, /trading/ 네임스페이스의 tr_id 검사). 셋 다 테스트가 지키고 있습니다.

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. 3d ago First seen · 71 lines · 850 tokens per session scan A f8c110e5e16b

Subscribe to this mod's changes

portcall CLAUDE.md is an instructions file published in the GitHub repository pizza6899-crypto/portcall (0 stars, last pushed 3d ago), licensed MIT. It adds 850 tokens to every session, about $0.0034 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-21.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,406 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, repository design references, quickstart — add a new integration in 5 steps and integration architecture.

github/spec-kit · 7,326 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 6,923 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens