Surge
Network proxy and rule engine for macOS / iOS. Use surge-cli for status checks and policy tweaks; agents can use the bundled Skill for scripted operations.
surge-cli
Resolve the executable in this order:
surge-clionPATH/Applications/Surge.app/Contents/Applications/surge-cli
Prefer --raw for JSON output. Add --remote password@host:port when targeting a remote Surge instance.
Common Commands
Inspect runtime environment:
Dump policy and profile snapshots:
Apply runtime changes (dump first, then verify with environment):
Agent Skill
Surge ships an Agent Skill inside the app bundle:
/Applications/Surge.app/Contents/Resources/Skills/surge
On this machine, personal skills follow the same layout as Claude Code: ~/.agents/skills holds content, and ~/.claude/skills symlinks into it. Link to the bundle so the skill updates when Surge is upgraded.
Verify:
Notes:
- You do not need to edit
~/.agents/.skill-lock.json; that file tracks skills installed vianpx skills addfrom GitHub only. - Cursor loads the same personal skills from
~/.claude/skills. If you use~/.cursor/skills, link the same way:ln -sfn "../../.agents/skills/surge" "$HOME/.cursor/skills/surge".
Proxy Port
Other local tools (macOS proxy env, WSL proxy env) often use 7890 for HTTP/SOCKS; keep that aligned with Surge’s HTTP/SOCKS5 listener.