{"id":799,"date":"2026-11-15T15:41:38","date_gmt":"2026-11-15T07:41:38","guid":{"rendered":"https:\/\/www.zhukaifu.cn\/?p=799"},"modified":"2026-11-15T15:41:38","modified_gmt":"2026-11-15T07:41:38","slug":"mksglu-context-mode-%c2%b7-%e4%b8%ad%e6%96%87%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.zhukaifu.cn\/?p=799","title":{"rendered":"mksglu\/context-mode \u00b7 \u4e2d\u6587\u4ecb\u7ecd"},"content":{"rendered":"<!-- gh-sync:repo:mksglu\/context-mode -->\n\n<div id=\"gh-catalog\"><style>#gh-catalog{color-scheme:dark;--bg:#0b1120;--panel:#141f33;--line:#29364e;--text:#e6edf8;--muted:#9aaac3;--accent:#69d4ff}#gh-catalog *{box-sizing:border-box}#gh-catalog{margin:0;background:radial-gradient(ellipse at 15% 0,#172d4b 0,transparent 55%),var(--bg);color:var(--text);font:15px\/1.75 system-ui,\"Microsoft YaHei\",sans-serif;min-height:100vh}#gh-catalog main{max-width:1100px;margin:auto;padding:48px 24px 80px}#gh-catalog a{color:var(--accent);text-decoration:none}#gh-catalog a:hover{text-decoration:underline}#gh-catalog h1{font-size:clamp(27px,4vw,42px);letter-spacing:-.03em;line-height:1.3;margin:22px 0 12px;overflow-wrap:anywhere}#gh-catalog h2{font-size:20px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}#gh-catalog p{margin:12px 0}#gh-catalog .eyebrow{font-size:12px;letter-spacing:.18em;color:var(--accent);font-weight:700}#gh-catalog .meta{color:var(--muted);font-size:13px}#gh-catalog article{background:linear-gradient(135deg,#19273d,#131e30);border:1px solid var(--line);border-radius:18px;padding:26px;margin:16px 0;box-shadow:0 10px 32px #0002}#gh-catalog article:hover{border-color:#456585}#gh-catalog nav{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:18px}#gh-catalog nav a{font-size:14px}#gh-catalog a:focus-visible,#gh-catalog button:focus-visible,#gh-catalog input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}#gh-catalog .rank{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:32px;border-radius:9px;background:#263751;color:#bdcce2;font-size:14px;margin-right:12px;font-variant-numeric:tabular-nums}#gh-catalog .top-rank{background:#514224;color:#ffe09a}#gh-catalog .search-panel{position:sticky;top:0;z-index:3;padding:16px 0 12px;background:#0b1120f2;backdrop-filter:blur(12px)}#gh-catalog .search-row{display:flex;gap:10px;margin-top:8px}#gh-catalog input{width:100%;min-width:0;padding:14px 16px;border:1px solid #405371;border-radius:12px;background:#111e33;color:var(--text);font:inherit}#gh-catalog input::placeholder{color:#91a2bd}#gh-catalog button{border:1px solid #405371;border-radius:12px;background:#22344e;color:var(--text);padding:10px 18px;cursor:pointer;font:inherit;white-space:nowrap}#gh-catalog .empty{border:1px dashed #405371;border-radius:18px;text-align:center;padding:48px 20px;color:var(--muted)}#gh-catalog [hidden]{display:none!important}#gh-catalog li{margin:12px 0}#gh-catalog footer{margin-top:32px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px}@media(max-width:600px){#gh-catalog main{padding:24px 16px 48px}#gh-catalog article{padding:20px 16px}#gh-catalog h2{font-size:17px}#gh-catalog .rank{min-width:34px;margin-right:8px}#gh-catalog .search-panel{padding-top:10px}}#gh-catalog .search-panel{background:linear-gradient(120deg,#203148f5,#1c293cf5);border:1px solid #3c4d65;border-radius:18px;padding:20px 22px 12px;box-shadow:0 12px 32px #0003;margin:24px 0}#gh-catalog .search-panel label{font-weight:600;color:#d5e2f3}#gh-catalog .search-row{flex-wrap:wrap;align-items:center}#gh-catalog .search-row input{flex:1 1 280px;width:auto;background:#111c2c;border-color:#475a73}#gh-catalog .sort-label{font-size:13px}#gh-catalog .search-row select{padding:13px 12px;border-radius:11px;border:1px solid #526581;background:#293b52;color:#edf3fc;font:inherit;max-width:100%}#gh-catalog .search-row button{background:#344961;border-color:#536a85}#gh-catalog .search-row select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#gh-catalog article nav{gap:12px;margin-top:20px}#gh-catalog article nav a{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:10px;font-weight:600;font-size:13px;border:1px solid #526a87;background:#263a52;color:#dce9fa;transition:background .18s,border-color .18s,transform .18s}#gh-catalog article nav a:first-child{background:linear-gradient(135deg,#77ddf5,#96baff);border-color:#8ed6f4;color:#11243a;box-shadow:0 4px 14px #5ea7e51a}#gh-catalog article nav a:hover{background:#38516d;border-color:#8da9cb;text-decoration:none;transform:translateY(-1px)}#gh-catalog article nav a:first-child:hover{background:#b3e9ff;color:#0b1d31}#gh-catalog .collected{display:inline-flex;gap:6px;margin:10px 0 0;padding:4px 10px;background:#223247;border:1px solid #354b63;border-radius:8px;font-size:12px;color:#b6c8df}#gh-catalog .sort-note{font-size:12px;color:#a4b6cc}@media(max-width:600px){#gh-catalog .search-panel{padding:16px}#gh-catalog .search-row input{flex-basis:100%}#gh-catalog article nav a{flex:1;padding:10px 12px}}\n<\/style><main><nav><a href=\"https:\/\/www.zhukaifu.cn\/?p=575\">\u2190 \u70ed\u95e8\u4ed3\u5e93\u5217\u8868<\/a><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/mksglu\/context-mode\">\u6253\u5f00 GitHub \u4ed3\u5e93<\/a><\/nav><h1>mksglu\/context-mode<\/h1><p class=\"meta\">\u2605 33,422 \u00b7 Forks 2,302<\/p><article><h2>Context Mode \u662f\u514d\u8d39\u672c\u5730\u63d2\u4ef6\uff0c\u7528\u6765\u51cf\u5c11\u5de5\u5177\u8f93\u51fa\u5360\u7528 AI \u7f16\u7a0b\u52a9\u624b\u7684\u4e0a\u4e0b\u6587\uff0c\u4e5f\u5c31\u662f\u5b83\u5f53\u524d\u80fd\u8bfb\u53d6\u7684\u4fe1\u606f\u7a7a\u95f4\u3002<\/h2><p>\u514d\u8d39\u672c\u5730\u63d2\u4ef6\uff0c\u53ef\u5c06\u5de5\u5177\u8f93\u51fa\u6321\u5728\u7f16\u7801\u4ee3\u7406\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u4e4b\u5916\u3002\u901a\u8fc7\u6c99\u76d2\u548c SQLite FTS5 \u641c\u7d22\uff0c\u4e0a\u4e0b\u6587\u4e2d\u7684\u5b57\u8282\u6570\u51cf\u5c11 99%\u3002\u9002\u7528\u4e8e Claude Code\u3001Codex\u3001Pi\u3001OpenCode\u3001Gemini CLI\u3001Copilot CLI \u4ee5\u53ca\u53e6\u5916 4 \u79cd\u4ee3\u7406\u3002\u96f6\u9065\u6d4b\u3002<\/p><ul><li>\u5de5\u4f5c\u6d41\u7a0b\uff1a\u5728\u672c\u5730\u9694\u79bb\u73af\u5883\u8fd0\u884c\u5de5\u5177 \u2192 \u5c06\u5b8c\u6574\u8f93\u51fa\u5b58\u5165 SQLite \u6570\u636e\u5e93 \u2192 \u6309\u9700\u641c\u7d22\uff0c\u53ea\u628a\u9700\u8981\u7684\u90e8\u5206\u4ea4\u7ed9\u52a9\u624b\u3002<\/li><li>\u9002\u5408\u7ecf\u5e38\u8ba9\u7f16\u7a0b\u52a9\u624b\u8bfb\u53d6\u6587\u4ef6\u3001\u6267\u884c\u547d\u4ee4\u6216\u83b7\u53d6\u7f51\u9875\u7684\u5f00\u53d1\u8005\uff0c\u652f\u6301 Claude Code\u3001Codex \u7b49 10 \u79cd\u52a9\u624b\u3002<\/li><li>\u63d2\u4ef6\u5c06\u7d22\u5f15\u548c\u4f7f\u7528\u6570\u636e\u4fdd\u5b58\u5728\u672c\u673a\uff0c\u4e0d\u6536\u96c6\u4f7f\u7528\u9065\u6d4b\uff0c\u5b89\u88c5\u540e\u672c\u5730\u6267\u884c\u3001\u7d22\u5f15\u548c\u641c\u7d22\u53ef\u79bb\u7ebf\u4f7f\u7528\u3002<\/li><li>\u5165\u95e8\u9700 Node 24.15.0 \u6216\u66f4\u65b0\u7248\u672c\uff0c\u6309\u6240\u7528\u52a9\u624b\u7684\u5b89\u88c5\u6b65\u9aa4\u914d\u7f6e \u2192 \u91cd\u542f\u52a9\u624b \u2192 \u8fd0\u884c \/ctx-doctor \u68c0\u67e5\uff0cWindows \u53e6\u9700 Git for Windows\u3002<\/li><li>README \u8282\u9009\u62a5\u544a\uff1a36 \u4e2a\u539f\u59cb\u8f93\u51fa\u81f3\u5c11 10 KB \u7684\u6d4b\u8bd5\u9879\u76ee\u4e2d\uff0c\u8fd4\u56de\u5185\u5bb9\u5b57\u8282\u6570\u7684\u4e2d\u4f4d\u964d\u5e45\u4e3a 99.4%\uff0c\u5177\u4f53\u6548\u679c\u53d6\u51b3\u4e8e\u4efb\u52a1\u3002<\/li><li>Gateway \u662f\u53e6\u9700\u8d26\u6237\u548c\u8ba2\u9605\u7684\u6258\u7ba1\u670d\u52a1\uff0c\u63d0\u4f9b\u4f1a\u8bdd\u68c0\u7d22\u548c\u8de8\u4f1a\u8bdd\u8bb0\u5fc6\uff0c\u8bf7\u6c42\u4f1a\u7ecf\u8fc7\u5176\u670d\u52a1\u5668\u3002<\/li><\/ul><\/article><p class=\"meta\">\u4f9d\u636e\u5df2\u8bfb\u53d6\u7684 README \u8d44\u6599\u7f16\u5199\uff1b\u8f83\u957f\u8d44\u6599\u53ef\u80fd\u4f7f\u7528\u8282\u9009\uff0c\u672a\u5b9e\u9645\u6d4b\u8bd5\u4ed3\u5e93\u529f\u80fd\u3002<br>\u8d44\u6599\u6765\u6e90\uff1a<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/raw.githubusercontent.com\/mksglu\/context-mode\/HEAD\/README.md\">README<\/a> \u00b7 \u5185\u5bb9\u751f\u6210\u65f6\u95f4\uff1a2026-11-13T12:23:29+00:00<\/p><\/main><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2190 \u70ed\u95e8\u4ed3\u5e93\u5217\u8868\u6253\u5f00 GitHub \u4ed3\u5e93 mksglu\/context-mode&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry","category-thinking"],"_links":{"self":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=799"}],"version-history":[{"count":2,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":1237,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions\/1237"}],"wp:attachment":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}