[{"data":1,"prerenderedAt":9676},["ShallowReactive",2],{"blog-posts":3},[4,3145,3336,3374,3663,3695,4771,5072,5123,5187,5544,5750,5788,6297,6347,6435,6568],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":8,"date":10,"categories":11,"tags":12,"draft":7,"body":17,"_type":3139,"_id":3140,"_source":3141,"_file":3142,"_stem":3143,"_extension":3144},"\u002Fposts\u002Fclaude-code-settings","posts",false,"","Claude Code 配置分享","2026-06-23 14:22:12","殆罔集",[13,14,15,16],"LLMs","AI Agent","Agent","Claude Code",{"type":18,"children":19,"toc":3111},"root",[20,68,74,88,101,150,201,222,282,287,327,332,345,351,412,417,422,473,479,484,606,619,656,668,748,753,765,777,790,929,957,987,999,1011,1069,1105,1136,1148,1160,1307,1382,1402,1429,1434,1658,1669,1708,1713,1877,1895,1991,1996,2001,2006,3082,3086,3105],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25,28,35,37,43,45,51,53,59,60,66],{"type":26,"value":27},"text","Claude Code 用户级的配置文件在 ",{"type":21,"tag":29,"props":30,"children":32},"code",{"className":31},[],[33],{"type":26,"value":34},"~\u002F.claude\u002Fsettings.json",{"type":26,"value":36},"，环境变量通过 ",{"type":21,"tag":29,"props":38,"children":40},{"className":39},[],[41],{"type":26,"value":42},"env",{"type":26,"value":44}," 键值对来设置。除此之外常用的键还有 ",{"type":21,"tag":29,"props":46,"children":48},{"className":47},[],[49],{"type":26,"value":50},"permissions",{"type":26,"value":52},"、",{"type":21,"tag":29,"props":54,"children":56},{"className":55},[],[57],{"type":26,"value":58},"hooks",{"type":26,"value":52},{"type":21,"tag":29,"props":61,"children":63},{"className":62},[],[64],{"type":26,"value":65},"enabledPlugins",{"type":26,"value":67}," 等。",{"type":21,"tag":69,"props":70,"children":72},"h2",{"id":71},"为什么要花心思配它",[73],{"type":26,"value":71},{"type":21,"tag":22,"props":75,"children":76},{},[77,86],{"type":21,"tag":78,"props":79,"children":83},"a",{"href":80,"rel":81},"https:\u002F\u002Fwww.theregister.com\u002Fsoftware\u002F2026\u002F04\u002F01\u002Fclaude-codes-source-reveals-extent-of-system-access\u002F5222658",[82],"nofollow",[84],{"type":26,"value":85},"The Register 2026 年 4 月那篇 Claude Code 源码分析",{"type":26,"value":87}," 出来之后，我把自己的 settings 又调整了一些。几个让我在意的点：",{"type":21,"tag":22,"props":89,"children":90},{},[91,93,99],{"type":26,"value":92},"遥测默认开启。CC 每次启动会上报 user ID、session ID、组织 UUID、邮箱、平台、终端类型、当前的 feature gates；网络不通就先落盘到 ",{"type":21,"tag":29,"props":94,"children":96},{"className":95},[],[97],{"type":26,"value":98},"~\u002F.claude\u002Ftelemetry\u002F",{"type":26,"value":100}," 等下次再发送。只有走 Bedrock \u002F Vertex \u002F Foundry 时才默认关闭。错误上报那条路也类似，CC 抛异常时把 cwd 和路径片段一起传上去。目录名本身也是信息，算半个泄露。",{"type":21,"tag":22,"props":102,"children":103},{},[104,106,112,113,119,120,126,127,133,135,141,143,148],{"type":26,"value":105},"更值得注意的是本地留底。每一次 ",{"type":21,"tag":29,"props":107,"children":109},{"className":108},[],[110],{"type":26,"value":111},"Read",{"type":26,"value":52},{"type":21,"tag":29,"props":114,"children":116},{"className":115},[],[117],{"type":26,"value":118},"Bash",{"type":26,"value":52},{"type":21,"tag":29,"props":121,"children":123},{"className":122},[],[124],{"type":26,"value":125},"Grep",{"type":26,"value":52},{"type":21,"tag":29,"props":128,"children":130},{"className":129},[],[131],{"type":26,"value":132},"Edit\u002FWrite",{"type":26,"value":134}," 的输入输出都以明文 JSONL 写进会话归档。还没正式发布的 autoDream 会去 grep 这堆归档，把摘要写进 ",{"type":21,"tag":29,"props":136,"children":138},{"className":137},[],[139],{"type":26,"value":140},"MEMORY.md",{"type":26,"value":142},"，然后 ",{"type":21,"tag":29,"props":144,"children":146},{"className":145},[],[147],{"type":26,"value":140},{"type":26,"value":149}," 又会注入下一轮 system prompt。这流程走完，模型看过的文件最终就进了 API 的。",{"type":21,"tag":22,"props":151,"children":152},{},[153,155,161,163,169,170,176,177,183,185,191,193,199],{"type":26,"value":154},"企业部署还多一层 ",{"type":21,"tag":29,"props":156,"children":158},{"className":157},[],[159],{"type":26,"value":160},"policySettings",{"type":26,"value":162},"，每小时拉一次，可以热更新 ",{"type":21,"tag":29,"props":164,"children":166},{"className":165},[],[167],{"type":26,"value":168},".env",{"type":26,"value":52},{"type":21,"tag":29,"props":171,"children":173},{"className":172},[],[174],{"type":26,"value":175},"PATH",{"type":26,"value":52},{"type":21,"tag":29,"props":178,"children":180},{"className":179},[],[181],{"type":26,"value":182},"LD_PRELOAD",{"type":26,"value":184},"、permissions 和 feature flag。个人用户用不到，但知道这个通道存在比较好。自动更新走 Statsig \u002F GrowthBook，Anthropic 想禁用某个版本一句话的事，所以保守做法是关闭自动更新、自己锁版本。我自己是 brew 安装的，不 ",{"type":21,"tag":29,"props":186,"children":188},{"className":187},[],[189],{"type":26,"value":190},"upgrade",{"type":26,"value":192}," 就停在当前版本上，但只要 ",{"type":21,"tag":29,"props":194,"children":196},{"className":195},[],[197],{"type":26,"value":198},"brew upgrade",{"type":26,"value":200}," 一下就直接跳到最新——如果想严格锁版本，还是得用 npm 指定具体版本号安装。",{"type":21,"tag":22,"props":202,"children":203},{},[204,206,212,214,220],{"type":26,"value":205},"本文后面那些环境变量和 ",{"type":21,"tag":29,"props":207,"children":209},{"className":208},[],[210],{"type":26,"value":211},"permissions.deny",{"type":26,"value":213},"、空 ",{"type":21,"tag":29,"props":215,"children":217},{"className":216},[],[218],{"type":26,"value":219},"attribution",{"type":26,"value":221},"，本质就是在缩减这个 CC 暴露的信息：",{"type":21,"tag":223,"props":224,"children":225},"ul",{},[226,238,263],{"type":21,"tag":227,"props":228,"children":229},"li",{},[230,236],{"type":21,"tag":29,"props":231,"children":233},{"className":232},[],[234],{"type":26,"value":235},"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",{"type":26,"value":237}," 把 telemetry、错误上报、自动更新和其他后台请求一并关闭，相当于把上面前两条 + 版本远控一起断掉。",{"type":21,"tag":227,"props":239,"children":240},{},[241,246,248,254,255,261],{"type":21,"tag":29,"props":242,"children":244},{"className":243},[],[245],{"type":26,"value":211},{"type":26,"value":247}," 把 ",{"type":21,"tag":29,"props":249,"children":251},{"className":250},[],[252],{"type":26,"value":253},"~\u002F.ssh\u002F",{"type":26,"value":52},{"type":21,"tag":29,"props":256,"children":258},{"className":257},[],[259],{"type":26,"value":260},".\u002Fsecrets\u002F",{"type":26,"value":262}," 封掉，就算 autoDream 哪天默认开启去扫归档，这些路径它也读不进来。",{"type":21,"tag":227,"props":264,"children":265},{},[266,272,274,280],{"type":21,"tag":29,"props":267,"children":269},{"className":268},[],[270],{"type":26,"value":271},"attribution.commit\u002Fpr",{"type":26,"value":273}," 留空，不在 git history 里留 AI 痕迹。顺带一提，源码里有个 ",{"type":21,"tag":29,"props":275,"children":277},{"className":276},[],[278],{"type":26,"value":279},"undercover.ts",{"type":26,"value":281},"，在仓库被识别成\"明确拒绝 AI 贡献的开源项目\"时会主动让 Claude 隐藏作者身份 —— 这个态度本身就挺微妙的。",{"type":21,"tag":22,"props":283,"children":284},{},[285],{"type":26,"value":286},"文章里还提到两个设置，我没用，但还是记一下：",{"type":21,"tag":223,"props":288,"children":289},{},[290,305],{"type":21,"tag":227,"props":291,"children":292},{},[293,303],{"type":21,"tag":294,"props":295,"children":296},"strong",{},[297],{"type":21,"tag":29,"props":298,"children":300},{"className":299},[],[301],{"type":26,"value":302},"CLAUDE_CODE_DISABLE_AUTO_MEMORY=1",{"type":26,"value":304},"：关闭所有 memory \u002F telemetry 写入。",{"type":21,"tag":227,"props":306,"children":307},{},[308,317,319,325],{"type":21,"tag":294,"props":309,"children":310},{},[311],{"type":21,"tag":29,"props":312,"children":314},{"className":313},[],[315],{"type":26,"value":316},"CLAUDE_CODE_SIMPLE",{"type":26,"value":318},"（",{"type":21,"tag":29,"props":320,"children":322},{"className":321},[],[323],{"type":26,"value":324},"--bare",{"type":26,"value":326}," 模式）：直接关闭 memory 和 autoDream。",{"type":21,"tag":22,"props":328,"children":329},{},[330],{"type":26,"value":331},"下面进入正题。",{"type":21,"tag":69,"props":333,"children":335},{"id":334},"环境变量env",[336,338,343],{"type":26,"value":337},"环境变量（",{"type":21,"tag":29,"props":339,"children":341},{"className":340},[],[342],{"type":26,"value":42},{"type":26,"value":344},"）",{"type":21,"tag":346,"props":347,"children":349},"h3",{"id":348},"行为控制",[350],{"type":26,"value":348},{"type":21,"tag":223,"props":352,"children":353},{},[354,376,390],{"type":21,"tag":227,"props":355,"children":356},{},[357,366,368,374],{"type":21,"tag":294,"props":358,"children":359},{},[360],{"type":21,"tag":29,"props":361,"children":363},{"className":362},[],[364],{"type":26,"value":365},"CLAUDE_CODE_EFFORT_LEVEL",{"type":26,"value":367},"：执行任务的努力程度，",{"type":21,"tag":29,"props":369,"children":371},{"className":370},[],[372],{"type":26,"value":373},"max",{"type":26,"value":375}," 表示最充分的分析和规划。",{"type":21,"tag":227,"props":377,"children":378},{},[379,388],{"type":21,"tag":294,"props":380,"children":381},{},[382],{"type":21,"tag":29,"props":383,"children":385},{"className":384},[],[386],{"type":26,"value":387},"DISABLE_AUTOUPDATER",{"type":26,"value":389},"：关闭自动更新检查，避免在国内网络环境下卡住启动。",{"type":21,"tag":227,"props":391,"children":392},{},[393,402,404,410],{"type":21,"tag":294,"props":394,"children":395},{},[396],{"type":21,"tag":29,"props":397,"children":399},{"className":398},[],[400],{"type":26,"value":401},"ENABLE_TOOL_SEARCH",{"type":26,"value":403},"：启用工具搜索，让 Claude 通过 ",{"type":21,"tag":29,"props":405,"children":407},{"className":406},[],[408],{"type":26,"value":409},"ToolSearch",{"type":26,"value":411}," 动态发现和加载工具的 schema，节省启动时的 context。",{"type":21,"tag":346,"props":413,"children":415},{"id":414},"隐私与流量控制",[416],{"type":26,"value":414},{"type":21,"tag":22,"props":418,"children":419},{},[420],{"type":26,"value":421},"三个相关的环境变量，避免暴露隐私：",{"type":21,"tag":223,"props":423,"children":424},{},[425,439,453],{"type":21,"tag":227,"props":426,"children":427},{},[428,437],{"type":21,"tag":294,"props":429,"children":430},{},[431],{"type":21,"tag":29,"props":432,"children":434},{"className":433},[],[435],{"type":26,"value":436},"DISABLE_TELEMETRY",{"type":26,"value":438},"：关闭遥测数据上报，不上传使用统计。",{"type":21,"tag":227,"props":440,"children":441},{},[442,451],{"type":21,"tag":294,"props":443,"children":444},{},[445],{"type":21,"tag":29,"props":446,"children":448},{"className":447},[],[449],{"type":26,"value":450},"DISABLE_ERROR_REPORTING",{"type":26,"value":452},"：关闭错误报告，崩溃或异常时不会自动向 Anthropic 发送错误信息。",{"type":21,"tag":227,"props":454,"children":455},{},[456,464,466,471],{"type":21,"tag":294,"props":457,"children":458},{},[459],{"type":21,"tag":29,"props":460,"children":462},{"className":461},[],[463],{"type":26,"value":235},{"type":26,"value":465},"：一键关闭所有非必要网络流量，",{"type":21,"tag":294,"props":467,"children":468},{},[469],{"type":26,"value":470},"包含了前两者的功能（以及关闭了自动更新）",{"type":26,"value":472},"，同时还会禁用更新检查等其他后台请求。如果只想保留纯 API 调用，设这一个就够了。",{"type":21,"tag":346,"props":474,"children":476},{"id":475},"其他常用变量按需开启",[477],{"type":26,"value":478},"其他常用变量（按需开启）",{"type":21,"tag":22,"props":480,"children":481},{},[482],{"type":26,"value":483},"这些没出现在配置里，但切换 API 提供商时常用：",{"type":21,"tag":223,"props":485,"children":486},{},[487,501,515,584],{"type":21,"tag":227,"props":488,"children":489},{},[490,499],{"type":21,"tag":294,"props":491,"children":492},{},[493],{"type":21,"tag":29,"props":494,"children":496},{"className":495},[],[497],{"type":26,"value":498},"ANTHROPIC_AUTH_TOKEN",{"type":26,"value":500},"：API 密钥。使用第三方 API 代理（如火山引擎）时填代理提供的 key。",{"type":21,"tag":227,"props":502,"children":503},{},[504,513],{"type":21,"tag":294,"props":505,"children":506},{},[507],{"type":21,"tag":29,"props":508,"children":510},{"className":509},[],[511],{"type":26,"value":512},"ANTHROPIC_BASE_URL",{"type":26,"value":514},"：API 端点地址，切换模型提供商时改这里。",{"type":21,"tag":227,"props":516,"children":517},{},[518,527,529,538,539,548,549,558,560,566,568,574,576,582],{"type":21,"tag":294,"props":519,"children":520},{},[521],{"type":21,"tag":29,"props":522,"children":524},{"className":523},[],[525],{"type":26,"value":526},"ANTHROPIC_MODEL",{"type":26,"value":528}," \u002F ",{"type":21,"tag":294,"props":530,"children":531},{},[532],{"type":21,"tag":29,"props":533,"children":535},{"className":534},[],[536],{"type":26,"value":537},"ANTHROPIC_DEFAULT_OPUS_MODEL",{"type":26,"value":528},{"type":21,"tag":294,"props":540,"children":541},{},[542],{"type":21,"tag":29,"props":543,"children":545},{"className":544},[],[546],{"type":26,"value":547},"ANTHROPIC_DEFAULT_SONNET_MODEL",{"type":26,"value":528},{"type":21,"tag":294,"props":550,"children":551},{},[552],{"type":21,"tag":29,"props":553,"children":555},{"className":554},[],[556],{"type":26,"value":557},"ANTHROPIC_DEFAULT_HAIKU_MODEL",{"type":26,"value":559},"：指定各级别对应的实际模型名。当你用 ",{"type":21,"tag":29,"props":561,"children":563},{"className":562},[],[564],{"type":26,"value":565},"--model opus",{"type":26,"value":567}," 这类参数时，CLI 会读对应环境变量。值可以带后缀，比如 ",{"type":21,"tag":29,"props":569,"children":571},{"className":570},[],[572],{"type":26,"value":573},"glm-5.2[1m]",{"type":26,"value":575},"，",{"type":21,"tag":29,"props":577,"children":579},{"className":578},[],[580],{"type":26,"value":581},"[1m]",{"type":26,"value":583}," 表示 1M 上下文窗口。",{"type":21,"tag":227,"props":585,"children":586},{},[587,596,598,604],{"type":21,"tag":294,"props":588,"children":589},{},[590],{"type":21,"tag":29,"props":591,"children":593},{"className":592},[],[594],{"type":26,"value":595},"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE",{"type":26,"value":597},"：控制自动压缩（compact）的触发阈值。默认约 0.9（90%），调高（如 ",{"type":21,"tag":29,"props":599,"children":601},{"className":600},[],[602],{"type":26,"value":603},"0.95",{"type":26,"value":605},"）可以减少压缩频率、保留更多对话细节，调低则更早触发压缩、节省 token。",{"type":21,"tag":69,"props":607,"children":609},{"id":608},"模型model",[610,612,618],{"type":26,"value":611},"模型（",{"type":21,"tag":29,"props":613,"children":615},{"className":614},[],[616],{"type":26,"value":617},"model",{"type":26,"value":344},{"type":21,"tag":223,"props":620,"children":621},{},[622,636],{"type":21,"tag":227,"props":623,"children":624},{},[625,634],{"type":21,"tag":294,"props":626,"children":627},{},[628],{"type":21,"tag":29,"props":629,"children":631},{"className":630},[],[632],{"type":26,"value":633},"opus[1m]",{"type":26,"value":635},"：CLI 启动时默认使用的模型等级，表示用 Opus 级模型加 1M 上下文。",{"type":21,"tag":227,"props":637,"children":638},{},[639,641,646,648,654],{"type":26,"value":640},"切换模型或 API 提供商时，推荐用 ",{"type":21,"tag":294,"props":642,"children":643},{},[644],{"type":26,"value":645},"CC-Switch",{"type":26,"value":647}," 工具，可以在多套配置之间快速切换，省得手动改 ",{"type":21,"tag":29,"props":649,"children":651},{"className":650},[],[652],{"type":26,"value":653},"settings.json",{"type":26,"value":655},"。",{"type":21,"tag":69,"props":657,"children":659},{"id":658},"提交署名attribution",[660,662,667],{"type":26,"value":661},"提交署名（",{"type":21,"tag":29,"props":663,"children":665},{"className":664},[],[666],{"type":26,"value":219},{"type":26,"value":344},{"type":21,"tag":669,"props":670,"children":674},"pre",{"className":671,"code":672,"language":673,"meta":8,"style":8},"language-json shiki shiki-themes github-light github-dark","\"attribution\": {\n  \"commit\": \"\",\n  \"pr\": \"\"\n}\n","json",[675],{"type":21,"tag":29,"props":676,"children":677},{"__ignoreMap":8},[678,696,721,739],{"type":21,"tag":679,"props":680,"children":683},"span",{"class":681,"line":682},"line",1,[684,690],{"type":21,"tag":679,"props":685,"children":687},{"style":686},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[688],{"type":26,"value":689},"\"attribution\"",{"type":21,"tag":679,"props":691,"children":693},{"style":692},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[694],{"type":26,"value":695},": {\n",{"type":21,"tag":679,"props":697,"children":699},{"class":681,"line":698},2,[700,706,711,716],{"type":21,"tag":679,"props":701,"children":703},{"style":702},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[704],{"type":26,"value":705},"  \"commit\"",{"type":21,"tag":679,"props":707,"children":708},{"style":692},[709],{"type":26,"value":710},": ",{"type":21,"tag":679,"props":712,"children":713},{"style":686},[714],{"type":26,"value":715},"\"\"",{"type":21,"tag":679,"props":717,"children":718},{"style":692},[719],{"type":26,"value":720},",\n",{"type":21,"tag":679,"props":722,"children":724},{"class":681,"line":723},3,[725,730,734],{"type":21,"tag":679,"props":726,"children":727},{"style":702},[728],{"type":26,"value":729},"  \"pr\"",{"type":21,"tag":679,"props":731,"children":732},{"style":692},[733],{"type":26,"value":710},{"type":21,"tag":679,"props":735,"children":736},{"style":686},[737],{"type":26,"value":738},"\"\"\n",{"type":21,"tag":679,"props":740,"children":742},{"class":681,"line":741},4,[743],{"type":21,"tag":679,"props":744,"children":745},{"style":692},[746],{"type":26,"value":747},"}\n",{"type":21,"tag":22,"props":749,"children":750},{},[751],{"type":26,"value":752},"控制 Claude 在生成 commit message 和 PR 描述时附带的署名后缀（默认会加 \"Generated with Claude Code\" 之类的尾巴）。两个字段都置空，等于关掉署名 —— 提交历史干净，看不出哪些是 AI 写的。",{"type":21,"tag":69,"props":754,"children":756},{"id":755},"权限permissions",[757,759,764],{"type":26,"value":758},"权限（",{"type":21,"tag":29,"props":760,"children":762},{"className":761},[],[763],{"type":26,"value":50},{"type":26,"value":344},{"type":21,"tag":346,"props":766,"children":768},{"id":767},"allow预授权",[769,775],{"type":21,"tag":29,"props":770,"children":772},{"className":771},[],[773],{"type":26,"value":774},"allow",{"type":26,"value":776},"：预授权",{"type":21,"tag":22,"props":778,"children":779},{},[780,782,788],{"type":26,"value":781},"放行后无需弹确认框。常见的是放行特定域名的 ",{"type":21,"tag":29,"props":783,"children":785},{"className":784},[],[786],{"type":26,"value":787},"WebFetch",{"type":26,"value":789},"：",{"type":21,"tag":669,"props":791,"children":793},{"className":671,"code":792,"language":673,"meta":8,"style":8},"\"allow\": [\n  \"WebFetch(domain:deepseek.com)\",\n  \"WebFetch(domain:moonshot.cn)\",\n  \"WebFetch(domain:qwen.ai)\",\n  \"WebFetch(domain:google.com)\",\n  \"WebFetch(domain:anthropic.com)\",\n  \"WebFetch(domain:openai.com)\",\n  \"WebFetch(domain:arxiv.org)\",\n  \"WebFetch(domain:*.edu)\",\n  \"WebFetch(domain:*.ac.cn)\"\n]\n",[794],{"type":21,"tag":29,"props":795,"children":796},{"__ignoreMap":8},[797,810,822,834,846,859,872,885,898,911,920],{"type":21,"tag":679,"props":798,"children":799},{"class":681,"line":682},[800,805],{"type":21,"tag":679,"props":801,"children":802},{"style":686},[803],{"type":26,"value":804},"\"allow\"",{"type":21,"tag":679,"props":806,"children":807},{"style":692},[808],{"type":26,"value":809},": [\n",{"type":21,"tag":679,"props":811,"children":812},{"class":681,"line":698},[813,818],{"type":21,"tag":679,"props":814,"children":815},{"style":686},[816],{"type":26,"value":817},"  \"WebFetch(domain:deepseek.com)\"",{"type":21,"tag":679,"props":819,"children":820},{"style":692},[821],{"type":26,"value":720},{"type":21,"tag":679,"props":823,"children":824},{"class":681,"line":723},[825,830],{"type":21,"tag":679,"props":826,"children":827},{"style":686},[828],{"type":26,"value":829},"  \"WebFetch(domain:moonshot.cn)\"",{"type":21,"tag":679,"props":831,"children":832},{"style":692},[833],{"type":26,"value":720},{"type":21,"tag":679,"props":835,"children":836},{"class":681,"line":741},[837,842],{"type":21,"tag":679,"props":838,"children":839},{"style":686},[840],{"type":26,"value":841},"  \"WebFetch(domain:qwen.ai)\"",{"type":21,"tag":679,"props":843,"children":844},{"style":692},[845],{"type":26,"value":720},{"type":21,"tag":679,"props":847,"children":849},{"class":681,"line":848},5,[850,855],{"type":21,"tag":679,"props":851,"children":852},{"style":686},[853],{"type":26,"value":854},"  \"WebFetch(domain:google.com)\"",{"type":21,"tag":679,"props":856,"children":857},{"style":692},[858],{"type":26,"value":720},{"type":21,"tag":679,"props":860,"children":862},{"class":681,"line":861},6,[863,868],{"type":21,"tag":679,"props":864,"children":865},{"style":686},[866],{"type":26,"value":867},"  \"WebFetch(domain:anthropic.com)\"",{"type":21,"tag":679,"props":869,"children":870},{"style":692},[871],{"type":26,"value":720},{"type":21,"tag":679,"props":873,"children":875},{"class":681,"line":874},7,[876,881],{"type":21,"tag":679,"props":877,"children":878},{"style":686},[879],{"type":26,"value":880},"  \"WebFetch(domain:openai.com)\"",{"type":21,"tag":679,"props":882,"children":883},{"style":692},[884],{"type":26,"value":720},{"type":21,"tag":679,"props":886,"children":888},{"class":681,"line":887},8,[889,894],{"type":21,"tag":679,"props":890,"children":891},{"style":686},[892],{"type":26,"value":893},"  \"WebFetch(domain:arxiv.org)\"",{"type":21,"tag":679,"props":895,"children":896},{"style":692},[897],{"type":26,"value":720},{"type":21,"tag":679,"props":899,"children":901},{"class":681,"line":900},9,[902,907],{"type":21,"tag":679,"props":903,"children":904},{"style":686},[905],{"type":26,"value":906},"  \"WebFetch(domain:*.edu)\"",{"type":21,"tag":679,"props":908,"children":909},{"style":692},[910],{"type":26,"value":720},{"type":21,"tag":679,"props":912,"children":914},{"class":681,"line":913},10,[915],{"type":21,"tag":679,"props":916,"children":917},{"style":686},[918],{"type":26,"value":919},"  \"WebFetch(domain:*.ac.cn)\"\n",{"type":21,"tag":679,"props":921,"children":923},{"class":681,"line":922},11,[924],{"type":21,"tag":679,"props":925,"children":926},{"style":692},[927],{"type":26,"value":928},"]\n",{"type":21,"tag":22,"props":930,"children":931},{},[932,934,940,942,948,950,956],{"type":26,"value":933},"域名覆盖建议：主流 AI 厂商（DeepSeek、Moonshot、Qwen、Anthropic、OpenAI），搜索引擎（Google），学术站点（arxiv、各大学 ",{"type":21,"tag":29,"props":935,"children":937},{"className":936},[],[938],{"type":26,"value":939},".edu",{"type":26,"value":941}," 及中科院 ",{"type":21,"tag":29,"props":943,"children":945},{"className":944},[],[946],{"type":26,"value":947},".ac.cn",{"type":26,"value":949},"）。支持通配符 ",{"type":21,"tag":29,"props":951,"children":953},{"className":952},[],[954],{"type":26,"value":955},"*.edu",{"type":26,"value":655},{"type":21,"tag":22,"props":958,"children":959},{},[960,962,971,973,978,980,985],{"type":26,"value":961},"如果你使用的是非 Claude 官方的供应商，需要把的 ",{"type":21,"tag":294,"props":963,"children":964},{},[965],{"type":21,"tag":29,"props":966,"children":968},{"className":967},[],[969],{"type":26,"value":970},"skipWebFetchPreflight: true",{"type":26,"value":972}," 一起打开，来启用 ",{"type":21,"tag":29,"props":974,"children":976},{"className":975},[],[977],{"type":26,"value":787},{"type":26,"value":979}," 工具。另外，",{"type":21,"tag":29,"props":981,"children":983},{"className":982},[],[984],{"type":26,"value":787},{"type":26,"value":986}," 默认会先发一次预检请求探测域名可达性，再发真正的 GET。对于已经 allow 的可信域名，这一轮纯属浪费 —— 跳过预检后每次抓网页少一轮 RTT。",{"type":21,"tag":346,"props":988,"children":990},{"id":989},"deny硬性拒绝",[991,997],{"type":21,"tag":29,"props":992,"children":994},{"className":993},[],[995],{"type":26,"value":996},"deny",{"type":26,"value":998},"：硬性拒绝",{"type":21,"tag":22,"props":1000,"children":1001},{},[1002,1004,1009],{"type":26,"value":1003},"无论怎么 prompt 都不会执行的兜底护栏，比 ",{"type":21,"tag":29,"props":1005,"children":1007},{"className":1006},[],[1008],{"type":26,"value":774},{"type":26,"value":1010}," 优先级更高：",{"type":21,"tag":669,"props":1012,"children":1014},{"className":671,"code":1013,"language":673,"meta":8,"style":8},"\"deny\": [\n  \"Read(**\u002F.ssh\u002F**)\",\n  \"Read(.\u002Fsecrets\u002F**)\",\n  \"Bash(rm -rf *)\"\n]\n",[1015],{"type":21,"tag":29,"props":1016,"children":1017},{"__ignoreMap":8},[1018,1030,1042,1054,1062],{"type":21,"tag":679,"props":1019,"children":1020},{"class":681,"line":682},[1021,1026],{"type":21,"tag":679,"props":1022,"children":1023},{"style":686},[1024],{"type":26,"value":1025},"\"deny\"",{"type":21,"tag":679,"props":1027,"children":1028},{"style":692},[1029],{"type":26,"value":809},{"type":21,"tag":679,"props":1031,"children":1032},{"class":681,"line":698},[1033,1038],{"type":21,"tag":679,"props":1034,"children":1035},{"style":686},[1036],{"type":26,"value":1037},"  \"Read(**\u002F.ssh\u002F**)\"",{"type":21,"tag":679,"props":1039,"children":1040},{"style":692},[1041],{"type":26,"value":720},{"type":21,"tag":679,"props":1043,"children":1044},{"class":681,"line":723},[1045,1050],{"type":21,"tag":679,"props":1046,"children":1047},{"style":686},[1048],{"type":26,"value":1049},"  \"Read(.\u002Fsecrets\u002F**)\"",{"type":21,"tag":679,"props":1051,"children":1052},{"style":692},[1053],{"type":26,"value":720},{"type":21,"tag":679,"props":1055,"children":1056},{"class":681,"line":741},[1057],{"type":21,"tag":679,"props":1058,"children":1059},{"style":686},[1060],{"type":26,"value":1061},"  \"Bash(rm -rf *)\"\n",{"type":21,"tag":679,"props":1063,"children":1064},{"class":681,"line":848},[1065],{"type":21,"tag":679,"props":1066,"children":1067},{"style":692},[1068],{"type":26,"value":928},{"type":21,"tag":223,"props":1070,"children":1071},{},[1072,1083,1094],{"type":21,"tag":227,"props":1073,"children":1074},{},[1075,1081],{"type":21,"tag":29,"props":1076,"children":1078},{"className":1077},[],[1079],{"type":26,"value":1080},"Read(**\u002F.ssh\u002F**)",{"type":26,"value":1082},"：防止 Claude 读到 SSH 私钥。",{"type":21,"tag":227,"props":1084,"children":1085},{},[1086,1092],{"type":21,"tag":29,"props":1087,"children":1089},{"className":1088},[],[1090],{"type":26,"value":1091},"Read(.\u002Fsecrets\u002F**)",{"type":26,"value":1093},"：项目本地的密钥目录。",{"type":21,"tag":227,"props":1095,"children":1096},{},[1097,1103],{"type":21,"tag":29,"props":1098,"children":1100},{"className":1099},[],[1101],{"type":26,"value":1102},"Bash(rm -rf *)",{"type":26,"value":1104},"：防止递归删除。",{"type":21,"tag":22,"props":1106,"children":1107},{},[1108,1110,1119,1121,1127,1129,1134],{"type":26,"value":1109},"划好这几条红线之后，可以放心打开顶层的 ",{"type":21,"tag":294,"props":1111,"children":1112},{},[1113],{"type":21,"tag":29,"props":1114,"children":1116},{"className":1115},[],[1117],{"type":26,"value":1118},"skipDangerousModePermissionPrompt: true",{"type":26,"value":1120}," —— 用 ",{"type":21,"tag":29,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":26,"value":1126},"claude --dangerously-skip-permissions",{"type":26,"value":1128},"（YOLO 模式）启动时，CLI 默认会弹一个红色确认框让你回车确认，这个开关跳过那一步。前提就是 ",{"type":21,"tag":29,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":26,"value":996},{"type":26,"value":1135}," 已经把后路封住，否则跳过确认就毫无防护了。",{"type":21,"tag":69,"props":1137,"children":1139},{"id":1138},"钩子hooks",[1140,1142,1147],{"type":26,"value":1141},"钩子（",{"type":21,"tag":29,"props":1143,"children":1145},{"className":1144},[],[1146],{"type":26,"value":58},{"type":26,"value":344},{"type":21,"tag":22,"props":1149,"children":1150},{},[1151,1153,1158],{"type":26,"value":1152},"工具调用前后触发本地命令，可以做日志、改写、拦截、统计等。下面这条把所有 ",{"type":21,"tag":29,"props":1154,"children":1156},{"className":1155},[],[1157],{"type":26,"value":118},{"type":26,"value":1159}," 工具的调用接入 RTK（Rust Token Killer）代理，用更短的输出来省 token：",{"type":21,"tag":669,"props":1161,"children":1163},{"className":671,"code":1162,"language":673,"meta":8,"style":8},"\"hooks\": {\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Bash\",\n      \"hooks\": [\n        {\"type\": \"command\", \"command\": \"rtk hook claude\"}\n      ]\n    }\n  ]\n}\n",[1164],{"type":21,"tag":29,"props":1165,"children":1166},{"__ignoreMap":8},[1167,1179,1191,1199,1220,1232,1276,1284,1292,1300],{"type":21,"tag":679,"props":1168,"children":1169},{"class":681,"line":682},[1170,1175],{"type":21,"tag":679,"props":1171,"children":1172},{"style":686},[1173],{"type":26,"value":1174},"\"hooks\"",{"type":21,"tag":679,"props":1176,"children":1177},{"style":692},[1178],{"type":26,"value":695},{"type":21,"tag":679,"props":1180,"children":1181},{"class":681,"line":698},[1182,1187],{"type":21,"tag":679,"props":1183,"children":1184},{"style":702},[1185],{"type":26,"value":1186},"  \"PreToolUse\"",{"type":21,"tag":679,"props":1188,"children":1189},{"style":692},[1190],{"type":26,"value":809},{"type":21,"tag":679,"props":1192,"children":1193},{"class":681,"line":723},[1194],{"type":21,"tag":679,"props":1195,"children":1196},{"style":692},[1197],{"type":26,"value":1198},"    {\n",{"type":21,"tag":679,"props":1200,"children":1201},{"class":681,"line":741},[1202,1207,1211,1216],{"type":21,"tag":679,"props":1203,"children":1204},{"style":702},[1205],{"type":26,"value":1206},"      \"matcher\"",{"type":21,"tag":679,"props":1208,"children":1209},{"style":692},[1210],{"type":26,"value":710},{"type":21,"tag":679,"props":1212,"children":1213},{"style":686},[1214],{"type":26,"value":1215},"\"Bash\"",{"type":21,"tag":679,"props":1217,"children":1218},{"style":692},[1219],{"type":26,"value":720},{"type":21,"tag":679,"props":1221,"children":1222},{"class":681,"line":848},[1223,1228],{"type":21,"tag":679,"props":1224,"children":1225},{"style":702},[1226],{"type":26,"value":1227},"      \"hooks\"",{"type":21,"tag":679,"props":1229,"children":1230},{"style":692},[1231],{"type":26,"value":809},{"type":21,"tag":679,"props":1233,"children":1234},{"class":681,"line":861},[1235,1240,1245,1249,1254,1259,1263,1267,1272],{"type":21,"tag":679,"props":1236,"children":1237},{"style":692},[1238],{"type":26,"value":1239},"        {",{"type":21,"tag":679,"props":1241,"children":1242},{"style":702},[1243],{"type":26,"value":1244},"\"type\"",{"type":21,"tag":679,"props":1246,"children":1247},{"style":692},[1248],{"type":26,"value":710},{"type":21,"tag":679,"props":1250,"children":1251},{"style":686},[1252],{"type":26,"value":1253},"\"command\"",{"type":21,"tag":679,"props":1255,"children":1256},{"style":692},[1257],{"type":26,"value":1258},", ",{"type":21,"tag":679,"props":1260,"children":1261},{"style":702},[1262],{"type":26,"value":1253},{"type":21,"tag":679,"props":1264,"children":1265},{"style":692},[1266],{"type":26,"value":710},{"type":21,"tag":679,"props":1268,"children":1269},{"style":686},[1270],{"type":26,"value":1271},"\"rtk hook claude\"",{"type":21,"tag":679,"props":1273,"children":1274},{"style":692},[1275],{"type":26,"value":747},{"type":21,"tag":679,"props":1277,"children":1278},{"class":681,"line":874},[1279],{"type":21,"tag":679,"props":1280,"children":1281},{"style":692},[1282],{"type":26,"value":1283},"      ]\n",{"type":21,"tag":679,"props":1285,"children":1286},{"class":681,"line":887},[1287],{"type":21,"tag":679,"props":1288,"children":1289},{"style":692},[1290],{"type":26,"value":1291},"    }\n",{"type":21,"tag":679,"props":1293,"children":1294},{"class":681,"line":900},[1295],{"type":21,"tag":679,"props":1296,"children":1297},{"style":692},[1298],{"type":26,"value":1299},"  ]\n",{"type":21,"tag":679,"props":1301,"children":1302},{"class":681,"line":913},[1303],{"type":21,"tag":679,"props":1304,"children":1305},{"style":692},[1306],{"type":26,"value":747},{"type":21,"tag":22,"props":1308,"children":1309},{},[1310,1316,1318,1323,1324,1329,1330,1336,1337,1343,1345,1351,1353,1359,1360,1366,1367,1373,1374,1380],{"type":21,"tag":29,"props":1311,"children":1313},{"className":1312},[],[1314],{"type":26,"value":1315},"matcher",{"type":26,"value":1317}," 支持按工具名匹配（",{"type":21,"tag":29,"props":1319,"children":1321},{"className":1320},[],[1322],{"type":26,"value":118},{"type":26,"value":528},{"type":21,"tag":29,"props":1325,"children":1327},{"className":1326},[],[1328],{"type":26,"value":111},{"type":26,"value":528},{"type":21,"tag":29,"props":1331,"children":1333},{"className":1332},[],[1334],{"type":26,"value":1335},"Edit",{"type":26,"value":528},{"type":21,"tag":29,"props":1338,"children":1340},{"className":1339},[],[1341],{"type":26,"value":1342},"Write",{"type":26,"value":1344}," 等），",{"type":21,"tag":29,"props":1346,"children":1348},{"className":1347},[],[1349],{"type":26,"value":1350},"PreToolUse",{"type":26,"value":1352}," 在工具执行前触发，对应的还有 ",{"type":21,"tag":29,"props":1354,"children":1356},{"className":1355},[],[1357],{"type":26,"value":1358},"PostToolUse",{"type":26,"value":52},{"type":21,"tag":29,"props":1361,"children":1363},{"className":1362},[],[1364],{"type":26,"value":1365},"UserPromptSubmit",{"type":26,"value":52},{"type":21,"tag":29,"props":1368,"children":1370},{"className":1369},[],[1371],{"type":26,"value":1372},"SessionStart",{"type":26,"value":52},{"type":21,"tag":29,"props":1375,"children":1377},{"className":1376},[],[1378],{"type":26,"value":1379},"Stop",{"type":26,"value":1381}," 等事件。",{"type":21,"tag":69,"props":1383,"children":1385},{"id":1384},"插件推荐enabledplugins-extraknownmarketplaces",[1386,1388,1393,1395,1401],{"type":26,"value":1387},"插件推荐（",{"type":21,"tag":29,"props":1389,"children":1391},{"className":1390},[],[1392],{"type":26,"value":65},{"type":26,"value":1394}," + ",{"type":21,"tag":29,"props":1396,"children":1398},{"className":1397},[],[1399],{"type":26,"value":1400},"extraKnownMarketplaces",{"type":26,"value":344},{"type":21,"tag":22,"props":1403,"children":1404},{},[1405,1407,1412,1414,1419,1421,1427],{"type":26,"value":1406},"Claude Code 的插件机制由两部分组成：先在 ",{"type":21,"tag":29,"props":1408,"children":1410},{"className":1409},[],[1411],{"type":26,"value":1400},{"type":26,"value":1413}," 注册插件仓库，再在 ",{"type":21,"tag":29,"props":1415,"children":1417},{"className":1416},[],[1418],{"type":26,"value":65},{"type":26,"value":1420}," 中按 ",{"type":21,"tag":29,"props":1422,"children":1424},{"className":1423},[],[1425],{"type":26,"value":1426},"插件名@市场名",{"type":26,"value":1428}," 启用。",{"type":21,"tag":346,"props":1430,"children":1432},{"id":1431},"注册插件市场",[1433],{"type":26,"value":1431},{"type":21,"tag":669,"props":1435,"children":1437},{"className":671,"code":1436,"language":673,"meta":8,"style":8},"\"extraKnownMarketplaces\": {\n  \"wakatime\": {\n    \"source\": {\"source\": \"git\", \"url\": \"https:\u002F\u002Fgithub.com\u002Fwakatime\u002Fclaude-code-wakatime.git\"}\n  },\n  \"ponytail\": {\n    \"source\": {\"source\": \"github\", \"repo\": \"DietrichGebert\u002Fponytail\"}\n  },\n  \"claude-hud\": {\n    \"source\": {\"source\": \"github\", \"repo\": \"jarrodwatts\u002Fclaude-hud\"}\n  }\n}\n",[1438],{"type":21,"tag":29,"props":1439,"children":1440},{"__ignoreMap":8},[1441,1453,1465,1514,1522,1534,1580,1587,1599,1643,1651],{"type":21,"tag":679,"props":1442,"children":1443},{"class":681,"line":682},[1444,1449],{"type":21,"tag":679,"props":1445,"children":1446},{"style":686},[1447],{"type":26,"value":1448},"\"extraKnownMarketplaces\"",{"type":21,"tag":679,"props":1450,"children":1451},{"style":692},[1452],{"type":26,"value":695},{"type":21,"tag":679,"props":1454,"children":1455},{"class":681,"line":698},[1456,1461],{"type":21,"tag":679,"props":1457,"children":1458},{"style":702},[1459],{"type":26,"value":1460},"  \"wakatime\"",{"type":21,"tag":679,"props":1462,"children":1463},{"style":692},[1464],{"type":26,"value":695},{"type":21,"tag":679,"props":1466,"children":1467},{"class":681,"line":723},[1468,1473,1478,1483,1487,1492,1496,1501,1505,1510],{"type":21,"tag":679,"props":1469,"children":1470},{"style":702},[1471],{"type":26,"value":1472},"    \"source\"",{"type":21,"tag":679,"props":1474,"children":1475},{"style":692},[1476],{"type":26,"value":1477},": {",{"type":21,"tag":679,"props":1479,"children":1480},{"style":702},[1481],{"type":26,"value":1482},"\"source\"",{"type":21,"tag":679,"props":1484,"children":1485},{"style":692},[1486],{"type":26,"value":710},{"type":21,"tag":679,"props":1488,"children":1489},{"style":686},[1490],{"type":26,"value":1491},"\"git\"",{"type":21,"tag":679,"props":1493,"children":1494},{"style":692},[1495],{"type":26,"value":1258},{"type":21,"tag":679,"props":1497,"children":1498},{"style":702},[1499],{"type":26,"value":1500},"\"url\"",{"type":21,"tag":679,"props":1502,"children":1503},{"style":692},[1504],{"type":26,"value":710},{"type":21,"tag":679,"props":1506,"children":1507},{"style":686},[1508],{"type":26,"value":1509},"\"https:\u002F\u002Fgithub.com\u002Fwakatime\u002Fclaude-code-wakatime.git\"",{"type":21,"tag":679,"props":1511,"children":1512},{"style":692},[1513],{"type":26,"value":747},{"type":21,"tag":679,"props":1515,"children":1516},{"class":681,"line":741},[1517],{"type":21,"tag":679,"props":1518,"children":1519},{"style":692},[1520],{"type":26,"value":1521},"  },\n",{"type":21,"tag":679,"props":1523,"children":1524},{"class":681,"line":848},[1525,1530],{"type":21,"tag":679,"props":1526,"children":1527},{"style":702},[1528],{"type":26,"value":1529},"  \"ponytail\"",{"type":21,"tag":679,"props":1531,"children":1532},{"style":692},[1533],{"type":26,"value":695},{"type":21,"tag":679,"props":1535,"children":1536},{"class":681,"line":861},[1537,1541,1545,1549,1553,1558,1562,1567,1571,1576],{"type":21,"tag":679,"props":1538,"children":1539},{"style":702},[1540],{"type":26,"value":1472},{"type":21,"tag":679,"props":1542,"children":1543},{"style":692},[1544],{"type":26,"value":1477},{"type":21,"tag":679,"props":1546,"children":1547},{"style":702},[1548],{"type":26,"value":1482},{"type":21,"tag":679,"props":1550,"children":1551},{"style":692},[1552],{"type":26,"value":710},{"type":21,"tag":679,"props":1554,"children":1555},{"style":686},[1556],{"type":26,"value":1557},"\"github\"",{"type":21,"tag":679,"props":1559,"children":1560},{"style":692},[1561],{"type":26,"value":1258},{"type":21,"tag":679,"props":1563,"children":1564},{"style":702},[1565],{"type":26,"value":1566},"\"repo\"",{"type":21,"tag":679,"props":1568,"children":1569},{"style":692},[1570],{"type":26,"value":710},{"type":21,"tag":679,"props":1572,"children":1573},{"style":686},[1574],{"type":26,"value":1575},"\"DietrichGebert\u002Fponytail\"",{"type":21,"tag":679,"props":1577,"children":1578},{"style":692},[1579],{"type":26,"value":747},{"type":21,"tag":679,"props":1581,"children":1582},{"class":681,"line":874},[1583],{"type":21,"tag":679,"props":1584,"children":1585},{"style":692},[1586],{"type":26,"value":1521},{"type":21,"tag":679,"props":1588,"children":1589},{"class":681,"line":887},[1590,1595],{"type":21,"tag":679,"props":1591,"children":1592},{"style":702},[1593],{"type":26,"value":1594},"  \"claude-hud\"",{"type":21,"tag":679,"props":1596,"children":1597},{"style":692},[1598],{"type":26,"value":695},{"type":21,"tag":679,"props":1600,"children":1601},{"class":681,"line":900},[1602,1606,1610,1614,1618,1622,1626,1630,1634,1639],{"type":21,"tag":679,"props":1603,"children":1604},{"style":702},[1605],{"type":26,"value":1472},{"type":21,"tag":679,"props":1607,"children":1608},{"style":692},[1609],{"type":26,"value":1477},{"type":21,"tag":679,"props":1611,"children":1612},{"style":702},[1613],{"type":26,"value":1482},{"type":21,"tag":679,"props":1615,"children":1616},{"style":692},[1617],{"type":26,"value":710},{"type":21,"tag":679,"props":1619,"children":1620},{"style":686},[1621],{"type":26,"value":1557},{"type":21,"tag":679,"props":1623,"children":1624},{"style":692},[1625],{"type":26,"value":1258},{"type":21,"tag":679,"props":1627,"children":1628},{"style":702},[1629],{"type":26,"value":1566},{"type":21,"tag":679,"props":1631,"children":1632},{"style":692},[1633],{"type":26,"value":710},{"type":21,"tag":679,"props":1635,"children":1636},{"style":686},[1637],{"type":26,"value":1638},"\"jarrodwatts\u002Fclaude-hud\"",{"type":21,"tag":679,"props":1640,"children":1641},{"style":692},[1642],{"type":26,"value":747},{"type":21,"tag":679,"props":1644,"children":1645},{"class":681,"line":913},[1646],{"type":21,"tag":679,"props":1647,"children":1648},{"style":692},[1649],{"type":26,"value":1650},"  }\n",{"type":21,"tag":679,"props":1652,"children":1653},{"class":681,"line":922},[1654],{"type":21,"tag":679,"props":1655,"children":1656},{"style":692},[1657],{"type":26,"value":747},{"type":21,"tag":22,"props":1659,"children":1660},{},[1661,1667],{"type":21,"tag":29,"props":1662,"children":1664},{"className":1663},[],[1665],{"type":26,"value":1666},"source",{"type":26,"value":1668}," 类型有两种：",{"type":21,"tag":223,"props":1670,"children":1671},{},[1672,1690],{"type":21,"tag":227,"props":1673,"children":1674},{},[1675,1681,1682,1688],{"type":21,"tag":29,"props":1676,"children":1678},{"className":1677},[],[1679],{"type":26,"value":1680},"\"source\": \"github\"",{"type":26,"value":1394},{"type":21,"tag":29,"props":1683,"children":1685},{"className":1684},[],[1686],{"type":26,"value":1687},"repo",{"type":26,"value":1689},"：GitHub 仓库的简写。",{"type":21,"tag":227,"props":1691,"children":1692},{},[1693,1699,1700,1706],{"type":21,"tag":29,"props":1694,"children":1696},{"className":1695},[],[1697],{"type":26,"value":1698},"\"source\": \"git\"",{"type":26,"value":1394},{"type":21,"tag":29,"props":1701,"children":1703},{"className":1702},[],[1704],{"type":26,"value":1705},"url",{"type":26,"value":1707},"：任意 Git URL，包括自建 Gitea \u002F GitLab。",{"type":21,"tag":346,"props":1709,"children":1711},{"id":1710},"启用具体插件",[1712],{"type":26,"value":1710},{"type":21,"tag":669,"props":1714,"children":1716},{"className":671,"code":1715,"language":673,"meta":8,"style":8},"\"enabledPlugins\": {\n  \"claude-code-wakatime@wakatime\": true,\n  \"ponytail@ponytail\": true,\n  \"skill-creator@claude-plugins-official\": true,\n  \"claude-md-management@claude-plugins-official\": true,\n  \"superpowers@claude-plugins-official\": true,\n  \"code-simplifier@claude-plugins-official\": true,\n  \"claude-hud@claude-hud\": true\n}\n",[1717],{"type":21,"tag":29,"props":1718,"children":1719},{"__ignoreMap":8},[1720,1732,1753,1773,1793,1813,1833,1853,1870],{"type":21,"tag":679,"props":1721,"children":1722},{"class":681,"line":682},[1723,1728],{"type":21,"tag":679,"props":1724,"children":1725},{"style":686},[1726],{"type":26,"value":1727},"\"enabledPlugins\"",{"type":21,"tag":679,"props":1729,"children":1730},{"style":692},[1731],{"type":26,"value":695},{"type":21,"tag":679,"props":1733,"children":1734},{"class":681,"line":698},[1735,1740,1744,1749],{"type":21,"tag":679,"props":1736,"children":1737},{"style":702},[1738],{"type":26,"value":1739},"  \"claude-code-wakatime@wakatime\"",{"type":21,"tag":679,"props":1741,"children":1742},{"style":692},[1743],{"type":26,"value":710},{"type":21,"tag":679,"props":1745,"children":1746},{"style":702},[1747],{"type":26,"value":1748},"true",{"type":21,"tag":679,"props":1750,"children":1751},{"style":692},[1752],{"type":26,"value":720},{"type":21,"tag":679,"props":1754,"children":1755},{"class":681,"line":723},[1756,1761,1765,1769],{"type":21,"tag":679,"props":1757,"children":1758},{"style":702},[1759],{"type":26,"value":1760},"  \"ponytail@ponytail\"",{"type":21,"tag":679,"props":1762,"children":1763},{"style":692},[1764],{"type":26,"value":710},{"type":21,"tag":679,"props":1766,"children":1767},{"style":702},[1768],{"type":26,"value":1748},{"type":21,"tag":679,"props":1770,"children":1771},{"style":692},[1772],{"type":26,"value":720},{"type":21,"tag":679,"props":1774,"children":1775},{"class":681,"line":741},[1776,1781,1785,1789],{"type":21,"tag":679,"props":1777,"children":1778},{"style":702},[1779],{"type":26,"value":1780},"  \"skill-creator@claude-plugins-official\"",{"type":21,"tag":679,"props":1782,"children":1783},{"style":692},[1784],{"type":26,"value":710},{"type":21,"tag":679,"props":1786,"children":1787},{"style":702},[1788],{"type":26,"value":1748},{"type":21,"tag":679,"props":1790,"children":1791},{"style":692},[1792],{"type":26,"value":720},{"type":21,"tag":679,"props":1794,"children":1795},{"class":681,"line":848},[1796,1801,1805,1809],{"type":21,"tag":679,"props":1797,"children":1798},{"style":702},[1799],{"type":26,"value":1800},"  \"claude-md-management@claude-plugins-official\"",{"type":21,"tag":679,"props":1802,"children":1803},{"style":692},[1804],{"type":26,"value":710},{"type":21,"tag":679,"props":1806,"children":1807},{"style":702},[1808],{"type":26,"value":1748},{"type":21,"tag":679,"props":1810,"children":1811},{"style":692},[1812],{"type":26,"value":720},{"type":21,"tag":679,"props":1814,"children":1815},{"class":681,"line":861},[1816,1821,1825,1829],{"type":21,"tag":679,"props":1817,"children":1818},{"style":702},[1819],{"type":26,"value":1820},"  \"superpowers@claude-plugins-official\"",{"type":21,"tag":679,"props":1822,"children":1823},{"style":692},[1824],{"type":26,"value":710},{"type":21,"tag":679,"props":1826,"children":1827},{"style":702},[1828],{"type":26,"value":1748},{"type":21,"tag":679,"props":1830,"children":1831},{"style":692},[1832],{"type":26,"value":720},{"type":21,"tag":679,"props":1834,"children":1835},{"class":681,"line":874},[1836,1841,1845,1849],{"type":21,"tag":679,"props":1837,"children":1838},{"style":702},[1839],{"type":26,"value":1840},"  \"code-simplifier@claude-plugins-official\"",{"type":21,"tag":679,"props":1842,"children":1843},{"style":692},[1844],{"type":26,"value":710},{"type":21,"tag":679,"props":1846,"children":1847},{"style":702},[1848],{"type":26,"value":1748},{"type":21,"tag":679,"props":1850,"children":1851},{"style":692},[1852],{"type":26,"value":720},{"type":21,"tag":679,"props":1854,"children":1855},{"class":681,"line":887},[1856,1861,1865],{"type":21,"tag":679,"props":1857,"children":1858},{"style":702},[1859],{"type":26,"value":1860},"  \"claude-hud@claude-hud\"",{"type":21,"tag":679,"props":1862,"children":1863},{"style":692},[1864],{"type":26,"value":710},{"type":21,"tag":679,"props":1866,"children":1867},{"style":702},[1868],{"type":26,"value":1869},"true\n",{"type":21,"tag":679,"props":1871,"children":1872},{"class":681,"line":900},[1873],{"type":21,"tag":679,"props":1874,"children":1875},{"style":692},[1876],{"type":26,"value":747},{"type":21,"tag":22,"props":1878,"children":1879},{},[1880,1886,1888,1893],{"type":21,"tag":29,"props":1881,"children":1883},{"className":1882},[],[1884],{"type":26,"value":1885},"claude-plugins-official",{"type":26,"value":1887}," 是内置的官方市场，不用在 ",{"type":21,"tag":29,"props":1889,"children":1891},{"className":1890},[],[1892],{"type":26,"value":1400},{"type":26,"value":1894}," 里注册。这套配置里启用的几个插件：",{"type":21,"tag":223,"props":1896,"children":1897},{},[1898,1908,1918,1928,1945,1955,1965],{"type":21,"tag":227,"props":1899,"children":1900},{},[1901,1906],{"type":21,"tag":294,"props":1902,"children":1903},{},[1904],{"type":26,"value":1905},"claude-code-wakatime",{"type":26,"value":1907},"：把编码时长记录到 WakaTime。",{"type":21,"tag":227,"props":1909,"children":1910},{},[1911,1916],{"type":21,"tag":294,"props":1912,"children":1913},{},[1914],{"type":26,"value":1915},"ponytail",{"type":26,"value":1917},"：强制\"懒人最简解\"风格，避免过度工程。",{"type":21,"tag":227,"props":1919,"children":1920},{},[1921,1926],{"type":21,"tag":294,"props":1922,"children":1923},{},[1924],{"type":26,"value":1925},"skill-creator",{"type":26,"value":1927},"：创建、修改、衡量 skill。",{"type":21,"tag":227,"props":1929,"children":1930},{},[1931,1936,1938,1944],{"type":21,"tag":294,"props":1932,"children":1933},{},[1934],{"type":26,"value":1935},"claude-md-management",{"type":26,"value":1937},"：管理 ",{"type":21,"tag":29,"props":1939,"children":1941},{"className":1940},[],[1942],{"type":26,"value":1943},"CLAUDE.md",{"type":26,"value":655},{"type":21,"tag":227,"props":1946,"children":1947},{},[1948,1953],{"type":21,"tag":294,"props":1949,"children":1950},{},[1951],{"type":26,"value":1952},"superpowers",{"type":26,"value":1954},"：一组通用工作流 skill（TDD、调试、code review、计划撰写等）。",{"type":21,"tag":227,"props":1956,"children":1957},{},[1958,1963],{"type":21,"tag":294,"props":1959,"children":1960},{},[1961],{"type":26,"value":1962},"code-simplifier",{"type":26,"value":1964},"：在保持功能不变的前提下精简最近改动的代码。",{"type":21,"tag":227,"props":1966,"children":1967},{},[1968,1973,1975,1981,1983,1989],{"type":21,"tag":294,"props":1969,"children":1970},{},[1971],{"type":26,"value":1972},"claude-hud",{"type":26,"value":1974},"：状态栏 HUD，需要 ",{"type":21,"tag":29,"props":1976,"children":1978},{"className":1977},[],[1979],{"type":26,"value":1980},"\u002Fclaude-hub:setup",{"type":26,"value":1982}," 初始化，其实和官方提供的 ",{"type":21,"tag":29,"props":1984,"children":1986},{"className":1985},[],[1987],{"type":26,"value":1988},"\u002Fstatusline \u003Cprompt>",{"type":26,"value":1990}," 没区别。",{"type":21,"tag":22,"props":1992,"children":1993},{},[1994],{"type":26,"value":1995},"这些是通用的插件，而且都没有 MCP，只是 skills，挺轻量的，我就默认一直启用了。其他特定功能的插件根据项目按需开启。",{"type":21,"tag":69,"props":1997,"children":1999},{"id":1998},"我的配置分享",[2000],{"type":26,"value":1998},{"type":21,"tag":22,"props":2002,"children":2003},{},[2004],{"type":26,"value":2005},"下面是我在CC-Switch里的通用配置：",{"type":21,"tag":669,"props":2007,"children":2009},{"className":671,"code":2008,"language":673,"meta":8,"style":8},"{\n  \"env\": {\n    \"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC\": \"true\",\n    \"CLAUDE_CODE_EFFORT_LEVEL\": \"max\",\n    \"DISABLE_AUTOUPDATER\": \"1\",\n    \"DISABLE_ERROR_REPORTING\": \"true\",\n    \"DISABLE_TELEMETRY\": \"true\",\n    \"ENABLE_TOOL_SEARCH\": \"true\"\n  },\n  \"attribution\": {\n    \"commit\": \"\",\n    \"pr\": \"\"\n  },\n  \"model\": \"opus[1m]\",\n  \"permissions\": {\n    \"allow\": [\n      \"WebFetch(domain:deepseek.com)\",\n      \"WebFetch(domain:moonshot.cn)\",\n      \"WebFetch(domain:qwen.ai)\",\n      \"WebFetch(domain:google.com)\",\n      \"WebFetch(domain:anthropic.com)\",\n      \"WebFetch(domain:openai.com)\",\n      \"WebFetch(domain:arxiv.org)\",\n      \"WebFetch(domain:*.edu)\",\n      \"WebFetch(domain:*.ac.cn)\"\n    ],\n    \"deny\": [\n      \"Read(**\u002F.ssh\u002F**)\",\n      \"Read(.\u002Fsecrets\u002F**)\",\n      \"Bash(rm -rf *)\"\n    ]\n  },\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"rtk hook claude\"\n          }\n        ]\n      }\n    ]\n  },\n  \"enabledPlugins\": {\n    \"claude-code-wakatime@wakatime\": true,\n    \"ponytail@ponytail\": true,\n    \"skill-creator@claude-plugins-official\": true,\n    \"claude-md-management@claude-plugins-official\": true,\n    \"superpowers@claude-plugins-official\": true,\n    \"code-simplifier@claude-plugins-official\": true,\n    \"claude-hud@claude-hud\": true\n  },\n  \"extraKnownMarketplaces\": {\n    \"wakatime\": {\n      \"source\": {\n        \"source\": \"git\",\n        \"url\": \"https:\u002F\u002Fgithub.com\u002Fwakatime\u002Fclaude-code-wakatime.git\"\n      }\n    },\n    \"ponytail\": {\n      \"source\": {\n        \"source\": \"github\",\n        \"repo\": \"DietrichGebert\u002Fponytail\"\n      }\n    },\n    \"claude-hud\": {\n      \"source\": {\n        \"source\": \"github\",\n        \"repo\": \"jarrodwatts\u002Fclaude-hud\"\n      }\n    }\n  },\n  \"skipDangerousModePermissionPrompt\": true,\n  \"skipWebFetchPreflight\": true\n}\n",[2010],{"type":21,"tag":29,"props":2011,"children":2012},{"__ignoreMap":8},[2013,2021,2033,2054,2075,2096,2116,2136,2153,2160,2172,2192,2209,2217,2239,2252,2265,2278,2291,2304,2317,2330,2343,2356,2369,2378,2387,2400,2413,2426,2435,2444,2452,2465,2478,2487,2508,2521,2530,2551,2569,2578,2587,2596,2604,2612,2625,2646,2667,2688,2709,2730,2751,2768,2776,2789,2802,2815,2836,2854,2862,2871,2884,2896,2916,2934,2942,2950,2963,2975,2995,3012,3020,3028,3036,3057,3074],{"type":21,"tag":679,"props":2014,"children":2015},{"class":681,"line":682},[2016],{"type":21,"tag":679,"props":2017,"children":2018},{"style":692},[2019],{"type":26,"value":2020},"{\n",{"type":21,"tag":679,"props":2022,"children":2023},{"class":681,"line":698},[2024,2029],{"type":21,"tag":679,"props":2025,"children":2026},{"style":702},[2027],{"type":26,"value":2028},"  \"env\"",{"type":21,"tag":679,"props":2030,"children":2031},{"style":692},[2032],{"type":26,"value":695},{"type":21,"tag":679,"props":2034,"children":2035},{"class":681,"line":723},[2036,2041,2045,2050],{"type":21,"tag":679,"props":2037,"children":2038},{"style":702},[2039],{"type":26,"value":2040},"    \"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC\"",{"type":21,"tag":679,"props":2042,"children":2043},{"style":692},[2044],{"type":26,"value":710},{"type":21,"tag":679,"props":2046,"children":2047},{"style":686},[2048],{"type":26,"value":2049},"\"true\"",{"type":21,"tag":679,"props":2051,"children":2052},{"style":692},[2053],{"type":26,"value":720},{"type":21,"tag":679,"props":2055,"children":2056},{"class":681,"line":741},[2057,2062,2066,2071],{"type":21,"tag":679,"props":2058,"children":2059},{"style":702},[2060],{"type":26,"value":2061},"    \"CLAUDE_CODE_EFFORT_LEVEL\"",{"type":21,"tag":679,"props":2063,"children":2064},{"style":692},[2065],{"type":26,"value":710},{"type":21,"tag":679,"props":2067,"children":2068},{"style":686},[2069],{"type":26,"value":2070},"\"max\"",{"type":21,"tag":679,"props":2072,"children":2073},{"style":692},[2074],{"type":26,"value":720},{"type":21,"tag":679,"props":2076,"children":2077},{"class":681,"line":848},[2078,2083,2087,2092],{"type":21,"tag":679,"props":2079,"children":2080},{"style":702},[2081],{"type":26,"value":2082},"    \"DISABLE_AUTOUPDATER\"",{"type":21,"tag":679,"props":2084,"children":2085},{"style":692},[2086],{"type":26,"value":710},{"type":21,"tag":679,"props":2088,"children":2089},{"style":686},[2090],{"type":26,"value":2091},"\"1\"",{"type":21,"tag":679,"props":2093,"children":2094},{"style":692},[2095],{"type":26,"value":720},{"type":21,"tag":679,"props":2097,"children":2098},{"class":681,"line":861},[2099,2104,2108,2112],{"type":21,"tag":679,"props":2100,"children":2101},{"style":702},[2102],{"type":26,"value":2103},"    \"DISABLE_ERROR_REPORTING\"",{"type":21,"tag":679,"props":2105,"children":2106},{"style":692},[2107],{"type":26,"value":710},{"type":21,"tag":679,"props":2109,"children":2110},{"style":686},[2111],{"type":26,"value":2049},{"type":21,"tag":679,"props":2113,"children":2114},{"style":692},[2115],{"type":26,"value":720},{"type":21,"tag":679,"props":2117,"children":2118},{"class":681,"line":874},[2119,2124,2128,2132],{"type":21,"tag":679,"props":2120,"children":2121},{"style":702},[2122],{"type":26,"value":2123},"    \"DISABLE_TELEMETRY\"",{"type":21,"tag":679,"props":2125,"children":2126},{"style":692},[2127],{"type":26,"value":710},{"type":21,"tag":679,"props":2129,"children":2130},{"style":686},[2131],{"type":26,"value":2049},{"type":21,"tag":679,"props":2133,"children":2134},{"style":692},[2135],{"type":26,"value":720},{"type":21,"tag":679,"props":2137,"children":2138},{"class":681,"line":887},[2139,2144,2148],{"type":21,"tag":679,"props":2140,"children":2141},{"style":702},[2142],{"type":26,"value":2143},"    \"ENABLE_TOOL_SEARCH\"",{"type":21,"tag":679,"props":2145,"children":2146},{"style":692},[2147],{"type":26,"value":710},{"type":21,"tag":679,"props":2149,"children":2150},{"style":686},[2151],{"type":26,"value":2152},"\"true\"\n",{"type":21,"tag":679,"props":2154,"children":2155},{"class":681,"line":900},[2156],{"type":21,"tag":679,"props":2157,"children":2158},{"style":692},[2159],{"type":26,"value":1521},{"type":21,"tag":679,"props":2161,"children":2162},{"class":681,"line":913},[2163,2168],{"type":21,"tag":679,"props":2164,"children":2165},{"style":702},[2166],{"type":26,"value":2167},"  \"attribution\"",{"type":21,"tag":679,"props":2169,"children":2170},{"style":692},[2171],{"type":26,"value":695},{"type":21,"tag":679,"props":2173,"children":2174},{"class":681,"line":922},[2175,2180,2184,2188],{"type":21,"tag":679,"props":2176,"children":2177},{"style":702},[2178],{"type":26,"value":2179},"    \"commit\"",{"type":21,"tag":679,"props":2181,"children":2182},{"style":692},[2183],{"type":26,"value":710},{"type":21,"tag":679,"props":2185,"children":2186},{"style":686},[2187],{"type":26,"value":715},{"type":21,"tag":679,"props":2189,"children":2190},{"style":692},[2191],{"type":26,"value":720},{"type":21,"tag":679,"props":2193,"children":2195},{"class":681,"line":2194},12,[2196,2201,2205],{"type":21,"tag":679,"props":2197,"children":2198},{"style":702},[2199],{"type":26,"value":2200},"    \"pr\"",{"type":21,"tag":679,"props":2202,"children":2203},{"style":692},[2204],{"type":26,"value":710},{"type":21,"tag":679,"props":2206,"children":2207},{"style":686},[2208],{"type":26,"value":738},{"type":21,"tag":679,"props":2210,"children":2212},{"class":681,"line":2211},13,[2213],{"type":21,"tag":679,"props":2214,"children":2215},{"style":692},[2216],{"type":26,"value":1521},{"type":21,"tag":679,"props":2218,"children":2220},{"class":681,"line":2219},14,[2221,2226,2230,2235],{"type":21,"tag":679,"props":2222,"children":2223},{"style":702},[2224],{"type":26,"value":2225},"  \"model\"",{"type":21,"tag":679,"props":2227,"children":2228},{"style":692},[2229],{"type":26,"value":710},{"type":21,"tag":679,"props":2231,"children":2232},{"style":686},[2233],{"type":26,"value":2234},"\"opus[1m]\"",{"type":21,"tag":679,"props":2236,"children":2237},{"style":692},[2238],{"type":26,"value":720},{"type":21,"tag":679,"props":2240,"children":2242},{"class":681,"line":2241},15,[2243,2248],{"type":21,"tag":679,"props":2244,"children":2245},{"style":702},[2246],{"type":26,"value":2247},"  \"permissions\"",{"type":21,"tag":679,"props":2249,"children":2250},{"style":692},[2251],{"type":26,"value":695},{"type":21,"tag":679,"props":2253,"children":2255},{"class":681,"line":2254},16,[2256,2261],{"type":21,"tag":679,"props":2257,"children":2258},{"style":702},[2259],{"type":26,"value":2260},"    \"allow\"",{"type":21,"tag":679,"props":2262,"children":2263},{"style":692},[2264],{"type":26,"value":809},{"type":21,"tag":679,"props":2266,"children":2268},{"class":681,"line":2267},17,[2269,2274],{"type":21,"tag":679,"props":2270,"children":2271},{"style":686},[2272],{"type":26,"value":2273},"      \"WebFetch(domain:deepseek.com)\"",{"type":21,"tag":679,"props":2275,"children":2276},{"style":692},[2277],{"type":26,"value":720},{"type":21,"tag":679,"props":2279,"children":2281},{"class":681,"line":2280},18,[2282,2287],{"type":21,"tag":679,"props":2283,"children":2284},{"style":686},[2285],{"type":26,"value":2286},"      \"WebFetch(domain:moonshot.cn)\"",{"type":21,"tag":679,"props":2288,"children":2289},{"style":692},[2290],{"type":26,"value":720},{"type":21,"tag":679,"props":2292,"children":2294},{"class":681,"line":2293},19,[2295,2300],{"type":21,"tag":679,"props":2296,"children":2297},{"style":686},[2298],{"type":26,"value":2299},"      \"WebFetch(domain:qwen.ai)\"",{"type":21,"tag":679,"props":2301,"children":2302},{"style":692},[2303],{"type":26,"value":720},{"type":21,"tag":679,"props":2305,"children":2307},{"class":681,"line":2306},20,[2308,2313],{"type":21,"tag":679,"props":2309,"children":2310},{"style":686},[2311],{"type":26,"value":2312},"      \"WebFetch(domain:google.com)\"",{"type":21,"tag":679,"props":2314,"children":2315},{"style":692},[2316],{"type":26,"value":720},{"type":21,"tag":679,"props":2318,"children":2320},{"class":681,"line":2319},21,[2321,2326],{"type":21,"tag":679,"props":2322,"children":2323},{"style":686},[2324],{"type":26,"value":2325},"      \"WebFetch(domain:anthropic.com)\"",{"type":21,"tag":679,"props":2327,"children":2328},{"style":692},[2329],{"type":26,"value":720},{"type":21,"tag":679,"props":2331,"children":2333},{"class":681,"line":2332},22,[2334,2339],{"type":21,"tag":679,"props":2335,"children":2336},{"style":686},[2337],{"type":26,"value":2338},"      \"WebFetch(domain:openai.com)\"",{"type":21,"tag":679,"props":2340,"children":2341},{"style":692},[2342],{"type":26,"value":720},{"type":21,"tag":679,"props":2344,"children":2346},{"class":681,"line":2345},23,[2347,2352],{"type":21,"tag":679,"props":2348,"children":2349},{"style":686},[2350],{"type":26,"value":2351},"      \"WebFetch(domain:arxiv.org)\"",{"type":21,"tag":679,"props":2353,"children":2354},{"style":692},[2355],{"type":26,"value":720},{"type":21,"tag":679,"props":2357,"children":2359},{"class":681,"line":2358},24,[2360,2365],{"type":21,"tag":679,"props":2361,"children":2362},{"style":686},[2363],{"type":26,"value":2364},"      \"WebFetch(domain:*.edu)\"",{"type":21,"tag":679,"props":2366,"children":2367},{"style":692},[2368],{"type":26,"value":720},{"type":21,"tag":679,"props":2370,"children":2372},{"class":681,"line":2371},25,[2373],{"type":21,"tag":679,"props":2374,"children":2375},{"style":686},[2376],{"type":26,"value":2377},"      \"WebFetch(domain:*.ac.cn)\"\n",{"type":21,"tag":679,"props":2379,"children":2381},{"class":681,"line":2380},26,[2382],{"type":21,"tag":679,"props":2383,"children":2384},{"style":692},[2385],{"type":26,"value":2386},"    ],\n",{"type":21,"tag":679,"props":2388,"children":2390},{"class":681,"line":2389},27,[2391,2396],{"type":21,"tag":679,"props":2392,"children":2393},{"style":702},[2394],{"type":26,"value":2395},"    \"deny\"",{"type":21,"tag":679,"props":2397,"children":2398},{"style":692},[2399],{"type":26,"value":809},{"type":21,"tag":679,"props":2401,"children":2403},{"class":681,"line":2402},28,[2404,2409],{"type":21,"tag":679,"props":2405,"children":2406},{"style":686},[2407],{"type":26,"value":2408},"      \"Read(**\u002F.ssh\u002F**)\"",{"type":21,"tag":679,"props":2410,"children":2411},{"style":692},[2412],{"type":26,"value":720},{"type":21,"tag":679,"props":2414,"children":2416},{"class":681,"line":2415},29,[2417,2422],{"type":21,"tag":679,"props":2418,"children":2419},{"style":686},[2420],{"type":26,"value":2421},"      \"Read(.\u002Fsecrets\u002F**)\"",{"type":21,"tag":679,"props":2423,"children":2424},{"style":692},[2425],{"type":26,"value":720},{"type":21,"tag":679,"props":2427,"children":2429},{"class":681,"line":2428},30,[2430],{"type":21,"tag":679,"props":2431,"children":2432},{"style":686},[2433],{"type":26,"value":2434},"      \"Bash(rm -rf *)\"\n",{"type":21,"tag":679,"props":2436,"children":2438},{"class":681,"line":2437},31,[2439],{"type":21,"tag":679,"props":2440,"children":2441},{"style":692},[2442],{"type":26,"value":2443},"    ]\n",{"type":21,"tag":679,"props":2445,"children":2447},{"class":681,"line":2446},32,[2448],{"type":21,"tag":679,"props":2449,"children":2450},{"style":692},[2451],{"type":26,"value":1521},{"type":21,"tag":679,"props":2453,"children":2455},{"class":681,"line":2454},33,[2456,2461],{"type":21,"tag":679,"props":2457,"children":2458},{"style":702},[2459],{"type":26,"value":2460},"  \"hooks\"",{"type":21,"tag":679,"props":2462,"children":2463},{"style":692},[2464],{"type":26,"value":695},{"type":21,"tag":679,"props":2466,"children":2468},{"class":681,"line":2467},34,[2469,2474],{"type":21,"tag":679,"props":2470,"children":2471},{"style":702},[2472],{"type":26,"value":2473},"    \"PreToolUse\"",{"type":21,"tag":679,"props":2475,"children":2476},{"style":692},[2477],{"type":26,"value":809},{"type":21,"tag":679,"props":2479,"children":2481},{"class":681,"line":2480},35,[2482],{"type":21,"tag":679,"props":2483,"children":2484},{"style":692},[2485],{"type":26,"value":2486},"      {\n",{"type":21,"tag":679,"props":2488,"children":2490},{"class":681,"line":2489},36,[2491,2496,2500,2504],{"type":21,"tag":679,"props":2492,"children":2493},{"style":702},[2494],{"type":26,"value":2495},"        \"matcher\"",{"type":21,"tag":679,"props":2497,"children":2498},{"style":692},[2499],{"type":26,"value":710},{"type":21,"tag":679,"props":2501,"children":2502},{"style":686},[2503],{"type":26,"value":1215},{"type":21,"tag":679,"props":2505,"children":2506},{"style":692},[2507],{"type":26,"value":720},{"type":21,"tag":679,"props":2509,"children":2511},{"class":681,"line":2510},37,[2512,2517],{"type":21,"tag":679,"props":2513,"children":2514},{"style":702},[2515],{"type":26,"value":2516},"        \"hooks\"",{"type":21,"tag":679,"props":2518,"children":2519},{"style":692},[2520],{"type":26,"value":809},{"type":21,"tag":679,"props":2522,"children":2524},{"class":681,"line":2523},38,[2525],{"type":21,"tag":679,"props":2526,"children":2527},{"style":692},[2528],{"type":26,"value":2529},"          {\n",{"type":21,"tag":679,"props":2531,"children":2533},{"class":681,"line":2532},39,[2534,2539,2543,2547],{"type":21,"tag":679,"props":2535,"children":2536},{"style":702},[2537],{"type":26,"value":2538},"            \"type\"",{"type":21,"tag":679,"props":2540,"children":2541},{"style":692},[2542],{"type":26,"value":710},{"type":21,"tag":679,"props":2544,"children":2545},{"style":686},[2546],{"type":26,"value":1253},{"type":21,"tag":679,"props":2548,"children":2549},{"style":692},[2550],{"type":26,"value":720},{"type":21,"tag":679,"props":2552,"children":2554},{"class":681,"line":2553},40,[2555,2560,2564],{"type":21,"tag":679,"props":2556,"children":2557},{"style":702},[2558],{"type":26,"value":2559},"            \"command\"",{"type":21,"tag":679,"props":2561,"children":2562},{"style":692},[2563],{"type":26,"value":710},{"type":21,"tag":679,"props":2565,"children":2566},{"style":686},[2567],{"type":26,"value":2568},"\"rtk hook claude\"\n",{"type":21,"tag":679,"props":2570,"children":2572},{"class":681,"line":2571},41,[2573],{"type":21,"tag":679,"props":2574,"children":2575},{"style":692},[2576],{"type":26,"value":2577},"          }\n",{"type":21,"tag":679,"props":2579,"children":2581},{"class":681,"line":2580},42,[2582],{"type":21,"tag":679,"props":2583,"children":2584},{"style":692},[2585],{"type":26,"value":2586},"        ]\n",{"type":21,"tag":679,"props":2588,"children":2590},{"class":681,"line":2589},43,[2591],{"type":21,"tag":679,"props":2592,"children":2593},{"style":692},[2594],{"type":26,"value":2595},"      }\n",{"type":21,"tag":679,"props":2597,"children":2599},{"class":681,"line":2598},44,[2600],{"type":21,"tag":679,"props":2601,"children":2602},{"style":692},[2603],{"type":26,"value":2443},{"type":21,"tag":679,"props":2605,"children":2607},{"class":681,"line":2606},45,[2608],{"type":21,"tag":679,"props":2609,"children":2610},{"style":692},[2611],{"type":26,"value":1521},{"type":21,"tag":679,"props":2613,"children":2615},{"class":681,"line":2614},46,[2616,2621],{"type":21,"tag":679,"props":2617,"children":2618},{"style":702},[2619],{"type":26,"value":2620},"  \"enabledPlugins\"",{"type":21,"tag":679,"props":2622,"children":2623},{"style":692},[2624],{"type":26,"value":695},{"type":21,"tag":679,"props":2626,"children":2628},{"class":681,"line":2627},47,[2629,2634,2638,2642],{"type":21,"tag":679,"props":2630,"children":2631},{"style":702},[2632],{"type":26,"value":2633},"    \"claude-code-wakatime@wakatime\"",{"type":21,"tag":679,"props":2635,"children":2636},{"style":692},[2637],{"type":26,"value":710},{"type":21,"tag":679,"props":2639,"children":2640},{"style":702},[2641],{"type":26,"value":1748},{"type":21,"tag":679,"props":2643,"children":2644},{"style":692},[2645],{"type":26,"value":720},{"type":21,"tag":679,"props":2647,"children":2649},{"class":681,"line":2648},48,[2650,2655,2659,2663],{"type":21,"tag":679,"props":2651,"children":2652},{"style":702},[2653],{"type":26,"value":2654},"    \"ponytail@ponytail\"",{"type":21,"tag":679,"props":2656,"children":2657},{"style":692},[2658],{"type":26,"value":710},{"type":21,"tag":679,"props":2660,"children":2661},{"style":702},[2662],{"type":26,"value":1748},{"type":21,"tag":679,"props":2664,"children":2665},{"style":692},[2666],{"type":26,"value":720},{"type":21,"tag":679,"props":2668,"children":2670},{"class":681,"line":2669},49,[2671,2676,2680,2684],{"type":21,"tag":679,"props":2672,"children":2673},{"style":702},[2674],{"type":26,"value":2675},"    \"skill-creator@claude-plugins-official\"",{"type":21,"tag":679,"props":2677,"children":2678},{"style":692},[2679],{"type":26,"value":710},{"type":21,"tag":679,"props":2681,"children":2682},{"style":702},[2683],{"type":26,"value":1748},{"type":21,"tag":679,"props":2685,"children":2686},{"style":692},[2687],{"type":26,"value":720},{"type":21,"tag":679,"props":2689,"children":2691},{"class":681,"line":2690},50,[2692,2697,2701,2705],{"type":21,"tag":679,"props":2693,"children":2694},{"style":702},[2695],{"type":26,"value":2696},"    \"claude-md-management@claude-plugins-official\"",{"type":21,"tag":679,"props":2698,"children":2699},{"style":692},[2700],{"type":26,"value":710},{"type":21,"tag":679,"props":2702,"children":2703},{"style":702},[2704],{"type":26,"value":1748},{"type":21,"tag":679,"props":2706,"children":2707},{"style":692},[2708],{"type":26,"value":720},{"type":21,"tag":679,"props":2710,"children":2712},{"class":681,"line":2711},51,[2713,2718,2722,2726],{"type":21,"tag":679,"props":2714,"children":2715},{"style":702},[2716],{"type":26,"value":2717},"    \"superpowers@claude-plugins-official\"",{"type":21,"tag":679,"props":2719,"children":2720},{"style":692},[2721],{"type":26,"value":710},{"type":21,"tag":679,"props":2723,"children":2724},{"style":702},[2725],{"type":26,"value":1748},{"type":21,"tag":679,"props":2727,"children":2728},{"style":692},[2729],{"type":26,"value":720},{"type":21,"tag":679,"props":2731,"children":2733},{"class":681,"line":2732},52,[2734,2739,2743,2747],{"type":21,"tag":679,"props":2735,"children":2736},{"style":702},[2737],{"type":26,"value":2738},"    \"code-simplifier@claude-plugins-official\"",{"type":21,"tag":679,"props":2740,"children":2741},{"style":692},[2742],{"type":26,"value":710},{"type":21,"tag":679,"props":2744,"children":2745},{"style":702},[2746],{"type":26,"value":1748},{"type":21,"tag":679,"props":2748,"children":2749},{"style":692},[2750],{"type":26,"value":720},{"type":21,"tag":679,"props":2752,"children":2754},{"class":681,"line":2753},53,[2755,2760,2764],{"type":21,"tag":679,"props":2756,"children":2757},{"style":702},[2758],{"type":26,"value":2759},"    \"claude-hud@claude-hud\"",{"type":21,"tag":679,"props":2761,"children":2762},{"style":692},[2763],{"type":26,"value":710},{"type":21,"tag":679,"props":2765,"children":2766},{"style":702},[2767],{"type":26,"value":1869},{"type":21,"tag":679,"props":2769,"children":2771},{"class":681,"line":2770},54,[2772],{"type":21,"tag":679,"props":2773,"children":2774},{"style":692},[2775],{"type":26,"value":1521},{"type":21,"tag":679,"props":2777,"children":2779},{"class":681,"line":2778},55,[2780,2785],{"type":21,"tag":679,"props":2781,"children":2782},{"style":702},[2783],{"type":26,"value":2784},"  \"extraKnownMarketplaces\"",{"type":21,"tag":679,"props":2786,"children":2787},{"style":692},[2788],{"type":26,"value":695},{"type":21,"tag":679,"props":2790,"children":2792},{"class":681,"line":2791},56,[2793,2798],{"type":21,"tag":679,"props":2794,"children":2795},{"style":702},[2796],{"type":26,"value":2797},"    \"wakatime\"",{"type":21,"tag":679,"props":2799,"children":2800},{"style":692},[2801],{"type":26,"value":695},{"type":21,"tag":679,"props":2803,"children":2805},{"class":681,"line":2804},57,[2806,2811],{"type":21,"tag":679,"props":2807,"children":2808},{"style":702},[2809],{"type":26,"value":2810},"      \"source\"",{"type":21,"tag":679,"props":2812,"children":2813},{"style":692},[2814],{"type":26,"value":695},{"type":21,"tag":679,"props":2816,"children":2818},{"class":681,"line":2817},58,[2819,2824,2828,2832],{"type":21,"tag":679,"props":2820,"children":2821},{"style":702},[2822],{"type":26,"value":2823},"        \"source\"",{"type":21,"tag":679,"props":2825,"children":2826},{"style":692},[2827],{"type":26,"value":710},{"type":21,"tag":679,"props":2829,"children":2830},{"style":686},[2831],{"type":26,"value":1491},{"type":21,"tag":679,"props":2833,"children":2834},{"style":692},[2835],{"type":26,"value":720},{"type":21,"tag":679,"props":2837,"children":2839},{"class":681,"line":2838},59,[2840,2845,2849],{"type":21,"tag":679,"props":2841,"children":2842},{"style":702},[2843],{"type":26,"value":2844},"        \"url\"",{"type":21,"tag":679,"props":2846,"children":2847},{"style":692},[2848],{"type":26,"value":710},{"type":21,"tag":679,"props":2850,"children":2851},{"style":686},[2852],{"type":26,"value":2853},"\"https:\u002F\u002Fgithub.com\u002Fwakatime\u002Fclaude-code-wakatime.git\"\n",{"type":21,"tag":679,"props":2855,"children":2857},{"class":681,"line":2856},60,[2858],{"type":21,"tag":679,"props":2859,"children":2860},{"style":692},[2861],{"type":26,"value":2595},{"type":21,"tag":679,"props":2863,"children":2865},{"class":681,"line":2864},61,[2866],{"type":21,"tag":679,"props":2867,"children":2868},{"style":692},[2869],{"type":26,"value":2870},"    },\n",{"type":21,"tag":679,"props":2872,"children":2874},{"class":681,"line":2873},62,[2875,2880],{"type":21,"tag":679,"props":2876,"children":2877},{"style":702},[2878],{"type":26,"value":2879},"    \"ponytail\"",{"type":21,"tag":679,"props":2881,"children":2882},{"style":692},[2883],{"type":26,"value":695},{"type":21,"tag":679,"props":2885,"children":2887},{"class":681,"line":2886},63,[2888,2892],{"type":21,"tag":679,"props":2889,"children":2890},{"style":702},[2891],{"type":26,"value":2810},{"type":21,"tag":679,"props":2893,"children":2894},{"style":692},[2895],{"type":26,"value":695},{"type":21,"tag":679,"props":2897,"children":2899},{"class":681,"line":2898},64,[2900,2904,2908,2912],{"type":21,"tag":679,"props":2901,"children":2902},{"style":702},[2903],{"type":26,"value":2823},{"type":21,"tag":679,"props":2905,"children":2906},{"style":692},[2907],{"type":26,"value":710},{"type":21,"tag":679,"props":2909,"children":2910},{"style":686},[2911],{"type":26,"value":1557},{"type":21,"tag":679,"props":2913,"children":2914},{"style":692},[2915],{"type":26,"value":720},{"type":21,"tag":679,"props":2917,"children":2919},{"class":681,"line":2918},65,[2920,2925,2929],{"type":21,"tag":679,"props":2921,"children":2922},{"style":702},[2923],{"type":26,"value":2924},"        \"repo\"",{"type":21,"tag":679,"props":2926,"children":2927},{"style":692},[2928],{"type":26,"value":710},{"type":21,"tag":679,"props":2930,"children":2931},{"style":686},[2932],{"type":26,"value":2933},"\"DietrichGebert\u002Fponytail\"\n",{"type":21,"tag":679,"props":2935,"children":2937},{"class":681,"line":2936},66,[2938],{"type":21,"tag":679,"props":2939,"children":2940},{"style":692},[2941],{"type":26,"value":2595},{"type":21,"tag":679,"props":2943,"children":2945},{"class":681,"line":2944},67,[2946],{"type":21,"tag":679,"props":2947,"children":2948},{"style":692},[2949],{"type":26,"value":2870},{"type":21,"tag":679,"props":2951,"children":2953},{"class":681,"line":2952},68,[2954,2959],{"type":21,"tag":679,"props":2955,"children":2956},{"style":702},[2957],{"type":26,"value":2958},"    \"claude-hud\"",{"type":21,"tag":679,"props":2960,"children":2961},{"style":692},[2962],{"type":26,"value":695},{"type":21,"tag":679,"props":2964,"children":2966},{"class":681,"line":2965},69,[2967,2971],{"type":21,"tag":679,"props":2968,"children":2969},{"style":702},[2970],{"type":26,"value":2810},{"type":21,"tag":679,"props":2972,"children":2973},{"style":692},[2974],{"type":26,"value":695},{"type":21,"tag":679,"props":2976,"children":2978},{"class":681,"line":2977},70,[2979,2983,2987,2991],{"type":21,"tag":679,"props":2980,"children":2981},{"style":702},[2982],{"type":26,"value":2823},{"type":21,"tag":679,"props":2984,"children":2985},{"style":692},[2986],{"type":26,"value":710},{"type":21,"tag":679,"props":2988,"children":2989},{"style":686},[2990],{"type":26,"value":1557},{"type":21,"tag":679,"props":2992,"children":2993},{"style":692},[2994],{"type":26,"value":720},{"type":21,"tag":679,"props":2996,"children":2998},{"class":681,"line":2997},71,[2999,3003,3007],{"type":21,"tag":679,"props":3000,"children":3001},{"style":702},[3002],{"type":26,"value":2924},{"type":21,"tag":679,"props":3004,"children":3005},{"style":692},[3006],{"type":26,"value":710},{"type":21,"tag":679,"props":3008,"children":3009},{"style":686},[3010],{"type":26,"value":3011},"\"jarrodwatts\u002Fclaude-hud\"\n",{"type":21,"tag":679,"props":3013,"children":3015},{"class":681,"line":3014},72,[3016],{"type":21,"tag":679,"props":3017,"children":3018},{"style":692},[3019],{"type":26,"value":2595},{"type":21,"tag":679,"props":3021,"children":3023},{"class":681,"line":3022},73,[3024],{"type":21,"tag":679,"props":3025,"children":3026},{"style":692},[3027],{"type":26,"value":1291},{"type":21,"tag":679,"props":3029,"children":3031},{"class":681,"line":3030},74,[3032],{"type":21,"tag":679,"props":3033,"children":3034},{"style":692},[3035],{"type":26,"value":1521},{"type":21,"tag":679,"props":3037,"children":3039},{"class":681,"line":3038},75,[3040,3045,3049,3053],{"type":21,"tag":679,"props":3041,"children":3042},{"style":702},[3043],{"type":26,"value":3044},"  \"skipDangerousModePermissionPrompt\"",{"type":21,"tag":679,"props":3046,"children":3047},{"style":692},[3048],{"type":26,"value":710},{"type":21,"tag":679,"props":3050,"children":3051},{"style":702},[3052],{"type":26,"value":1748},{"type":21,"tag":679,"props":3054,"children":3055},{"style":692},[3056],{"type":26,"value":720},{"type":21,"tag":679,"props":3058,"children":3060},{"class":681,"line":3059},76,[3061,3066,3070],{"type":21,"tag":679,"props":3062,"children":3063},{"style":702},[3064],{"type":26,"value":3065},"  \"skipWebFetchPreflight\"",{"type":21,"tag":679,"props":3067,"children":3068},{"style":692},[3069],{"type":26,"value":710},{"type":21,"tag":679,"props":3071,"children":3072},{"style":702},[3073],{"type":26,"value":1869},{"type":21,"tag":679,"props":3075,"children":3077},{"class":681,"line":3076},77,[3078],{"type":21,"tag":679,"props":3079,"children":3080},{"style":692},[3081],{"type":26,"value":747},{"type":21,"tag":3083,"props":3084,"children":3085},"hr",{},[],{"type":21,"tag":22,"props":3087,"children":3088},{},[3089,3091,3096,3097,3103],{"type":26,"value":3090},"日常用下来，",{"type":21,"tag":29,"props":3092,"children":3094},{"className":3093},[],[3095],{"type":26,"value":235},{"type":26,"value":1394},{"type":21,"tag":29,"props":3098,"children":3100},{"className":3099},[],[3101],{"type":26,"value":3102},"permissions.allow\u002Fdeny",{"type":26,"value":3104}," + 几个 skill 插件，基本就能覆盖 90% 的需求。",{"type":21,"tag":3106,"props":3107,"children":3108},"style",{},[3109],{"type":26,"value":3110},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":8,"searchDepth":698,"depth":723,"links":3112},[3113,3114,3120,3122,3124,3131,3133,3138],{"id":71,"depth":698,"text":71},{"id":334,"depth":698,"text":3115,"children":3116},"环境变量（env）",[3117,3118,3119],{"id":348,"depth":723,"text":348},{"id":414,"depth":723,"text":414},{"id":475,"depth":723,"text":478},{"id":608,"depth":698,"text":3121},"模型（model）",{"id":658,"depth":698,"text":3123},"提交署名（attribution）",{"id":755,"depth":698,"text":3125,"children":3126},"权限（permissions）",[3127,3129],{"id":767,"depth":723,"text":3128},"allow：预授权",{"id":989,"depth":723,"text":3130},"deny：硬性拒绝",{"id":1138,"depth":698,"text":3132},"钩子（hooks）",{"id":1384,"depth":698,"text":3134,"children":3135},"插件推荐（enabledPlugins + extraKnownMarketplaces）",[3136,3137],{"id":1431,"depth":723,"text":1431},{"id":1710,"depth":723,"text":1710},{"id":1998,"depth":698,"text":1998},"markdown","content:posts:claude-code-settings.md","content","posts\u002Fclaude-code-settings.md","posts\u002Fclaude-code-settings","md",{"_path":3146,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3147,"description":3148,"date":3149,"categories":3150,"tags":3151,"draft":7,"body":3152,"_type":3139,"_id":3333,"_source":3141,"_file":3334,"_stem":3335,"_extension":3144},"\u002Fposts\u002Fmy-thoughts-on-the-ai-industry","简单聊聊对 AI Agent 行业的理解","写这篇文章的初衷，是我发觉逐渐忘了前两个月的 AI\u002FLLMs 是什么样的能力和情况了。意识中似乎某些在突然加速，但理性和直觉告诉我这不对，作为行内人，我知道这是一个渐进的、累积的过程。我想自己回忆一下，Agent的发展。","2026-06-20 13:14:25","色伏集",[13,14,15],{"type":18,"children":3153,"toc":3328},[3154,3159,3164,3169,3174,3179,3184,3189,3203,3208,3213,3218,3223,3228,3233,3238,3243,3248,3254,3259,3269,3274,3284,3294,3306,3318,3323],{"type":21,"tag":22,"props":3155,"children":3156},{},[3157],{"type":26,"value":3158},"我印象里 AI Agent 的概念在 2024 年的时候就逐步走向成熟了。凭我模糊的回忆说一下（不保证正确）。",{"type":21,"tag":22,"props":3160,"children":3161},{},[3162],{"type":26,"value":3163},"一开始 22 年 ChatGPT 就以 ChatBot 的形式爆火。那个时候还称不上现在的 Agent，充其量就是浓缩了大量世界知识的 ChatBot。23年24年开始有了\"Agent\"应用，一开始的那个忘了叫什么名字了（Logo长得像个骆驼的），是 AI 写小说的。我是看见一个学长研究生毕业做的，这个我印象很深。从这里开始，我们不仅仅只是用一个集人类精华的存在去 Chat，而是通过一种组织的形式，发挥它的知识和能力，开始有意识根据模型本身的能力设计一个系统，让模型在这个系统中完成任务，这可以说是早期的 harness 了。",{"type":21,"tag":22,"props":3165,"children":3166},{},[3167],{"type":26,"value":3168},"而 tool-calling 之类的能力，也是在这种系统性地使用模型能力的时候的自发实践。就像很早的 GPT-Academic，就是自己实现 function，配合 prompt 完成对 paper 的拆解。这份能力太过广泛和基础，下游的使用促使上游模型训练端让模型 tool-calling 的能力进一步加强，成为 ReasoningLLM 的标准能力。后面则是对这份 tool-calling 能力的扩展，从原本的工具调用会出错，到单次工具调用成功，再到多次工具调用——模型在工具使用上已经成了专家。",{"type":21,"tag":22,"props":3170,"children":3171},{},[3172],{"type":26,"value":3173},"而能够使用工具，就是 Agentic 能力的一个关键点。在此之前的所谓 Agent，不过是 prompt APPs 罢了。",{"type":21,"tag":69,"props":3175,"children":3177},{"id":3176},"节奏",[3178],{"type":26,"value":3176},{"type":21,"tag":22,"props":3180,"children":3181},{},[3182],{"type":26,"value":3183},"我在24年暑假关注到了 AstrBot 这个项目，那个时候 LLMs 的能力刚好够到能进行工具调用的程度，但鲜少有 QQBot 的项目把 tool-call LLM 作为一等公民接入 QQ，AstrBot做了。比较早期的就跟进了 MCP，沙箱执行，工具调用。我当时顺手给 AstrBot 提了个 typo fix，修了下启动时的 logo，哈哈。但我后续在使用 AstrBot 的时候感到了厌倦——我没有感受到它带给了我什么。让 Bot 更像人？和人交互？我根本用不上。",{"type":21,"tag":22,"props":3185,"children":3186},{},[3187],{"type":26,"value":3188},"2024年有些 PaaS Agent APP 平台，比如 Dify、Coze 等等。RAG的概念也是作为增强模型能力的一个方法为人所熟知，一个是可以解决 AI 幻觉问题，一个是解决 AI 上下文不够长的问题。",{"type":21,"tag":22,"props":3190,"children":3191},{},[3192,3194,3201],{"type":26,"value":3193},"而这个时候，token 的消耗量并没有那么大, dsr1 context length 128k，单次对话就调用一个工具。但是仅仅在 2025 年 Q2，Agentic AI的概念就提出来了（与此同时是大量的 agentic 框架，这是25Q2有人列举的",{"type":21,"tag":78,"props":3195,"children":3198},{"href":3196,"rel":3197},"https:\u002F\u002Fdocs.google.com\u002Fspreadsheets\u002Fd\u002F1B37VxTBuGLeTSPVWtz7UMsCdtXrqV5hCjWkbHN8tfAo\u002Fedit?ref=blog.langchain.dev&pli=1&gid=0#gid=0",[82],[3199],{"type":26,"value":3200},"不同agent框架之间的对比",{"type":26,"value":3202},"），并且就是我们现在常谈论的 agent，而非之前的改改 system prompt 的 'agent'。那个时候还有很多 agent 框架，不管是非常早就出来的 LangChain、还是算比较新的 autogen、LangGraph 这些都是很方便去构建 workflow 式的 agent的平台，开发 agent 的门槛变得很低。但这个时候业界反应还没有那么大（2025Q2）——相应的就是机会非常多，因为绝大多数人都没有做过 agent。而今一年过去了，体感上各种培训班已经满天飞了。",{"type":21,"tag":22,"props":3204,"children":3205},{},[3206],{"type":26,"value":3207},"另外一个，token消耗量在模型长上下文普及和长程任务能力越来越强的现在激增。我一天开发一个项目最高能烧掉1B的token，这换在ChatBot时代是无法想象的。而海量的token就代表着海量的数据，而且还是之前现实世界没有的，agentic的long horizon任务执行的轨迹数据，这是新一轮的数据飞轮。随着 Transformer 架构的不断升级，现在 dsv4 解决了 KV Cache 算力、显存消耗太大的问题（之前只是解决Attn上的算力和显存问题，而长上下文中KV Cache带来的问题没有解决），能够在 128k的上下文做预训练，这是以前不敢想的。人类产生数据的速度也在激增。这有点像烧着能源，让大模型有了左脚踩右脚的能力，当然中间少不了人类做 pilot 和 steer，以保证模型和人类 align。",{"type":21,"tag":22,"props":3209,"children":3210},{},[3211],{"type":26,"value":3212},"2025年 vibe coding 的概念就已经深入人心。25五一的时候，有同学问我课程项目（前端后端数据库）能不能全用 vibe coding，我说试试，应该能。他最后全 vibe coding 成功了。那个时候就有所谓'前端已死'的论调，并在 Gemini 3（2025Q4）的时候极为强烈。",{"type":21,"tag":22,"props":3214,"children":3215},{},[3216],{"type":26,"value":3217},"之后出现的 AI 产品五花八门。AI 陪伴类的一直都有（酒馆、MiniMax的星野 etc.），这种情感类的反馈周期长，算法的 reward 太多太广太复杂，很难有好的确切的标准做 SFT，并且需要长周期的反馈，很难直接 eval 效果。还有 AI Researcher，印象里这个 OpenAI 先做的，然后 Kimi 似乎是跟进的不错的那个。Kimi Research，记得当时他们的模型做到了一次对话能够调用上百个工具，出了个产品 OK Computer，来做单次请求的长程解决，这个时候（2025Q3）似乎各家就能做到单次30分钟以上的持续执行了。2025Q4 的 skills 概念的提出让 Agentic AI 的易用性进一步降低，（skills这个概念真神了）skills，可以说是 LLM Infra 中的 FlashAttention。将修改模型上下文的权利下放（而这是 agentic 系统中至关重要的），通过 skills 可以直接给模型传输经验、方法、流程、领域知识、思路，等等等等。直接让通用模型的能力轻松落地。而且通过三步渐进暴露的方式做了漂亮的 context engineering，是 Agent在C端变得高可用的一个至关重要的概念。",{"type":21,"tag":22,"props":3219,"children":3220},{},[3221],{"type":26,"value":3222},"写到这里，我发现模型变动的速度太快了。两个月甚至一个月模型厂商就能把新一代的post-training的模型端上来。模型能力的提升从上游往下游不断传播，影响巨大。",{"type":21,"tag":22,"props":3224,"children":3225},{},[3226],{"type":26,"value":3227},"一个类似玩笑的说法是，这个月你用 AI Coding 感到棘手的项目，你大可放置一段时间，等新一代模型发布的时候，过去的难题可能就迎刃而解了。这反应在行业里面很残酷——就像做垂直领域的一些 AI Agent 产品，现在正在被通用的 Codex 吃掉市场份额一样。",{"type":21,"tag":22,"props":3229,"children":3230},{},[3231],{"type":26,"value":3232},"其实也告诉了我们时间很重要。这个月是这样，下个月情况可能就会反转，像 Fable 5 这样的事情，之前已经发生过，未来一定还会发生。但是这个具体的变动谁也不清楚，不身处在水中，怎么能摸到第一线的变化？",{"type":21,"tag":69,"props":3234,"children":3236},{"id":3235},"破圈",[3237],{"type":26,"value":3235},{"type":21,"tag":22,"props":3239,"children":3240},{},[3241],{"type":26,"value":3242},"2026Q1 Opus 4.6 发布之后，我第一次感觉到 Agentic AI 真正意义上的破圈了，好像 AI 真的突破了某种能力的上限，而那种上限格外诱人，各个行业和领域的人都开始为之疯狂。当然这种FOMO并非2026才发生的，更早就有了。",{"type":21,"tag":22,"props":3244,"children":3245},{},[3246],{"type":26,"value":3247},"另一个破圈的是 OpenClaw（ClawBot），这玩意我记得在 Dev 中有过一次传播，但似乎大家没有这么在意。隔了一两个月在 Q1 和 Q2 之间的时候，OpenClaw突然破圈了，引起了一波 Claw 潮。我其实到现在也没有想明白是为什么？难道是真的发现了 AI Agent 的能力已经足够在生产生活中起到作用了吗？但是资本似乎从此刻就开始狂欢。智谱、MiniMax接连港股上市，而今估值快万亿。",{"type":21,"tag":69,"props":3249,"children":3251},{"id":3250},"agent-到底在做什么",[3252],{"type":26,"value":3253},"Agent 到底在做什么",{"type":21,"tag":22,"props":3255,"children":3256},{},[3257],{"type":26,"value":3258},"上面啰嗦了这么多，其实真正想聊的是这个：抛开产品和概念，Agent 到底是什么，以及它现在到底能做什么。",{"type":21,"tag":22,"props":3260,"children":3261},{},[3262,3264],{"type":26,"value":3263},"只说 agent 类型的话，可以分作 workflow 和 agent 两种，以及两者之间的东西。但我觉得这个二分法本身没那么重要——更重要的是想清楚一个问题：",{"type":21,"tag":294,"props":3265,"children":3266},{},[3267],{"type":26,"value":3268},"你的业务里，哪些环节需要 agentic，需要到什么程度？",{"type":21,"tag":22,"props":3270,"children":3271},{},[3272],{"type":26,"value":3273},"这个问题比选框架重要得多。不是因为框架不重要，而是因为大多数场景下，你根本不需要一个完全自主的 agent。",{"type":21,"tag":22,"props":3275,"children":3276},{},[3277,3282],{"type":21,"tag":294,"props":3278,"children":3279},{},[3280],{"type":26,"value":3281},"业务流程清晰、规律、稳定、门槛不高",{"type":26,"value":3283},"——这些场景用 workflow 就够了。workflow 的优势不是能力，是可控。每一步的输入输出是确定的，出问题你能定位到具体环节。而一个完全自主的 agent，它做对了你不知道为什么对，做错了你也不知道在哪一步开始偏的。对于大多数企业场景，可控性比智能程度更值钱。",{"type":21,"tag":22,"props":3285,"children":3286},{},[3287,3292],{"type":21,"tag":294,"props":3288,"children":3289},{},[3290],{"type":26,"value":3291},"垂直领域",{"type":26,"value":3293},"就是另一回事了。通用模型 + skills 在垂直领域的效果往往不好，而且可预计的未来通用模型在这些领域的数据都比较稀缺。这时候要么训练\u002F微调，要么结合领域知识的 RAG。如果做不到微调模型，就只能用 workflow 去逼近效果。这不是最好的方案，但是是可行的方案。",{"type":21,"tag":22,"props":3295,"children":3296},{},[3297,3299,3304],{"type":26,"value":3298},"这中间有一个我反复想到的问题：",{"type":21,"tag":294,"props":3300,"children":3301},{},[3302],{"type":26,"value":3303},"上下文。",{"type":26,"value":3305}," 不管是 workflow 还是 agent，让模型接收到正确的、充足的、合适的上下文，决定了整个系统的上限。上下文给少了模型瞎猜，给多了模型被噪声淹没，给错了方向整个就偏了。这件事说起来简单，实际上极其依赖对业务的理解——你得知道什么信息对决策是关键的，什么信息是噪音。这不是技术问题，是领域知识问题。",{"type":21,"tag":22,"props":3307,"children":3308},{},[3309,3311,3316],{"type":26,"value":3310},"另一个同样关键但更难的事情是",{"type":21,"tag":294,"props":3312,"children":3313},{},[3314],{"type":26,"value":3315},"评估",{"type":26,"value":3317},"。怎么知道你的 agent 系统在变好还是变坏？模型一更新，prompt 一改，工具一换，行为就可能变了。如果没有一套评估手段，你就是在盲飞。但评估 agent 比评估模型难得多——因为 agent 的输出不是单点的，是多步的、有状态的、和环境交互的。单次工具调用对不对？连续调用的顺序对不对？最终结果对不对？三个维度的评估，目前行业里也没有很好的统一方案。",{"type":21,"tag":22,"props":3319,"children":3320},{},[3321],{"type":26,"value":3322},"这也是为什么我说 OpenClaw 的破圈让我困惑。如果 agent 系统的基础设施——上下文工程、评估体系——都还处在这种\"大家各做各的\"阶段，那它真的准备好进入生产生活了吗？还是说我们又一次高估了短期，而低估了长期？",{"type":21,"tag":22,"props":3324,"children":3325},{},[3326],{"type":26,"value":3327},"后记：写这篇文章的初衷，是我发觉逐渐忘了前两个月的 AI\u002FLLMs 是什么样的能力和情况了。行业的节奏快到你来不及消化今天的东西，明天又变了。我想把现在的理解写下来，是为了过几个月回头再看的时候，能看到自己当时站在哪里，看到了什么，又看漏了什么。人的记忆真的忘的太快了。",{"title":8,"searchDepth":698,"depth":723,"links":3329},[3330,3331,3332],{"id":3176,"depth":698,"text":3176},{"id":3235,"depth":698,"text":3235},{"id":3250,"depth":698,"text":3253},"content:posts:my-thoughts-on-the-AI-industry.md","posts\u002Fmy-thoughts-on-the-AI-industry.md","posts\u002Fmy-thoughts-on-the-AI-industry",{"_path":3337,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3338,"description":8,"date":3339,"categories":11,"tags":3340,"draft":7,"body":3342,"_type":3139,"_id":3371,"_source":3141,"_file":3372,"_stem":3373,"_extension":3144},"\u002Fposts\u002Frotational-positional-encoding","RoPE","2026-06-17 18:31:40",[13,3341,3338],"Transformer",{"type":18,"children":3343,"toc":3369},[3344,3349,3354,3359,3364],{"type":21,"tag":22,"props":3345,"children":3346},{},[3347],{"type":26,"value":3348},"Attn 本身不表示位置，不包含时序信息。在进入 Attn Block 之前，需要将文本的位置信息编码进 Embedding vector 里。",{"type":21,"tag":22,"props":3350,"children":3351},{},[3352],{"type":26,"value":3353},"早期如 BERT 使用的是绝对位置编码，用一个Embedding去表示位置，无法外推，并且还需要额外存储位置信息。相对位置编码，用两个token之间的相对距离去编码解决了外推的问题，但实现很麻烦。",{"type":21,"tag":22,"props":3355,"children":3356},{},[3357],{"type":26,"value":3358},"我们知道 Attn 本身就是抽象出 Query、Key、Value，计算QK相关性找V这个过程，这里用了矩阵乘法。对于矩阵我们有很多trick。同时旋转 Q、K 两个矩阵，他们矩阵点乘的结果就能实现相对位置编码，而旋转过程中频率的衰减自然展现出了绝对位置的信息。",{"type":21,"tag":22,"props":3360,"children":3361},{},[3362],{"type":26,"value":3363},"RoPE 利用了矩阵的数学特性，漂亮地做好了位置编码这件事。只需要做旋转就可以。空间复杂度O(1)，算法复杂度都降了很多。把大的QK矩阵分块改成一对一对的到二维空间做旋转，这些维度对从高到低不同频率衰减包含在其中。高频负责近距离，中频平衡精度和范围，低频确定远距离位置。外推能力强，没有引入额外的复杂度，非常美丽。",{"type":21,"tag":22,"props":3365,"children":3366},{},[3367],{"type":26,"value":3368},"如果位置信息能从off到其他模块，RoPE这块还能减负。比如使用Linear Attn，如Gated DeltaNet，自带很强的位置理解。Attn就可以把长程的位置理解off掉，用Partial RoPE保留高频部分，只理解近邻的位置信息即可。",{"title":8,"searchDepth":698,"depth":723,"links":3370},[],"content:posts:rotational-positional-encoding.md","posts\u002Frotational-positional-encoding.md","posts\u002Frotational-positional-encoding",{"_path":3375,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3376,"description":8,"date":3377,"categories":11,"tags":3378,"draft":7,"body":3379,"_type":3139,"_id":3660,"_source":3141,"_file":3661,"_stem":3662,"_extension":3144},"\u002Fposts\u002Fintroduction-to-large-language-model","大语言模型入门基础","2026-06-16 22:36:11",[3341,13],{"type":18,"children":3380,"toc":3653},[3381,3386,3392,3397,3402,3407,3412,3417,3423,3428,3433,3438,3443,3448,3505,3510,3515,3617,3623,3628,3633,3639,3644,3649],{"type":21,"tag":22,"props":3382,"children":3383},{},[3384],{"type":26,"value":3385},"本文介绍大语言模型(LLM)的基础内容。",{"type":21,"tag":69,"props":3387,"children":3389},{"id":3388},"insight",[3390],{"type":26,"value":3391},"Insight",{"type":21,"tag":22,"props":3393,"children":3394},{},[3395],{"type":26,"value":3396},"对于推理时的 LLMs 来说，它只做一件事：预测下一个 token。这听起来是一件非常简单的一件事。为什么 LLMs 却在文本模态上表现的如此全能呢？",{"type":21,"tag":22,"props":3398,"children":3399},{},[3400],{"type":26,"value":3401},"力大砖飞？道法自然？或许都对。LLMs 在海量数据上做了 pretrain。截止到2026年4月份，国内开源的几家模型公司在预训练阶段训练的token数量大约都在30T-35TB之间。模型每个参数预训练消耗的token都远大于20了。并且我相信这个数据使用量会在 DeepSeek V4 分享他们新的稀疏方法后，继续增长。另外，qwen 小模型的实践告诉了我们：预训练时，随着数据量的增多，即使是小模型，其能力也在稳步提升。",{"type":21,"tag":69,"props":3403,"children":3405},{"id":3404},"数据飞轮",[3406],{"type":26,"value":3404},{"type":21,"tag":22,"props":3408,"children":3409},{},[3410],{"type":26,"value":3411},"在模型的长上下文突破(RoPE、YaRN), 基座模型 Agentic 能力提升， LLM Infra(vLLM、SGLang etc.) Day0级跟进支持等等突破之后，一批全新的、过去没有的长上下文 Agent 任务的数据在飞速产生。这个时候谁拥有更多数据（并且能聪明地运用），那么他们下一代的模型就会更强，这是个正反馈的过程，也被称为数据飞轮。",{"type":21,"tag":22,"props":3413,"children":3414},{},[3415],{"type":26,"value":3416},"数据飞轮正在拉大不同模型厂商之间的差距。",{"type":21,"tag":69,"props":3418,"children":3420},{"id":3419},"看到新的-token-产生的时候发生了什么",[3421],{"type":26,"value":3422},"看到新的 Token 产生的时候，发生了什么？",{"type":21,"tag":22,"props":3424,"children":3425},{},[3426],{"type":26,"value":3427},"使用 LLM 时，输入的是人类的文本，输出的是人类的文本，这个过程中模型到底做了什么呢？",{"type":21,"tag":22,"props":3429,"children":3430},{},[3431],{"type":26,"value":3432},"在看到文本的前一步，token是经过采样后得到的next token ID，根据ID一做 detokenizer 就得到看见的文本了。",{"type":21,"tag":22,"props":3434,"children":3435},{},[3436],{"type":26,"value":3437},"得到 token id 的前一步，是经过 Softmax 计算出的一个概率矩阵，根据不同的解码策略（贪婪解码：取概率最大的； 投机解码：需要 MTP 模块； 或者按概率采样等等），选择next token id。再上一步就是 logits。我们平常说的 Temperature（对 logits 矩阵做除法）、Top-K（只在概率最大的K个Token中选）、Top-P（只在累积概率P以内的Token中选）都是在这步做的。",{"type":21,"tag":22,"props":3439,"children":3440},{},[3441],{"type":26,"value":3442},"logits 输出前是 LM Head（Linear 层），它将 hidden Linear 的特征数扩大到词表的大小。在此之前是文本经过 Embedding 向量化和 PE（Positional Encode）后进入若干个 Transformer Block 后又过了一遍 RMSNorm。",{"type":21,"tag":22,"props":3444,"children":3445},{},[3446],{"type":26,"value":3447},"Transformer Block很简单。就是 Attn 机制加上前馈网络（FFN）罢了。",{"type":21,"tag":669,"props":3449,"children":3453},{"className":3450,"code":3451,"language":3452,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Input: x\n# Transformer Block\ndef forward(self, x):\n    x = x + Attn(RMSNorm(x))  # 简单的残差\n    x = x + FFN(RMSNorm(x))\n    return x\n","python",[3454],{"type":21,"tag":29,"props":3455,"children":3456},{"__ignoreMap":8},[3457,3465,3473,3481,3489,3497],{"type":21,"tag":679,"props":3458,"children":3459},{"class":681,"line":682},[3460],{"type":21,"tag":679,"props":3461,"children":3462},{},[3463],{"type":26,"value":3464},"# Input: x\n",{"type":21,"tag":679,"props":3466,"children":3467},{"class":681,"line":698},[3468],{"type":21,"tag":679,"props":3469,"children":3470},{},[3471],{"type":26,"value":3472},"# Transformer Block\n",{"type":21,"tag":679,"props":3474,"children":3475},{"class":681,"line":723},[3476],{"type":21,"tag":679,"props":3477,"children":3478},{},[3479],{"type":26,"value":3480},"def forward(self, x):\n",{"type":21,"tag":679,"props":3482,"children":3483},{"class":681,"line":741},[3484],{"type":21,"tag":679,"props":3485,"children":3486},{},[3487],{"type":26,"value":3488},"    x = x + Attn(RMSNorm(x))  # 简单的残差\n",{"type":21,"tag":679,"props":3490,"children":3491},{"class":681,"line":848},[3492],{"type":21,"tag":679,"props":3493,"children":3494},{},[3495],{"type":26,"value":3496},"    x = x + FFN(RMSNorm(x))\n",{"type":21,"tag":679,"props":3498,"children":3499},{"class":681,"line":861},[3500],{"type":21,"tag":679,"props":3501,"children":3502},{},[3503],{"type":26,"value":3504},"    return x\n",{"type":21,"tag":22,"props":3506,"children":3507},{},[3508],{"type":26,"value":3509},"Attn 机制的话，现在有DSA、MLA等等。不过未来的趋势还是掌管稀疏的神——DeepSeek的新Attention的时代，这成本降的太夸张了。",{"type":21,"tag":22,"props":3511,"children":3512},{},[3513],{"type":26,"value":3514},"干了什么？混合注意力（CSA：压缩稀疏注意力， HCA：高度压缩注意力）。不仅仅是上一代注意力的稀疏性，还直接对 Attn 进行压缩。表明了一个潜在的观点，对于长上下文（百万级），即使利用其稀疏性能够将 Attn 的算法复杂度降到 O(L)级。但是面对长上下文存储的 KV Cache还是无能为力。V4 直接对 Attn 进行压缩，减少 KV Cache数量。（Tips: KV Cache可以近似看成 Context 的物理实体）",{"type":21,"tag":669,"props":3516,"children":3518},{"className":3450,"code":3517,"language":3452,"meta":8,"style":8},"def forward(self, x):\n    # 计算多头注意力 -> xq, xk, xv\n    xq, xk = RMSNorm(xq), RMSNorm(xk) # qk-norm\n    \n    xq, xk = apply_RoPE(xq, xk, cos, sin) # 加入相对位置编码\n    #... 存 KV Cache。  \n    # KV Cache 一般存显存。但是现在有存在SSD上的，比如DeepSeek，使得缓存命中成本惊人的低，是未来降低推理成本的一个方向\n\n    output = F.scaled_dot_product_attention(xq, xk, xk, is_casual=True) # FlashAttention\n    output = output.transpose(1, 2).reshape(bsz, seq_lean, -1)\n\n    return output, past_kv\n",[3519],{"type":21,"tag":29,"props":3520,"children":3521},{"__ignoreMap":8},[3522,3529,3537,3545,3553,3561,3569,3577,3586,3594,3602,3609],{"type":21,"tag":679,"props":3523,"children":3524},{"class":681,"line":682},[3525],{"type":21,"tag":679,"props":3526,"children":3527},{},[3528],{"type":26,"value":3480},{"type":21,"tag":679,"props":3530,"children":3531},{"class":681,"line":698},[3532],{"type":21,"tag":679,"props":3533,"children":3534},{},[3535],{"type":26,"value":3536},"    # 计算多头注意力 -> xq, xk, xv\n",{"type":21,"tag":679,"props":3538,"children":3539},{"class":681,"line":723},[3540],{"type":21,"tag":679,"props":3541,"children":3542},{},[3543],{"type":26,"value":3544},"    xq, xk = RMSNorm(xq), RMSNorm(xk) # qk-norm\n",{"type":21,"tag":679,"props":3546,"children":3547},{"class":681,"line":741},[3548],{"type":21,"tag":679,"props":3549,"children":3550},{},[3551],{"type":26,"value":3552},"    \n",{"type":21,"tag":679,"props":3554,"children":3555},{"class":681,"line":848},[3556],{"type":21,"tag":679,"props":3557,"children":3558},{},[3559],{"type":26,"value":3560},"    xq, xk = apply_RoPE(xq, xk, cos, sin) # 加入相对位置编码\n",{"type":21,"tag":679,"props":3562,"children":3563},{"class":681,"line":861},[3564],{"type":21,"tag":679,"props":3565,"children":3566},{},[3567],{"type":26,"value":3568},"    #... 存 KV Cache。  \n",{"type":21,"tag":679,"props":3570,"children":3571},{"class":681,"line":874},[3572],{"type":21,"tag":679,"props":3573,"children":3574},{},[3575],{"type":26,"value":3576},"    # KV Cache 一般存显存。但是现在有存在SSD上的，比如DeepSeek，使得缓存命中成本惊人的低，是未来降低推理成本的一个方向\n",{"type":21,"tag":679,"props":3578,"children":3579},{"class":681,"line":887},[3580],{"type":21,"tag":679,"props":3581,"children":3583},{"emptyLinePlaceholder":3582},true,[3584],{"type":26,"value":3585},"\n",{"type":21,"tag":679,"props":3587,"children":3588},{"class":681,"line":900},[3589],{"type":21,"tag":679,"props":3590,"children":3591},{},[3592],{"type":26,"value":3593},"    output = F.scaled_dot_product_attention(xq, xk, xk, is_casual=True) # FlashAttention\n",{"type":21,"tag":679,"props":3595,"children":3596},{"class":681,"line":913},[3597],{"type":21,"tag":679,"props":3598,"children":3599},{},[3600],{"type":26,"value":3601},"    output = output.transpose(1, 2).reshape(bsz, seq_lean, -1)\n",{"type":21,"tag":679,"props":3603,"children":3604},{"class":681,"line":922},[3605],{"type":21,"tag":679,"props":3606,"children":3607},{"emptyLinePlaceholder":3582},[3608],{"type":26,"value":3585},{"type":21,"tag":679,"props":3610,"children":3611},{"class":681,"line":2194},[3612],{"type":21,"tag":679,"props":3613,"children":3614},{},[3615],{"type":26,"value":3616},"    return output, past_kv\n",{"type":21,"tag":69,"props":3618,"children":3620},{"id":3619},"optimizer",[3621],{"type":26,"value":3622},"Optimizer",{"type":21,"tag":22,"props":3624,"children":3625},{},[3626],{"type":26,"value":3627},"除了 Embeding 模型和 LM Head Linear层以及其余Linear层、Bias用 AdamW 优化器，其余矩阵用 Muon(dim>=2)。Muon 能够保证矩阵正交性，可以加速收敛，Loss下降更稳定。但是 Muon 较新，一些后端实现的性能不好（比如 PyTorch 2.12 的 mps 后端， 替换 AdamW 之后训练速度变慢了）。",{"type":21,"tag":22,"props":3629,"children":3630},{},[3631],{"type":26,"value":3632},"不过使用 Muon 是趋势，相比 AdamW 能够减少一半optim的参数使用，训练也更稳定。",{"type":21,"tag":69,"props":3634,"children":3636},{"id":3635},"mtp-多-token-预测",[3637],{"type":26,"value":3638},"MTP 多 Token 预测",{"type":21,"tag":22,"props":3640,"children":3641},{},[3642],{"type":26,"value":3643},"一次推理输出多个 Token。",{"type":21,"tag":22,"props":3645,"children":3646},{},[3647],{"type":26,"value":3648},"如何实现？加上一个 MTP 模块（可以当只有一块注意力块的LLM）：输入是模型预测出的t+1，经过类似的步骤但是Transformer Block只有一块（减少计算量以及显存开销），得到t+2。嵌套调用后可以一次推理得到多个token。和主模型的 logits 一对比后，结果一样的就保留，不一样的就重新预测。因为序列相近，语义大概率类似，因此成功率很高，一般可以实现2-3倍的加速比。",{"type":21,"tag":3106,"props":3650,"children":3651},{},[3652],{"type":26,"value":3110},{"title":8,"searchDepth":698,"depth":723,"links":3654},[3655,3656,3657,3658,3659],{"id":3388,"depth":698,"text":3391},{"id":3404,"depth":698,"text":3404},{"id":3419,"depth":698,"text":3422},{"id":3619,"depth":698,"text":3622},{"id":3635,"depth":698,"text":3638},"content:posts:introduction-to-large-language-model.md","posts\u002Fintroduction-to-large-language-model.md","posts\u002Fintroduction-to-large-language-model",{"_path":3664,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3665,"description":8,"date":3666,"categories":3150,"tags":3667,"draft":7,"body":3668,"_type":3139,"_id":3692,"_source":3141,"_file":3693,"_stem":3694,"_extension":3144},"\u002Fposts\u002Fthought-about-coding-agent","关于 Coding Agent 使用的遐思","2026-06-03 17:54:20",[15],{"type":18,"children":3669,"toc":3690},[3670,3675,3680,3685],{"type":21,"tag":22,"props":3671,"children":3672},{},[3673],{"type":26,"value":3674},"10年代以后，GitHub激起来的开源浪潮改变了软件工业；全球的 contributor 通过 GitHub 贡献代码，为开源社区做出贡献。\n这公开的代码库，自然成为 AI 训练的素材。另外 DeepWiki 之类通过 AI 解释代码，帮助开发者快速理解代码。\n人们使用 AI 编写文档、注释、行内补全，能力越发强大，DeepWiki 这样直接分析整个代码仓库给出文档的软件大大降低了开发者\n了解某一特性实现的成本。",{"type":21,"tag":22,"props":3676,"children":3677},{},[3678],{"type":26,"value":3679},"如果想复刻某一特性，完全可以在 DeepWiki 上询问相关实现细节，减少了开发者理解代码的难度，同时大大减短了开发者理解的时间。",{"type":21,"tag":22,"props":3681,"children":3682},{},[3683],{"type":26,"value":3684},"在 Research 领域，alphaxiv.com 等产品也对传统的检索、查阅文献的流程进行了挑战。对于这样生产力密集的事情，AI 能够极大提升人的效率。",{"type":21,"tag":22,"props":3686,"children":3687},{},[3688],{"type":26,"value":3689},"但是我一直在日常生活中思考，AI能帮我做到些什么吗？我追问过自己很多遍，最终答案是日常生活用 AI 赋能的 RoI 对一个普通人来说并不高，并不是特别值得做的事情（从能够做成的\u002F需要花费的成本来说）。",{"title":8,"searchDepth":698,"depth":723,"links":3691},[],"content:posts:thought-about-coding-agent.md","posts\u002Fthought-about-coding-agent.md","posts\u002Fthought-about-coding-agent",{"_path":3696,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3697,"description":3698,"date":3699,"categories":11,"tags":3700,"body":3702,"_type":3139,"_id":4768,"_source":3141,"_file":4769,"_stem":4770,"_extension":3144},"\u002Fposts\u002Fabout-ssh-usage","关于SSH的使用——客户端篇","介绍SSH客户端的用法。","2025-06-17 02:44:57",[3701],"工具",{"type":18,"children":3703,"toc":4755},[3704,3709,3722,3727,3740,3898,3903,3970,4015,4036,4142,4148,4153,4159,4164,4169,4206,4219,4224,4229,4234,4267,4272,4277,4282,4291,4296,4301,4306,4410,4415,4452,4547,4560,4573,4578,4607,4644,4649,4655,4660,4665,4670,4724,4729,4740,4751],{"type":21,"tag":22,"props":3705,"children":3706},{},[3707],{"type":26,"value":3708},"本文正在编写中...",{"type":21,"tag":22,"props":3710,"children":3711},{},[3712,3714,3720],{"type":26,"value":3713},"参见 ",{"type":21,"tag":78,"props":3715,"children":3717},{"href":3716},"#reference",[3718],{"type":26,"value":3719},"Reference",{"type":26,"value":3721}," 部分。",{"type":21,"tag":22,"props":3723,"children":3724},{},[3725],{"type":26,"value":3726},"TL;DR",{"type":21,"tag":22,"props":3728,"children":3729},{},[3730,3732,3738],{"type":26,"value":3731},"Secure Shell is a protocol used to securely log onto remote systems.\nIt can be used for logging or executing commands on a remote server.\nMore information: ",{"type":21,"tag":78,"props":3733,"children":3736},{"href":3734,"rel":3735},"https:\u002F\u002Fman.openbsd.org\u002Fssh",[82],[3737],{"type":26,"value":3734},{"type":26,"value":3739},".",{"type":21,"tag":223,"props":3741,"children":3742},{},[3743,3759,3774,3813,3824,3849,3882,3893],{"type":21,"tag":227,"props":3744,"children":3745},{},[3746,3751,3753],{"type":21,"tag":294,"props":3747,"children":3748},{},[3749],{"type":26,"value":3750},"Connect to a remote server",{"type":26,"value":3752},":\n",{"type":21,"tag":29,"props":3754,"children":3756},{"className":3755},[],[3757],{"type":26,"value":3758},"ssh username@remote_host",{"type":21,"tag":227,"props":3760,"children":3761},{},[3762,3767,3768],{"type":21,"tag":294,"props":3763,"children":3764},{},[3765],{"type":26,"value":3766},"Connect to a remote server with a specific identity (private key)",{"type":26,"value":3752},{"type":21,"tag":29,"props":3769,"children":3771},{"className":3770},[],[3772],{"type":26,"value":3773},"ssh -i path\u002Fto\u002Fkey_file username@remote_host",{"type":21,"tag":227,"props":3775,"children":3776},{},[3777,3790,3792,3797,3799,3805,3807],{"type":21,"tag":294,"props":3778,"children":3779},{},[3780,3782,3788],{"type":26,"value":3781},"Connect to a remote server with IP ",{"type":21,"tag":29,"props":3783,"children":3785},{"className":3784},[],[3786],{"type":26,"value":3787},"10.0.0.1",{"type":26,"value":3789}," and using a specific [p]ort",{"type":26,"value":3791},"(Note: ",{"type":21,"tag":29,"props":3793,"children":3795},{"className":3794},[],[3796],{"type":26,"value":3787},{"type":26,"value":3798}," can be shortened to ",{"type":21,"tag":29,"props":3800,"children":3802},{"className":3801},[],[3803],{"type":26,"value":3804},"10.1",{"type":26,"value":3806},"):\n",{"type":21,"tag":29,"props":3808,"children":3810},{"className":3809},[],[3811],{"type":26,"value":3812},"ssh username@10.0.0.1 -p 2222",{"type":21,"tag":227,"props":3814,"children":3815},{},[3816,3818],{"type":26,"value":3817},"Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command:\n",{"type":21,"tag":29,"props":3819,"children":3821},{"className":3820},[],[3822],{"type":26,"value":3823},"ssh username@remote_host -t command command_arguments",{"type":21,"tag":227,"props":3825,"children":3826},{},[3827,3829,3834,3836,3842,3843],{"type":26,"value":3828},"SSH tunneling: ",{"type":21,"tag":294,"props":3830,"children":3831},{},[3832],{"type":26,"value":3833},"[D]ynamic port forwarding",{"type":26,"value":3835}," (SOCKS proxy on ",{"type":21,"tag":29,"props":3837,"children":3839},{"className":3838},[],[3840],{"type":26,"value":3841},"localhost:1080",{"type":26,"value":3806},{"type":21,"tag":29,"props":3844,"children":3846},{"className":3845},[],[3847],{"type":26,"value":3848},"ssh -D 1080 username@remote_host",{"type":21,"tag":227,"props":3850,"children":3851},{},[3852,3853,3858,3860,3866,3868,3874,3876],{"type":26,"value":3828},{"type":21,"tag":294,"props":3854,"children":3855},{},[3856],{"type":26,"value":3857},"Forward a specific port",{"type":26,"value":3859}," (",{"type":21,"tag":29,"props":3861,"children":3863},{"className":3862},[],[3864],{"type":26,"value":3865},"localhost:9999",{"type":26,"value":3867}," to ",{"type":21,"tag":29,"props":3869,"children":3871},{"className":3870},[],[3872],{"type":26,"value":3873},"example.org:80",{"type":26,"value":3875},") along with disabling pseudo-[T]ty allocation and executio[N] of remote commands:\n",{"type":21,"tag":29,"props":3877,"children":3879},{"className":3878},[],[3880],{"type":26,"value":3881},"ssh -L 9999:example.org:80 -N -T username@remote_host",{"type":21,"tag":227,"props":3883,"children":3884},{},[3885,3887],{"type":26,"value":3886},"SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):\n",{"type":21,"tag":29,"props":3888,"children":3890},{"className":3889},[],[3891],{"type":26,"value":3892},"ssh -J username@jump_host username@remote_host",{"type":21,"tag":227,"props":3894,"children":3895},{},[3896],{"type":26,"value":3897},"Close a hanged session:\n\u003CEnter>\u003C~>\u003C.>",{"type":21,"tag":69,"props":3899,"children":3901},{"id":3900},"公钥认证",[3902],{"type":26,"value":3900},{"type":21,"tag":22,"props":3904,"children":3905},{},[3906,3908,3914,3916,3922,3924,3930,3931,3937,3938,3944,3946,3952,3954,3960,3962,3968],{"type":26,"value":3907},"默认情况下，SSH 会寻找 ",{"type":21,"tag":29,"props":3909,"children":3911},{"className":3910},[],[3912],{"type":26,"value":3913},"~\u002F.ssh\u002Fid_*",{"type":26,"value":3915}," 作为私钥，其中 ",{"type":21,"tag":29,"props":3917,"children":3919},{"className":3918},[],[3920],{"type":26,"value":3921},"*",{"type":26,"value":3923}," 部分可以是 ",{"type":21,"tag":29,"props":3925,"children":3927},{"className":3926},[],[3928],{"type":26,"value":3929},"rsa",{"type":26,"value":52},{"type":21,"tag":29,"props":3932,"children":3934},{"className":3933},[],[3935],{"type":26,"value":3936},"ecdsa",{"type":26,"value":52},{"type":21,"tag":29,"props":3939,"children":3941},{"className":3940},[],[3942],{"type":26,"value":3943},"ed25519",{"type":26,"value":3945}," 等，也可以通过 ",{"type":21,"tag":29,"props":3947,"children":3949},{"className":3948},[],[3950],{"type":26,"value":3951},"-i",{"type":26,"value":3953}," 参数指定私钥文件。私钥的文件名加上 ",{"type":21,"tag":29,"props":3955,"children":3957},{"className":3956},[],[3958],{"type":26,"value":3959},".pub",{"type":26,"value":3961}," 后缀就是公钥文件，暂时没有方法指定公钥文件的路径。如果要在配置文件中指定一个或多个私钥，可以使用 ",{"type":21,"tag":29,"props":3963,"children":3965},{"className":3964},[],[3966],{"type":26,"value":3967},"IdentityFile",{"type":26,"value":3969}," 选项，例如：",{"type":21,"tag":669,"props":3971,"children":3975},{"className":3972,"code":3973,"language":3974,"meta":8,"style":8},"language-shell shiki shiki-themes github-light github-dark","Host example\n  IdentityFile ~\u002F.ssh\u002Fid_rsa\n  #CertificateFile ~\u002F.ssh\u002Fid_rsa-cert.pub\n","shell",[3976],{"type":21,"tag":29,"props":3977,"children":3978},{"__ignoreMap":8},[3979,3993,4006],{"type":21,"tag":679,"props":3980,"children":3981},{"class":681,"line":682},[3982,3988],{"type":21,"tag":679,"props":3983,"children":3985},{"style":3984},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[3986],{"type":26,"value":3987},"Host",{"type":21,"tag":679,"props":3989,"children":3990},{"style":686},[3991],{"type":26,"value":3992}," example\n",{"type":21,"tag":679,"props":3994,"children":3995},{"class":681,"line":698},[3996,4001],{"type":21,"tag":679,"props":3997,"children":3998},{"style":3984},[3999],{"type":26,"value":4000},"  IdentityFile",{"type":21,"tag":679,"props":4002,"children":4003},{"style":686},[4004],{"type":26,"value":4005}," ~\u002F.ssh\u002Fid_rsa\n",{"type":21,"tag":679,"props":4007,"children":4008},{"class":681,"line":723},[4009],{"type":21,"tag":679,"props":4010,"children":4012},{"style":4011},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[4013],{"type":26,"value":4014},"  #CertificateFile ~\u002F.ssh\u002Fid_rsa-cert.pub\n",{"type":21,"tag":22,"props":4016,"children":4017},{},[4018,4020,4026,4028,4034],{"type":26,"value":4019},"一般来说，除非为了兼容一些非常古老（如 10 年前的）或非常简单的（如嵌入式）系统而不得不使用较短的 RSA 密钥对的时候，我们推荐使用 Ed25519 密钥对，或者 ECDSA 密钥对。这两种基于椭圆曲线的密码学算法比 RSA 更安全，而且性能也更好。如果不得不使用 RSA 的话，请尽可能使用 3072 位或更长的密钥长度。密钥长度可以在使用 ",{"type":21,"tag":29,"props":4021,"children":4023},{"className":4022},[],[4024],{"type":26,"value":4025},"ssh-keygen",{"type":26,"value":4027}," 生成密钥对时指定（",{"type":21,"tag":29,"props":4029,"children":4031},{"className":4030},[],[4032],{"type":26,"value":4033},"-b",{"type":26,"value":4035},"），其中不同算法支持与推荐的长度也是不同的：",{"type":21,"tag":4037,"props":4038,"children":4039},"table",{},[4040,4070],{"type":21,"tag":4041,"props":4042,"children":4043},"thead",{},[4044],{"type":21,"tag":4045,"props":4046,"children":4047},"tr",{},[4048,4055,4060,4065],{"type":21,"tag":4049,"props":4050,"children":4052},"th",{"align":4051},"center",[4053],{"type":26,"value":4054},"算法",{"type":21,"tag":4049,"props":4056,"children":4057},{"align":4051},[4058],{"type":26,"value":4059},"支持长度",{"type":21,"tag":4049,"props":4061,"children":4062},{"align":4051},[4063],{"type":26,"value":4064},"推荐长度",{"type":21,"tag":4049,"props":4066,"children":4067},{},[4068],{"type":26,"value":4069},"说明",{"type":21,"tag":4071,"props":4072,"children":4073},"tbody",{},[4074,4098,4120],{"type":21,"tag":4045,"props":4075,"children":4076},{},[4077,4083,4088,4093],{"type":21,"tag":4078,"props":4079,"children":4080},"td",{"align":4051},[4081],{"type":26,"value":4082},"RSA",{"type":21,"tag":4078,"props":4084,"children":4085},{"align":4051},[4086],{"type":26,"value":4087},"1024-4096",{"type":21,"tag":4078,"props":4089,"children":4090},{"align":4051},[4091],{"type":26,"value":4092},"3072 或以上",{"type":21,"tag":4078,"props":4094,"children":4095},{},[4096],{"type":26,"value":4097},"曾经的推荐长度是 2048 位，但 2020 年以后认为这个长度已不够安全",{"type":21,"tag":4045,"props":4099,"children":4100},{},[4101,4106,4111,4115],{"type":21,"tag":4078,"props":4102,"children":4103},{"align":4051},[4104],{"type":26,"value":4105},"ECDSA",{"type":21,"tag":4078,"props":4107,"children":4108},{"align":4051},[4109],{"type":26,"value":4110},"256 \u002F 384 \u002F 521",{"type":21,"tag":4078,"props":4112,"children":4113},{"align":4051},[4114],{"type":26,"value":4110},{"type":21,"tag":4078,"props":4116,"children":4117},{},[4118],{"type":26,"value":4119},"由于椭圆曲线参数选择的特殊性，只有这三种长度可选。注意最后一个选项是 521，不是 512",{"type":21,"tag":4045,"props":4121,"children":4122},{},[4123,4128,4133,4137],{"type":21,"tag":4078,"props":4124,"children":4125},{"align":4051},[4126],{"type":26,"value":4127},"Ed25519",{"type":21,"tag":4078,"props":4129,"children":4130},{"align":4051},[4131],{"type":26,"value":4132},"-",{"type":21,"tag":4078,"props":4134,"children":4135},{"align":4051},[4136],{"type":26,"value":4132},{"type":21,"tag":4078,"props":4138,"children":4139},{},[4140],{"type":26,"value":4141},"Ed25519 是基于 Edwards 曲线的算法，没有“长度”这种参数",{"type":21,"tag":69,"props":4143,"children":4145},{"id":4144},"端口转发port-transportings",[4146],{"type":26,"value":4147},"端口转发（Port Transportings）",{"type":21,"tag":22,"props":4149,"children":4150},{},[4151],{"type":26,"value":4152},"SSH 配置 TCP 端口转发的格式为 [bind_address:]port:host:hostport，SSH 支持三种端口转发：",{"type":21,"tag":346,"props":4154,"children":4156},{"id":4155},"动态端口转发dynamic-port-forwarding",[4157],{"type":26,"value":4158},"动态端口转发（Dynamic port forwarding）",{"type":21,"tag":22,"props":4160,"children":4161},{},[4162],{"type":26,"value":4163},"在本地监听一个端口用作 SOCKS5 代理。",{"type":21,"tag":22,"props":4165,"children":4166},{},[4167],{"type":26,"value":4168},"例1 SOCKS服务器",{"type":21,"tag":669,"props":4170,"children":4174},{"className":4171,"code":4172,"language":4173,"meta":8,"style":8},"language-bash shiki shiki-themes github-light github-dark","ssh -D 1080 vps -N\n","bash",[4175],{"type":21,"tag":29,"props":4176,"children":4177},{"__ignoreMap":8},[4178],{"type":21,"tag":679,"props":4179,"children":4180},{"class":681,"line":682},[4181,4186,4191,4196,4201],{"type":21,"tag":679,"props":4182,"children":4183},{"style":3984},[4184],{"type":26,"value":4185},"ssh",{"type":21,"tag":679,"props":4187,"children":4188},{"style":702},[4189],{"type":26,"value":4190}," -D",{"type":21,"tag":679,"props":4192,"children":4193},{"style":702},[4194],{"type":26,"value":4195}," 1080",{"type":21,"tag":679,"props":4197,"children":4198},{"style":686},[4199],{"type":26,"value":4200}," vps",{"type":21,"tag":679,"props":4202,"children":4203},{"style":702},[4204],{"type":26,"value":4205}," -N\n",{"type":21,"tag":22,"props":4207,"children":4208},{},[4209,4211,4217],{"type":26,"value":4210},"此时可将远程主机 vps 作为 SOCKS 服务器使用，比如 ",{"type":21,"tag":29,"props":4212,"children":4214},{"className":4213},[],[4215],{"type":26,"value":4216},"curl -x socks5:\u002F\u002Flocalhost:1080 google.com",{"type":26,"value":4218},"。可以代理绝大多数软件：浏览器，社交媒体，开发工具（如 Git）等。",{"type":21,"tag":22,"props":4220,"children":4221},{},[4222],{"type":26,"value":4223},"另外，对于大学生来说，SSH 动态端口转发结合 OpenVPN 使用可以突破学校上网设备限制。",{"type":21,"tag":346,"props":4225,"children":4227},{"id":4226},"本地端口转发",[4228],{"type":26,"value":4226},{"type":21,"tag":22,"props":4230,"children":4231},{},[4232],{"type":26,"value":4233},"也叫 Single port forward TCP tunnels。",{"type":21,"tag":669,"props":4235,"children":4237},{"className":4171,"code":4236,"language":4173,"meta":8,"style":8},"ssh -L 0.0.0.0:8000:localhost:8000 host -N\n",[4238],{"type":21,"tag":29,"props":4239,"children":4240},{"__ignoreMap":8},[4241],{"type":21,"tag":679,"props":4242,"children":4243},{"class":681,"line":682},[4244,4248,4253,4258,4263],{"type":21,"tag":679,"props":4245,"children":4246},{"style":3984},[4247],{"type":26,"value":4185},{"type":21,"tag":679,"props":4249,"children":4250},{"style":702},[4251],{"type":26,"value":4252}," -L",{"type":21,"tag":679,"props":4254,"children":4255},{"style":686},[4256],{"type":26,"value":4257}," 0.0.0.0:8000:localhost:8000",{"type":21,"tag":679,"props":4259,"children":4260},{"style":686},[4261],{"type":26,"value":4262}," host",{"type":21,"tag":679,"props":4264,"children":4265},{"style":702},[4266],{"type":26,"value":4205},{"type":21,"tag":346,"props":4268,"children":4270},{"id":4269},"远程端口转发",[4271],{"type":26,"value":4269},{"type":21,"tag":22,"props":4273,"children":4274},{},[4275],{"type":26,"value":4276},"也叫 Reverse TCP Tunnels。",{"type":21,"tag":22,"props":4278,"children":4279},{},[4280],{"type":26,"value":4281},"本地端口转发和远程端口转发的工作模式可以结合由 Ivan Velichko 绘制的图片来理解：",{"type":21,"tag":22,"props":4283,"children":4284},{},[4285],{"type":21,"tag":4286,"props":4287,"children":4290},"img",{"alt":4288,"src":4289},"ssh-tunnels","https:\u002F\u002F201.ustclug.org\u002Fimages\u002Fiximiuz-ssh-tunnels-2000-opt.png",[],{"type":21,"tag":22,"props":4292,"children":4293},{},[4294],{"type":26,"value":4295},"结合端口转发与代理的例子",{"type":21,"tag":22,"props":4297,"children":4298},{},[4299],{"type":26,"value":4300},"让服务器使用本机的SSH密钥和网络环境。",{"type":21,"tag":22,"props":4302,"children":4303},{},[4304],{"type":26,"value":4305},"一行命令。",{"type":21,"tag":669,"props":4307,"children":4309},{"className":3972,"code":4308,"language":3974,"meta":8,"style":8},"ssh -A -D 1134 localhost -t ssh -A -R 1220:localhost:1134 [user]@remote_server -t http_proxy=socks5h:\u002F\u002F127.0.0.1:1220 https_proxy=socks5h:\u002F\u002F127.0.0.1:1220 all_proxy=socks5h:\u002F\u002F127.0.0.1:1220 bash\n",[4310],{"type":21,"tag":29,"props":4311,"children":4312},{"__ignoreMap":8},[4313],{"type":21,"tag":679,"props":4314,"children":4315},{"class":681,"line":682},[4316,4320,4325,4329,4334,4339,4344,4349,4353,4358,4363,4368,4374,4379,4384,4388,4392,4397,4401,4405],{"type":21,"tag":679,"props":4317,"children":4318},{"style":3984},[4319],{"type":26,"value":4185},{"type":21,"tag":679,"props":4321,"children":4322},{"style":702},[4323],{"type":26,"value":4324}," -A",{"type":21,"tag":679,"props":4326,"children":4327},{"style":702},[4328],{"type":26,"value":4190},{"type":21,"tag":679,"props":4330,"children":4331},{"style":702},[4332],{"type":26,"value":4333}," 1134",{"type":21,"tag":679,"props":4335,"children":4336},{"style":686},[4337],{"type":26,"value":4338}," localhost",{"type":21,"tag":679,"props":4340,"children":4341},{"style":702},[4342],{"type":26,"value":4343}," -t",{"type":21,"tag":679,"props":4345,"children":4346},{"style":686},[4347],{"type":26,"value":4348}," ssh",{"type":21,"tag":679,"props":4350,"children":4351},{"style":702},[4352],{"type":26,"value":4324},{"type":21,"tag":679,"props":4354,"children":4355},{"style":702},[4356],{"type":26,"value":4357}," -R",{"type":21,"tag":679,"props":4359,"children":4360},{"style":686},[4361],{"type":26,"value":4362}," 1220:localhost:1134",{"type":21,"tag":679,"props":4364,"children":4365},{"style":692},[4366],{"type":26,"value":4367}," [user]@remote_server -t http_proxy",{"type":21,"tag":679,"props":4369,"children":4371},{"style":4370},"--shiki-default:#D73A49;--shiki-dark:#F97583",[4372],{"type":26,"value":4373},"=",{"type":21,"tag":679,"props":4375,"children":4376},{"style":686},[4377],{"type":26,"value":4378},"socks5h:\u002F\u002F127.0.0.1:1220",{"type":21,"tag":679,"props":4380,"children":4381},{"style":692},[4382],{"type":26,"value":4383}," https_proxy",{"type":21,"tag":679,"props":4385,"children":4386},{"style":4370},[4387],{"type":26,"value":4373},{"type":21,"tag":679,"props":4389,"children":4390},{"style":686},[4391],{"type":26,"value":4378},{"type":21,"tag":679,"props":4393,"children":4394},{"style":692},[4395],{"type":26,"value":4396}," all_proxy",{"type":21,"tag":679,"props":4398,"children":4399},{"style":4370},[4400],{"type":26,"value":4373},{"type":21,"tag":679,"props":4402,"children":4403},{"style":686},[4404],{"type":26,"value":4378},{"type":21,"tag":679,"props":4406,"children":4407},{"style":3984},[4408],{"type":26,"value":4409}," bash\n",{"type":21,"tag":22,"props":4411,"children":4412},{},[4413],{"type":26,"value":4414},"这里使用了嵌套式的 SSH 命令连接远程主机。首先在本地使用动态端口转发启动一个 SOCKS 服务器，然后通过远程端口转发把本地 SOCKS 服务器端口转发到远程服务器，并且直接设置好代理的环境变量，这里设置了 SOCKS5H 协议，让远程服务器也使用本机的 DNS 解析。这样实现了让远程服务器使用本地的 SSH 密钥和网络环境的功能。",{"type":21,"tag":22,"props":4416,"children":4417},{},[4418,4420,4426,4428,4434,4436,4442,4444,4450],{"type":26,"value":4419},"其中 ",{"type":21,"tag":29,"props":4421,"children":4423},{"className":4422},[],[4424],{"type":26,"value":4425},"-A",{"type":26,"value":4427}," 开启 SSH Agent 转发，用于转发添加到 SSH Agent 的密钥到远程服务器，",{"type":21,"tag":29,"props":4429,"children":4431},{"className":4430},[],[4432],{"type":26,"value":4433},"-D 1134 localhost",{"type":26,"value":4435}," 在本地开启一个端口在 ",{"type":21,"tag":29,"props":4437,"children":4439},{"className":4438},[],[4440],{"type":26,"value":4441},"1134",{"type":26,"value":4443}," 的服务器，",{"type":21,"tag":29,"props":4445,"children":4447},{"className":4446},[],[4448],{"type":26,"value":4449},"-t",{"type":26,"value":4451}," 强制 tty 分配，用于命令执行。",{"type":21,"tag":669,"props":4453,"children":4455},{"className":3972,"code":4454,"language":3974,"meta":8,"style":8},"ssh -A -D 1134 localhost -t ssh -A -R 1220:localhost:1134 [user]@remote-server\nexport http_proxy=socks5h:\u002F\u002F127.0.0.1:1220 https_proxy=socks5h:\u002F\u002F127.0.0.1:1220 all_proxy=socks5h:\u002F\u002F127.0.0.1:1220\n",[4456],{"type":21,"tag":29,"props":4457,"children":4458},{"__ignoreMap":8},[4459,4507],{"type":21,"tag":679,"props":4460,"children":4461},{"class":681,"line":682},[4462,4466,4470,4474,4478,4482,4486,4490,4494,4498,4502],{"type":21,"tag":679,"props":4463,"children":4464},{"style":3984},[4465],{"type":26,"value":4185},{"type":21,"tag":679,"props":4467,"children":4468},{"style":702},[4469],{"type":26,"value":4324},{"type":21,"tag":679,"props":4471,"children":4472},{"style":702},[4473],{"type":26,"value":4190},{"type":21,"tag":679,"props":4475,"children":4476},{"style":702},[4477],{"type":26,"value":4333},{"type":21,"tag":679,"props":4479,"children":4480},{"style":686},[4481],{"type":26,"value":4338},{"type":21,"tag":679,"props":4483,"children":4484},{"style":702},[4485],{"type":26,"value":4343},{"type":21,"tag":679,"props":4487,"children":4488},{"style":686},[4489],{"type":26,"value":4348},{"type":21,"tag":679,"props":4491,"children":4492},{"style":702},[4493],{"type":26,"value":4324},{"type":21,"tag":679,"props":4495,"children":4496},{"style":702},[4497],{"type":26,"value":4357},{"type":21,"tag":679,"props":4499,"children":4500},{"style":686},[4501],{"type":26,"value":4362},{"type":21,"tag":679,"props":4503,"children":4504},{"style":692},[4505],{"type":26,"value":4506}," [user]@remote-server\n",{"type":21,"tag":679,"props":4508,"children":4509},{"class":681,"line":698},[4510,4515,4520,4524,4529,4533,4538,4542],{"type":21,"tag":679,"props":4511,"children":4512},{"style":4370},[4513],{"type":26,"value":4514},"export",{"type":21,"tag":679,"props":4516,"children":4517},{"style":692},[4518],{"type":26,"value":4519}," http_proxy",{"type":21,"tag":679,"props":4521,"children":4522},{"style":4370},[4523],{"type":26,"value":4373},{"type":21,"tag":679,"props":4525,"children":4526},{"style":692},[4527],{"type":26,"value":4528},"socks5h:\u002F\u002F127.0.0.1:1220 https_proxy",{"type":21,"tag":679,"props":4530,"children":4531},{"style":4370},[4532],{"type":26,"value":4373},{"type":21,"tag":679,"props":4534,"children":4535},{"style":692},[4536],{"type":26,"value":4537},"socks5h:\u002F\u002F127.0.0.1:1220 all_proxy",{"type":21,"tag":679,"props":4539,"children":4540},{"style":4370},[4541],{"type":26,"value":4373},{"type":21,"tag":679,"props":4543,"children":4544},{"style":692},[4545],{"type":26,"value":4546},"socks5h:\u002F\u002F127.0.0.1:1220\n",{"type":21,"tag":22,"props":4548,"children":4549},{},[4550,4552,4558],{"type":26,"value":4551},"可以使用 ",{"type":21,"tag":29,"props":4553,"children":4555},{"className":4554},[],[4556],{"type":26,"value":4557},"ssh -v \u003CURL>",{"type":26,"value":4559},"，查看日志来观察是否远程服务器使用了本机的密钥。",{"type":21,"tag":22,"props":4561,"children":4562},{},[4563,4565,4571],{"type":26,"value":4564},"使用 ",{"type":21,"tag":29,"props":4566,"children":4568},{"className":4567},[],[4569],{"type":26,"value":4570},"curl -4 ip.sb",{"type":26,"value":4572},"，查看远程服务器是否使用了本机作为代理，若成功你应该看到的是本机的IPv4。",{"type":21,"tag":69,"props":4574,"children":4576},{"id":4575},"跳板",[4577],{"type":26,"value":4575},{"type":21,"tag":669,"props":4579,"children":4581},{"className":4171,"code":4580,"language":4173,"meta":8,"style":8},"ssh -J jumpuser1@jumphost1,jumpuser2@jumphost2,...,jumpuserN@jumphostN user@host\n",[4582],{"type":21,"tag":29,"props":4583,"children":4584},{"__ignoreMap":8},[4585],{"type":21,"tag":679,"props":4586,"children":4587},{"class":681,"line":682},[4588,4592,4597,4602],{"type":21,"tag":679,"props":4589,"children":4590},{"style":3984},[4591],{"type":26,"value":4185},{"type":21,"tag":679,"props":4593,"children":4594},{"style":702},[4595],{"type":26,"value":4596}," -J",{"type":21,"tag":679,"props":4598,"children":4599},{"style":686},[4600],{"type":26,"value":4601}," jumpuser1@jumphost1,jumpuser2@jumphost2,...,jumpuserN@jumphostN",{"type":21,"tag":679,"props":4603,"children":4604},{"style":686},[4605],{"type":26,"value":4606}," user@host\n",{"type":21,"tag":22,"props":4608,"children":4609},{},[4610,4612,4618,4620,4626,4628,4634,4636,4642],{"type":26,"value":4611},"登陆到 ",{"type":21,"tag":29,"props":4613,"children":4615},{"className":4614},[],[4616],{"type":26,"value":4617},"—J",{"type":26,"value":4619}," 指定的 ",{"type":21,"tag":29,"props":4621,"children":4623},{"className":4622},[],[4624],{"type":26,"value":4625},"jumpuser1@jumphost1",{"type":26,"value":4627},"，再从 ",{"type":21,"tag":29,"props":4629,"children":4631},{"className":4630},[],[4632],{"type":26,"value":4633},"jumphost1",{"type":26,"value":4635}," 登陆到 ",{"type":21,"tag":29,"props":4637,"children":4639},{"className":4638},[],[4640],{"type":26,"value":4641},"jumpuser2@jumphost2",{"type":26,"value":4643},"，以此类推来登陆到目标远程主机。在网络环境直接与目标主机隔离的时候有用，比如可以将 AWS 海外服务器作为跳板登陆其他海外的服务器。",{"type":21,"tag":69,"props":4645,"children":4647},{"id":4646},"连接复用",[4648],{"type":26,"value":4646},{"type":21,"tag":69,"props":4650,"children":4652},{"id":4651},"x11转发",[4653],{"type":26,"value":4654},"X11转发",{"type":21,"tag":69,"props":4656,"children":4658},{"id":4657},"配置文件",[4659],{"type":26,"value":4657},{"type":21,"tag":22,"props":4661,"children":4662},{},[4663],{"type":26,"value":4664},"SSH可以在配置文件中使用任意的命令行参数。",{"type":21,"tag":69,"props":4666,"children":4668},{"id":4667},"reference",[4669],{"type":26,"value":3719},{"type":21,"tag":4671,"props":4672,"children":4673},"ol",{},[4674,4684,4694,4704,4714],{"type":21,"tag":227,"props":4675,"children":4676},{},[4677],{"type":21,"tag":78,"props":4678,"children":4681},{"href":4679,"rel":4680},"https:\u002F\u002Ftldr.inbrowser.app\u002Fpages\u002Fcommon\u002Fssh",[82],[4682],{"type":26,"value":4683},"ssh - tldr pages",{"type":21,"tag":227,"props":4685,"children":4686},{},[4687],{"type":21,"tag":78,"props":4688,"children":4691},{"href":4689,"rel":4690},"https:\u002F\u002Fwww.ruanyifeng.com\u002Fblog\u002F2011\u002F12\u002Fssh_port_forwarding.html",[82],[4692],{"type":26,"value":4693},"SSH 原理与运用（二）：远程操作与端口转发",{"type":21,"tag":227,"props":4695,"children":4696},{},[4697],{"type":21,"tag":78,"props":4698,"children":4701},{"href":4699,"rel":4700},"https:\u002F\u002F201.ustclug.org\u002Fdev\u002Fssh\u002F",[82],[4702],{"type":26,"value":4703},"SSH 使用技巧 - Linux 201 by USTC LUG",{"type":21,"tag":227,"props":4705,"children":4706},{},[4707],{"type":21,"tag":78,"props":4708,"children":4711},{"href":4709,"rel":4710},"https:\u002F\u002Fsuperuser.com\u002Fquestions\u002F96489\u002Fan-ssh-tunnel-via-multiple-hops",[82],[4712],{"type":26,"value":4713},"An SSH tunnel via multiple hops - superuser.com",{"type":21,"tag":227,"props":4715,"children":4716},{},[4717],{"type":21,"tag":78,"props":4718,"children":4721},{"href":4719,"rel":4720},"https:\u002F\u002Fdocs.github.com\u002Fen\u002Fauthentication\u002Fconnecting-to-github-with-ssh\u002Fusing-ssh-agent-forwarding",[82],[4722],{"type":26,"value":4723},"Using SSH agent forwarding - GitHub Docs",{"type":21,"tag":22,"props":4725,"children":4726},{},[4727],{"type":26,"value":4728},"还在看的资料",{"type":21,"tag":22,"props":4730,"children":4731},{},[4732,4738],{"type":21,"tag":78,"props":4733,"children":4736},{"href":4734,"rel":4735},"https:\u002F\u002Fwww.baeldung.com\u002Flinux\u002Fssh-tunneling-and-proxying",[82],[4737],{"type":26,"value":4734},{"type":26,"value":4739}," 讲了更多关于 SSH Tunnel 和代理的。",{"type":21,"tag":22,"props":4741,"children":4742},{},[4743,4749],{"type":21,"tag":78,"props":4744,"children":4747},{"href":4745,"rel":4746},"https:\u002F\u002Fplantegg.github.io\u002F2019\u002F06\u002F02\u002F%E5%8F%B2%E4%B8%8A%E6%9C%80%E5%85%A8_SSH_%E6%9A%97%E9%BB%91%E6%8A%80%E5%B7%A7%E8%AF%A6%E8%A7%A3--%E6%94%B6%E8%97%8F%E4%BF%9D%E5%B9%B3%E5%AE%89\u002F",[82],[4748],{"type":26,"value":4745},{"type":26,"value":4750}," 讲了很多琐碎的东西，但似乎看起来写的不好，太过冗杂了，解释的也不清楚。",{"type":21,"tag":3106,"props":4752,"children":4753},{},[4754],{"type":26,"value":3110},{"title":8,"searchDepth":698,"depth":723,"links":4756},[4757,4758,4763,4764,4765,4766,4767],{"id":3900,"depth":698,"text":3900},{"id":4144,"depth":698,"text":4147,"children":4759},[4760,4761,4762],{"id":4155,"depth":723,"text":4158},{"id":4226,"depth":723,"text":4226},{"id":4269,"depth":723,"text":4269},{"id":4575,"depth":698,"text":4575},{"id":4646,"depth":698,"text":4646},{"id":4651,"depth":698,"text":4654},{"id":4657,"depth":698,"text":4657},{"id":4667,"depth":698,"text":3719},"content:posts:about-ssh-usage.md","posts\u002Fabout-ssh-usage.md","posts\u002Fabout-ssh-usage",{"_path":4772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":4773,"description":4774,"date":4775,"categories":11,"tags":4776,"body":4778,"_type":3139,"_id":5069,"_source":3141,"_file":5070,"_stem":5071,"_extension":3144},"\u002Fposts\u002Fopensourcesoftwarestarttutorial","如何开始一个开源项目？","浅谈我对开源项目的认知。","2025-04-17 18:00:00",[4777],"开源",{"type":18,"children":4779,"toc":5051},[4780,4785,4790,4795,4800,4863,4868,4873,4896,4901,4906,4911,4917,4922,4928,4940,4946,4951,4957,4962,4968,4973,4978,4987,4992,4998,5041,5046],{"type":21,"tag":22,"props":4781,"children":4782},{},[4783],{"type":26,"value":4784},"接触开源零零散散也快有三年了，虽然听上去时间很长，但是我实际参与的开源项目寥寥无几，只是描述我的见闻而已。",{"type":21,"tag":22,"props":4786,"children":4787},{},[4788],{"type":26,"value":4789},"最基础的就是些开源相关的常识，比如开源协议，开源使用的工具等等，如果有意学习我相信大多数人很快就能掌握。我也就大致列了一些在下面。当然，最快速的方法是寻找一些新兴的正在开发的开源项目，观察其规范、行为乃至参与其中，这样的学习效率是最高的。",{"type":21,"tag":69,"props":4791,"children":4793},{"id":4792},"开源协议",[4794],{"type":26,"value":4792},{"type":21,"tag":346,"props":4796,"children":4798},{"id":4797},"常见的开源协议",[4799],{"type":26,"value":4797},{"type":21,"tag":223,"props":4801,"children":4802},{},[4803,4813,4823,4833,4843,4853],{"type":21,"tag":227,"props":4804,"children":4805},{},[4806,4811],{"type":21,"tag":294,"props":4807,"children":4808},{},[4809],{"type":26,"value":4810},"MIT License",{"type":26,"value":4812},"：这是一个非常宽松的协议，允许任何人几乎无限制地使用、复制、修改和分发代码。",{"type":21,"tag":227,"props":4814,"children":4815},{},[4816,4821],{"type":21,"tag":294,"props":4817,"children":4818},{},[4819],{"type":26,"value":4820},"Apache License 2.0",{"type":26,"value":4822},"：与MIT类似，但它增加了专利授权条款，并要求保留原始版权声明。",{"type":21,"tag":227,"props":4824,"children":4825},{},[4826,4831],{"type":21,"tag":294,"props":4827,"children":4828},{},[4829],{"type":26,"value":4830},"GPL（GNU General Public License）",{"type":26,"value":4832},"：强制衍生作品必须以相同的许可证发布，确保开源精神得以延续。",{"type":21,"tag":227,"props":4834,"children":4835},{},[4836,4841],{"type":21,"tag":294,"props":4837,"children":4838},{},[4839],{"type":26,"value":4840},"LGPL（GNU Lesser General Public License）",{"type":26,"value":4842},"：适用于库，它允许专有软件链接到该库而不需要开放其源码。",{"type":21,"tag":227,"props":4844,"children":4845},{},[4846,4851],{"type":21,"tag":294,"props":4847,"children":4848},{},[4849],{"type":26,"value":4850},"BSD Licenses",{"type":26,"value":4852},"：提供了两种版本，新BSD协议包含了禁止使用贡献者名字进行推广的条款。",{"type":21,"tag":227,"props":4854,"children":4855},{},[4856,4861],{"type":21,"tag":294,"props":4857,"children":4858},{},[4859],{"type":26,"value":4860},"AGPLv3（GNU Affero General Public License version 3）",{"type":26,"value":4862},":扩展了GPLv3（GNU General Public License version 3）的条款，特别针对通过网络提供服务的应用程序。",{"type":21,"tag":69,"props":4864,"children":4866},{"id":4865},"开源的平台",[4867],{"type":26,"value":4865},{"type":21,"tag":346,"props":4869,"children":4871},{"id":4870},"常用的开源平台",[4872],{"type":26,"value":4870},{"type":21,"tag":223,"props":4874,"children":4875},{},[4876,4886],{"type":21,"tag":227,"props":4877,"children":4878},{},[4879,4884],{"type":21,"tag":294,"props":4880,"children":4881},{},[4882],{"type":26,"value":4883},"GitHub",{"type":26,"value":4885},"：最流行的代码托管平台之一，支持Git版本控制。",{"type":21,"tag":227,"props":4887,"children":4888},{},[4889,4894],{"type":21,"tag":294,"props":4890,"children":4891},{},[4892],{"type":26,"value":4893},"GitLab",{"type":26,"value":4895},"：提供更多的CI\u002FCD集成选项，并且可以自托管。",{"type":21,"tag":69,"props":4897,"children":4899},{"id":4898},"开源使用的工具",[4900],{"type":26,"value":4898},{"type":21,"tag":346,"props":4902,"children":4904},{"id":4903},"版本控制",[4905],{"type":26,"value":4903},{"type":21,"tag":22,"props":4907,"children":4908},{},[4909],{"type":26,"value":4910},"使用Git进行版本控制, 跟踪代码更改历史, 多人合作.",{"type":21,"tag":346,"props":4912,"children":4914},{"id":4913},"git-hook",[4915],{"type":26,"value":4916},"Git Hook",{"type":21,"tag":22,"props":4918,"children":4919},{},[4920],{"type":26,"value":4921},"Hook 脚本可以在特定时间发生时自动运行, 顾名思义 Hook(钩子)就是在某事发生必然发生的事, 用途比如提交前检查代码风格或者提交后部署代码.",{"type":21,"tag":346,"props":4923,"children":4925},{"id":4924},"git-ignore",[4926],{"type":26,"value":4927},"Git Ignore",{"type":21,"tag":22,"props":4929,"children":4930},{},[4931,4932,4938],{"type":26,"value":4564},{"type":21,"tag":29,"props":4933,"children":4935},{"className":4934},[],[4936],{"type":26,"value":4937},".gitignore",{"type":26,"value":4939}," 文件列出不应被 Git 追踪的文件, 例如编译产物或IDE配置文件.",{"type":21,"tag":346,"props":4941,"children":4943},{"id":4942},"issue-模板",[4944],{"type":26,"value":4945},"Issue 模板",{"type":21,"tag":22,"props":4947,"children":4948},{},[4949],{"type":26,"value":4950},"创建 issue 模版可以帮助开源社区贡献者清晰描述问题, 包括复现步骤和期望行为. 规范的 issue 不仅可以帮助提问者快速的解决问题, 节省维护者了解问题的精力, 还节省了后续查询相关 issues 的用户的时间. 遇到过不少不规范 issue 的项目, 去查 issue 查个半天会发现一些提问者描述的既不清晰, 而且在没有给出解决方案(不管可行不可行)的情况下就把 issue 关闭了.",{"type":21,"tag":346,"props":4952,"children":4954},{"id":4953},"pull-request模板",[4955],{"type":26,"value":4956},"Pull Request模板",{"type":21,"tag":22,"props":4958,"children":4959},{},[4960],{"type":26,"value":4961},"PR模板有助于确保所有必要的信息都被包含在内，如变更描述、测试结果等。可以方便审查代码.",{"type":21,"tag":346,"props":4963,"children":4965},{"id":4964},"cicd",[4966],{"type":26,"value":4967},"CI\u002FCD",{"type":21,"tag":22,"props":4969,"children":4970},{},[4971],{"type":26,"value":4972},"持续集成和持续部署工具，如GitHub Actions、GitLab CI、Jenkins等，可以自动化测试和部署流程。比如自动编译 Release, 自动部署, 自动打包 Docker 镜像等等.",{"type":21,"tag":69,"props":4974,"children":4976},{"id":4975},"宣传",[4977],{"type":26,"value":4975},{"type":21,"tag":4979,"props":4980,"children":4981},"blockquote",{},[4982],{"type":21,"tag":22,"props":4983,"children":4984},{},[4985],{"type":26,"value":4986},"东亚文化是一种集体主义，社会鼓吹的是踏实、谦虚、低调，不要突出自己。所以很多人喜欢在集体中默默无闻的奉献，这是最经典的一种驯化。长期演变下来，你会发现，身边很多人是不擅长或者说不屑于展示自我的，因为我们的文化里常常将\"Selling yourself\"等同于一种负面的道德品格。\n当你做完一件事情其实还不够，你得\"Show your work\"，把它\"贩卖\"出去。",{"type":21,"tag":22,"props":4988,"children":4989},{},[4990],{"type":26,"value":4991},"我亲眼目睹了一个开源项目在宣传前后star数的井喷，在那个项目的开发者还没有下场宣传的时候，它不到一千的star，但是在宣传之后，那个项目的star在短短两天之内就到了五千star。\"酒香也怕巷子深\"，因此好的宣传也是做好一个开源项目必要的。",{"type":21,"tag":69,"props":4993,"children":4995},{"id":4994},"开源软件如何进行宣传",[4996],{"type":26,"value":4997},"开源软件如何进行宣传？",{"type":21,"tag":223,"props":4999,"children":5000},{},[5001,5011,5021,5031],{"type":21,"tag":227,"props":5002,"children":5003},{},[5004,5009],{"type":21,"tag":294,"props":5005,"children":5006},{},[5007],{"type":26,"value":5008},"社交媒体",{"type":26,"value":5010},"：国内利用Bilibili、知乎、小红书, 国外利用Twitter、LinkedIn等社交网络分享项目进展。",{"type":21,"tag":227,"props":5012,"children":5013},{},[5014,5019],{"type":21,"tag":294,"props":5015,"children":5016},{},[5017],{"type":26,"value":5018},"技术博客",{"type":26,"value":5020},"：撰写关于项目的博客文章，解释其用途和技术细节。",{"type":21,"tag":227,"props":5022,"children":5023},{},[5024,5029],{"type":21,"tag":294,"props":5025,"children":5026},{},[5027],{"type":26,"value":5028},"SEO优化",{"type":26,"value":5030},"：确保项目页面针对搜索引擎进行了优化，以便更容易被发现。",{"type":21,"tag":227,"props":5032,"children":5033},{},[5034,5039],{"type":21,"tag":294,"props":5035,"children":5036},{},[5037],{"type":26,"value":5038},"多交朋友",{"type":26,"value":5040},"：与其他相关的开源项目或公司建立合作关系扩大影响力。",{"type":21,"tag":22,"props":5042,"children":5043},{},[5044],{"type":26,"value":5045},"当然开源项目是经过众人不断用实践检验的。清晰的文档，用户友好的指引，会有助于新人的到来。规范的代码实践和沟通机制，会使得贡献者和维护者更有效的发展项目（对于正在不断开发的项目）。",{"type":21,"tag":22,"props":5047,"children":5048},{},[5049],{"type":26,"value":5050},"按照国内的环境，对于个人来说，开源是一项要求极高，且和做慈善没有区别的事。这种情况估计还会持续下去。",{"title":8,"searchDepth":698,"depth":723,"links":5052},[5053,5056,5059,5067,5068],{"id":4792,"depth":698,"text":4792,"children":5054},[5055],{"id":4797,"depth":723,"text":4797},{"id":4865,"depth":698,"text":4865,"children":5057},[5058],{"id":4870,"depth":723,"text":4870},{"id":4898,"depth":698,"text":4898,"children":5060},[5061,5062,5063,5064,5065,5066],{"id":4903,"depth":723,"text":4903},{"id":4913,"depth":723,"text":4916},{"id":4924,"depth":723,"text":4927},{"id":4942,"depth":723,"text":4945},{"id":4953,"depth":723,"text":4956},{"id":4964,"depth":723,"text":4967},{"id":4975,"depth":698,"text":4975},{"id":4994,"depth":698,"text":4997},"content:posts:OpenSourceSoftwareStartTutorial.md","posts\u002FOpenSourceSoftwareStartTutorial.md","posts\u002FOpenSourceSoftwareStartTutorial",{"_path":5073,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5074,"description":5075,"date":5076,"categories":3150,"tags":5077,"body":5079,"_type":3139,"_id":5120,"_source":3141,"_file":5121,"_stem":5122,"_extension":3144},"\u002Fposts\u002Fmotivation","渴求动力","有意识的生活并主动地行动会使得生活更美好。","2025-03-05 00:44:57",[5078],"随笔",{"type":18,"children":5080,"toc":5118},[5081,5086,5091,5096,5108,5113],{"type":21,"tag":22,"props":5082,"children":5083},{},[5084],{"type":26,"value":5085},"今天下午阴天，考完智能控制，和朋友去山明三楼吃面。朋友时不时会问出奇怪的问题，他说：如果我回到大二刚开始的时候，会选择先和他们宿舍的谁先接触，再从这个点扩散到整个面，去联系上其他人。我按下心头对问题来源的疑惑，回应道：不知道。心中苦涩居多，或是某种不明的感受，我说不出来，但是总是不愿意那么回忆和假设的。“我是不会主动去认识人的， 大二。”，我拒绝了这个问题的回答。另外把先前按耐住的疑惑问了出来，为什么你会突然问这个。",{"type":21,"tag":22,"props":5087,"children":5088},{},[5089],{"type":26,"value":5090},"他回答，因为经常有人来他宿舍找他，但却不是找他，而是找其他人，只是找其他人之前会去和他打招呼聊两句天说两句傻逼话而已。他觉得自己成了“公交车”。我没回应。说起了我大二的事情。",{"type":21,"tag":22,"props":5092,"children":5093},{},[5094],{"type":26,"value":5095},"简短地说，就是大一大部分社交的场所，被突然破坏了（以我当时认知的判断）。我事后回忆下来，感觉就像一个人逃离灾难，我逃离了我大一耕耘的地方。我被远离了，不，我觉得我被远离了，我害怕了，于是我先主动远离了。是的，来到大二的我失去了很多。",{"type":21,"tag":22,"props":5097,"children":5098},{},[5099,5101,5106],{"type":26,"value":5100},"我在这种失去中怅然，并没有去寻找新的方向和维护好自己要做的事情。",{"type":21,"tag":294,"props":5102,"children":5103},{},[5104],{"type":26,"value":5105},"我对自己的生活并没有主动性",{"type":26,"value":5107},"，我只是等待着不可避免的那日到来，在眼前不可避免地看到了到来后，我才会慢悠悠地反应过来，好像睡了个觉，才来对付那来临的一切。但这我是被我预见到的，连我自己也是被我预见到了的。",{"type":21,"tag":22,"props":5109,"children":5110},{},[5111],{"type":26,"value":5112},"或是这种主动性缺失，致使我这几年自我效能感不高，垂头丧气。一边是自己拿刀子捅自己，逼迫自己前进；另一边是躺在地上，等着外界给自己捅刀子的时候吓的逃跑。毫无疑问，我在这种断续地无意识状态选择了后者，我逃避了有意识的思考与解决方案。而是选择将权力交给他者。我死不足惜。",{"type":21,"tag":22,"props":5114,"children":5115},{},[5116],{"type":26,"value":5117},"这种深沉的自我惩罚，也是我与外界对立和恐惧的一种表现。我不期待哪天我突然有改变，只是想把今日的我写下，或许某日的我翻看后又会尴尬的不行呢？",{"title":8,"searchDepth":698,"depth":723,"links":5119},[],"content:posts:Motivation.md","posts\u002FMotivation.md","posts\u002FMotivation",{"_path":5124,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5125,"description":5126,"date":5127,"categories":3150,"tags":5128,"body":5129,"_type":3139,"_id":5184,"_source":3141,"_file":5185,"_stem":5186,"_extension":3144},"\u002Fposts\u002F2024summary","2024年终总结","啊，痛彻的时光；啊，悲怆的人！","2025-01-01 01:00:00",[5078],{"type":18,"children":5130,"toc":5182},[5131,5139,5144],{"type":21,"tag":4979,"props":5132,"children":5133},{},[5134],{"type":21,"tag":22,"props":5135,"children":5136},{},[5137],{"type":26,"value":5138},"我最后还是写了年终总结，即使数字已经转到了下一年。",{"type":21,"tag":22,"props":5140,"children":5141},{},[5142],{"type":26,"value":5143},"年终总结：",{"type":21,"tag":4671,"props":5145,"children":5146},{},[5147,5152,5157,5162,5167,5172,5177],{"type":21,"tag":227,"props":5148,"children":5149},{},[5150],{"type":26,"value":5151},"比赛中的人际没有处理好，痛苦地拖延和解决；",{"type":21,"tag":227,"props":5153,"children":5154},{},[5155],{"type":26,"value":5156},"漂浮感；",{"type":21,"tag":227,"props":5158,"children":5159},{},[5160],{"type":26,"value":5161},"尝试感受经济的紧迫，勤工俭学；",{"type":21,"tag":227,"props":5163,"children":5164},{},[5165],{"type":26,"value":5166},"看了很多 live，买了一些 CD；",{"type":21,"tag":227,"props":5168,"children":5169},{},[5170],{"type":26,"value":5171},"家教、实习，接近社会；",{"type":21,"tag":227,"props":5173,"children":5174},{},[5175],{"type":26,"value":5176},"还是模糊的不知道自己的方位；",{"type":21,"tag":227,"props":5178,"children":5179},{},[5180],{"type":26,"value":5181},"买了自己的琴；",{"title":8,"searchDepth":698,"depth":723,"links":5183},[],"content:posts:2024summary.md","posts\u002F2024summary.md","posts\u002F2024summary",{"_path":5188,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5189,"description":5190,"date":5191,"categories":11,"tags":5192,"body":5194,"_type":3139,"_id":5541,"_source":3141,"_file":5542,"_stem":5543,"_extension":3144},"\u002Fposts\u002Fvps-crash-startup","快速搭建个人VPS","如何快速搭建个人VPS。","2024-12-31 19:00:00",[5193],"VPS",{"type":18,"children":5195,"toc":5530},[5196,5227,5232,5237,5243,5256,5329,5334,5345,5350,5356,5369,5375,5388,5393,5399,5404,5410,5422,5427,5432,5437,5445,5450,5454,5526],{"type":21,"tag":22,"props":5197,"children":5198},{},[5199,5200,5204,5206,5211,5212,5218,5219,5225],{"type":26,"value":3713},{"type":21,"tag":78,"props":5201,"children":5202},{"href":3716},[5203],{"type":26,"value":3719},{"type":26,"value":5205}," 部分，根据以下教程，并结合 ",{"type":21,"tag":29,"props":5207,"children":5209},{"className":5208},[],[5210],{"type":26,"value":5193},{"type":26,"value":52},{"type":21,"tag":29,"props":5213,"children":5215},{"className":5214},[],[5216],{"type":26,"value":5217},"optimize",{"type":26,"value":52},{"type":21,"tag":29,"props":5220,"children":5222},{"className":5221},[],[5223],{"type":26,"value":5224},"订阅聚合",{"type":26,"value":5226},"等关键词，可以检索出 VPS 搭建的相应教程。",{"type":21,"tag":69,"props":5228,"children":5230},{"id":5229},"拥有一台非大陆的服务器",[5231],{"type":26,"value":5229},{"type":21,"tag":22,"props":5233,"children":5234},{},[5235],{"type":26,"value":5236},"VPS(Virtual Private Server)，顾名思义你需要拥有至少一台非大陆的服务器，推荐的操作系统是 Debian12(RAM>=1GB)。后面的步骤有配置 SSH 免密访问，禁止密码登录，乃至修改默认 sshd 端口。这部分操作是出于远程连接的安全性考虑的，我在此不赘述，感兴趣的读者自行检索即可找到相应教程（亦可参考引用部分的文章）。",{"type":21,"tag":69,"props":5238,"children":5240},{"id":5239},"通过脚本一键搭建-v2ray",[5241],{"type":26,"value":5242},"通过脚本一键搭建 V2Ray",{"type":21,"tag":22,"props":5244,"children":5245},{},[5246,5248,5254],{"type":26,"value":5247},"233Boy 提供了完整的脚本用于创建 V2Ray 节点。代码以 GPL-3.0 协议",{"type":21,"tag":78,"props":5249,"children":5252},{"href":5250,"rel":5251},"https:\u002F\u002Fgithub.com\u002F233boy\u002Fv2ray",[82],[5253],{"type":26,"value":4777},{"type":26,"value":5255},"在 Github 上。",{"type":21,"tag":669,"props":5257,"children":5259},{"className":4171,"code":5258,"language":4173,"meta":8,"style":8},"# 下载并运行 233Boy 提供的 V2Ray 安装脚本（会默认生成使用 Vmess-TCP 的链接）\nbash \u003C(wget -qO- -o- https:\u002F\u002Fgit.io\u002Fv2ray.sh)\n# 添加新节点\nv2ray add Vmess-TCP-dynamic-port\n",[5260],{"type":21,"tag":29,"props":5261,"children":5262},{"__ignoreMap":8},[5263,5271,5303,5311],{"type":21,"tag":679,"props":5264,"children":5265},{"class":681,"line":682},[5266],{"type":21,"tag":679,"props":5267,"children":5268},{"style":4011},[5269],{"type":26,"value":5270},"# 下载并运行 233Boy 提供的 V2Ray 安装脚本（会默认生成使用 Vmess-TCP 的链接）\n",{"type":21,"tag":679,"props":5272,"children":5273},{"class":681,"line":698},[5274,5278,5283,5288,5293,5298],{"type":21,"tag":679,"props":5275,"children":5276},{"style":3984},[5277],{"type":26,"value":4173},{"type":21,"tag":679,"props":5279,"children":5280},{"style":686},[5281],{"type":26,"value":5282}," \u003C(",{"type":21,"tag":679,"props":5284,"children":5285},{"style":3984},[5286],{"type":26,"value":5287},"wget",{"type":21,"tag":679,"props":5289,"children":5290},{"style":702},[5291],{"type":26,"value":5292}," -qO-",{"type":21,"tag":679,"props":5294,"children":5295},{"style":702},[5296],{"type":26,"value":5297}," -o-",{"type":21,"tag":679,"props":5299,"children":5300},{"style":686},[5301],{"type":26,"value":5302}," https:\u002F\u002Fgit.io\u002Fv2ray.sh)\n",{"type":21,"tag":679,"props":5304,"children":5305},{"class":681,"line":723},[5306],{"type":21,"tag":679,"props":5307,"children":5308},{"style":4011},[5309],{"type":26,"value":5310},"# 添加新节点\n",{"type":21,"tag":679,"props":5312,"children":5313},{"class":681,"line":741},[5314,5319,5324],{"type":21,"tag":679,"props":5315,"children":5316},{"style":3984},[5317],{"type":26,"value":5318},"v2ray",{"type":21,"tag":679,"props":5320,"children":5321},{"style":686},[5322],{"type":26,"value":5323}," add",{"type":21,"tag":679,"props":5325,"children":5326},{"style":686},[5327],{"type":26,"value":5328}," Vmess-TCP-dynamic-port\n",{"type":21,"tag":22,"props":5330,"children":5331},{},[5332],{"type":26,"value":5333},"此时会得到我们新生成的链接，对于 V2RayN 用户，此时复制粘贴进 V2RayN 即可使用（支持ShadowRocket、V2RayN）。但是对于其他 VPN 客户端，比如 Clash系列来说，并不一定能直接支持，此时需要部署订阅转换服务。",{"type":21,"tag":4979,"props":5335,"children":5336},{},[5337],{"type":21,"tag":22,"props":5338,"children":5339},{},[5340],{"type":21,"tag":294,"props":5341,"children":5342},{},[5343],{"type":26,"value":5344},"为什么需要自己搭建自己的订阅转换服务而不是使用其他人的？",{"type":21,"tag":22,"props":5346,"children":5347},{},[5348],{"type":26,"value":5349},"我也在思量这个问题。",{"type":21,"tag":69,"props":5351,"children":5353},{"id":5352},"vps-性能调优",[5354],{"type":26,"value":5355},"VPS 性能调优",{"type":21,"tag":22,"props":5357,"children":5358},{},[5359,5360,5367],{"type":26,"value":3713},{"type":21,"tag":78,"props":5361,"children":5364},{"href":5362,"rel":5363},"https:\u002F\u002Fwww.taurusxin.com\u002Flinux-network-optimize\u002F",[82],[5365],{"type":26,"value":5366},"Linux 网络优化",{"type":26,"value":5368},"，运行脚本前请先下载 speedtest 进行测速，对比优化前后速度，避免错误的优化。",{"type":21,"tag":69,"props":5370,"children":5372},{"id":5371},"使用-cloudflare-扩展-vps-网络出口",[5373],{"type":26,"value":5374},"使用 CloudFlare 扩展 VPS 网络出口",{"type":21,"tag":22,"props":5376,"children":5377},{},[5378,5379,5386],{"type":26,"value":3713},{"type":21,"tag":78,"props":5380,"children":5383},{"href":5381,"rel":5382},"https:\u002F\u002Fp3terx.com\u002Farchives\u002Fuse-cloudflare-warp-to-add-extra-ipv4-or-ipv6-network-support-to-vps-servers-for-free.html",[82],[5384],{"type":26,"value":5385},"Cloudflare WARP 教程：给 VPS 额外添加“原生” IPv4\u002FIPv6 双栈网络出口",{"type":26,"value":5387},"。一般而言所购买的服务器只有 IPv4。我们可以通过 warp 添加 IPv6 并调整 v4\u002Fv6 的使用优先级，将默认的出站 IP转成 warp 的 IP。",{"type":21,"tag":22,"props":5389,"children":5390},{},[5391],{"type":26,"value":5392},"我的建议是给 IPv4 only 的服务器只添加 IPv6 warp, 并且 IPv6优先于 IPv4（如何确认上述文章有提及）。",{"type":21,"tag":69,"props":5394,"children":5396},{"id":5395},"部署订阅转换服务可选",[5397],{"type":26,"value":5398},"部署订阅转换服务（可选）",{"type":21,"tag":22,"props":5400,"children":5401},{},[5402],{"type":26,"value":5403},"最好拥有自己的域名，国内外的域名供应商皆可。",{"type":21,"tag":69,"props":5405,"children":5407},{"id":5406},"使用-cloudflare-pages-部署订阅链接",[5408],{"type":26,"value":5409},"使用 CloudFlare Pages 部署订阅链接",{"type":21,"tag":22,"props":5411,"children":5412},{},[5413,5415],{"type":26,"value":5414},"最好拥有自己的域名，一般购买很方便且可以很便宜。教程参见 ",{"type":21,"tag":78,"props":5416,"children":5419},{"href":5417,"rel":5418},"https:\u002F\u002Fgithub.com\u002Fcmliu\u002FCF-Workers-SUB?tab=readme-ov-file#pages-%E9%83%A8%E7%BD%B2%E6%96%B9%E6%B3%95-%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B",[82],[5420],{"type":26,"value":5421},"Pages 部署方法",{"type":21,"tag":69,"props":5423,"children":5425},{"id":5424},"总结",[5426],{"type":26,"value":5424},{"type":21,"tag":22,"props":5428,"children":5429},{},[5430],{"type":26,"value":5431},"按照如上步骤，可以得到个人使用的性能良好的 VPS，从而可以更好地浏览和使用互联网上的资源。",{"type":21,"tag":69,"props":5433,"children":5435},{"id":5434},"额外的问题",[5436],{"type":26,"value":5434},{"type":21,"tag":4979,"props":5438,"children":5439},{},[5440],{"type":21,"tag":22,"props":5441,"children":5442},{},[5443],{"type":26,"value":5444},"无法访问引用的网页（比如 GitHub、个人博客）怎么办？",{"type":21,"tag":22,"props":5446,"children":5447},{},[5448],{"type":26,"value":5449},"考虑安装 Watt Toolkit，其提供 GitHub 网络加速(通过修改 Hosts 的方式)。",{"type":21,"tag":69,"props":5451,"children":5452},{"id":4667},[5453],{"type":26,"value":3719},{"type":21,"tag":4671,"props":5455,"children":5456},{},[5457,5467,5477,5486,5498,5508,5516],{"type":21,"tag":227,"props":5458,"children":5459},{},[5460],{"type":21,"tag":78,"props":5461,"children":5464},{"href":5462,"rel":5463},"https:\u002F\u002F233boy.com\u002Fv2ray\u002Fv2ray-server\u002F",[82],[5465],{"type":26,"value":5466},"V2Ray 一键搭建详细图文教程（小白试用）-233Boy",{"type":21,"tag":227,"props":5468,"children":5469},{},[5470],{"type":21,"tag":78,"props":5471,"children":5474},{"href":5472,"rel":5473},"https:\u002F\u002Fgithub.com\u002F233boy\u002Fv2ray\u002Fwiki\u002FV2Ray%E6%90%AD%E5%BB%BA%E8%AF%A6%E7%BB%86%E5%9B%BE%E6%96%87%E6%95%99%E7%A8%8B",[82],[5475],{"type":26,"value":5476},"V2Ray搭建详细图文教程 - 233Boy",{"type":21,"tag":227,"props":5478,"children":5479},{},[5480],{"type":21,"tag":78,"props":5481,"children":5483},{"href":5362,"rel":5482},[82],[5484],{"type":26,"value":5485},"VPS 网速优化",{"type":21,"tag":227,"props":5487,"children":5488},{},[5489,5491],{"type":26,"value":5490},"订阅链接汇聚 ",{"type":21,"tag":78,"props":5492,"children":5495},{"href":5493,"rel":5494},"https:\u002F\u002Fgithub.com\u002Fcmliu\u002FCF-Workers-SUB",[82],[5496],{"type":26,"value":5497},"cmliu\u002FCF-Workers-SUB",{"type":21,"tag":227,"props":5499,"children":5500},{},[5501],{"type":21,"tag":78,"props":5502,"children":5505},{"href":5503,"rel":5504},"https:\u002F\u002Fwww.animmouse.com\u002Fp\u002Fsetup-cloudflare-warp-on-ipv6-only-vps\u002F",[82],[5506],{"type":26,"value":5507},"Setup Cloudflare WARP on IPv6 Only VPS",{"type":21,"tag":227,"props":5509,"children":5510},{},[5511],{"type":21,"tag":78,"props":5512,"children":5514},{"href":5381,"rel":5513},[82],[5515],{"type":26,"value":5385},{"type":21,"tag":227,"props":5517,"children":5518},{},[5519],{"type":21,"tag":78,"props":5520,"children":5523},{"href":5521,"rel":5522},"https:\u002F\u002Flinux.do\u002Ft\u002Ftopic\u002F160305",[82],[5524],{"type":26,"value":5525},"【配置优化】我拿到VPS服务器必做的那些事",{"type":21,"tag":3106,"props":5527,"children":5528},{},[5529],{"type":26,"value":3110},{"title":8,"searchDepth":698,"depth":723,"links":5531},[5532,5533,5534,5535,5536,5537,5538,5539,5540],{"id":5229,"depth":698,"text":5229},{"id":5239,"depth":698,"text":5242},{"id":5352,"depth":698,"text":5355},{"id":5371,"depth":698,"text":5374},{"id":5395,"depth":698,"text":5398},{"id":5406,"depth":698,"text":5409},{"id":5424,"depth":698,"text":5424},{"id":5434,"depth":698,"text":5434},{"id":4667,"depth":698,"text":3719},"content:posts:VPS-crash-startup.md","posts\u002FVPS-crash-startup.md","posts\u002FVPS-crash-startup",{"_path":5545,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5546,"description":5547,"date":5548,"categories":11,"tags":5549,"body":5552,"_type":3139,"_id":5747,"_source":3141,"_file":5748,"_stem":5749,"_extension":3144},"\u002Fposts\u002Fdata-label-software","AI数据（自动）标注软件概述","对市面上目前的AI数据（自动）标注软件进行调研。","2024-12-20 14:00:00",[5550,5551],"数据标注","深度学习",{"type":18,"children":5553,"toc":5745},[5554,5559,5564,5569,5574,5582,5604,5609,5693,5698,5713],{"type":21,"tag":22,"props":5555,"children":5556},{},[5557],{"type":26,"value":5558},"数据驱动的深度学习已经成为了计算机科学解决现实问题的一大强有力的解决方案。而对于深度学习数据是重中之重。以我浅薄的经验来看，对于现实世界中的大多数任务，所使用数据质量的高低甚至比模型的工作更为重要。一个好的数据就是成功的一半。",{"type":21,"tag":22,"props":5560,"children":5561},{},[5562],{"type":26,"value":5563},"涉及有监督的学习需要数据标注。而人工数据标注作为苦力活一直为人所诟病，认为这并不值得去学习。我认为，其中的关键并不在如何标注数据，而是怎样的数据标注是好的，或者说数据应当标注成什么样。这些问题其实在实践中已经积累下了不少的答案，我们已经有了“最佳实践”。",{"type":21,"tag":22,"props":5565,"children":5566},{},[5567],{"type":26,"value":5568},"不同的数据领域划分了不同的任务。而一些任务存在了令人满意的通解，比如视觉上的 SAM、NLP上的 Transformer 系，Audio上的解决方案也很成熟。如何从一个成熟的解决方案中让自己的项目更自动化的受益？这就是数据自动标注所做的事。",{"type":21,"tag":22,"props":5570,"children":5571},{},[5572],{"type":26,"value":5573},"举例，对于小的细分的尚且没有人做的领域任务，且使用深度学习的方法是可行的（而可行性多半决定于数据的质量和数量）。这时使用通用的领域模型对新任务自动的进行标注（乃至交互式标注），可以大大省去新任务的数据处理时间（甚至获得更高质量的数据）。这就是从成熟解决方案更自动化地受益的所指。",{"type":21,"tag":4979,"props":5575,"children":5576},{},[5577],{"type":21,"tag":22,"props":5578,"children":5579},{},[5580],{"type":26,"value":5581},"当我们在浏览器上搜索某样东西时，其实我们是假定使用浏览器的某人遇到了同样（相似）的问题并且有了解决方案。类似的，当我们有了一个想法的时候，你需要审查一下世界上有没有其他人早已经提出了类似的想法。",{"type":21,"tag":22,"props":5583,"children":5584},{},[5585,5587,5594,5596,5603],{"type":26,"value":5586},"AI4S，这是很自然的想法，将AI用于数据标注，并且现实中已经存在实践。考虑到数据安全性问题以及我所能接触到的调研对象有限，下面仅列举无数据安全问题的开源项目。首先简单分类为领域特定的数据标注和通用类的数据标注。更详细的可以参见 ",{"type":21,"tag":78,"props":5588,"children":5591},{"href":5589,"rel":5590},"https:\u002F\u002Fgithub.com\u002Fhumansignal\u002Fawesome-data-labeling",[82],[5592],{"type":26,"value":5593},"awesome-data-labeling",{"type":26,"value":5595}," 和 ",{"type":21,"tag":78,"props":5597,"children":5600},{"href":5598,"rel":5599},"https:\u002F\u002Fgithub.com\u002Fmingx9527\u002FData_Label_Tools",[82],[5601],{"type":26,"value":5602},"Data_Label_Tools",{"type":26,"value":3739},{"type":21,"tag":22,"props":5605,"children":5606},{},[5607],{"type":26,"value":5608},"领域特定：",{"type":21,"tag":223,"props":5610,"children":5611},{},[5612,5617,5635,5653,5671,5676],{"type":21,"tag":227,"props":5613,"children":5614},{},[5615],{"type":26,"value":5616},"CV：",{"type":21,"tag":227,"props":5618,"children":5619},{},[5620],{"type":21,"tag":223,"props":5621,"children":5622},{},[5623],{"type":21,"tag":227,"props":5624,"children":5625},{},[5626,5633],{"type":21,"tag":78,"props":5627,"children":5630},{"href":5628,"rel":5629},"https:\u002F\u002Fwww.labelme.io\u002F",[82],[5631],{"type":26,"value":5632},"label-me",{"type":26,"value":5634}," FOSS",{"type":21,"tag":227,"props":5636,"children":5637},{},[5638],{"type":21,"tag":223,"props":5639,"children":5640},{},[5641],{"type":21,"tag":227,"props":5642,"children":5643},{},[5644,5651],{"type":21,"tag":78,"props":5645,"children":5648},{"href":5646,"rel":5647},"https:\u002F\u002Fgithub.com\u002FCVHub520\u002FX-AnyLabeling",[82],[5649],{"type":26,"value":5650},"X-AnyLabeling",{"type":26,"value":5652}," GPL-3.0",{"type":21,"tag":227,"props":5654,"children":5655},{},[5656],{"type":21,"tag":223,"props":5657,"children":5658},{},[5659],{"type":21,"tag":227,"props":5660,"children":5661},{},[5662,5669],{"type":21,"tag":78,"props":5663,"children":5666},{"href":5664,"rel":5665},"https:\u002F\u002Fgithub.com\u002FHumanSignal\u002FlabelImg",[82],[5667],{"type":26,"value":5668},"label-img",{"type":26,"value":5670}," MIT(且已经 Archive, 被并入 label-studio)",{"type":21,"tag":227,"props":5672,"children":5673},{},[5674],{"type":26,"value":5675},"NLP:",{"type":21,"tag":227,"props":5677,"children":5678},{},[5679],{"type":21,"tag":223,"props":5680,"children":5681},{},[5682],{"type":21,"tag":227,"props":5683,"children":5684},{},[5685,5692],{"type":21,"tag":78,"props":5686,"children":5689},{"href":5687,"rel":5688},"https:\u002F\u002Fgithub.com\u002Frisesoft-y9\u002FData-Labeling",[82],[5690],{"type":26,"value":5691},"data-labeling",{"type":26,"value":5652},{"type":21,"tag":22,"props":5694,"children":5695},{},[5696],{"type":26,"value":5697},"通用类：",{"type":21,"tag":223,"props":5699,"children":5700},{},[5701],{"type":21,"tag":227,"props":5702,"children":5703},{},[5704,5711],{"type":21,"tag":78,"props":5705,"children":5708},{"href":5706,"rel":5707},"https:\u002F\u002Fgithub.com\u002FHumanSignal\u002Flabel-studio\u002F",[82],[5709],{"type":26,"value":5710},"label-studio",{"type":26,"value":5712}," Apache-2.0",{"type":21,"tag":22,"props":5714,"children":5715},{},[5716,5718,5725,5727,5734,5736,5743],{"type":26,"value":5717},"按企业整理的话。国外有 ",{"type":21,"tag":78,"props":5719,"children":5722},{"href":5720,"rel":5721},"https:\u002F\u002Fhumansignal.com\u002F",[82],[5723],{"type":26,"value":5724},"HumanSignal",{"type":26,"value":5726},"。国内有",{"type":21,"tag":78,"props":5728,"children":5731},{"href":5729,"rel":5730},"https:\u002F\u002Fstardust.ai\u002F",[82],[5732],{"type":26,"value":5733},"星尘",{"type":26,"value":5735}," 、",{"type":21,"tag":78,"props":5737,"children":5740},{"href":5738,"rel":5739},"https:\u002F\u002Fwww.risesoft.net\u002F",[82],[5741],{"type":26,"value":5742},"有生",{"type":26,"value":5744},"。HumanSignal 和 星尘是较早开始进入数据标注领域的。有生是今年才开始进入数据标注软件，并在 ToG 业务上有了进展。",{"title":8,"searchDepth":698,"depth":723,"links":5746},[],"content:posts:data-label-software.md","posts\u002Fdata-label-software.md","posts\u002Fdata-label-software",{"_path":5751,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5752,"description":5753,"date":5754,"categories":3150,"tags":5755,"body":5756,"_type":3139,"_id":5785,"_source":3141,"_file":5786,"_stem":5787,"_extension":3144},"\u002Fposts\u002Fself-destruction","生活的崩坏与自我毁灭","是什么在牵引着我？我的行为，我的思想？我的感受？我所处的地方？它们在何处？","2024-12-19 12:00:00",[5078],{"type":18,"children":5757,"toc":5783},[5758,5763,5768,5778],{"type":21,"tag":22,"props":5759,"children":5760},{},[5761],{"type":26,"value":5762},"今天是单周，我按计划翘掉了不签到的早八，但是睡过了签到的早十。一觉起来翻看手机，发现室友在签到的时候问我，“你上课又没来吗”，我回答是。",{"type":21,"tag":22,"props":5764,"children":5765},{},[5766],{"type":26,"value":5767},"如果只是归咎原因，那么可以归于我的毫不在意和单双周的难记忆。但我，在感到有必要要去做的事情的时候，是会早早醒来的。我应当是感到了那样的生活是在消耗我，起码是消耗现在的我。",{"type":21,"tag":22,"props":5769,"children":5770},{},[5771,5776],{"type":21,"tag":294,"props":5772,"children":5773},{},[5774],{"type":26,"value":5775},"我对我将临的事情，并无期待，反而是反抗",{"type":26,"value":5777},"。而反抗，这种消极的反抗，造成的是：我生活的崩塌从 regular 到 irregular，从主流的道路到谁也不确定的道路。我生发了一种对生活、乃至“世界”的背叛感。我很难不去追问，到底是怎么了，为什么我会这样做呢。",{"type":21,"tag":22,"props":5779,"children":5780},{},[5781],{"type":26,"value":5782},"当我询问我自己这样的问题时，我内心其实已经有了答案和想法。当一个人生发出一种行为的时候，尚若他追问自己的言行，是一定能够归咎出原因的，即使脑海中假想推演出来的原因和对过去的模拟非常有可能是错误且偏离现实的。",{"title":8,"searchDepth":698,"depth":723,"links":5784},[],"content:posts:self-destruction.md","posts\u002Fself-destruction.md","posts\u002Fself-destruction",{"_path":5789,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5790,"description":5791,"date":5792,"categories":11,"tags":5793,"body":5794,"_type":3139,"_id":6294,"_source":3141,"_file":6295,"_stem":6296,"_extension":3144},"\u002Fposts\u002Fcs194-196_llmagents","LLM Agents 课程笔记","UCB CS294\u002F194-196 Large Language Model Agents 的课程笔记。","2024-11-30 20:00:00",[15],{"type":18,"children":5795,"toc":6274},[5796,5804,5809,5815,5820,5828,5833,5838,5845,5857,5869,5875,5880,5892,5904,5909,5921,5926,5939,5944,5952,5957,5962,5985,5990,5996,6004,6016,6021,6026,6034,6039,6052,6058,6071,6076,6081,6087,6092,6113,6121,6126,6132,6140,6145,6153,6158,6164,6169,6175,6180,6185,6190,6196,6201,6206,6214,6219,6225,6230,6234],{"type":21,"tag":4979,"props":5797,"children":5798},{},[5799],{"type":21,"tag":22,"props":5800,"children":5801},{},[5802],{"type":26,"value":5803},"鉴定为水课，尽量挑感兴趣的有用的部分看。",{"type":21,"tag":22,"props":5805,"children":5806},{},[5807],{"type":26,"value":5808},"最近工作内容涉猎了大模型的应用，想更深入的了解一些，便打算试试这门课。笔记更新进度对应学习进度。",{"type":21,"tag":69,"props":5810,"children":5812},{"id":5811},"llm-reasoning",[5813],{"type":26,"value":5814},"LLM Reasoning",{"type":21,"tag":22,"props":5816,"children":5817},{},[5818],{"type":26,"value":5819},"提问：What do you expect for AI?",{"type":21,"tag":4979,"props":5821,"children":5822},{},[5823],{"type":21,"tag":22,"props":5824,"children":5825},{},[5826],{"type":26,"value":5827},"What do you expect for AI?",{"type":21,"tag":22,"props":5829,"children":5830},{},[5831],{"type":26,"value":5832},"AI 是人类创造出来的更自动化的工具。若从控制的观点来说，AI 就是控制器的控制器，能够担负人类的现实任务。在理想的应用情况可以承担大部分社会物质精神运转的负荷。",{"type":21,"tag":22,"props":5834,"children":5835},{},[5836],{"type":26,"value":5837},"教授的回答:",{"type":21,"tag":4979,"props":5839,"children":5840},{},[5841],{"type":21,"tag":22,"props":5842,"children":5843},{},[5844],{"type":26,"value":5827},{"type":21,"tag":22,"props":5846,"children":5847},{},[5848,5850,5855],{"type":26,"value":5849},"AI should be able to ",{"type":21,"tag":294,"props":5851,"children":5852},{},[5853],{"type":26,"value":5854},"learn from a few examples",{"type":26,"value":5856},", like what humans usually do",{"type":21,"tag":22,"props":5858,"children":5859},{},[5860,5862,5867],{"type":26,"value":5861},"而以往的机器学习达到了这个期望吗？并没有。机器学习缺乏归因能力——需要大样本学习。而”Humans can learn from just a few examples ",{"type":21,"tag":294,"props":5863,"children":5864},{},[5865],{"type":26,"value":5866},"because humans can reason",{"type":26,"value":5868},"“。因此其暗指大模型拥有 reason 能力。",{"type":21,"tag":346,"props":5870,"children":5872},{"id":5871},"key-ideas",[5873],{"type":26,"value":5874},"Key Ideas",{"type":21,"tag":22,"props":5876,"children":5877},{},[5878],{"type":26,"value":5879},"我们慢慢引出一系列关键的想法来提升大模型的效果。",{"type":21,"tag":5881,"props":5882,"children":5884},"h4",{"id":5883},"derive-the-final-answer-through-intermedia-steps",[5885,5887],{"type":26,"value":5886},"Derive the Final Answer through ",{"type":21,"tag":294,"props":5888,"children":5889},{},[5890],{"type":26,"value":5891},"Intermedia Steps",{"type":21,"tag":22,"props":5893,"children":5894},{},[5895,5897,5902],{"type":26,"value":5896},"Also called ",{"type":21,"tag":294,"props":5898,"children":5899},{},[5900],{"type":26,"value":5901},"Chain-of-Thought",{"type":26,"value":5903},"(CoT).",{"type":21,"tag":22,"props":5905,"children":5906},{},[5907],{"type":26,"value":5908},"可以简单导出一种应用——CoT Prompting。最经典的一个例子——”Let's think step by step“，这个 Prompting 达成了零样本的 CoT。",{"type":21,"tag":5881,"props":5910,"children":5912},{"id":5911},"least-to-most-prompting-enable-easy-to-hard-generalization-by-decomposition",[5913,5915],{"type":26,"value":5914},"Least-to-Most Prompting ",{"type":21,"tag":5916,"props":5917,"children":5918},"em",{},[5919],{"type":26,"value":5920},"Enable easy-to-hard generalization by decomposition",{"type":21,"tag":22,"props":5922,"children":5923},{},[5924],{"type":26,"value":5925},"《How to Solve It》一文中提到。",{"type":21,"tag":4979,"props":5927,"children":5928},{},[5929],{"type":21,"tag":22,"props":5930,"children":5931},{},[5932,5937],{"type":21,"tag":294,"props":5933,"children":5934},{},[5935],{"type":26,"value":5936},"Decomposing and recombing",{"type":26,"value":5938}," are important operations fo the mind.\nYou decompose the whole into its parts, and you recombine the parts into a more or less different whole.\nIf you go into detail you may lose yourself in details.",{"type":21,"tag":22,"props":5940,"children":5941},{},[5942],{"type":26,"value":5943},"其实理念和计算机科学中一直倡导的缩小问题规模有共通之处？Map-Reduce，缩小问题规模不可避免地就要分解问题。",{"type":21,"tag":4979,"props":5945,"children":5946},{},[5947],{"type":21,"tag":22,"props":5948,"children":5949},{},[5950],{"type":26,"value":5951},"Using just 0.1% demonstration examples achieves perfect generalization.",{"type":21,"tag":22,"props":5953,"children":5954},{},[5955],{"type":26,"value":5956},"这里不知道是指预训练时加入一定量地分解问题的数据，还是指对话时加入分解问题的例子。",{"type":21,"tag":22,"props":5958,"children":5959},{},[5960],{"type":26,"value":5961},"以上两种方法其实都是中间步骤。为什么中间步骤可以有如此大的效果呢？",{"type":21,"tag":223,"props":5963,"children":5964},{},[5965,5975],{"type":21,"tag":227,"props":5966,"children":5967},{},[5968,5973],{"type":21,"tag":294,"props":5969,"children":5970},{},[5971],{"type":26,"value":5972},"Constant-depth transformers",{"type":26,"value":5974}," can solve any inherently serial problem as long as it generates sufficiently long intermediate reasoning steps",{"type":21,"tag":227,"props":5976,"children":5977},{},[5978,5983],{"type":21,"tag":294,"props":5979,"children":5980},{},[5981],{"type":26,"value":5982},"Transformers which directly generate final answers",{"type":26,"value":5984}," either requires a huge depth to solve or cannot solve at all",{"type":21,"tag":22,"props":5986,"children":5987},{},[5988],{"type":26,"value":5989},"也就是说，没有中间步骤要么注意力强大到能直接解决问题，要么得到错乱的解。而加入中间步骤，解决序列问题中的每一个简单问题，从而可以解决任何能够分解为序列问题的问题。",{"type":21,"tag":5881,"props":5991,"children":5993},{"id":5992},"llms-as-analogical-reasoners",[5994],{"type":26,"value":5995},"LLMs as Analogical Reasoners",{"type":21,"tag":4979,"props":5997,"children":5998},{},[5999],{"type":21,"tag":22,"props":6000,"children":6001},{},[6002],{"type":26,"value":6003},"Do you know a related problem? In fact, when solving a problem, we always profit from previously solved problems, using their result, or their method, or the experience we acquired solving them.",{"type":21,"tag":22,"props":6005,"children":6006},{},[6007,6009,6015],{"type":26,"value":6008},"出于这种思想，可以导出提示词——Recall a related problem, and then solve this one. （回忆一个相关问题，然后解决这个问题）。这种方法又叫 ",{"type":21,"tag":29,"props":6010,"children":6012},{"className":6011},[],[6013],{"type":26,"value":6014},"Self-generated Examples",{"type":26,"value":655},{"type":21,"tag":22,"props":6017,"children":6018},{},[6019],{"type":26,"value":6020},"不过提示词的角度太过于简陋，从我个人的角度来说，提示词其实很不安全，而且让我很不安。完全把命运交给多出来的词向量真的太怪了。有没有不使用 Prompting 就可以触发 CoT 的方法？",{"type":21,"tag":22,"props":6022,"children":6023},{},[6024],{"type":26,"value":6025},"有的。从 Decode 下手，以往 GPT 输出的时候是选择 Top-k 中概率最高的词输出，也就是简单的贪心选择。如果让其对 Top-k 中的词继续做生成，在根据置信度选择答案，这就是 CoT-decoding 方法。",{"type":21,"tag":22,"props":6027,"children":6028},{},[6029],{"type":21,"tag":4286,"props":6030,"children":6033},{"alt":6031,"src":6032},"Illustration of CoT-decoding","https:\u002F\u002Farxiv.org\u002Fhtml\u002F2402.10200v2\u002Fx1.png",[],{"type":21,"tag":22,"props":6035,"children":6036},{},[6037],{"type":26,"value":6038},"Key takeaways",{"type":21,"tag":4671,"props":6040,"children":6041},{},[6042,6047],{"type":21,"tag":227,"props":6043,"children":6044},{},[6045],{"type":26,"value":6046},"Pre-trained LLMs, without further finetuning, has been ready for step-by-step reasoning, but we need a non-greedy decoding strategy to elicit it.",{"type":21,"tag":227,"props":6048,"children":6049},{},[6050],{"type":26,"value":6051},"When a step-by-step reasoning path is present, KKMs have much higher confidence in decoding the final answer than direct-answer decoding.",{"type":21,"tag":5881,"props":6053,"children":6055},{"id":6054},"limits-of-intermediate-steps",[6056],{"type":26,"value":6057},"Limits of Intermediate Steps",{"type":21,"tag":4979,"props":6059,"children":6060},{},[6061],{"type":21,"tag":22,"props":6062,"children":6063},{},[6064,6066],{"type":26,"value":6065},"Always keep in mind that LLMs are probabilistic models of generating next tokens. ",{"type":21,"tag":294,"props":6067,"children":6068},{},[6069],{"type":26,"value":6070},"They are not humans.",{"type":21,"tag":22,"props":6072,"children":6073},{},[6074],{"type":26,"value":6075},"我们希望：给出问题的基础上得到最大可能的最终答案。",{"type":21,"tag":22,"props":6077,"children":6078},{},[6079],{"type":26,"value":6080},"LLM CoT-decoding所做：给出问题的基础上，给出最大可能的 reasoning path 以及最大可能的最终答案。",{"type":21,"tag":5881,"props":6082,"children":6084},{"id":6083},"self-consistency",[6085],{"type":26,"value":6086},"Self-Consistency",{"type":21,"tag":22,"props":6088,"children":6089},{},[6090],{"type":26,"value":6091},"More consistent, more likely to be correct",{"type":21,"tag":22,"props":6093,"children":6094},{},[6095,6097,6105,6107,6112],{"type":26,"value":6096},"人性的一个突出方面是人们的思维方式不同。很自然地假设，在需要深思熟虑的任务中，可能有几种方法可以解决问题。我们建议可以通过从语言模型的解码器中采样来在语言模型中模拟这样的过程。例如，如图 ",{"type":21,"tag":78,"props":6098,"children":6102},{"href":6099,"rel":6100,"title":6101},"https:\u002F\u002Far5iv.labs.arxiv.org\u002Fhtml\u002F2203.11171?_immersive_translate_auto_translate=1#S1.F1",[82],"In 1 Introduction ‣ Self-Consistency Improves Chain of Thought Reasoning in Language Models",[6103],{"type":26,"value":6104},"1 所示",{"type":26,"value":6106}," ，一个模型可以对数学问题生成多个合理的回答，这些回答都得出相同的正确答案（输出 1 和 3）。由于语言模型不是完美的推理器，因此模型也可能产生不正确的推理路径或在其中一个推理步骤中出错（例如，在输出 2 中），但此类解决方案不太可能得出相同的答案。也就是说，我们",{"type":21,"tag":294,"props":6108,"children":6109},{},[6110],{"type":26,"value":6111},"假设正确的推理过程，即使它们是多种多样的，也往往比不正确的过程在最终答案中具有更大的一致性",{"type":26,"value":655},{"type":21,"tag":22,"props":6114,"children":6115},{},[6116],{"type":21,"tag":4286,"props":6117,"children":6120},{"alt":6118,"src":6119},"Self-Consistency method contains three steps","https:\u002F\u002Far5iv.labs.arxiv.org\u002Fhtml\u002F2203.11171\u002Fassets\u002Fx1.png",[],{"type":21,"tag":22,"props":6122,"children":6123},{},[6124],{"type":26,"value":6125},"Self-Consistency 利用了复杂的推理任务通常允许多条推理路径到达正确答案的直觉。一个问题越需要深思熟虑的思考和分析 ，可以得到答案的推理路径就越多样化。",{"type":21,"tag":5881,"props":6127,"children":6129},{"id":6128},"quiz",[6130],{"type":26,"value":6131},"Quiz",{"type":21,"tag":4979,"props":6133,"children":6134},{},[6135],{"type":21,"tag":22,"props":6136,"children":6137},{},[6138],{"type":26,"value":6139},"Q1. When the LLM outputs a direct answer without intermediate steps, will you still sample several times, and then choose the most common answer?",{"type":21,"tag":22,"props":6141,"children":6142},{},[6143],{"type":26,"value":6144},"我不会，我倾向于它不能够解决这个问题，而重新换种问法。",{"type":21,"tag":4979,"props":6146,"children":6147},{},[6148],{"type":21,"tag":22,"props":6149,"children":6150},{},[6151],{"type":26,"value":6152},"Q2. Change self-consistency by letting LLM generate multiple responses, instead of sampling multiple times, and then choosing the most common answer. Does this make sense?",{"type":21,"tag":22,"props":6154,"children":6155},{},[6156],{"type":26,"value":6157},"我认为这其实并不能解决问题。首先模型必须能够得出正确答案，假设其起作用的前提是，采样到的答案中正确的答案占大多数。这只能让复杂但不困难的任务表现的更好，而对于简单任务和复杂困难任务没有帮助。",{"type":21,"tag":346,"props":6159,"children":6161},{"id":6160},"limitations",[6162],{"type":26,"value":6163},"Limitations",{"type":21,"tag":22,"props":6165,"children":6166},{},[6167],{"type":26,"value":6168},"大模型存在什么限制呢？了解限制可以让我们更好的发挥它的作用。",{"type":21,"tag":5881,"props":6170,"children":6172},{"id":6171},"llms-can-be-easily-distracted-by-irrelevant-context",[6173],{"type":26,"value":6174},"LLMs Can Be Easily Distracted by Irrelevant Context",{"type":21,"tag":22,"props":6176,"children":6177},{},[6178],{"type":26,"value":6179},"Psychology studies show that irrelevant information may significantly decrease some children and even adults problem-solving accuracy.",{"type":21,"tag":22,"props":6181,"children":6182},{},[6183],{"type":26,"value":6184},"在大模型上的表现就是——Adding irrelevant contexts to GSM8K leads to 20+ points performance drop.",{"type":21,"tag":22,"props":6186,"children":6187},{},[6188],{"type":26,"value":6189},"知道了如此限制，那么我们可以用提示词去尝试解决——Ignore irrelevant context。这可以挽回一点性能表现。",{"type":21,"tag":5881,"props":6191,"children":6193},{"id":6192},"llms-cannot-self-correct-reasoning-yet",[6194],{"type":26,"value":6195},"LLMs Cannot Self-Correct Reasoning Yet",{"type":21,"tag":22,"props":6197,"children":6198},{},[6199],{"type":26,"value":6200},"While allowing LLMs to review their generated responses can help correct inaccurate answers, it may also risk changing correct answers into incorrect ones.",{"type":21,"tag":22,"props":6202,"children":6203},{},[6204],{"type":26,"value":6205},"尤其是在常识性的问答中，GPT-3.5 Self-Correct 后的表现下降的很厉害。",{"type":21,"tag":4979,"props":6207,"children":6208},{},[6209],{"type":21,"tag":22,"props":6210,"children":6211},{},[6212],{"type":26,"value":6213},"Reported improvements need oracle answers.",{"type":21,"tag":22,"props":6215,"children":6216},{},[6217],{"type":26,"value":6218},"Oracle: Let LLMs self correct only when the answer is wrong",{"type":21,"tag":5881,"props":6220,"children":6222},{"id":6221},"premise-order-matters-in-llm-reasoning",[6223],{"type":26,"value":6224},"Premise Order Matters in LLM Reasoning",{"type":21,"tag":22,"props":6226,"children":6227},{},[6228],{"type":26,"value":6229},"前提条件重排序会让 solving rates 下降。",{"type":21,"tag":346,"props":6231,"children":6232},{"id":5424},[6233],{"type":26,"value":5424},{"type":21,"tag":223,"props":6235,"children":6236},{},[6237,6242,6253,6264,6269],{"type":21,"tag":227,"props":6238,"children":6239},{},[6240],{"type":26,"value":6241},"Generating intermediate steps improves LLM performance",{"type":21,"tag":227,"props":6243,"children":6244},{},[6245],{"type":21,"tag":223,"props":6246,"children":6247},{},[6248],{"type":21,"tag":227,"props":6249,"children":6250},{},[6251],{"type":26,"value":6252},"Training\u002Ffine-tuning\u002Fprompting with intermediate steps",{"type":21,"tag":227,"props":6254,"children":6255},{},[6256],{"type":21,"tag":223,"props":6257,"children":6258},{},[6259],{"type":21,"tag":227,"props":6260,"children":6261},{},[6262],{"type":26,"value":6263},"Zero-shot, analogical reasoning, special decoding",{"type":21,"tag":227,"props":6265,"children":6266},{},[6267],{"type":26,"value":6268},"Self-Consistency greatly improves step-by-step reasoning",{"type":21,"tag":227,"props":6270,"children":6271},{},[6272],{"type":26,"value":6273},"Limitation: irrelevant context, self-correction, premise order",{"title":8,"searchDepth":698,"depth":723,"links":6275},[6276],{"id":5811,"depth":698,"text":5814,"children":6277},[6278,6288,6293],{"id":5871,"depth":723,"text":5874,"children":6279},[6280,6282,6284,6285,6286,6287],{"id":5883,"depth":741,"text":6281},"Derive the Final Answer through Intermedia Steps",{"id":5911,"depth":741,"text":6283},"Least-to-Most Prompting Enable easy-to-hard generalization by decomposition",{"id":5992,"depth":741,"text":5995},{"id":6054,"depth":741,"text":6057},{"id":6083,"depth":741,"text":6086},{"id":6128,"depth":741,"text":6131},{"id":6160,"depth":723,"text":6163,"children":6289},[6290,6291,6292],{"id":6171,"depth":741,"text":6174},{"id":6192,"depth":741,"text":6195},{"id":6221,"depth":741,"text":6224},{"id":5424,"depth":723,"text":5424},"content:posts:CS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents",{"_path":6298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":6299,"description":6300,"date":6301,"categories":3150,"tags":6302,"body":6303,"_type":3139,"_id":6344,"_source":3141,"_file":6345,"_stem":6346,"_extension":3144},"\u002Fposts\u002Fwhatsyourworth","价值、位置","你们的生存究竟有何价值？如果毫无价值，你们究竟为何存在？","2024-11-29 02:00:00",[5078],{"type":18,"children":6304,"toc":6342},[6305,6312,6317,6322,6327,6332,6337],{"type":21,"tag":4979,"props":6306,"children":6307},{},[6308],{"type":21,"tag":22,"props":6309,"children":6310},{},[6311],{"type":26,"value":6300},{"type":21,"tag":22,"props":6313,"children":6314},{},[6315],{"type":26,"value":6316},"我们该身处怎样的位置？或者说生活该是怎样的？我不知道。社会主义核心价值观中个人层面的要求提到我们要爱国、敬业、诚信、友善。朗朗上口又空洞的字眼，真的能指引我的生活吗？我否认它。",{"type":21,"tag":22,"props":6318,"children":6319},{},[6320],{"type":26,"value":6321},"对于有些人，这些问题是无需思考的，并非因为短视与无知，而是因为过往的生活经验中存在着经得起质疑的参考，他们信服且可以认定自己的生活方式与存在来源，并以此为生活的指导。另一些人是短视者，或许曾经有挣扎过，但还与社会的规训和解。这不如不做挣扎。我不是其中一员。作为具象的人，我不喜欢被分类，甚至说评价自己。或者换句话说，我讨厌暴露自己，即使现在我就在做着这样的事情。我的自反性强烈地牵引着我来到了一种莫名的境地，在这里我会感受到痛苦，并让我难以理解幸福。",{"type":21,"tag":22,"props":6323,"children":6324},{},[6325],{"type":26,"value":6326},"汲取某一样东西或者深深扎根在一处汲取营养与支持，那是再好不过的事情。我还是犹豫着选择。在上一刻被消灭下一刻不存在的现在，妄图否认一切。是可笑的。专注于某一项东西难免要做出某种选择。这都是胡说八道的谎言。",{"type":21,"tag":22,"props":6328,"children":6329},{},[6330],{"type":26,"value":6331},"事实上是，蜷缩的内心带来长时间不使用而萎靡的声音，惧怕外界的同时在自己内心的系统中不断咀嚼反复。其表象可以归为“微信恐惧症”。",{"type":21,"tag":22,"props":6333,"children":6334},{},[6335],{"type":26,"value":6336},"惧怕否认而自诩，自诩自重而自封。",{"type":21,"tag":22,"props":6338,"children":6339},{},[6340],{"type":26,"value":6341},"在时间的脉络和物质的运动之中，星河翻转的梦境里，时间，时间。不可避免地迈步向前，而由自反诞生的恐惧与疏远仍深深扎根。这一切都是漫长的白夜。我们的生存究竟有何价值？如果毫无价值，我们究竟为何存在？",{"title":8,"searchDepth":698,"depth":723,"links":6343},[],"content:posts:WhatsYourWorth.md","posts\u002FWhatsYourWorth.md","posts\u002FWhatsYourWorth",{"_path":6348,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":6349,"description":6350,"date":6351,"categories":3150,"tags":6352,"body":6354,"_type":3139,"_id":6432,"_source":3141,"_file":6433,"_stem":6434,"_extension":3144},"\u002Fposts\u002Fblogrelifever2","重启博客v2","忙里偷闲学习前端，还是决定结合想法手搓一个自己的博客。","2024-11-25 00:00:00",[6353],"博客",{"type":18,"children":6355,"toc":6430},[6356,6361,6366,6371,6376,6381,6394,6415,6420,6425],{"type":21,"tag":22,"props":6357,"children":6358},{},[6359],{"type":26,"value":6360},"很遗憾的一件事情——我发现以前的我并没有写出什么值得发表出来的博客，更遗憾的事情，现在的我也没有写出来这样的文字。",{"type":21,"tag":22,"props":6362,"children":6363},{},[6364],{"type":26,"value":6365},"大抵是从初中开始，我就对文字保有偌大的趣味。我认为那是一件值得品味，需要经验积累才能表征出的东西。我想写自己的小说，传达自己的思想。但自我判断后，认为仍需更多的现实经验积累（但其实更重要的是相应的锻炼，比如说写作训练），便将想法设置为遥远的理想，始终铭记，但将其搁置在行动清单外。",{"type":21,"tag":22,"props":6367,"children":6368},{},[6369],{"type":26,"value":6370},"大学刚入学后，学着网上胡乱的言论（还有身边的例子），我也开始写博客。那时候的我，对于博客的写作，其实只是大多停留在复制粘贴的搬运。毕竟经验与感想是需要累计和思考的，没有一定时间的浸润是很难以自己的想法表达出来其他人的想法的。而自我日常的思绪又过于混乱，不花时间做整理，到最后连自己都看不懂。这样记录实在是无趣。",{"type":21,"tag":22,"props":6372,"children":6373},{},[6374],{"type":26,"value":6375},"对于自我的寻找是更关键的。尽管我知道了自我的位置，但是我还是没有以——有足够归属感的、卸下自己防备的方式去接受自我的位置。这很大程度上动摇了我未来决策的基础。",{"type":21,"tag":22,"props":6377,"children":6378},{},[6379],{"type":26,"value":6380},"这实在遗憾。",{"type":21,"tag":22,"props":6382,"children":6383},{},[6384,6386,6392],{"type":26,"value":6385},"好了，谈了不少呓语。下面提一下这次博客的搭建。当然是放弃了 ",{"type":21,"tag":29,"props":6387,"children":6389},{"className":6388},[],[6390],{"type":26,"value":6391},"Hexo",{"type":26,"value":6393},"，感到厌倦，还是不满意。很多时候就是一个想法出现，决定做不做。过后就会很快的把它丢出“缓存”。",{"type":21,"tag":22,"props":6395,"children":6396},{},[6397,6399,6405,6407,6413],{"type":26,"value":6398},"理想的博客要求是简单、简洁、书写方便。如此，需要 ",{"type":21,"tag":29,"props":6400,"children":6402},{"className":6401},[],[6403],{"type":26,"value":6404},"Markdown",{"type":26,"value":6406}," 文件支持，也需要一些基本的功能，比如说 ",{"type":21,"tag":29,"props":6408,"children":6410},{"className":6409},[],[6411],{"type":26,"value":6412},"RSS",{"type":26,"value":6414}," 订阅、评论、分类、标签、日夜模式切换等等。应该会在后续上线。",{"type":21,"tag":22,"props":6416,"children":6417},{},[6418],{"type":26,"value":6419},"技术栈：Nuxt3(+@nuxt\u002Fcontent) + TailwindCSS",{"type":21,"tag":22,"props":6421,"children":6422},{},[6423],{"type":26,"value":6424},"非常简单的技术栈。摸鱼的时候玩的很爽。www",{"type":21,"tag":22,"props":6426,"children":6427},{},[6428],{"type":26,"value":6429},"就是这样，博客还存在一些问题，但边用边解决吧。",{"title":8,"searchDepth":698,"depth":723,"links":6431},[],"content:posts:BlogRelifeVer2.md","posts\u002FBlogRelifeVer2.md","posts\u002FBlogRelifeVer2",{"_path":6436,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":6437,"description":6438,"date":6439,"categories":3150,"tags":6440,"body":6441,"_type":3139,"_id":6565,"_source":3141,"_file":6566,"_stem":6567,"_extension":3144},"\u002Fposts\u002Fblogrelife","重启博客","在我的表达欲与现实所需(问题解决记录)驱动下，我决定重写博客。","2024-10-21 20:44:57",null,{"type":18,"children":6442,"toc":6563},[6443,6447,6468,6524,6543,6548,6553,6558],{"type":21,"tag":22,"props":6444,"children":6445},{},[6446],{"type":26,"value":6438},{"type":21,"tag":22,"props":6448,"children":6449},{},[6450,6452,6458,6460,6466],{"type":26,"value":6451},"我之前写过博客。但之前的流程过于琐碎。当想要看到我新写内容的效果时，我都需要忍受长达几秒的 ",{"type":21,"tag":29,"props":6453,"children":6455},{"className":6454},[],[6456],{"type":26,"value":6457},"hexo g && hexo d",{"type":26,"value":6459},"，编辑的过程也不能够实时渲染。另一个使我厌烦的原因是，之前的博客是 Github Pages 部署的。我公开在 ",{"type":21,"tag":29,"props":6461,"children":6463},{"className":6462},[],[6464],{"type":26,"value":6465},"GitHub Repo",{"type":26,"value":6467}," 上的源代码也很丑陋，实在让我提不起兴趣去写。",{"type":21,"tag":22,"props":6469,"children":6470},{},[6471,6473,6478,6480,6485,6487,6493,6495,6500,6502,6507,6508,6514,6516,6522],{"type":26,"value":6472},"我追求过程的简洁，便想换成渲染 ",{"type":21,"tag":29,"props":6474,"children":6476},{"className":6475},[],[6477],{"type":26,"value":3139},{"type":26,"value":6479}," 文件的博客 (",{"type":21,"tag":5916,"props":6481,"children":6482},{},[6483],{"type":26,"value":6484},"Hugo",{"type":26,"value":6486}," 可行，但没有去尝试)。自己也尝试用 ",{"type":21,"tag":29,"props":6488,"children":6490},{"className":6489},[],[6491],{"type":26,"value":6492},"Nuxt3",{"type":26,"value":6494}," 写过一些 ",{"type":21,"tag":29,"props":6496,"children":6498},{"className":6497},[],[6499],{"type":26,"value":6404},{"type":26,"value":6501}," 的静态渲染网站，实力有限其扩展能力也不强，最后还是用以前的老套路 (",{"type":21,"tag":29,"props":6503,"children":6505},{"className":6504},[],[6506],{"type":26,"value":6391},{"type":26,"value":1394},{"type":21,"tag":29,"props":6509,"children":6511},{"className":6510},[],[6512],{"type":26,"value":6513},"Butterfly",{"type":26,"value":6515}," theme)。不过这次决定将构建过程迁移到云端，提交到仓库的源代码就只是源代码了，这样我就只用 ",{"type":21,"tag":29,"props":6517,"children":6519},{"className":6518},[],[6520],{"type":26,"value":6521},"git add *.md",{"type":26,"value":6523},"了。",{"type":21,"tag":22,"props":6525,"children":6526},{},[6527,6529,6534,6536,6541],{"type":26,"value":6528},"而且更令我惊喜的是，在这个过程中我还认识了 ",{"type":21,"tag":29,"props":6530,"children":6532},{"className":6531},[],[6533],{"type":26,"value":6412},{"type":26,"value":6535}," 的存在。我可以通过 ",{"type":21,"tag":29,"props":6537,"children":6539},{"className":6538},[],[6540],{"type":26,"value":6412},{"type":26,"value":6542}," 订阅自己的博客而忽略博客本身，这样可以更专注于写作。",{"type":21,"tag":22,"props":6544,"children":6545},{},[6546],{"type":26,"value":6547},"这次的博客更多是内心表达的冲动一直驱使着我，想要写下什么东西。我也时常怀疑自己——表达的方式真的只有这种吗？因此我也迟疑了很久，没有在网上写博客。而是在其他地方更隐私的地方零零碎碎地写下一些东西。但只是心血来潮写写罢了，三天打鱼两天晒网，其实和没写也没区别。",{"type":21,"tag":22,"props":6549,"children":6550},{},[6551],{"type":26,"value":6552},"不过这次就不一样了。",{"type":21,"tag":22,"props":6554,"children":6555},{},[6556],{"type":26,"value":6557},"哈哈？",{"type":21,"tag":22,"props":6559,"children":6560},{},[6561],{"type":26,"value":6562},"如此吧。",{"title":8,"searchDepth":698,"depth":723,"links":6564},[],"content:posts:BlogRelife.md","posts\u002FBlogRelife.md","posts\u002FBlogRelife",{"_path":6569,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":6570,"description":6571,"categories":6572,"mathjax":7,"date":6573,"tags":6574,"body":6577,"_type":3139,"_id":9673,"_source":3141,"_file":9674,"_stem":9675,"_extension":3144},"\u002Fposts\u002Fwindows11","从零配置 Windows11 开发环境","爽快的开发感从这里开始！","他玉集","2023-09-05 10:00:52",[6575,6576],"软件环境","Windows",{"type":18,"children":6578,"toc":9660},[6579,6591,6599,6604,6609,6614,6619,6642,6647,6684,6689,6707,6712,6842,6847,6866,6925,6930,7023,7028,7041,7046,7120,7131,7146,7157,7173,7186,7219,7240,7251,7256,7261,7266,7271,7276,7284,7412,7417,7422,7457,7474,7479,7503,7508,7513,7548,7553,7572,7577,7699,7704,7710,7720,7860,7865,8022,8027,8032,8053,8058,8128,8134,8140,8145,8234,8256,8629,8634,8639,8668,8673,8731,8737,8835,8841,8846,8851,8969,8974,9020,9033,9159,9164,9168,9223,9228,9314,9319,9366,9371,9452,9481,9523,9529,9534,9562,9567,9610,9615,9642,9656],{"type":21,"tag":22,"props":6580,"children":6581},{},[6582,6584],{"type":26,"value":6583},"Fork from: ",{"type":21,"tag":78,"props":6585,"children":6588},{"href":6586,"rel":6587},"https:\u002F\u002Fkirigaya.cn\u002Fblog\u002Farticle?seq=28",[82],[6589],{"type":26,"value":6590},"汇尘轩 - 锦恢的博客 (kirigaya.cn)",{"type":21,"tag":4979,"props":6592,"children":6593},{},[6594],{"type":21,"tag":22,"props":6595,"children":6596},{},[6597],{"type":26,"value":6598},"There is no end though there is a start in space. ---Infinity.",{"type":21,"tag":22,"props":6600,"children":6601},{},[6602],{"type":26,"value":6603},"记录一下简单的电脑配置流程。按照这个顺序配置即可。",{"type":21,"tag":69,"props":6605,"children":6607},{"id":6606},"windows",[6608],{"type":26,"value":6576},{"type":21,"tag":22,"props":6610,"children":6611},{},[6612],{"type":26,"value":6613},"必须是Win11，因为我需要这个版本上面的一些特性，或是功能性的，或是装饰性的。",{"type":21,"tag":22,"props":6615,"children":6616},{},[6617],{"type":26,"value":6618},"一、登录微软账号",{"type":21,"tag":4671,"props":6620,"children":6621},{},[6622,6627,6632,6637],{"type":21,"tag":227,"props":6623,"children":6624},{},[6625],{"type":26,"value":6626},"同步部分OS配置",{"type":21,"tag":227,"props":6628,"children":6629},{},[6630],{"type":26,"value":6631},"同步edge",{"type":21,"tag":227,"props":6633,"children":6634},{},[6635],{"type":26,"value":6636},"同步应用商店",{"type":21,"tag":227,"props":6638,"children":6639},{},[6640],{"type":26,"value":6641},"升级到相应的Win11版本",{"type":21,"tag":22,"props":6643,"children":6644},{},[6645],{"type":26,"value":6646},"二、转移基本的静态文件",{"type":21,"tag":4671,"props":6648,"children":6649},{},[6650,6655,6660,6671],{"type":21,"tag":227,"props":6651,"children":6652},{},[6653],{"type":26,"value":6654},"所有的图片（壁纸+图标+光标）",{"type":21,"tag":227,"props":6656,"children":6657},{},[6658],{"type":26,"value":6659},"所有的额外字体文件（Jetbrain+Nerd等宽字体+几款我喜欢的中文字体）",{"type":21,"tag":227,"props":6661,"children":6662},{},[6663,6669],{"type":21,"tag":29,"props":6664,"children":6666},{"className":6665},[],[6667],{"type":26,"value":6668},".ssh",{"type":26,"value":6670},"文件夹（用于登录服务器）",{"type":21,"tag":227,"props":6672,"children":6673},{},[6674,6676,6682],{"type":26,"value":6675},"windows terminal 的配置文件",{"type":21,"tag":29,"props":6677,"children":6679},{"className":6678},[],[6680],{"type":26,"value":6681},"setting.json",{"type":26,"value":6683},"，并替换本机windows terminal配置文件，将部分的图标路径进行修改。",{"type":21,"tag":22,"props":6685,"children":6686},{},[6687],{"type":26,"value":6688},"三、下载应用软件",{"type":21,"tag":4671,"props":6690,"children":6691},{},[6692,6697,6702],{"type":21,"tag":227,"props":6693,"children":6694},{},[6695],{"type":26,"value":6696},"微软应用商店：Dolby Access（音效）, ScreenMix（录屏）, Snipaste（截屏）、TranslucentTB（美化任务栏）、Starrea（ePub阅读器）",{"type":21,"tag":227,"props":6698,"children":6699},{},[6700],{"type":26,"value":6701},"下载前往魔法址获取SSR订阅，下载并配置CFW。",{"type":21,"tag":227,"props":6703,"children":6704},{},[6705],{"type":26,"value":6706},"网上下载：Google Chrome, FireFox, Tim, 微信, 飞书, 百度网盘, 7z, postman, Office套件, 向日葵, obsidian, OneNote",{"type":21,"tag":22,"props":6708,"children":6709},{},[6710],{"type":26,"value":6711},"四、配置开发环境",{"type":21,"tag":4671,"props":6713,"children":6714},{},[6715,6727],{"type":21,"tag":227,"props":6716,"children":6717},{},[6718,6720],{"type":26,"value":6719},"下载 PowerShell 7.x 最新版本\n官方文档：",{"type":21,"tag":78,"props":6721,"children":6724},{"href":6722,"rel":6723},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fpowershell\u002Fscripting\u002Finstall\u002Finstalling-powershell-on-windows?view=powershell-7.3#msi",[82],[6725],{"type":26,"value":6726},"在 Windows 上安装 PowerShell - PowerShell | Microsoft Learn",{"type":21,"tag":227,"props":6728,"children":6729},{},[6730,6732],{"type":26,"value":6731},"删除和python默认起冲突的可执行文件。使用管理员权限打开powershell，输入：",{"type":21,"tag":669,"props":6733,"children":6737},{"className":6734,"code":6735,"language":6736,"meta":8,"style":8},"language-sh shiki shiki-themes github-light github-dark","cd C:\\Users\\\u003C用户名>\\AppData\\Local\\Microsoft\\WindowsApps\nrm python*\n","sh",[6738],{"type":21,"tag":29,"props":6739,"children":6740},{"__ignoreMap":8},[6741,6824],{"type":21,"tag":679,"props":6742,"children":6743},{"class":681,"line":682},[6744,6749,6754,6759,6764,6769,6774,6779,6784,6789,6794,6799,6804,6809,6814,6819],{"type":21,"tag":679,"props":6745,"children":6746},{"style":702},[6747],{"type":26,"value":6748},"cd",{"type":21,"tag":679,"props":6750,"children":6751},{"style":686},[6752],{"type":26,"value":6753}," C:",{"type":21,"tag":679,"props":6755,"children":6756},{"style":702},[6757],{"type":26,"value":6758},"\\U",{"type":21,"tag":679,"props":6760,"children":6761},{"style":686},[6762],{"type":26,"value":6763},"sers",{"type":21,"tag":679,"props":6765,"children":6766},{"style":702},[6767],{"type":26,"value":6768},"\\\u003C",{"type":21,"tag":679,"props":6770,"children":6771},{"style":686},[6772],{"type":26,"value":6773},"用户",{"type":21,"tag":679,"props":6775,"children":6776},{"style":692},[6777],{"type":26,"value":6778},"名",{"type":21,"tag":679,"props":6780,"children":6781},{"style":4370},[6782],{"type":26,"value":6783},">",{"type":21,"tag":679,"props":6785,"children":6786},{"style":702},[6787],{"type":26,"value":6788},"\\A",{"type":21,"tag":679,"props":6790,"children":6791},{"style":686},[6792],{"type":26,"value":6793},"ppData",{"type":21,"tag":679,"props":6795,"children":6796},{"style":702},[6797],{"type":26,"value":6798},"\\L",{"type":21,"tag":679,"props":6800,"children":6801},{"style":686},[6802],{"type":26,"value":6803},"ocal",{"type":21,"tag":679,"props":6805,"children":6806},{"style":702},[6807],{"type":26,"value":6808},"\\M",{"type":21,"tag":679,"props":6810,"children":6811},{"style":686},[6812],{"type":26,"value":6813},"icrosoft",{"type":21,"tag":679,"props":6815,"children":6816},{"style":702},[6817],{"type":26,"value":6818},"\\W",{"type":21,"tag":679,"props":6820,"children":6821},{"style":686},[6822],{"type":26,"value":6823},"indowsApps\n",{"type":21,"tag":679,"props":6825,"children":6826},{"class":681,"line":698},[6827,6832,6837],{"type":21,"tag":679,"props":6828,"children":6829},{"style":3984},[6830],{"type":26,"value":6831},"rm",{"type":21,"tag":679,"props":6833,"children":6834},{"style":686},[6835],{"type":26,"value":6836}," python",{"type":21,"tag":679,"props":6838,"children":6839},{"style":702},[6840],{"type":26,"value":6841},"*\n",{"type":21,"tag":22,"props":6843,"children":6844},{},[6845],{"type":26,"value":6846},"2.下载 Git",{"type":21,"tag":4671,"props":6848,"children":6849},{},[6850,6861],{"type":21,"tag":227,"props":6851,"children":6852},{},[6853,6855],{"type":26,"value":6854},"前往 ",{"type":21,"tag":78,"props":6856,"children":6859},{"href":6857,"rel":6858},"https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin",[82],[6860],{"type":26,"value":6857},{"type":21,"tag":227,"props":6862,"children":6863},{},[6864],{"type":26,"value":6865},"配置信息：",{"type":21,"tag":669,"props":6867,"children":6869},{"className":6734,"code":6868,"language":6736,"meta":8,"style":8},"git config --global user.email xxx\ngit config --global user.name xxx\n",[6870],{"type":21,"tag":29,"props":6871,"children":6872},{"__ignoreMap":8},[6873,6901],{"type":21,"tag":679,"props":6874,"children":6875},{"class":681,"line":682},[6876,6881,6886,6891,6896],{"type":21,"tag":679,"props":6877,"children":6878},{"style":3984},[6879],{"type":26,"value":6880},"git",{"type":21,"tag":679,"props":6882,"children":6883},{"style":686},[6884],{"type":26,"value":6885}," config",{"type":21,"tag":679,"props":6887,"children":6888},{"style":702},[6889],{"type":26,"value":6890}," --global",{"type":21,"tag":679,"props":6892,"children":6893},{"style":686},[6894],{"type":26,"value":6895}," user.email",{"type":21,"tag":679,"props":6897,"children":6898},{"style":686},[6899],{"type":26,"value":6900}," xxx\n",{"type":21,"tag":679,"props":6902,"children":6903},{"class":681,"line":698},[6904,6908,6912,6916,6921],{"type":21,"tag":679,"props":6905,"children":6906},{"style":3984},[6907],{"type":26,"value":6880},{"type":21,"tag":679,"props":6909,"children":6910},{"style":686},[6911],{"type":26,"value":6885},{"type":21,"tag":679,"props":6913,"children":6914},{"style":702},[6915],{"type":26,"value":6890},{"type":21,"tag":679,"props":6917,"children":6918},{"style":686},[6919],{"type":26,"value":6920}," user.name",{"type":21,"tag":679,"props":6922,"children":6923},{"style":686},[6924],{"type":26,"value":6900},{"type":21,"tag":22,"props":6926,"children":6927},{},[6928],{"type":26,"value":6929},"3.设置代理：",{"type":21,"tag":669,"props":6931,"children":6933},{"className":6734,"code":6932,"language":6736,"meta":8,"style":8},"git config --global http.proxy http:\u002F\u002F127.0.0.1:\u003C端口号>\ngit config --global https.proxy https:\u002F\u002F127.0.0.1:\u003C端口号>\n",[6934],{"type":21,"tag":29,"props":6935,"children":6936},{"__ignoreMap":8},[6937,6982],{"type":21,"tag":679,"props":6938,"children":6939},{"class":681,"line":682},[6940,6944,6948,6952,6957,6962,6967,6972,6977],{"type":21,"tag":679,"props":6941,"children":6942},{"style":3984},[6943],{"type":26,"value":6880},{"type":21,"tag":679,"props":6945,"children":6946},{"style":686},[6947],{"type":26,"value":6885},{"type":21,"tag":679,"props":6949,"children":6950},{"style":702},[6951],{"type":26,"value":6890},{"type":21,"tag":679,"props":6953,"children":6954},{"style":686},[6955],{"type":26,"value":6956}," http.proxy",{"type":21,"tag":679,"props":6958,"children":6959},{"style":686},[6960],{"type":26,"value":6961}," http:\u002F\u002F127.0.0.1:",{"type":21,"tag":679,"props":6963,"children":6964},{"style":4370},[6965],{"type":26,"value":6966},"\u003C",{"type":21,"tag":679,"props":6968,"children":6969},{"style":686},[6970],{"type":26,"value":6971},"端口",{"type":21,"tag":679,"props":6973,"children":6974},{"style":692},[6975],{"type":26,"value":6976},"号",{"type":21,"tag":679,"props":6978,"children":6979},{"style":4370},[6980],{"type":26,"value":6981},">\n",{"type":21,"tag":679,"props":6983,"children":6984},{"class":681,"line":698},[6985,6989,6993,6997,7002,7007,7011,7015,7019],{"type":21,"tag":679,"props":6986,"children":6987},{"style":3984},[6988],{"type":26,"value":6880},{"type":21,"tag":679,"props":6990,"children":6991},{"style":686},[6992],{"type":26,"value":6885},{"type":21,"tag":679,"props":6994,"children":6995},{"style":702},[6996],{"type":26,"value":6890},{"type":21,"tag":679,"props":6998,"children":6999},{"style":686},[7000],{"type":26,"value":7001}," https.proxy",{"type":21,"tag":679,"props":7003,"children":7004},{"style":686},[7005],{"type":26,"value":7006}," https:\u002F\u002F127.0.0.1:",{"type":21,"tag":679,"props":7008,"children":7009},{"style":4370},[7010],{"type":26,"value":6966},{"type":21,"tag":679,"props":7012,"children":7013},{"style":686},[7014],{"type":26,"value":6971},{"type":21,"tag":679,"props":7016,"children":7017},{"style":692},[7018],{"type":26,"value":6976},{"type":21,"tag":679,"props":7020,"children":7021},{"style":4370},[7022],{"type":26,"value":6981},{"type":21,"tag":22,"props":7024,"children":7025},{},[7026],{"type":26,"value":7027},"3.安装python",{"type":21,"tag":22,"props":7029,"children":7030},{},[7031,7033,7039],{"type":26,"value":7032},"1.去 ",{"type":21,"tag":78,"props":7034,"children":7037},{"href":7035,"rel":7036},"https:\u002F\u002Fwww.python.org\u002Fdownloads\u002Fwindows\u002F",[82],[7038],{"type":26,"value":7035},{"type":26,"value":7040}," 寻找稳定版本的x64可执行文件下载",{"type":21,"tag":22,"props":7042,"children":7043},{},[7044],{"type":26,"value":7045},"2.配置pip源：",{"type":21,"tag":669,"props":7047,"children":7049},{"className":6734,"code":7048,"language":6736,"meta":8,"style":8},"pip config set global.index-url https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\npip config set global.proxy http:\u002F\u002F127.0.0.1:\u003C端口号>\n",[7050],{"type":21,"tag":29,"props":7051,"children":7052},{"__ignoreMap":8},[7053,7080],{"type":21,"tag":679,"props":7054,"children":7055},{"class":681,"line":682},[7056,7061,7065,7070,7075],{"type":21,"tag":679,"props":7057,"children":7058},{"style":3984},[7059],{"type":26,"value":7060},"pip",{"type":21,"tag":679,"props":7062,"children":7063},{"style":686},[7064],{"type":26,"value":6885},{"type":21,"tag":679,"props":7066,"children":7067},{"style":686},[7068],{"type":26,"value":7069}," set",{"type":21,"tag":679,"props":7071,"children":7072},{"style":686},[7073],{"type":26,"value":7074}," global.index-url",{"type":21,"tag":679,"props":7076,"children":7077},{"style":686},[7078],{"type":26,"value":7079}," https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n",{"type":21,"tag":679,"props":7081,"children":7082},{"class":681,"line":698},[7083,7087,7091,7095,7100,7104,7108,7112,7116],{"type":21,"tag":679,"props":7084,"children":7085},{"style":3984},[7086],{"type":26,"value":7060},{"type":21,"tag":679,"props":7088,"children":7089},{"style":686},[7090],{"type":26,"value":6885},{"type":21,"tag":679,"props":7092,"children":7093},{"style":686},[7094],{"type":26,"value":7069},{"type":21,"tag":679,"props":7096,"children":7097},{"style":686},[7098],{"type":26,"value":7099}," global.proxy",{"type":21,"tag":679,"props":7101,"children":7102},{"style":686},[7103],{"type":26,"value":6961},{"type":21,"tag":679,"props":7105,"children":7106},{"style":4370},[7107],{"type":26,"value":6966},{"type":21,"tag":679,"props":7109,"children":7110},{"style":686},[7111],{"type":26,"value":6971},{"type":21,"tag":679,"props":7113,"children":7114},{"style":692},[7115],{"type":26,"value":6976},{"type":21,"tag":679,"props":7117,"children":7118},{"style":4370},[7119],{"type":26,"value":6981},{"type":21,"tag":22,"props":7121,"children":7122},{},[7123,7125],{"type":26,"value":7124},"4.安装MinGW ",{"type":21,"tag":78,"props":7126,"children":7129},{"href":7127,"rel":7128},"https:\u002F\u002Fsourceforge.net\u002Fprojects\u002Fmingw\u002F",[82],[7130],{"type":26,"value":7127},{"type":21,"tag":4979,"props":7132,"children":7133},{},[7134],{"type":21,"tag":22,"props":7135,"children":7136},{},[7137,7139],{"type":26,"value":7138},"忘记安装配置怎么选看",{"type":21,"tag":78,"props":7140,"children":7143},{"href":7141,"rel":7142},"https:\u002F\u002Fblog.csdn.net\u002FQuantumYou\u002Farticle\u002Fdetails\u002F119676283",[82],[7144],{"type":26,"value":7145},"这篇博客",{"type":21,"tag":22,"props":7147,"children":7148},{},[7149,7151],{"type":26,"value":7150},"5.安装cmake ",{"type":21,"tag":78,"props":7152,"children":7155},{"href":7153,"rel":7154},"https:\u002F\u002Fcmake.org\u002Fdownload\u002F",[82],[7156],{"type":26,"value":7153},{"type":21,"tag":4979,"props":7158,"children":7159},{},[7160],{"type":21,"tag":22,"props":7161,"children":7162},{},[7163,7165,7171],{"type":26,"value":7164},"如果安装了VS，可以查看路径",{"type":21,"tag":29,"props":7166,"children":7168},{"className":7167},[],[7169],{"type":26,"value":7170},"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin",{"type":26,"value":7172},"，这里面存在VS构建的cmake，上面的cmake可以不用下载。",{"type":21,"tag":22,"props":7174,"children":7175},{},[7176,7178,7184],{"type":26,"value":7177},"6.安装node ",{"type":21,"tag":78,"props":7179,"children":7182},{"href":7180,"rel":7181},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F",[82],[7183],{"type":26,"value":7180},{"type":26,"value":7185},"\nnpm 换源：",{"type":21,"tag":669,"props":7187,"children":7189},{"className":6734,"code":7188,"language":6736,"meta":8,"style":8},"npm config set registry https:\u002F\u002Fregistry.npm.taobao.org\n",[7190],{"type":21,"tag":29,"props":7191,"children":7192},{"__ignoreMap":8},[7193],{"type":21,"tag":679,"props":7194,"children":7195},{"class":681,"line":682},[7196,7201,7205,7209,7214],{"type":21,"tag":679,"props":7197,"children":7198},{"style":3984},[7199],{"type":26,"value":7200},"npm",{"type":21,"tag":679,"props":7202,"children":7203},{"style":686},[7204],{"type":26,"value":6885},{"type":21,"tag":679,"props":7206,"children":7207},{"style":686},[7208],{"type":26,"value":7069},{"type":21,"tag":679,"props":7210,"children":7211},{"style":686},[7212],{"type":26,"value":7213}," registry",{"type":21,"tag":679,"props":7215,"children":7216},{"style":686},[7217],{"type":26,"value":7218}," https:\u002F\u002Fregistry.npm.taobao.org\n",{"type":21,"tag":22,"props":7220,"children":7221},{},[7222,7224,7230,7232,7238],{"type":26,"value":7223},"7.安装go\n1. 找到安装 ",{"type":21,"tag":78,"props":7225,"children":7228},{"href":7226,"rel":7227},"https:\u002F\u002Fgolang.google.cn\u002Fdl\u002F",[82],[7229],{"type":26,"value":7226},{"type":26,"value":7231},"\n2. 配置：\n",{"type":21,"tag":29,"props":7233,"children":7235},{"className":7234},[],[7236],{"type":26,"value":7237},"shell      go env -w GO111MODULE=on      go env -w GOPROXY=https:\u002F\u002Fgoproxy.cn,direct     ",{"type":26,"value":7239},"\n3.如果有必要，设置GOROOT和GOPATH环境变量",{"type":21,"tag":22,"props":7241,"children":7242},{},[7243,7245],{"type":26,"value":7244},"8.安装Java：",{"type":21,"tag":78,"props":7246,"children":7249},{"href":7247,"rel":7248},"https:\u002F\u002Fwww.oracle.com\u002Fhk\u002Fjava\u002Ftechnologies\u002Fdownloads\u002F",[82],[7250],{"type":26,"value":7247},{"type":21,"tag":22,"props":7252,"children":7253},{},[7254],{"type":26,"value":7255},"9.测试以上编译器、解释器能否正常工作。",{"type":21,"tag":22,"props":7257,"children":7258},{},[7259],{"type":26,"value":7260},"10.安装vscode（科学上网），安装后打开并登录GitHub账号进行配置与插件同步（等到左下角的“正在同步”消失后，就可以退出了）",{"type":21,"tag":22,"props":7262,"children":7263},{},[7264],{"type":26,"value":7265},"11.安装VS2022（反正是最新版的就行），安装windows通用开发和C++的。",{"type":21,"tag":22,"props":7267,"children":7268},{},[7269],{"type":26,"value":7270},"五、配置终端",{"type":21,"tag":22,"props":7272,"children":7273},{},[7274],{"type":26,"value":7275},"以管理员权限打开windows terminal，执行下面的指令",{"type":21,"tag":4671,"props":7277,"children":7278},{},[7279],{"type":21,"tag":227,"props":7280,"children":7281},{},[7282],{"type":26,"value":7283},"配置 powershell，安装powershell插件",{"type":21,"tag":669,"props":7285,"children":7287},{"className":6734,"code":7286,"language":6736,"meta":8,"style":8},"# 允许运行Install-Module脚本\nset-executionpolicy remotesigned\n\n# 更新最新版本的PSReadLine，为了自动补全\nInstall-Module PSReadLine -Force\n\n# 创建powershell 的初始化脚本，点击确认创建即可\nnotepad $profile\n\n# 安装几个插件\nInstall-Module posh-git\nInstall-Module Terminal-Icons\n",[7288],{"type":21,"tag":29,"props":7289,"children":7290},{"__ignoreMap":8},[7291,7299,7312,7319,7327,7345,7352,7360,7373,7380,7388,7400],{"type":21,"tag":679,"props":7292,"children":7293},{"class":681,"line":682},[7294],{"type":21,"tag":679,"props":7295,"children":7296},{"style":4011},[7297],{"type":26,"value":7298},"# 允许运行Install-Module脚本\n",{"type":21,"tag":679,"props":7300,"children":7301},{"class":681,"line":698},[7302,7307],{"type":21,"tag":679,"props":7303,"children":7304},{"style":3984},[7305],{"type":26,"value":7306},"set-executionpolicy",{"type":21,"tag":679,"props":7308,"children":7309},{"style":686},[7310],{"type":26,"value":7311}," remotesigned\n",{"type":21,"tag":679,"props":7313,"children":7314},{"class":681,"line":723},[7315],{"type":21,"tag":679,"props":7316,"children":7317},{"emptyLinePlaceholder":3582},[7318],{"type":26,"value":3585},{"type":21,"tag":679,"props":7320,"children":7321},{"class":681,"line":741},[7322],{"type":21,"tag":679,"props":7323,"children":7324},{"style":4011},[7325],{"type":26,"value":7326},"# 更新最新版本的PSReadLine，为了自动补全\n",{"type":21,"tag":679,"props":7328,"children":7329},{"class":681,"line":848},[7330,7335,7340],{"type":21,"tag":679,"props":7331,"children":7332},{"style":3984},[7333],{"type":26,"value":7334},"Install-Module",{"type":21,"tag":679,"props":7336,"children":7337},{"style":686},[7338],{"type":26,"value":7339}," PSReadLine",{"type":21,"tag":679,"props":7341,"children":7342},{"style":702},[7343],{"type":26,"value":7344}," -Force\n",{"type":21,"tag":679,"props":7346,"children":7347},{"class":681,"line":861},[7348],{"type":21,"tag":679,"props":7349,"children":7350},{"emptyLinePlaceholder":3582},[7351],{"type":26,"value":3585},{"type":21,"tag":679,"props":7353,"children":7354},{"class":681,"line":874},[7355],{"type":21,"tag":679,"props":7356,"children":7357},{"style":4011},[7358],{"type":26,"value":7359},"# 创建powershell 的初始化脚本，点击确认创建即可\n",{"type":21,"tag":679,"props":7361,"children":7362},{"class":681,"line":887},[7363,7368],{"type":21,"tag":679,"props":7364,"children":7365},{"style":3984},[7366],{"type":26,"value":7367},"notepad",{"type":21,"tag":679,"props":7369,"children":7370},{"style":692},[7371],{"type":26,"value":7372}," $profile\n",{"type":21,"tag":679,"props":7374,"children":7375},{"class":681,"line":900},[7376],{"type":21,"tag":679,"props":7377,"children":7378},{"emptyLinePlaceholder":3582},[7379],{"type":26,"value":3585},{"type":21,"tag":679,"props":7381,"children":7382},{"class":681,"line":913},[7383],{"type":21,"tag":679,"props":7384,"children":7385},{"style":4011},[7386],{"type":26,"value":7387},"# 安装几个插件\n",{"type":21,"tag":679,"props":7389,"children":7390},{"class":681,"line":922},[7391,7395],{"type":21,"tag":679,"props":7392,"children":7393},{"style":3984},[7394],{"type":26,"value":7334},{"type":21,"tag":679,"props":7396,"children":7397},{"style":686},[7398],{"type":26,"value":7399}," posh-git\n",{"type":21,"tag":679,"props":7401,"children":7402},{"class":681,"line":2194},[7403,7407],{"type":21,"tag":679,"props":7404,"children":7405},{"style":3984},[7406],{"type":26,"value":7334},{"type":21,"tag":679,"props":7408,"children":7409},{"style":686},[7410],{"type":26,"value":7411}," Terminal-Icons\n",{"type":21,"tag":22,"props":7413,"children":7414},{},[7415],{"type":26,"value":7416},"2.安装并配置oh-my-posh",{"type":21,"tag":22,"props":7418,"children":7419},{},[7420],{"type":26,"value":7421},"1.安装oh-my-posh",{"type":21,"tag":669,"props":7423,"children":7425},{"className":6734,"code":7424,"language":6736,"meta":8,"style":8},"winget install JanDeDobbeleer.OhMyPosh -s winget\n",[7426],{"type":21,"tag":29,"props":7427,"children":7428},{"__ignoreMap":8},[7429],{"type":21,"tag":679,"props":7430,"children":7431},{"class":681,"line":682},[7432,7437,7442,7447,7452],{"type":21,"tag":679,"props":7433,"children":7434},{"style":3984},[7435],{"type":26,"value":7436},"winget",{"type":21,"tag":679,"props":7438,"children":7439},{"style":686},[7440],{"type":26,"value":7441}," install",{"type":21,"tag":679,"props":7443,"children":7444},{"style":686},[7445],{"type":26,"value":7446}," JanDeDobbeleer.OhMyPosh",{"type":21,"tag":679,"props":7448,"children":7449},{"style":702},[7450],{"type":26,"value":7451}," -s",{"type":21,"tag":679,"props":7453,"children":7454},{"style":686},[7455],{"type":26,"value":7456}," winget\n",{"type":21,"tag":4979,"props":7458,"children":7459},{},[7460],{"type":21,"tag":22,"props":7461,"children":7462},{},[7463,7465,7472],{"type":26,"value":7464},"如果该方法失效，移步",{"type":21,"tag":78,"props":7466,"children":7469},{"href":7467,"rel":7468},"https:\u002F\u002Fohmyposh.dev\u002Fdocs\u002Finstallation\u002Fwindows",[82],[7470],{"type":26,"value":7471},"oh-my-posh windows set up",{"type":26,"value":7473},"查看最新安装方法",{"type":21,"tag":22,"props":7475,"children":7476},{},[7477],{"type":26,"value":7478},"2.下载oh-my-posh主题",{"type":21,"tag":669,"props":7480,"children":7482},{"className":6734,"code":7481,"language":6736,"meta":8,"style":8},"git clone https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh \n",[7483],{"type":21,"tag":29,"props":7484,"children":7485},{"__ignoreMap":8},[7486],{"type":21,"tag":679,"props":7487,"children":7488},{"class":681,"line":682},[7489,7493,7498],{"type":21,"tag":679,"props":7490,"children":7491},{"style":3984},[7492],{"type":26,"value":6880},{"type":21,"tag":679,"props":7494,"children":7495},{"style":686},[7496],{"type":26,"value":7497}," clone",{"type":21,"tag":679,"props":7499,"children":7500},{"style":686},[7501],{"type":26,"value":7502}," https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh\n",{"type":21,"tag":22,"props":7504,"children":7505},{},[7506],{"type":26,"value":7507},"将里面的theme文件夹保留即可。",{"type":21,"tag":22,"props":7509,"children":7510},{},[7511],{"type":26,"value":7512},"3.测试",{"type":21,"tag":669,"props":7514,"children":7516},{"className":6734,"code":7515,"language":6736,"meta":8,"style":8},"oh-my-posh init pwsh | Invoke-Expression\n",[7517],{"type":21,"tag":29,"props":7518,"children":7519},{"__ignoreMap":8},[7520],{"type":21,"tag":679,"props":7521,"children":7522},{"class":681,"line":682},[7523,7528,7533,7538,7543],{"type":21,"tag":679,"props":7524,"children":7525},{"style":3984},[7526],{"type":26,"value":7527},"oh-my-posh",{"type":21,"tag":679,"props":7529,"children":7530},{"style":686},[7531],{"type":26,"value":7532}," init",{"type":21,"tag":679,"props":7534,"children":7535},{"style":686},[7536],{"type":26,"value":7537}," pwsh",{"type":21,"tag":679,"props":7539,"children":7540},{"style":4370},[7541],{"type":26,"value":7542}," |",{"type":21,"tag":679,"props":7544,"children":7545},{"style":3984},[7546],{"type":26,"value":7547}," Invoke-Expression\n",{"type":21,"tag":22,"props":7549,"children":7550},{},[7551],{"type":26,"value":7552},"3.配置整体运行文件",{"type":21,"tag":669,"props":7554,"children":7556},{"className":6734,"code":7555,"language":6736,"meta":8,"style":8},"notepad++ $profile\n",[7557],{"type":21,"tag":29,"props":7558,"children":7559},{"__ignoreMap":8},[7560],{"type":21,"tag":679,"props":7561,"children":7562},{"class":681,"line":682},[7563,7568],{"type":21,"tag":679,"props":7564,"children":7565},{"style":3984},[7566],{"type":26,"value":7567},"notepad++",{"type":21,"tag":679,"props":7569,"children":7570},{"style":692},[7571],{"type":26,"value":7372},{"type":21,"tag":22,"props":7573,"children":7574},{},[7575],{"type":26,"value":7576},"将以下文本写入其中：",{"type":21,"tag":669,"props":7578,"children":7580},{"className":6734,"code":7579,"language":6736,"meta":8,"style":8},"oh-my-posh init pwsh --config \u003C主题路径（json文件）> | Invoke-Expression\nImport-Module posh-git\nImport-Module Terminal-Icons\nSet-PSReadLineOption -PredictionSource History\nSet-PSReadlineKeyHandler -Key Tab -Function MenuComplete\n",[7581],{"type":21,"tag":29,"props":7582,"children":7583},{"__ignoreMap":8},[7584,7630,7642,7653,7671],{"type":21,"tag":679,"props":7585,"children":7586},{"class":681,"line":682},[7587,7591,7595,7599,7604,7609,7614,7618,7622,7626],{"type":21,"tag":679,"props":7588,"children":7589},{"style":3984},[7590],{"type":26,"value":7527},{"type":21,"tag":679,"props":7592,"children":7593},{"style":686},[7594],{"type":26,"value":7532},{"type":21,"tag":679,"props":7596,"children":7597},{"style":686},[7598],{"type":26,"value":7537},{"type":21,"tag":679,"props":7600,"children":7601},{"style":702},[7602],{"type":26,"value":7603}," --config",{"type":21,"tag":679,"props":7605,"children":7606},{"style":4370},[7607],{"type":26,"value":7608}," \u003C",{"type":21,"tag":679,"props":7610,"children":7611},{"style":686},[7612],{"type":26,"value":7613},"主题路径（json文件",{"type":21,"tag":679,"props":7615,"children":7616},{"style":692},[7617],{"type":26,"value":344},{"type":21,"tag":679,"props":7619,"children":7620},{"style":4370},[7621],{"type":26,"value":6783},{"type":21,"tag":679,"props":7623,"children":7624},{"style":4370},[7625],{"type":26,"value":7542},{"type":21,"tag":679,"props":7627,"children":7628},{"style":3984},[7629],{"type":26,"value":7547},{"type":21,"tag":679,"props":7631,"children":7632},{"class":681,"line":698},[7633,7638],{"type":21,"tag":679,"props":7634,"children":7635},{"style":3984},[7636],{"type":26,"value":7637},"Import-Module",{"type":21,"tag":679,"props":7639,"children":7640},{"style":686},[7641],{"type":26,"value":7399},{"type":21,"tag":679,"props":7643,"children":7644},{"class":681,"line":723},[7645,7649],{"type":21,"tag":679,"props":7646,"children":7647},{"style":3984},[7648],{"type":26,"value":7637},{"type":21,"tag":679,"props":7650,"children":7651},{"style":686},[7652],{"type":26,"value":7411},{"type":21,"tag":679,"props":7654,"children":7655},{"class":681,"line":741},[7656,7661,7666],{"type":21,"tag":679,"props":7657,"children":7658},{"style":3984},[7659],{"type":26,"value":7660},"Set-PSReadLineOption",{"type":21,"tag":679,"props":7662,"children":7663},{"style":702},[7664],{"type":26,"value":7665}," -PredictionSource",{"type":21,"tag":679,"props":7667,"children":7668},{"style":686},[7669],{"type":26,"value":7670}," History\n",{"type":21,"tag":679,"props":7672,"children":7673},{"class":681,"line":848},[7674,7679,7684,7689,7694],{"type":21,"tag":679,"props":7675,"children":7676},{"style":3984},[7677],{"type":26,"value":7678},"Set-PSReadlineKeyHandler",{"type":21,"tag":679,"props":7680,"children":7681},{"style":702},[7682],{"type":26,"value":7683}," -Key",{"type":21,"tag":679,"props":7685,"children":7686},{"style":686},[7687],{"type":26,"value":7688}," Tab",{"type":21,"tag":679,"props":7690,"children":7691},{"style":702},[7692],{"type":26,"value":7693}," -Function",{"type":21,"tag":679,"props":7695,"children":7696},{"style":686},[7697],{"type":26,"value":7698}," MenuComplete\n",{"type":21,"tag":22,"props":7700,"children":7701},{},[7702],{"type":26,"value":7703},"重新打开terminal查看安装效果",{"type":21,"tag":69,"props":7705,"children":7707},{"id":7706},"六安装wsl2",[7708],{"type":26,"value":7709},"六、安装WSL2",{"type":21,"tag":22,"props":7711,"children":7712},{},[7713,7718],{"type":21,"tag":294,"props":7714,"children":7715},{},[7716],{"type":26,"value":7717},"以管理员身份",{"type":26,"value":7719},"打开windows terminal",{"type":21,"tag":669,"props":7721,"children":7723},{"className":3972,"code":7722,"language":3974,"meta":8,"style":8},"# 开启VM组件 开启后需要重启电脑\nEnable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform\n\n# 列出可安装的安装包\nwsl --list --online\n\n# 安装你想要的发行版，我这里是Ubuntu-22.04\nwsl --install -d Ubuntu-22.04\n\n# 设置为wsl2\nwsl --set-default-version 2\n",[7724],{"type":21,"tag":29,"props":7725,"children":7726},{"__ignoreMap":8},[7727,7735,7758,7765,7773,7791,7798,7806,7828,7835,7843],{"type":21,"tag":679,"props":7728,"children":7729},{"class":681,"line":682},[7730],{"type":21,"tag":679,"props":7731,"children":7732},{"style":4011},[7733],{"type":26,"value":7734},"# 开启VM组件 开启后需要重启电脑\n",{"type":21,"tag":679,"props":7736,"children":7737},{"class":681,"line":698},[7738,7743,7748,7753],{"type":21,"tag":679,"props":7739,"children":7740},{"style":3984},[7741],{"type":26,"value":7742},"Enable-WindowsOptionalFeature",{"type":21,"tag":679,"props":7744,"children":7745},{"style":702},[7746],{"type":26,"value":7747}," -Online",{"type":21,"tag":679,"props":7749,"children":7750},{"style":702},[7751],{"type":26,"value":7752}," -FeatureName",{"type":21,"tag":679,"props":7754,"children":7755},{"style":686},[7756],{"type":26,"value":7757}," VirtualMachinePlatform\n",{"type":21,"tag":679,"props":7759,"children":7760},{"class":681,"line":723},[7761],{"type":21,"tag":679,"props":7762,"children":7763},{"emptyLinePlaceholder":3582},[7764],{"type":26,"value":3585},{"type":21,"tag":679,"props":7766,"children":7767},{"class":681,"line":741},[7768],{"type":21,"tag":679,"props":7769,"children":7770},{"style":4011},[7771],{"type":26,"value":7772},"# 列出可安装的安装包\n",{"type":21,"tag":679,"props":7774,"children":7775},{"class":681,"line":848},[7776,7781,7786],{"type":21,"tag":679,"props":7777,"children":7778},{"style":3984},[7779],{"type":26,"value":7780},"wsl",{"type":21,"tag":679,"props":7782,"children":7783},{"style":702},[7784],{"type":26,"value":7785}," --list",{"type":21,"tag":679,"props":7787,"children":7788},{"style":702},[7789],{"type":26,"value":7790}," --online\n",{"type":21,"tag":679,"props":7792,"children":7793},{"class":681,"line":861},[7794],{"type":21,"tag":679,"props":7795,"children":7796},{"emptyLinePlaceholder":3582},[7797],{"type":26,"value":3585},{"type":21,"tag":679,"props":7799,"children":7800},{"class":681,"line":874},[7801],{"type":21,"tag":679,"props":7802,"children":7803},{"style":4011},[7804],{"type":26,"value":7805},"# 安装你想要的发行版，我这里是Ubuntu-22.04\n",{"type":21,"tag":679,"props":7807,"children":7808},{"class":681,"line":887},[7809,7813,7818,7823],{"type":21,"tag":679,"props":7810,"children":7811},{"style":3984},[7812],{"type":26,"value":7780},{"type":21,"tag":679,"props":7814,"children":7815},{"style":702},[7816],{"type":26,"value":7817}," --install",{"type":21,"tag":679,"props":7819,"children":7820},{"style":702},[7821],{"type":26,"value":7822}," -d",{"type":21,"tag":679,"props":7824,"children":7825},{"style":686},[7826],{"type":26,"value":7827}," Ubuntu-22.04\n",{"type":21,"tag":679,"props":7829,"children":7830},{"class":681,"line":900},[7831],{"type":21,"tag":679,"props":7832,"children":7833},{"emptyLinePlaceholder":3582},[7834],{"type":26,"value":3585},{"type":21,"tag":679,"props":7836,"children":7837},{"class":681,"line":913},[7838],{"type":21,"tag":679,"props":7839,"children":7840},{"style":4011},[7841],{"type":26,"value":7842},"# 设置为wsl2\n",{"type":21,"tag":679,"props":7844,"children":7845},{"class":681,"line":922},[7846,7850,7855],{"type":21,"tag":679,"props":7847,"children":7848},{"style":3984},[7849],{"type":26,"value":7780},{"type":21,"tag":679,"props":7851,"children":7852},{"style":702},[7853],{"type":26,"value":7854}," --set-default-version",{"type":21,"tag":679,"props":7856,"children":7857},{"style":702},[7858],{"type":26,"value":7859}," 2\n",{"type":21,"tag":22,"props":7861,"children":7862},{},[7863],{"type":26,"value":7864},"WSL可以简单的创建多个发行版，并进行管理和切换。并且可以对接VS code及Jetbrain(学生可以申请专业版！！快去)等IDE。支持CUDA，docker，并且享受linux命令行的各种工具。掌握使用WSL是重要的。\n现在来举例一些基本的操作。",{"type":21,"tag":669,"props":7866,"children":7868},{"className":3972,"code":7867,"language":3974,"meta":8,"style":8},"# 列出已安装的Linux发行版\nwsl -l -v\n# 导出\u002F备份\nwsl --export Ubuntu-22.04 Ubuntu-22.04.tar\n# 导入\u002F还原\u002F利用备份创建新的安装\n# wsl --import \u003Cwsl_name> \u003Croute> \u003Csource>\nwsl --import Anaconda C:\\Users\\niina\\root\\var\\wsl\\anaconda\n",[7869],{"type":21,"tag":29,"props":7870,"children":7871},{"__ignoreMap":8},[7872,7880,7897,7905,7927,7935,7943],{"type":21,"tag":679,"props":7873,"children":7874},{"class":681,"line":682},[7875],{"type":21,"tag":679,"props":7876,"children":7877},{"style":4011},[7878],{"type":26,"value":7879},"# 列出已安装的Linux发行版\n",{"type":21,"tag":679,"props":7881,"children":7882},{"class":681,"line":698},[7883,7887,7892],{"type":21,"tag":679,"props":7884,"children":7885},{"style":3984},[7886],{"type":26,"value":7780},{"type":21,"tag":679,"props":7888,"children":7889},{"style":702},[7890],{"type":26,"value":7891}," -l",{"type":21,"tag":679,"props":7893,"children":7894},{"style":702},[7895],{"type":26,"value":7896}," -v\n",{"type":21,"tag":679,"props":7898,"children":7899},{"class":681,"line":723},[7900],{"type":21,"tag":679,"props":7901,"children":7902},{"style":4011},[7903],{"type":26,"value":7904},"# 导出\u002F备份\n",{"type":21,"tag":679,"props":7906,"children":7907},{"class":681,"line":741},[7908,7912,7917,7922],{"type":21,"tag":679,"props":7909,"children":7910},{"style":3984},[7911],{"type":26,"value":7780},{"type":21,"tag":679,"props":7913,"children":7914},{"style":702},[7915],{"type":26,"value":7916}," --export",{"type":21,"tag":679,"props":7918,"children":7919},{"style":686},[7920],{"type":26,"value":7921}," Ubuntu-22.04",{"type":21,"tag":679,"props":7923,"children":7924},{"style":686},[7925],{"type":26,"value":7926}," Ubuntu-22.04.tar\n",{"type":21,"tag":679,"props":7928,"children":7929},{"class":681,"line":848},[7930],{"type":21,"tag":679,"props":7931,"children":7932},{"style":4011},[7933],{"type":26,"value":7934},"# 导入\u002F还原\u002F利用备份创建新的安装\n",{"type":21,"tag":679,"props":7936,"children":7937},{"class":681,"line":861},[7938],{"type":21,"tag":679,"props":7939,"children":7940},{"style":4011},[7941],{"type":26,"value":7942},"# wsl --import \u003Cwsl_name> \u003Croute> \u003Csource>\n",{"type":21,"tag":679,"props":7944,"children":7945},{"class":681,"line":874},[7946,7950,7955,7960,7964,7968,7972,7977,7982,7987,7992,7997,8002,8007,8012,8017],{"type":21,"tag":679,"props":7947,"children":7948},{"style":3984},[7949],{"type":26,"value":7780},{"type":21,"tag":679,"props":7951,"children":7952},{"style":702},[7953],{"type":26,"value":7954}," --import",{"type":21,"tag":679,"props":7956,"children":7957},{"style":686},[7958],{"type":26,"value":7959}," Anaconda",{"type":21,"tag":679,"props":7961,"children":7962},{"style":686},[7963],{"type":26,"value":6753},{"type":21,"tag":679,"props":7965,"children":7966},{"style":702},[7967],{"type":26,"value":6758},{"type":21,"tag":679,"props":7969,"children":7970},{"style":686},[7971],{"type":26,"value":6763},{"type":21,"tag":679,"props":7973,"children":7974},{"style":702},[7975],{"type":26,"value":7976},"\\n",{"type":21,"tag":679,"props":7978,"children":7979},{"style":686},[7980],{"type":26,"value":7981},"iina",{"type":21,"tag":679,"props":7983,"children":7984},{"style":702},[7985],{"type":26,"value":7986},"\\r",{"type":21,"tag":679,"props":7988,"children":7989},{"style":686},[7990],{"type":26,"value":7991},"oot",{"type":21,"tag":679,"props":7993,"children":7994},{"style":702},[7995],{"type":26,"value":7996},"\\v",{"type":21,"tag":679,"props":7998,"children":7999},{"style":686},[8000],{"type":26,"value":8001},"ar",{"type":21,"tag":679,"props":8003,"children":8004},{"style":702},[8005],{"type":26,"value":8006},"\\w",{"type":21,"tag":679,"props":8008,"children":8009},{"style":686},[8010],{"type":26,"value":8011},"sl",{"type":21,"tag":679,"props":8013,"children":8014},{"style":702},[8015],{"type":26,"value":8016},"\\a",{"type":21,"tag":679,"props":8018,"children":8019},{"style":686},[8020],{"type":26,"value":8021},"naconda\n",{"type":21,"tag":22,"props":8023,"children":8024},{},[8025],{"type":26,"value":8026},"以上操作完成后，在win+Q(或win)中搜索ubuntu on Windows，打开，完成安装和账号注册（Unix账号必须是开头小写的单词）",{"type":21,"tag":22,"props":8028,"children":8029},{},[8030],{"type":26,"value":8031},"完成后打开windows terminal的下拉菜单，会发现多出了一个Ubuntu的标签页。后面移步Linux的配置。",{"type":21,"tag":22,"props":8033,"children":8034},{},[8035,8037,8044,8046],{"type":26,"value":8036},"WSL学习使用：",{"type":21,"tag":78,"props":8038,"children":8041},{"href":8039,"rel":8040},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fwindows\u002Fwsl\u002F",[82],[8042],{"type":26,"value":8043},"适用于 Linux 的 Windows 子系统文档 | Microsoft Learn",{"type":26,"value":8045},"\n开源的一个WSL入门手册： ",{"type":21,"tag":78,"props":8047,"children":8050},{"href":8048,"rel":8049},"https:\u002F\u002Fdowww.spencerwoo.com\u002F",[82],[8051],{"type":26,"value":8052},"在Windows上优雅地使用WSL开发",{"type":21,"tag":22,"props":8054,"children":8055},{},[8056],{"type":26,"value":8057},"七、兴趣爱好",{"type":21,"tag":223,"props":8059,"children":8060},{},[8061,8072,8082,8087,8097,8107,8117],{"type":21,"tag":227,"props":8062,"children":8063},{},[8064,8066],{"type":26,"value":8065},"cuDNN开发套件（用于开发kernel op和安装编译torch cuda） ",{"type":21,"tag":78,"props":8067,"children":8070},{"href":8068,"rel":8069},"https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-downloads",[82],[8071],{"type":26,"value":8068},{"type":21,"tag":227,"props":8073,"children":8074},{},[8075],{"type":21,"tag":78,"props":8076,"children":8079},{"href":8077,"rel":8078},"https:\u002F\u002Fwww.flstudiochina.com\u002Fxiazai.html",[82],[8080],{"type":26,"value":8081},"FL Studio",{"type":21,"tag":227,"props":8083,"children":8084},{},[8085],{"type":26,"value":8086},"Cubase",{"type":21,"tag":227,"props":8088,"children":8089},{},[8090],{"type":21,"tag":78,"props":8091,"children":8094},{"href":8092,"rel":8093},"https:\u002F\u002Fwww.reaper.fm\u002Fdownload.php",[82],[8095],{"type":26,"value":8096},"REAPER",{"type":21,"tag":227,"props":8098,"children":8099},{},[8100],{"type":21,"tag":78,"props":8101,"children":8104},{"href":8102,"rel":8103},"https:\u002F\u002Fdreamtonics.com\u002Fen\u002Fsynthesizerv\u002F",[82],[8105],{"type":26,"value":8106},"Synthesizer V",{"type":21,"tag":227,"props":8108,"children":8109},{},[8110],{"type":21,"tag":78,"props":8111,"children":8114},{"href":8112,"rel":8113},"https:\u002F\u002Fstore.steampowered.com\u002Fabout\u002F",[82],[8115],{"type":26,"value":8116},"Steam",{"type":21,"tag":227,"props":8118,"children":8119},{},[8120,8122],{"type":26,"value":8121},"ACE studio  ",{"type":21,"tag":78,"props":8123,"children":8126},{"href":8124,"rel":8125},"https:\u002F\u002Face-studio.timedomain.cn\u002F",[82],[8127],{"type":26,"value":8124},{"type":21,"tag":69,"props":8129,"children":8131},{"id":8130},"linux",[8132],{"type":26,"value":8133},"Linux",{"type":21,"tag":346,"props":8135,"children":8137},{"id":8136},"一apt换源",[8138],{"type":26,"value":8139},"一、apt换源",{"type":21,"tag":22,"props":8141,"children":8142},{},[8143],{"type":26,"value":8144},"操作如下。",{"type":21,"tag":669,"props":8146,"children":8148},{"className":6734,"code":8147,"language":6736,"meta":8,"style":8},"cd \u002Fetc\u002Fapt\u002F\n\n# 留个source备份\nsudo cp sources.list sources.list.backup\n\n# 使用源\nsudo vim sources.list\n",[8149],{"type":21,"tag":29,"props":8150,"children":8151},{"__ignoreMap":8},[8152,8164,8171,8179,8202,8209,8217],{"type":21,"tag":679,"props":8153,"children":8154},{"class":681,"line":682},[8155,8159],{"type":21,"tag":679,"props":8156,"children":8157},{"style":702},[8158],{"type":26,"value":6748},{"type":21,"tag":679,"props":8160,"children":8161},{"style":686},[8162],{"type":26,"value":8163}," \u002Fetc\u002Fapt\u002F\n",{"type":21,"tag":679,"props":8165,"children":8166},{"class":681,"line":698},[8167],{"type":21,"tag":679,"props":8168,"children":8169},{"emptyLinePlaceholder":3582},[8170],{"type":26,"value":3585},{"type":21,"tag":679,"props":8172,"children":8173},{"class":681,"line":723},[8174],{"type":21,"tag":679,"props":8175,"children":8176},{"style":4011},[8177],{"type":26,"value":8178},"# 留个source备份\n",{"type":21,"tag":679,"props":8180,"children":8181},{"class":681,"line":741},[8182,8187,8192,8197],{"type":21,"tag":679,"props":8183,"children":8184},{"style":3984},[8185],{"type":26,"value":8186},"sudo",{"type":21,"tag":679,"props":8188,"children":8189},{"style":686},[8190],{"type":26,"value":8191}," cp",{"type":21,"tag":679,"props":8193,"children":8194},{"style":686},[8195],{"type":26,"value":8196}," sources.list",{"type":21,"tag":679,"props":8198,"children":8199},{"style":686},[8200],{"type":26,"value":8201}," sources.list.backup\n",{"type":21,"tag":679,"props":8203,"children":8204},{"class":681,"line":848},[8205],{"type":21,"tag":679,"props":8206,"children":8207},{"emptyLinePlaceholder":3582},[8208],{"type":26,"value":3585},{"type":21,"tag":679,"props":8210,"children":8211},{"class":681,"line":861},[8212],{"type":21,"tag":679,"props":8213,"children":8214},{"style":4011},[8215],{"type":26,"value":8216},"# 使用源\n",{"type":21,"tag":679,"props":8218,"children":8219},{"class":681,"line":874},[8220,8224,8229],{"type":21,"tag":679,"props":8221,"children":8222},{"style":3984},[8223],{"type":26,"value":8186},{"type":21,"tag":679,"props":8225,"children":8226},{"style":686},[8227],{"type":26,"value":8228}," vim",{"type":21,"tag":679,"props":8230,"children":8231},{"style":686},[8232],{"type":26,"value":8233}," sources.list\n",{"type":21,"tag":22,"props":8235,"children":8236},{},[8237,8239,8245,8247,8254],{"type":26,"value":8238},"写入：(根据ubuntu版本号自己查, ",{"type":21,"tag":29,"props":8240,"children":8242},{"className":8241},[],[8243],{"type":26,"value":8244},"cat \u002Fetc\u002Fos-release",{"type":26,"value":8246},")\n清华源给出的Ubuntu22.04源的网址 ",{"type":21,"tag":78,"props":8248,"children":8251},{"href":8249,"rel":8250},"https:\u002F\u002Fmirrors.tuna.tsinghua.edu.cn\u002Fhelp\u002Fubuntu\u002F",[82],[8252],{"type":26,"value":8253},"Ubuntu",{"type":26,"value":8255},"\n下面是同版本阿里云的源，复制粘贴进即可。",{"type":21,"tag":669,"props":8257,"children":8259},{"className":6734,"code":8258,"language":6736,"meta":8,"style":8},"## aliyun mirrors\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-security main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-security main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-updates main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-updates main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-proposed main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-proposed main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-backports main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-backports main restricted universe multiverse\n## aliyun mirrors End\n",[8260],{"type":21,"tag":29,"props":8261,"children":8262},{"__ignoreMap":8},[8263,8271,8309,8341,8348,8380,8411,8418,8450,8481,8488,8520,8551,8558,8590,8621],{"type":21,"tag":679,"props":8264,"children":8265},{"class":681,"line":682},[8266],{"type":21,"tag":679,"props":8267,"children":8268},{"style":4011},[8269],{"type":26,"value":8270},"## aliyun mirrors\n",{"type":21,"tag":679,"props":8272,"children":8273},{"class":681,"line":698},[8274,8279,8284,8289,8294,8299,8304],{"type":21,"tag":679,"props":8275,"children":8276},{"style":3984},[8277],{"type":26,"value":8278},"deb",{"type":21,"tag":679,"props":8280,"children":8281},{"style":686},[8282],{"type":26,"value":8283}," http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F",{"type":21,"tag":679,"props":8285,"children":8286},{"style":686},[8287],{"type":26,"value":8288}," jammy",{"type":21,"tag":679,"props":8290,"children":8291},{"style":686},[8292],{"type":26,"value":8293}," main",{"type":21,"tag":679,"props":8295,"children":8296},{"style":686},[8297],{"type":26,"value":8298}," restricted",{"type":21,"tag":679,"props":8300,"children":8301},{"style":686},[8302],{"type":26,"value":8303}," universe",{"type":21,"tag":679,"props":8305,"children":8306},{"style":686},[8307],{"type":26,"value":8308}," multiverse\n",{"type":21,"tag":679,"props":8310,"children":8311},{"class":681,"line":723},[8312,8317,8321,8325,8329,8333,8337],{"type":21,"tag":679,"props":8313,"children":8314},{"style":3984},[8315],{"type":26,"value":8316},"deb-src",{"type":21,"tag":679,"props":8318,"children":8319},{"style":686},[8320],{"type":26,"value":8283},{"type":21,"tag":679,"props":8322,"children":8323},{"style":686},[8324],{"type":26,"value":8288},{"type":21,"tag":679,"props":8326,"children":8327},{"style":686},[8328],{"type":26,"value":8293},{"type":21,"tag":679,"props":8330,"children":8331},{"style":686},[8332],{"type":26,"value":8298},{"type":21,"tag":679,"props":8334,"children":8335},{"style":686},[8336],{"type":26,"value":8303},{"type":21,"tag":679,"props":8338,"children":8339},{"style":686},[8340],{"type":26,"value":8308},{"type":21,"tag":679,"props":8342,"children":8343},{"class":681,"line":741},[8344],{"type":21,"tag":679,"props":8345,"children":8346},{"emptyLinePlaceholder":3582},[8347],{"type":26,"value":3585},{"type":21,"tag":679,"props":8349,"children":8350},{"class":681,"line":848},[8351,8355,8359,8364,8368,8372,8376],{"type":21,"tag":679,"props":8352,"children":8353},{"style":3984},[8354],{"type":26,"value":8278},{"type":21,"tag":679,"props":8356,"children":8357},{"style":686},[8358],{"type":26,"value":8283},{"type":21,"tag":679,"props":8360,"children":8361},{"style":686},[8362],{"type":26,"value":8363}," jammy-security",{"type":21,"tag":679,"props":8365,"children":8366},{"style":686},[8367],{"type":26,"value":8293},{"type":21,"tag":679,"props":8369,"children":8370},{"style":686},[8371],{"type":26,"value":8298},{"type":21,"tag":679,"props":8373,"children":8374},{"style":686},[8375],{"type":26,"value":8303},{"type":21,"tag":679,"props":8377,"children":8378},{"style":686},[8379],{"type":26,"value":8308},{"type":21,"tag":679,"props":8381,"children":8382},{"class":681,"line":861},[8383,8387,8391,8395,8399,8403,8407],{"type":21,"tag":679,"props":8384,"children":8385},{"style":3984},[8386],{"type":26,"value":8316},{"type":21,"tag":679,"props":8388,"children":8389},{"style":686},[8390],{"type":26,"value":8283},{"type":21,"tag":679,"props":8392,"children":8393},{"style":686},[8394],{"type":26,"value":8363},{"type":21,"tag":679,"props":8396,"children":8397},{"style":686},[8398],{"type":26,"value":8293},{"type":21,"tag":679,"props":8400,"children":8401},{"style":686},[8402],{"type":26,"value":8298},{"type":21,"tag":679,"props":8404,"children":8405},{"style":686},[8406],{"type":26,"value":8303},{"type":21,"tag":679,"props":8408,"children":8409},{"style":686},[8410],{"type":26,"value":8308},{"type":21,"tag":679,"props":8412,"children":8413},{"class":681,"line":874},[8414],{"type":21,"tag":679,"props":8415,"children":8416},{"emptyLinePlaceholder":3582},[8417],{"type":26,"value":3585},{"type":21,"tag":679,"props":8419,"children":8420},{"class":681,"line":887},[8421,8425,8429,8434,8438,8442,8446],{"type":21,"tag":679,"props":8422,"children":8423},{"style":3984},[8424],{"type":26,"value":8278},{"type":21,"tag":679,"props":8426,"children":8427},{"style":686},[8428],{"type":26,"value":8283},{"type":21,"tag":679,"props":8430,"children":8431},{"style":686},[8432],{"type":26,"value":8433}," jammy-updates",{"type":21,"tag":679,"props":8435,"children":8436},{"style":686},[8437],{"type":26,"value":8293},{"type":21,"tag":679,"props":8439,"children":8440},{"style":686},[8441],{"type":26,"value":8298},{"type":21,"tag":679,"props":8443,"children":8444},{"style":686},[8445],{"type":26,"value":8303},{"type":21,"tag":679,"props":8447,"children":8448},{"style":686},[8449],{"type":26,"value":8308},{"type":21,"tag":679,"props":8451,"children":8452},{"class":681,"line":900},[8453,8457,8461,8465,8469,8473,8477],{"type":21,"tag":679,"props":8454,"children":8455},{"style":3984},[8456],{"type":26,"value":8316},{"type":21,"tag":679,"props":8458,"children":8459},{"style":686},[8460],{"type":26,"value":8283},{"type":21,"tag":679,"props":8462,"children":8463},{"style":686},[8464],{"type":26,"value":8433},{"type":21,"tag":679,"props":8466,"children":8467},{"style":686},[8468],{"type":26,"value":8293},{"type":21,"tag":679,"props":8470,"children":8471},{"style":686},[8472],{"type":26,"value":8298},{"type":21,"tag":679,"props":8474,"children":8475},{"style":686},[8476],{"type":26,"value":8303},{"type":21,"tag":679,"props":8478,"children":8479},{"style":686},[8480],{"type":26,"value":8308},{"type":21,"tag":679,"props":8482,"children":8483},{"class":681,"line":913},[8484],{"type":21,"tag":679,"props":8485,"children":8486},{"emptyLinePlaceholder":3582},[8487],{"type":26,"value":3585},{"type":21,"tag":679,"props":8489,"children":8490},{"class":681,"line":922},[8491,8495,8499,8504,8508,8512,8516],{"type":21,"tag":679,"props":8492,"children":8493},{"style":3984},[8494],{"type":26,"value":8278},{"type":21,"tag":679,"props":8496,"children":8497},{"style":686},[8498],{"type":26,"value":8283},{"type":21,"tag":679,"props":8500,"children":8501},{"style":686},[8502],{"type":26,"value":8503}," jammy-proposed",{"type":21,"tag":679,"props":8505,"children":8506},{"style":686},[8507],{"type":26,"value":8293},{"type":21,"tag":679,"props":8509,"children":8510},{"style":686},[8511],{"type":26,"value":8298},{"type":21,"tag":679,"props":8513,"children":8514},{"style":686},[8515],{"type":26,"value":8303},{"type":21,"tag":679,"props":8517,"children":8518},{"style":686},[8519],{"type":26,"value":8308},{"type":21,"tag":679,"props":8521,"children":8522},{"class":681,"line":2194},[8523,8527,8531,8535,8539,8543,8547],{"type":21,"tag":679,"props":8524,"children":8525},{"style":3984},[8526],{"type":26,"value":8316},{"type":21,"tag":679,"props":8528,"children":8529},{"style":686},[8530],{"type":26,"value":8283},{"type":21,"tag":679,"props":8532,"children":8533},{"style":686},[8534],{"type":26,"value":8503},{"type":21,"tag":679,"props":8536,"children":8537},{"style":686},[8538],{"type":26,"value":8293},{"type":21,"tag":679,"props":8540,"children":8541},{"style":686},[8542],{"type":26,"value":8298},{"type":21,"tag":679,"props":8544,"children":8545},{"style":686},[8546],{"type":26,"value":8303},{"type":21,"tag":679,"props":8548,"children":8549},{"style":686},[8550],{"type":26,"value":8308},{"type":21,"tag":679,"props":8552,"children":8553},{"class":681,"line":2211},[8554],{"type":21,"tag":679,"props":8555,"children":8556},{"emptyLinePlaceholder":3582},[8557],{"type":26,"value":3585},{"type":21,"tag":679,"props":8559,"children":8560},{"class":681,"line":2219},[8561,8565,8569,8574,8578,8582,8586],{"type":21,"tag":679,"props":8562,"children":8563},{"style":3984},[8564],{"type":26,"value":8278},{"type":21,"tag":679,"props":8566,"children":8567},{"style":686},[8568],{"type":26,"value":8283},{"type":21,"tag":679,"props":8570,"children":8571},{"style":686},[8572],{"type":26,"value":8573}," jammy-backports",{"type":21,"tag":679,"props":8575,"children":8576},{"style":686},[8577],{"type":26,"value":8293},{"type":21,"tag":679,"props":8579,"children":8580},{"style":686},[8581],{"type":26,"value":8298},{"type":21,"tag":679,"props":8583,"children":8584},{"style":686},[8585],{"type":26,"value":8303},{"type":21,"tag":679,"props":8587,"children":8588},{"style":686},[8589],{"type":26,"value":8308},{"type":21,"tag":679,"props":8591,"children":8592},{"class":681,"line":2241},[8593,8597,8601,8605,8609,8613,8617],{"type":21,"tag":679,"props":8594,"children":8595},{"style":3984},[8596],{"type":26,"value":8316},{"type":21,"tag":679,"props":8598,"children":8599},{"style":686},[8600],{"type":26,"value":8283},{"type":21,"tag":679,"props":8602,"children":8603},{"style":686},[8604],{"type":26,"value":8573},{"type":21,"tag":679,"props":8606,"children":8607},{"style":686},[8608],{"type":26,"value":8293},{"type":21,"tag":679,"props":8610,"children":8611},{"style":686},[8612],{"type":26,"value":8298},{"type":21,"tag":679,"props":8614,"children":8615},{"style":686},[8616],{"type":26,"value":8303},{"type":21,"tag":679,"props":8618,"children":8619},{"style":686},[8620],{"type":26,"value":8308},{"type":21,"tag":679,"props":8622,"children":8623},{"class":681,"line":2254},[8624],{"type":21,"tag":679,"props":8625,"children":8626},{"style":4011},[8627],{"type":26,"value":8628},"## aliyun mirrors End\n",{"type":21,"tag":22,"props":8630,"children":8631},{},[8632],{"type":26,"value":8633},"保存退出。",{"type":21,"tag":22,"props":8635,"children":8636},{},[8637],{"type":26,"value":8638},"移除自带的包（因为可能和国内源的软件有冲突）",{"type":21,"tag":669,"props":8640,"children":8642},{"className":4171,"code":8641,"language":4173,"meta":8,"style":8},"sudo apt remove ubuntu-advantage-tools\n",[8643],{"type":21,"tag":29,"props":8644,"children":8645},{"__ignoreMap":8},[8646],{"type":21,"tag":679,"props":8647,"children":8648},{"class":681,"line":682},[8649,8653,8658,8663],{"type":21,"tag":679,"props":8650,"children":8651},{"style":3984},[8652],{"type":26,"value":8186},{"type":21,"tag":679,"props":8654,"children":8655},{"style":686},[8656],{"type":26,"value":8657}," apt",{"type":21,"tag":679,"props":8659,"children":8660},{"style":686},[8661],{"type":26,"value":8662}," remove",{"type":21,"tag":679,"props":8664,"children":8665},{"style":686},[8666],{"type":26,"value":8667}," ubuntu-advantage-tools\n",{"type":21,"tag":22,"props":8669,"children":8670},{},[8671],{"type":26,"value":8672},"更新包管理器：",{"type":21,"tag":669,"props":8674,"children":8676},{"className":3972,"code":8675,"language":3974,"meta":8,"style":8},"sudo apt update && sudo apt upgrade\nsudo apt-get update\n",[8677],{"type":21,"tag":29,"props":8678,"children":8679},{"__ignoreMap":8},[8680,8714],{"type":21,"tag":679,"props":8681,"children":8682},{"class":681,"line":682},[8683,8687,8691,8696,8701,8705,8709],{"type":21,"tag":679,"props":8684,"children":8685},{"style":3984},[8686],{"type":26,"value":8186},{"type":21,"tag":679,"props":8688,"children":8689},{"style":686},[8690],{"type":26,"value":8657},{"type":21,"tag":679,"props":8692,"children":8693},{"style":686},[8694],{"type":26,"value":8695}," update",{"type":21,"tag":679,"props":8697,"children":8698},{"style":692},[8699],{"type":26,"value":8700}," && ",{"type":21,"tag":679,"props":8702,"children":8703},{"style":3984},[8704],{"type":26,"value":8186},{"type":21,"tag":679,"props":8706,"children":8707},{"style":686},[8708],{"type":26,"value":8657},{"type":21,"tag":679,"props":8710,"children":8711},{"style":686},[8712],{"type":26,"value":8713}," upgrade\n",{"type":21,"tag":679,"props":8715,"children":8716},{"class":681,"line":698},[8717,8721,8726],{"type":21,"tag":679,"props":8718,"children":8719},{"style":3984},[8720],{"type":26,"value":8186},{"type":21,"tag":679,"props":8722,"children":8723},{"style":686},[8724],{"type":26,"value":8725}," apt-get",{"type":21,"tag":679,"props":8727,"children":8728},{"style":686},[8729],{"type":26,"value":8730}," update\n",{"type":21,"tag":346,"props":8732,"children":8734},{"id":8733},"二安装基本的开发工具",[8735],{"type":26,"value":8736},"二、安装基本的开发工具",{"type":21,"tag":669,"props":8738,"children":8740},{"className":3972,"code":8739,"language":3974,"meta":8,"style":8},"# mingw套组\nsudo apt install build-essential cmake\n\n# python3 pip 工具\nsudo apt install python3-pip\npip config set global.index-url https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n",[8741],{"type":21,"tag":29,"props":8742,"children":8743},{"__ignoreMap":8},[8744,8752,8777,8784,8792,8812],{"type":21,"tag":679,"props":8745,"children":8746},{"class":681,"line":682},[8747],{"type":21,"tag":679,"props":8748,"children":8749},{"style":4011},[8750],{"type":26,"value":8751},"# mingw套组\n",{"type":21,"tag":679,"props":8753,"children":8754},{"class":681,"line":698},[8755,8759,8763,8767,8772],{"type":21,"tag":679,"props":8756,"children":8757},{"style":3984},[8758],{"type":26,"value":8186},{"type":21,"tag":679,"props":8760,"children":8761},{"style":686},[8762],{"type":26,"value":8657},{"type":21,"tag":679,"props":8764,"children":8765},{"style":686},[8766],{"type":26,"value":7441},{"type":21,"tag":679,"props":8768,"children":8769},{"style":686},[8770],{"type":26,"value":8771}," build-essential",{"type":21,"tag":679,"props":8773,"children":8774},{"style":686},[8775],{"type":26,"value":8776}," cmake\n",{"type":21,"tag":679,"props":8778,"children":8779},{"class":681,"line":723},[8780],{"type":21,"tag":679,"props":8781,"children":8782},{"emptyLinePlaceholder":3582},[8783],{"type":26,"value":3585},{"type":21,"tag":679,"props":8785,"children":8786},{"class":681,"line":741},[8787],{"type":21,"tag":679,"props":8788,"children":8789},{"style":4011},[8790],{"type":26,"value":8791},"# python3 pip 工具\n",{"type":21,"tag":679,"props":8793,"children":8794},{"class":681,"line":848},[8795,8799,8803,8807],{"type":21,"tag":679,"props":8796,"children":8797},{"style":3984},[8798],{"type":26,"value":8186},{"type":21,"tag":679,"props":8800,"children":8801},{"style":686},[8802],{"type":26,"value":8657},{"type":21,"tag":679,"props":8804,"children":8805},{"style":686},[8806],{"type":26,"value":7441},{"type":21,"tag":679,"props":8808,"children":8809},{"style":686},[8810],{"type":26,"value":8811}," python3-pip\n",{"type":21,"tag":679,"props":8813,"children":8814},{"class":681,"line":861},[8815,8819,8823,8827,8831],{"type":21,"tag":679,"props":8816,"children":8817},{"style":3984},[8818],{"type":26,"value":7060},{"type":21,"tag":679,"props":8820,"children":8821},{"style":686},[8822],{"type":26,"value":6885},{"type":21,"tag":679,"props":8824,"children":8825},{"style":686},[8826],{"type":26,"value":7069},{"type":21,"tag":679,"props":8828,"children":8829},{"style":686},[8830],{"type":26,"value":7074},{"type":21,"tag":679,"props":8832,"children":8833},{"style":686},[8834],{"type":26,"value":7079},{"type":21,"tag":346,"props":8836,"children":8838},{"id":8837},"三美化终端",[8839],{"type":26,"value":8840},"三、美化终端",{"type":21,"tag":5881,"props":8842,"children":8844},{"id":8843},"使用fish",[8845],{"type":26,"value":8843},{"type":21,"tag":22,"props":8847,"children":8848},{},[8849],{"type":26,"value":8850},"安装",{"type":21,"tag":669,"props":8852,"children":8854},{"className":3972,"code":8853,"language":3974,"meta":8,"style":8},"sudo apt install fish\nchsh -s $(which fish)\nexport SHELL=`which fish` && exec \"$SHELL\" -l\n",[8855],{"type":21,"tag":29,"props":8856,"children":8857},{"__ignoreMap":8},[8858,8878,8910],{"type":21,"tag":679,"props":8859,"children":8860},{"class":681,"line":682},[8861,8865,8869,8873],{"type":21,"tag":679,"props":8862,"children":8863},{"style":3984},[8864],{"type":26,"value":8186},{"type":21,"tag":679,"props":8866,"children":8867},{"style":686},[8868],{"type":26,"value":8657},{"type":21,"tag":679,"props":8870,"children":8871},{"style":686},[8872],{"type":26,"value":7441},{"type":21,"tag":679,"props":8874,"children":8875},{"style":686},[8876],{"type":26,"value":8877}," fish\n",{"type":21,"tag":679,"props":8879,"children":8880},{"class":681,"line":698},[8881,8886,8890,8895,8900,8905],{"type":21,"tag":679,"props":8882,"children":8883},{"style":3984},[8884],{"type":26,"value":8885},"chsh",{"type":21,"tag":679,"props":8887,"children":8888},{"style":702},[8889],{"type":26,"value":7451},{"type":21,"tag":679,"props":8891,"children":8892},{"style":692},[8893],{"type":26,"value":8894}," $(",{"type":21,"tag":679,"props":8896,"children":8897},{"style":702},[8898],{"type":26,"value":8899},"which",{"type":21,"tag":679,"props":8901,"children":8902},{"style":686},[8903],{"type":26,"value":8904}," fish",{"type":21,"tag":679,"props":8906,"children":8907},{"style":692},[8908],{"type":26,"value":8909},")\n",{"type":21,"tag":679,"props":8911,"children":8912},{"class":681,"line":723},[8913,8917,8922,8926,8931,8935,8940,8944,8949,8954,8959,8964],{"type":21,"tag":679,"props":8914,"children":8915},{"style":4370},[8916],{"type":26,"value":4514},{"type":21,"tag":679,"props":8918,"children":8919},{"style":692},[8920],{"type":26,"value":8921}," SHELL",{"type":21,"tag":679,"props":8923,"children":8924},{"style":4370},[8925],{"type":26,"value":4373},{"type":21,"tag":679,"props":8927,"children":8928},{"style":686},[8929],{"type":26,"value":8930},"`",{"type":21,"tag":679,"props":8932,"children":8933},{"style":702},[8934],{"type":26,"value":8899},{"type":21,"tag":679,"props":8936,"children":8937},{"style":686},[8938],{"type":26,"value":8939}," fish`",{"type":21,"tag":679,"props":8941,"children":8942},{"style":692},[8943],{"type":26,"value":8700},{"type":21,"tag":679,"props":8945,"children":8946},{"style":702},[8947],{"type":26,"value":8948},"exec",{"type":21,"tag":679,"props":8950,"children":8951},{"style":686},[8952],{"type":26,"value":8953}," \"",{"type":21,"tag":679,"props":8955,"children":8956},{"style":692},[8957],{"type":26,"value":8958},"$SHELL",{"type":21,"tag":679,"props":8960,"children":8961},{"style":686},[8962],{"type":26,"value":8963},"\"",{"type":21,"tag":679,"props":8965,"children":8966},{"style":702},[8967],{"type":26,"value":8968}," -l\n",{"type":21,"tag":22,"props":8970,"children":8971},{},[8972],{"type":26,"value":8973},"修改风格",{"type":21,"tag":669,"props":8975,"children":8977},{"className":3972,"code":8976,"language":3974,"meta":8,"style":8},"fish_config prompt choose scope\nfish_config prompt save\n",[8978],{"type":21,"tag":29,"props":8979,"children":8980},{"__ignoreMap":8},[8981,9004],{"type":21,"tag":679,"props":8982,"children":8983},{"class":681,"line":682},[8984,8989,8994,8999],{"type":21,"tag":679,"props":8985,"children":8986},{"style":3984},[8987],{"type":26,"value":8988},"fish_config",{"type":21,"tag":679,"props":8990,"children":8991},{"style":686},[8992],{"type":26,"value":8993}," prompt",{"type":21,"tag":679,"props":8995,"children":8996},{"style":686},[8997],{"type":26,"value":8998}," choose",{"type":21,"tag":679,"props":9000,"children":9001},{"style":686},[9002],{"type":26,"value":9003}," scope\n",{"type":21,"tag":679,"props":9005,"children":9006},{"class":681,"line":698},[9007,9011,9015],{"type":21,"tag":679,"props":9008,"children":9009},{"style":3984},[9010],{"type":26,"value":8988},{"type":21,"tag":679,"props":9012,"children":9013},{"style":686},[9014],{"type":26,"value":8993},{"type":21,"tag":679,"props":9016,"children":9017},{"style":686},[9018],{"type":26,"value":9019}," save\n",{"type":21,"tag":22,"props":9021,"children":9022},{},[9023,9024,9031],{"type":26,"value":8850},{"type":21,"tag":78,"props":9025,"children":9028},{"href":9026,"rel":9027},"https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish",[82],[9029],{"type":26,"value":9030},"oh-my-fish",{"type":26,"value":9032}," 可选",{"type":21,"tag":669,"props":9034,"children":9036},{"className":3972,"code":9035,"language":3974,"meta":8,"style":8},"# with git\n$ git clone https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish\n$ cd oh-my-fish\n$ bin\u002Finstall --offline\n# with a tarball\n$ curl https:\u002F\u002Fraw.githubusercontent.com\u002Foh-my-fish\u002Foh-my-fish\u002Fmaster\u002Fbin\u002Finstall > install\n$ fish install --offline=omf.tar.gz\n",[9037],{"type":21,"tag":29,"props":9038,"children":9039},{"__ignoreMap":8},[9040,9048,9070,9087,9104,9112,9139],{"type":21,"tag":679,"props":9041,"children":9042},{"class":681,"line":682},[9043],{"type":21,"tag":679,"props":9044,"children":9045},{"style":4011},[9046],{"type":26,"value":9047},"# with git\n",{"type":21,"tag":679,"props":9049,"children":9050},{"class":681,"line":698},[9051,9056,9061,9065],{"type":21,"tag":679,"props":9052,"children":9053},{"style":3984},[9054],{"type":26,"value":9055},"$",{"type":21,"tag":679,"props":9057,"children":9058},{"style":686},[9059],{"type":26,"value":9060}," git",{"type":21,"tag":679,"props":9062,"children":9063},{"style":686},[9064],{"type":26,"value":7497},{"type":21,"tag":679,"props":9066,"children":9067},{"style":686},[9068],{"type":26,"value":9069}," https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish\n",{"type":21,"tag":679,"props":9071,"children":9072},{"class":681,"line":723},[9073,9077,9082],{"type":21,"tag":679,"props":9074,"children":9075},{"style":3984},[9076],{"type":26,"value":9055},{"type":21,"tag":679,"props":9078,"children":9079},{"style":686},[9080],{"type":26,"value":9081}," cd",{"type":21,"tag":679,"props":9083,"children":9084},{"style":686},[9085],{"type":26,"value":9086}," oh-my-fish\n",{"type":21,"tag":679,"props":9088,"children":9089},{"class":681,"line":741},[9090,9094,9099],{"type":21,"tag":679,"props":9091,"children":9092},{"style":3984},[9093],{"type":26,"value":9055},{"type":21,"tag":679,"props":9095,"children":9096},{"style":686},[9097],{"type":26,"value":9098}," bin\u002Finstall",{"type":21,"tag":679,"props":9100,"children":9101},{"style":702},[9102],{"type":26,"value":9103}," --offline\n",{"type":21,"tag":679,"props":9105,"children":9106},{"class":681,"line":848},[9107],{"type":21,"tag":679,"props":9108,"children":9109},{"style":4011},[9110],{"type":26,"value":9111},"# with a tarball\n",{"type":21,"tag":679,"props":9113,"children":9114},{"class":681,"line":861},[9115,9119,9124,9129,9134],{"type":21,"tag":679,"props":9116,"children":9117},{"style":3984},[9118],{"type":26,"value":9055},{"type":21,"tag":679,"props":9120,"children":9121},{"style":686},[9122],{"type":26,"value":9123}," curl",{"type":21,"tag":679,"props":9125,"children":9126},{"style":686},[9127],{"type":26,"value":9128}," https:\u002F\u002Fraw.githubusercontent.com\u002Foh-my-fish\u002Foh-my-fish\u002Fmaster\u002Fbin\u002Finstall",{"type":21,"tag":679,"props":9130,"children":9131},{"style":4370},[9132],{"type":26,"value":9133}," >",{"type":21,"tag":679,"props":9135,"children":9136},{"style":686},[9137],{"type":26,"value":9138}," install\n",{"type":21,"tag":679,"props":9140,"children":9141},{"class":681,"line":874},[9142,9146,9150,9154],{"type":21,"tag":679,"props":9143,"children":9144},{"style":3984},[9145],{"type":26,"value":9055},{"type":21,"tag":679,"props":9147,"children":9148},{"style":686},[9149],{"type":26,"value":8904},{"type":21,"tag":679,"props":9151,"children":9152},{"style":686},[9153],{"type":26,"value":7441},{"type":21,"tag":679,"props":9155,"children":9156},{"style":702},[9157],{"type":26,"value":9158}," --offline=omf.tar.gz\n",{"type":21,"tag":5881,"props":9160,"children":9162},{"id":9161},"使用zsh",[9163],{"type":26,"value":9161},{"type":21,"tag":22,"props":9165,"children":9166},{},[9167],{"type":26,"value":8850},{"type":21,"tag":669,"props":9169,"children":9171},{"className":3972,"code":9170,"language":3974,"meta":8,"style":8},"sudo apt install zsh\nchsh -s $(which zsh)\n",[9172],{"type":21,"tag":29,"props":9173,"children":9174},{"__ignoreMap":8},[9175,9195],{"type":21,"tag":679,"props":9176,"children":9177},{"class":681,"line":682},[9178,9182,9186,9190],{"type":21,"tag":679,"props":9179,"children":9180},{"style":3984},[9181],{"type":26,"value":8186},{"type":21,"tag":679,"props":9183,"children":9184},{"style":686},[9185],{"type":26,"value":8657},{"type":21,"tag":679,"props":9187,"children":9188},{"style":686},[9189],{"type":26,"value":7441},{"type":21,"tag":679,"props":9191,"children":9192},{"style":686},[9193],{"type":26,"value":9194}," zsh\n",{"type":21,"tag":679,"props":9196,"children":9197},{"class":681,"line":698},[9198,9202,9206,9210,9214,9219],{"type":21,"tag":679,"props":9199,"children":9200},{"style":3984},[9201],{"type":26,"value":8885},{"type":21,"tag":679,"props":9203,"children":9204},{"style":702},[9205],{"type":26,"value":7451},{"type":21,"tag":679,"props":9207,"children":9208},{"style":692},[9209],{"type":26,"value":8894},{"type":21,"tag":679,"props":9211,"children":9212},{"style":702},[9213],{"type":26,"value":8899},{"type":21,"tag":679,"props":9215,"children":9216},{"style":686},[9217],{"type":26,"value":9218}," zsh",{"type":21,"tag":679,"props":9220,"children":9221},{"style":692},[9222],{"type":26,"value":8909},{"type":21,"tag":22,"props":9224,"children":9225},{},[9226],{"type":26,"value":9227},"在bashrc里面加入",{"type":21,"tag":669,"props":9229,"children":9231},{"className":3972,"code":9230,"language":3974,"meta":8,"style":8},"export SHELL=`which zsh`\n[ -z \"$ZSH_VERSION\" ] && exec \"$SHELL\" -l\n",[9232],{"type":21,"tag":29,"props":9233,"children":9234},{"__ignoreMap":8},[9235,9263],{"type":21,"tag":679,"props":9236,"children":9237},{"class":681,"line":682},[9238,9242,9246,9250,9254,9258],{"type":21,"tag":679,"props":9239,"children":9240},{"style":4370},[9241],{"type":26,"value":4514},{"type":21,"tag":679,"props":9243,"children":9244},{"style":692},[9245],{"type":26,"value":8921},{"type":21,"tag":679,"props":9247,"children":9248},{"style":4370},[9249],{"type":26,"value":4373},{"type":21,"tag":679,"props":9251,"children":9252},{"style":686},[9253],{"type":26,"value":8930},{"type":21,"tag":679,"props":9255,"children":9256},{"style":702},[9257],{"type":26,"value":8899},{"type":21,"tag":679,"props":9259,"children":9260},{"style":686},[9261],{"type":26,"value":9262}," zsh`\n",{"type":21,"tag":679,"props":9264,"children":9265},{"class":681,"line":698},[9266,9271,9276,9280,9285,9289,9294,9298,9302,9306,9310],{"type":21,"tag":679,"props":9267,"children":9268},{"style":692},[9269],{"type":26,"value":9270},"[ ",{"type":21,"tag":679,"props":9272,"children":9273},{"style":4370},[9274],{"type":26,"value":9275},"-z",{"type":21,"tag":679,"props":9277,"children":9278},{"style":686},[9279],{"type":26,"value":8953},{"type":21,"tag":679,"props":9281,"children":9282},{"style":692},[9283],{"type":26,"value":9284},"$ZSH_VERSION",{"type":21,"tag":679,"props":9286,"children":9287},{"style":686},[9288],{"type":26,"value":8963},{"type":21,"tag":679,"props":9290,"children":9291},{"style":692},[9292],{"type":26,"value":9293}," ] && ",{"type":21,"tag":679,"props":9295,"children":9296},{"style":702},[9297],{"type":26,"value":8948},{"type":21,"tag":679,"props":9299,"children":9300},{"style":686},[9301],{"type":26,"value":8953},{"type":21,"tag":679,"props":9303,"children":9304},{"style":692},[9305],{"type":26,"value":8958},{"type":21,"tag":679,"props":9307,"children":9308},{"style":686},[9309],{"type":26,"value":8963},{"type":21,"tag":679,"props":9311,"children":9312},{"style":702},[9313],{"type":26,"value":8968},{"type":21,"tag":22,"props":9315,"children":9316},{},[9317],{"type":26,"value":9318},"重新打开当前终端，就会进入zsh终端，接着安装oh-my-zsh主题框架。",{"type":21,"tag":669,"props":9320,"children":9322},{"className":3972,"code":9321,"language":3974,"meta":8,"style":8},"cd ~\ngit clone https:\u002F\u002Fgitee.com\u002Fmirrors\u002Foh-my-zsh\nsh oh-my-zsh\u002Ftools\u002Finstall.sh\n",[9323],{"type":21,"tag":29,"props":9324,"children":9325},{"__ignoreMap":8},[9326,9338,9354],{"type":21,"tag":679,"props":9327,"children":9328},{"class":681,"line":682},[9329,9333],{"type":21,"tag":679,"props":9330,"children":9331},{"style":702},[9332],{"type":26,"value":6748},{"type":21,"tag":679,"props":9334,"children":9335},{"style":686},[9336],{"type":26,"value":9337}," ~\n",{"type":21,"tag":679,"props":9339,"children":9340},{"class":681,"line":698},[9341,9345,9349],{"type":21,"tag":679,"props":9342,"children":9343},{"style":3984},[9344],{"type":26,"value":6880},{"type":21,"tag":679,"props":9346,"children":9347},{"style":686},[9348],{"type":26,"value":7497},{"type":21,"tag":679,"props":9350,"children":9351},{"style":686},[9352],{"type":26,"value":9353}," https:\u002F\u002Fgitee.com\u002Fmirrors\u002Foh-my-zsh\n",{"type":21,"tag":679,"props":9355,"children":9356},{"class":681,"line":723},[9357,9361],{"type":21,"tag":679,"props":9358,"children":9359},{"style":3984},[9360],{"type":26,"value":6736},{"type":21,"tag":679,"props":9362,"children":9363},{"style":686},[9364],{"type":26,"value":9365}," oh-my-zsh\u002Ftools\u002Finstall.sh\n",{"type":21,"tag":22,"props":9367,"children":9368},{},[9369],{"type":26,"value":9370},"安装两个插件",{"type":21,"tag":669,"props":9372,"children":9374},{"className":3972,"code":9373,"language":3974,"meta":8,"style":8},"cd ~\u002F.oh-my-zsh\u002Fcustom\u002Fplugins\u002F\n\n# 高亮关键词\ngit clone https:\u002F\u002Fgitee.com\u002Fhaohaogood\u002Fzsh-syntax-highlighting\n\n# 自动补全\ngit clone https:\u002F\u002Fgitee.com\u002Fqiushaocloud\u002Fzsh-autosuggestions\n",[9375],{"type":21,"tag":29,"props":9376,"children":9377},{"__ignoreMap":8},[9378,9390,9397,9405,9421,9428,9436],{"type":21,"tag":679,"props":9379,"children":9380},{"class":681,"line":682},[9381,9385],{"type":21,"tag":679,"props":9382,"children":9383},{"style":702},[9384],{"type":26,"value":6748},{"type":21,"tag":679,"props":9386,"children":9387},{"style":686},[9388],{"type":26,"value":9389}," ~\u002F.oh-my-zsh\u002Fcustom\u002Fplugins\u002F\n",{"type":21,"tag":679,"props":9391,"children":9392},{"class":681,"line":698},[9393],{"type":21,"tag":679,"props":9394,"children":9395},{"emptyLinePlaceholder":3582},[9396],{"type":26,"value":3585},{"type":21,"tag":679,"props":9398,"children":9399},{"class":681,"line":723},[9400],{"type":21,"tag":679,"props":9401,"children":9402},{"style":4011},[9403],{"type":26,"value":9404},"# 高亮关键词\n",{"type":21,"tag":679,"props":9406,"children":9407},{"class":681,"line":741},[9408,9412,9416],{"type":21,"tag":679,"props":9409,"children":9410},{"style":3984},[9411],{"type":26,"value":6880},{"type":21,"tag":679,"props":9413,"children":9414},{"style":686},[9415],{"type":26,"value":7497},{"type":21,"tag":679,"props":9417,"children":9418},{"style":686},[9419],{"type":26,"value":9420}," https:\u002F\u002Fgitee.com\u002Fhaohaogood\u002Fzsh-syntax-highlighting\n",{"type":21,"tag":679,"props":9422,"children":9423},{"class":681,"line":848},[9424],{"type":21,"tag":679,"props":9425,"children":9426},{"emptyLinePlaceholder":3582},[9427],{"type":26,"value":3585},{"type":21,"tag":679,"props":9429,"children":9430},{"class":681,"line":861},[9431],{"type":21,"tag":679,"props":9432,"children":9433},{"style":4011},[9434],{"type":26,"value":9435},"# 自动补全\n",{"type":21,"tag":679,"props":9437,"children":9438},{"class":681,"line":874},[9439,9443,9447],{"type":21,"tag":679,"props":9440,"children":9441},{"style":3984},[9442],{"type":26,"value":6880},{"type":21,"tag":679,"props":9444,"children":9445},{"style":686},[9446],{"type":26,"value":7497},{"type":21,"tag":679,"props":9448,"children":9449},{"style":686},[9450],{"type":26,"value":9451}," https:\u002F\u002Fgitee.com\u002Fqiushaocloud\u002Fzsh-autosuggestions\n",{"type":21,"tag":22,"props":9453,"children":9454},{},[9455,9457,9463,9465,9471,9473,9479],{"type":26,"value":9456},"然后进入 ",{"type":21,"tag":29,"props":9458,"children":9460},{"className":9459},[],[9461],{"type":26,"value":9462},"~\u002F.zshrc",{"type":26,"value":9464}," 在 plugins 参数中添加 ",{"type":21,"tag":29,"props":9466,"children":9468},{"className":9467},[],[9469],{"type":26,"value":9470},"zsh-syntax-highlighting",{"type":26,"value":9472}," 和",{"type":21,"tag":29,"props":9474,"children":9476},{"className":9475},[],[9477],{"type":26,"value":9478},"zsh-autosuggestions",{"type":26,"value":9480},"。也就是说你的 .zshrc 中必须要有一行长这样：",{"type":21,"tag":669,"props":9482,"children":9484},{"className":3972,"code":9483,"language":3974,"meta":8,"style":8},"plugins=(git zsh-syntax-highlighting zsh-autosuggestions)\n",[9485],{"type":21,"tag":29,"props":9486,"children":9487},{"__ignoreMap":8},[9488],{"type":21,"tag":679,"props":9489,"children":9490},{"class":681,"line":682},[9491,9496,9500,9505,9509,9514,9519],{"type":21,"tag":679,"props":9492,"children":9493},{"style":692},[9494],{"type":26,"value":9495},"plugins",{"type":21,"tag":679,"props":9497,"children":9498},{"style":4370},[9499],{"type":26,"value":4373},{"type":21,"tag":679,"props":9501,"children":9502},{"style":692},[9503],{"type":26,"value":9504},"(",{"type":21,"tag":679,"props":9506,"children":9507},{"style":686},[9508],{"type":26,"value":6880},{"type":21,"tag":679,"props":9510,"children":9511},{"style":686},[9512],{"type":26,"value":9513}," zsh-syntax-highlighting",{"type":21,"tag":679,"props":9515,"children":9516},{"style":686},[9517],{"type":26,"value":9518}," zsh-autosuggestions",{"type":21,"tag":679,"props":9520,"children":9521},{"style":692},[9522],{"type":26,"value":8909},{"type":21,"tag":69,"props":9524,"children":9526},{"id":9525},"四安装部分驱动程序",[9527],{"type":26,"value":9528},"四、安装部分驱动程序",{"type":21,"tag":22,"props":9530,"children":9531},{},[9532],{"type":26,"value":9533},"默认pip 版本较低，升级一下",{"type":21,"tag":669,"props":9535,"children":9537},{"className":3972,"code":9536,"language":3974,"meta":8,"style":8},"pip install --upgrade pip\n",[9538],{"type":21,"tag":29,"props":9539,"children":9540},{"__ignoreMap":8},[9541],{"type":21,"tag":679,"props":9542,"children":9543},{"class":681,"line":682},[9544,9548,9552,9557],{"type":21,"tag":679,"props":9545,"children":9546},{"style":3984},[9547],{"type":26,"value":7060},{"type":21,"tag":679,"props":9549,"children":9550},{"style":686},[9551],{"type":26,"value":7441},{"type":21,"tag":679,"props":9553,"children":9554},{"style":702},[9555],{"type":26,"value":9556}," --upgrade",{"type":21,"tag":679,"props":9558,"children":9559},{"style":686},[9560],{"type":26,"value":9561}," pip\n",{"type":21,"tag":22,"props":9563,"children":9564},{},[9565],{"type":26,"value":9566},"安装opencv的包",{"type":21,"tag":669,"props":9568,"children":9570},{"className":3972,"code":9569,"language":3974,"meta":8,"style":8},"sudo apt install libopencv-dev\npip install opencv-python\n",[9571],{"type":21,"tag":29,"props":9572,"children":9573},{"__ignoreMap":8},[9574,9594],{"type":21,"tag":679,"props":9575,"children":9576},{"class":681,"line":682},[9577,9581,9585,9589],{"type":21,"tag":679,"props":9578,"children":9579},{"style":3984},[9580],{"type":26,"value":8186},{"type":21,"tag":679,"props":9582,"children":9583},{"style":686},[9584],{"type":26,"value":8657},{"type":21,"tag":679,"props":9586,"children":9587},{"style":686},[9588],{"type":26,"value":7441},{"type":21,"tag":679,"props":9590,"children":9591},{"style":686},[9592],{"type":26,"value":9593}," libopencv-dev\n",{"type":21,"tag":679,"props":9595,"children":9596},{"class":681,"line":698},[9597,9601,9605],{"type":21,"tag":679,"props":9598,"children":9599},{"style":3984},[9600],{"type":26,"value":7060},{"type":21,"tag":679,"props":9602,"children":9603},{"style":686},[9604],{"type":26,"value":7441},{"type":21,"tag":679,"props":9606,"children":9607},{"style":686},[9608],{"type":26,"value":9609}," opencv-python\n",{"type":21,"tag":22,"props":9611,"children":9612},{},[9613],{"type":26,"value":9614},"安装torch cuda",{"type":21,"tag":669,"props":9616,"children":9618},{"className":3972,"code":9617,"language":3974,"meta":8,"style":8},"sudo apt install nvidia-cuda-toolkit\n",[9619],{"type":21,"tag":29,"props":9620,"children":9621},{"__ignoreMap":8},[9622],{"type":21,"tag":679,"props":9623,"children":9624},{"class":681,"line":682},[9625,9629,9633,9637],{"type":21,"tag":679,"props":9626,"children":9627},{"style":3984},[9628],{"type":26,"value":8186},{"type":21,"tag":679,"props":9630,"children":9631},{"style":686},[9632],{"type":26,"value":8657},{"type":21,"tag":679,"props":9634,"children":9635},{"style":686},[9636],{"type":26,"value":7441},{"type":21,"tag":679,"props":9638,"children":9639},{"style":686},[9640],{"type":26,"value":9641}," nvidia-cuda-toolkit\n",{"type":21,"tag":22,"props":9643,"children":9644},{},[9645,9647,9654],{"type":26,"value":9646},"然后去 ",{"type":21,"tag":78,"props":9648,"children":9651},{"href":9649,"rel":9650},"https:\u002F\u002Fpytorch.org\u002F",[82],[9652],{"type":26,"value":9653},"PyTorch",{"type":26,"value":9655}," 找对应的安装指令。自从某个版本之后 Linux 下载 PyTorch GPU 版本可以直接 pip（自动下载对应 CUDA 依赖）。",{"type":21,"tag":3106,"props":9657,"children":9658},{},[9659],{"type":26,"value":3110},{"title":8,"searchDepth":698,"depth":723,"links":9661},[9662,9663,9664,9672],{"id":6606,"depth":698,"text":6576},{"id":7706,"depth":698,"text":7709},{"id":8130,"depth":698,"text":8133,"children":9665},[9666,9667,9668],{"id":8136,"depth":723,"text":8139},{"id":8733,"depth":723,"text":8736},{"id":8837,"depth":723,"text":8840,"children":9669},[9670,9671],{"id":8843,"depth":741,"text":8843},{"id":9161,"depth":741,"text":9161},{"id":9525,"depth":698,"text":9528},"content:posts:从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境",1782210487073]