docs: correct stale README facts (port, tool count, source availability) - #16
Open
245678000000 wants to merge 1 commit into
Open
docs: correct stale README facts (port, tool count, source availability)#16245678000000 wants to merge 1 commit into
245678000000 wants to merge 1 commit into
Conversation
Three facts in README.md / README_CN.md have drifted from the code: - BYOK server port in the architecture diagram was 9960. The default is 39831 everywhere in the tree (Cursor++/src/server/data/defaults.ts, installer/src/defaults.js, the cursor2plus.server.port contribution in Cursor++/package.json). 9960 appeared nowhere else. - "22 Agent Tools ... StrReplace". TOOL_REGISTRY in Cursor++/src/server/handlers/agent/toolkit/registry.ts registers 24 tools (SemanticSearch is commented out and not counted), and there is no StrReplace tool anywhere in src/ — the edit tool is Edit. - "This repository is for issue tracking and documentation only — source code is not published." The extension and installer sources have been in the repo since the Cursor++/ and installer/ subtree imports, under AGPL-3.0-or-later.
Rogers-F
added a commit
to Rogers-F/CCursor
that referenced
this pull request
Aug 29, 2026
- buildSummarySource: 总预算 min(0.6×窗口×4, 3.2e6) chars, 超限走官方
CC-012 max-min 水位分配 (长度升序配额; <200 chars 整条丢弃打
[omitted {role} message, N chars] 占位; user 截断保 <user_query> 块;
Read/Task 截断强制保留路径清单 + error/fail 行 + 末段结论)
- 三级兜底 streamSummaryWithFallback / generateSummaryWithFallback:
≤3 次重试 (attempt≥2 附 "Write a shorter summary" + 源预算递减
max(50K, min(÷2/÷3, 0.75×原长)); attempt 3 剥控制字符) → 确定性降级
(不经模型, 水位拼接 + 注入防御声明, 预算 clamp(窗口×2%×4, 50K, 3.2M))
→ '- Prior conversation compacted.'; 两路 runtime 换用同一实现
(流式 delta + heartbeat 保活)
- SUMMARY_HARD_CAP = 2×summaryReserve: 产出超限 → 一次 shorter-output
重试 → 仍超则 token 级裁剪至 cap, 超支率进观测日志
- SUMMARY_USER_TEMPLATE 附加 [truncated]/[omitted] 工具输出段
(SYSTEM_PROMPT 不动): 摘要须保留路径/命令/agentId 与结论,
原文可重跑工具找回
- 测试: CometixSpace#11 摘要源封顶+路径错误行 / CometixSpace#16 三次失败→确定性降级含防御声明 /
CometixSpace#17 水位分配 200 条不等长+user_query 存续 / #33 输出硬上界裁剪
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three facts in
README.md/README_CN.mdhave drifted from the code. Docs only — no code changes.127.0.0.1:9960127.0.0.1:39831Cursor++/src/server/data/defaults.ts:15,installer/src/defaults.js:18, and thecursor2plus.server.portdefault inCursor++/package.jsonare all39831.9960appears nowhere else in the tree.22 Agent Tools — … StrReplace …24 Agent Tools — … Edit …TOOL_REGISTRYinCursor++/src/server/handlers/agent/toolkit/registry.tsregisters 24 tools (SemanticSearchis commented out and not counted). There is noStrReplaceanywhere insrc/— the edit tool isEdit.Cursor++/andinstaller/in this repo, AGPL-3.0-or-laterThe port line was spotted by @ncdeng in #14 and never got its own PR.
Note
If you count the agent tools differently (e.g. excluding the MCP meta-tools), say the word and I'll drop that row — the other two stand on their own.
Test plan
Documentation only; nothing to run. Each claim is checkable against the file:line references above.