SourceGit 用久了内存会悄悄涨到 1 GB 以上。排查发现,TextMate 语法高亮的 grammar 数据占了其中约 350 MB,而且是同一个 grammar 被反复加载、各自缓存。
阅读全文
Claude Agent SDK 在调用 API 时会暴露自己是 SDK 的身份,导致 Claude 在 system prompt 中声称自己是 "running within the Claude Agent SDK",而不是官方 CLI。如果你想让 Claude 表现得像原生 CLI,需要从多个层面进行身份伪装。
阅读全文
通过 Claude Agent SDK 调用 Claude Code 时,系统提示词会变成:
You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK.
或者:
You are a Claude agent, built on Anthropic's Claude Agent SDK.
而智谱要求系统提示词必须开头为:
You are Claude Code, Anthropic's official CLI for Claude.
否则可能会遇到以下错误:
阅读全文
最近次元链接等一些机场开始屏蔽 22 端口,导致无法通过 SSH 协议访问 GitHub/GitLab 等代码托管平台。遇到这种情况,可以使用 SSH over HTTPS 功能,通过 443 端口来连接 SSH 服务,从而绕过端口屏蔽的问题。
阅读全文
抽象的微软前两年对 dotnet 的 apt 源进行了调整,
从 Ubuntu 22.04 开始,Micro...
阅读全文