open-source-boundary

open-source-boundary is a cursor rule for Cursor from xuliang2024/cutcli-cookbook. It costs 1,585 tokens per session, scanned C, original, MIT.

A set of rules defining what code and information may move between an open-source repository and a private repository. It protects private source code, build files, binaries, and internal data from being copied publicly.

In plain words
What is it for?
Use it when documenting, synchronizing, or reviewing changes between the two repositories, especially when examples must use only the public command-line interface.
Why use it?
It helps prevent accidental disclosure of closed-source implementation details while allowing approved public documentation and command examples.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/xuliang2024/cutcli-cookbook/open-source-boundary
Clone the repo
git clone --depth 1 https://github.com/xuliang2024/cutcli-cookbook

Made for: Cursor.

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 open-source-boundary

README.md
[![agentmods](https://agentmods.dev/badge/rules/xuliang2024/cutcli-cookbook/open-source-boundary.svg)](https://agentmods.dev/rules/xuliang2024/cutcli-cookbook/open-source-boundary)
Your own site
<a href="https://agentmods.dev/rules/xuliang2024/cutcli-cookbook/open-source-boundary"><img src="https://agentmods.dev/badge/rules/xuliang2024/cutcli-cookbook/open-source-boundary.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,585 This file is loaded in full into every session.
When invoked 1,585 The same file — it is already loaded in full.
Security scan C 2 findings. Scan, not verified.
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 $0.01585 $0.01585
Opus 5 $0.00792 $0.00792
Sonnet 5 $0.00317 $0.00317
Haiku 4.5 $0.00159 $0.00159

Measured 4d ago against content hash 04bec3cc423c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

open-source-boundary scanned grade C with 2 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 4d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `replacements`:`npm install -g cut_cli` → `curl -s https://cutcli.com/cli | bash`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `replacements`:`npm install -g cut_cli` → `curl -s https://cutcli.com/cli | bash`
.cursor/rules/open-source-boundary.mdc · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

开源 / 闭源边界(安全关键)

⚠ 这是本仓最重要的安全约束。违反任何一条都可能泄露 cutcli 闭源核心代码。

仓库定位

路径 状态
cutcli-cookbook(本仓) /Users/m007/codes/cutcli-cookbook/ 公开 GitHub: https://github.com/xuliang2024/cutcli-cookbook
jy_cli /Users/m007/codes/jy_cli/ 闭源 私有,不得泄露

四条铁律

1. 公开仓永远不出现这些路径的内容

闭源路径 包含的敏感内容
jy_cli/src/ TypeScript 源码、API 实现、内部模型
jy_cli/dist/ 编译产物
jy_cli/binaries/ 各平台二进制
jy_cli/worker/ cutcli.com 的 worker 实现
jy_cli/scripts/build-*.sh 构建脚本
jy_cli/.env 任何 .env 内容

✅ 公开仓自己worker/(即 cutcli-cookbook/worker/)是 docs.cutcli.com 的反向代理,开源是合理的,不属于禁区。

2. 案例只调用公开 CLI 命令 cutcli xxx

  • ✅ 允许:cutcli draft createcutcli captions add ...
  • ❌ 禁止:import { addCaptions } from 'cut_cli/api/...'
  • ❌ 禁止:访问 ~/.cut_cli/ 内部数据
  • ❌ 禁止:直接读写剪映草稿 JSON 字段

3. 闭源 → 公开的内容流动只有一条路径

jy_cli/docs/cli.md, api.md, README.md          (中文源)
jy_cli/docs/cli.en.md, api.en.md, README.en.md (英文源;TODO 待补)
            ↓
jy_cli/scripts/sync-to-cookbook.mjs (单向 + sanitizer + 双输出)
            ↓
cutcli-cookbook/docs/reference/{cli,api,concepts}.md      ← 英文
cutcli-cookbook/docs/zh/reference/{cli,api,concepts}.md   ← 中文

详见 jy_cli/scripts/sync.config.json。所有同步都过:

  • stripBlocks:删除 <!-- internal -->...<!-- /internal --> 段落
  • stripBlocks:删除 <!-- TODO-internal: ... --> 单行
  • replacementscut <subcommand>cutcli <subcommand>
  • replacementsnpm install -g cut_clicurl -s https://cutcli.com/cli | bash
当前过渡态(cookbook 仓 i18n 已上线、闭源 sync 待升级)

闭源 sync 脚本目前只有中文输出。在它升级成双输出之前,本仓采取保底措施:

  • docs/reference/{cli,api,concepts}.md:暂时仍是中文,等闭源仓产出英文源后由 sync 覆盖
  • docs/zh/reference/{cli,api,concepts}.md:直接是中文(PR 1 时从 root 复制过来)
  • scripts/check-i18n-pairs.mjs 把这三个文件加入 SYNC_GENERATED 白名单,跳过强制成对

闭源仓升级后:

  1. jy_cli/docs/ 增加 cli.en.md / api.en.md / README.en.md 三份英文源
  2. jy_cli/scripts/sync-to-cookbook.mjs 改成双输出,sync.test.mjs 增加双语用例
  3. node scripts/sync-to-cookbook.mjs 同时覆盖 cookbook 的 root 与 zh
  4. 公开仓侧:把 SYNC_GENERATED 白名单从 check-i18n-pairs.mjs 移除(双语都强制存在)

Read the full file on GitHub · 120 lines

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. 4d ago First seen · 120 lines · 1,585 tokens per session scan C 04bec3cc423c

Subscribe to this mod's changes

open-source-boundary is a cursor rule published in the GitHub repository xuliang2024/cutcli-cookbook (192 stars, last pushed 3mo ago), licensed MIT. It adds 1,585 tokens to every session, about $0.0079 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.