{
  "canonical_name": "mksglu/context-mode",
  "compilation_id": "pack_2b02f863c35c4687b460428a78292b57",
  "created_at": "2026-05-23T22:39:29.639721+00:00",
  "created_by": "project-pack-compiler",
  "feedback": {
    "carrier_selection_notes": [
      "viable_asset_types=skill, recipe, host_instruction, eval, preflight",
      "recommended_asset_types=skill, recipe, host_instruction, eval, preflight"
    ],
    "evidence_delta": {
      "confirmed_claims": [
        "identity_anchor_present",
        "capability_and_host_targets_present",
        "install_path_declared_or_better"
      ],
      "missing_required_fields": [],
      "must_verify_forwarded": [
        "Run or inspect `npx -y context-mode` in an isolated environment.",
        "Confirm the project exposes the claimed capability to at least one target host."
      ],
      "quickstart_execution_scope": "allowlisted_sandbox_smoke",
      "sandbox_command": "npx -y context-mode",
      "sandbox_container_image": "node:22-slim",
      "sandbox_execution_backend": "docker",
      "sandbox_planner_decision": "deterministic_isolated_install",
      "sandbox_validation_id": "sbx_5e07caa612ac46fbbc8c013a20d4b0a0"
    },
    "feedback_event_type": "project_pack_compilation_feedback",
    "learning_candidate_reasons": [],
    "template_gaps": []
  },
  "identity": {
    "canonical_id": "project_0b7659728b790b9bd6e37a319257e02c",
    "canonical_name": "mksglu/context-mode",
    "homepage_url": null,
    "license": "unknown",
    "repo_url": "https://github.com/mksglu/context-mode",
    "slug": "context-mode",
    "source_packet_id": "phit_a0882d611004494c9da53a6c2d6d94af",
    "source_validation_id": "dval_1b850136039541bcaeca4528ebd3bfd6"
  },
  "merchandising": {
    "best_for": "需要软件开发与交付能力，并使用 claude的用户",
    "github_forks": 1030,
    "github_stars": 14653,
    "one_liner_en": "Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 15 platforms",
    "one_liner_zh": "Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 15 platforms",
    "primary_category": {
      "category_id": "personal-workspace",
      "name_zh": "个人工作空间",
      "name_en": "Personal Workspace",
      "confidence": "high",
      "reason": "semantic truth gate fallback rework"
    },
    "target_user": "使用 claude, claude_code 等宿主 AI 的用户",
    "title_en": "context-mode",
    "title_zh": "context-mode 能力包",
    "visible_tags": [
      {
        "type": "product_domain",
        "label_zh": "Agent 记忆",
        "label_en": "Agent Memory",
        "tag_id": "product_domain-agent-memory",
        "source": "semantic_truth_gate_rework"
      },
      {
        "type": "user_job",
        "label_zh": "上下文连续性",
        "label_en": "Context Continuity",
        "tag_id": "user_job-context-continuity",
        "source": "semantic_truth_gate_rework"
      },
      {
        "type": "core_capability",
        "label_zh": "记忆存储",
        "label_en": "Memory Storage",
        "tag_id": "core_capability-memory-storage",
        "source": "semantic_truth_gate_rework"
      },
      {
        "type": "workflow_pattern",
        "label_zh": "上下文注入",
        "label_en": "Context Injection",
        "tag_id": "workflow_pattern-context-injection",
        "source": "semantic_truth_gate_rework"
      },
      {
        "type": "selection_signal",
        "label_zh": "隐私边界",
        "label_en": "Privacy Boundary",
        "tag_id": "selection_signal-privacy-boundary",
        "source": "semantic_truth_gate_rework"
      }
    ]
  },
  "packet_id": "phit_a0882d611004494c9da53a6c2d6d94af",
  "page_model": {
    "artifacts": {
      "artifact_slug": "context-mode",
      "files": [
        "PROJECT_PACK.json",
        "QUICK_START.md",
        "PROMPT_PREVIEW.md",
        "HUMAN_MANUAL.md",
        "AI_CONTEXT_PACK.md",
        "BOUNDARY_RISK_CARD.md",
        "PITFALL_LOG.md",
        "REPO_INSPECTION.json",
        "REPO_INSPECTION.md",
        "CAPABILITY_CONTRACT.json",
        "EVIDENCE_INDEX.json",
        "CLAIM_GRAPH.json"
      ],
      "required_files": [
        "PROJECT_PACK.json",
        "QUICK_START.md",
        "PROMPT_PREVIEW.md",
        "HUMAN_MANUAL.md",
        "AI_CONTEXT_PACK.md",
        "BOUNDARY_RISK_CARD.md",
        "PITFALL_LOG.md",
        "REPO_INSPECTION.json"
      ]
    },
    "detail": {
      "capability_source": "Project Hit Packet + DownstreamValidationResult",
      "commands": [
        {
          "command": "npx -y context-mode",
          "label": "Node.js / npx · 官方安装入口",
          "source": "https://github.com/mksglu/context-mode#readme",
          "verified": true
        }
      ],
      "display_tags": [
        "Agent 记忆",
        "上下文连续性",
        "记忆存储",
        "上下文注入",
        "隐私边界"
      ],
      "eyebrow": "个人工作空间",
      "glance": [
        {
          "body": "判断自己是不是目标用户。",
          "label": "最适合谁",
          "value": "需要软件开发与交付能力，并使用 claude的用户"
        },
        {
          "body": "先理解能力边界，再决定是否继续。",
          "label": "核心价值",
          "value": "Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 15 platforms"
        },
        {
          "body": "未完成验证前保持审慎。",
          "label": "继续前",
          "value": "publish to Doramagic.ai project surfaces"
        }
      ],
      "guardrail_source": "Boundary & Risk Card",
      "guardrails": [
        {
          "body": "Prompt Preview 只展示流程，不证明项目已安装或运行。",
          "label": "Check 1",
          "value": "不要把试用当真实运行"
        },
        {
          "body": "claude, claude_code",
          "label": "Check 2",
          "value": "确认宿主兼容"
        },
        {
          "body": "publish to Doramagic.ai project surfaces",
          "label": "Check 3",
          "value": "先隔离验证"
        }
      ],
      "mode": "skill, recipe, host_instruction, eval, preflight",
      "pitfall_log": {
        "items": [
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Feature Request: Add CodeBuddy Code support",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_e09face1208e43d685be6c8ebf7015e9 | https://github.com/mksglu/context-mode/issues/651 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。"
            ],
            "severity": "high",
            "suggested_check": "来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。",
            "title": "来源证据：Feature Request: Add CodeBuddy Code support",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx_batch_execute corrupts heredoc commands by appending stderr redirection",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_6888a03e6d5b4d9492dff3e5efce4f48 | https://github.com/mksglu/context-mode/issues/656 | 来源讨论提到 python 相关条件，需在安装/试用前复核。"
            ],
            "severity": "high",
            "suggested_check": "来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。",
            "title": "来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：v1.0.146: plugin.json points to wrong skills path and stale MCP server path",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_e1ebfb0450e44c198d3ff017d55a51d0 | https://github.com/mksglu/context-mode/issues/658 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "high",
            "suggested_check": "来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。",
            "title": "来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：OpenCode plugin registers hooks only -- never registers ctx_* tools",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_d1ee350cd2374bb785a0628089fee355 | https://github.com/mksglu/context-mode/issues/637 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.claude/ instead of ~/.pi/",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_8f49345b591f4f51afc650b8732da4d3 | https://github.com/mksglu/context-mode/issues/561 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi subagent fails: DatabaseLockedError - another context-mode server is already running",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_e0a18821f52c4610a9109f8cb6920829 | https://github.com/mksglu/context-mode/issues/562 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：Pi subagent fails: DatabaseLockedError - another context-mode server is already running",
            "user_impact": "可能阻塞安装或首次运行。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: Hardcoded storage path for many platforms",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_b64e0c04c70b4726a0e860dc6a0954c9 | https://github.com/mksglu/context-mode/issues/649 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：[BUG]: Hardcoded storage path for many platforms",
            "user_impact": "可能阻塞安装或首次运行。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_89e33c17dcfa452c8ad33ba344a9c6bb | https://github.com/mksglu/context-mode/issues/646 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: Plugin-only installation does not work with OpenCode",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_50609b9a9e2b4d4682713f28fd4c5d6d | https://github.com/mksglu/context-mode/issues/652 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：[Bug]: Plugin-only installation does not work with OpenCode",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx-upgrade leaves old server process running (zombie instance on upgrade)",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_92a91d8bb13e4cf594229b3280c4d2eb | https://github.com/mksglu/context-mode/issues/559 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：ctx-upgrade leaves old server process running (zombie instance on upgrade)",
            "user_impact": "可能影响升级、迁移或版本选择。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个安装相关的待验证问题：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale; 4-char `lstatSync` fix",
            "category": "安装坑",
            "evidence": [
              "community_evidence:github | cevd_ccef8bb7485f482f9bcb08b6cc2494b2 | https://github.com/mksglu/context-mode/issues/644 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale;…",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。",
            "category": "配置坑",
            "evidence": [
              "capability.host_targets | github_repo:1164477708 | https://github.com/mksglu/context-mode | host_targets=claude, claude_code"
            ],
            "severity": "medium",
            "suggested_check": "列出会写入的配置文件、目录和卸载/回滚步骤。",
            "title": "可能修改宿主 AI 配置",
            "user_impact": "安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个配置相关的待验证问题：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs",
            "category": "配置坑",
            "evidence": [
              "community_evidence:github | cevd_a629676796f7486d9e185f643b260d07 | https://github.com/mksglu/context-mode/issues/560 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API request",
            "category": "配置坑",
            "evidence": [
              "community_evidence:github | cevd_d52bae5266e442cea5a1fa5b42f86c1a | https://github.com/mksglu/context-mode/issues/659 | 来源讨论提到 node 相关条件，需在安装/试用前复核。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API re…",
            "user_impact": "可能影响升级、迁移或版本选择。"
          },
          {
            "body": "README/documentation is current enough for a first validation pass.",
            "category": "能力坑",
            "evidence": [
              "capability.assumptions | github_repo:1164477708 | https://github.com/mksglu/context-mode | README/documentation is current enough for a first validation pass."
            ],
            "severity": "medium",
            "suggested_check": "将假设转成下游验证清单。",
            "title": "能力判断依赖假设",
            "user_impact": "假设不成立时，用户拿不到承诺的能力。"
          },
          {
            "body": "GitHub 社区证据显示该项目存在一个运行相关的待验证问题：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_stats` and timeline search degraded",
            "category": "运行坑",
            "evidence": [
              "community_evidence:github | cevd_cbceaf1c624d40049ac2151af7c1e83d | https://github.com/mksglu/context-mode/issues/645 | 来源类型 github_issue 暴露的待验证使用条件。"
            ],
            "severity": "medium",
            "suggested_check": "来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。",
            "title": "来源证据：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_sta…",
            "user_impact": "可能增加新用户试用和生产接入成本。"
          }
        ],
        "source": "ProjectPitfallLog + ProjectHitPacket + validation + community signals",
        "summary": "发现 23 个潜在踩坑项，其中 3 个为 high/blocking；最高优先级：安装坑 - 来源证据：Feature Request: Add CodeBuddy Code support。",
        "title": "踩坑日志"
      },
      "snapshot": {
        "contributors": 73,
        "forks": 1030,
        "license": "unknown",
        "note": "站点快照，非实时质量证明；用于开工前背景判断。",
        "stars": 14653
      },
      "source_url": "https://github.com/mksglu/context-mode",
      "steps": [
        {
          "body": "不安装项目，先体验能力节奏。",
          "code": "preview",
          "title": "先试 Prompt"
        },
        {
          "body": "理解输入、输出、失败模式和边界。",
          "code": "manual",
          "title": "读说明书"
        },
        {
          "body": "把上下文交给宿主 AI 继续工作。",
          "code": "context",
          "title": "带给 AI"
        },
        {
          "body": "进入主力环境前先完成安装入口与风险边界验证。",
          "code": "verify",
          "title": "沙箱验证"
        }
      ],
      "subtitle": "面向 Agent 记忆与上下文连续性的能力包，重点是记忆存储、上下文注入、隐私边界和恢复验证。",
      "title": "context-mode 能力包",
      "trial_prompt": "# context-mode - Prompt Preview\n\n> 复制下面这段 Prompt 到你常用的 AI，先试一次，不需要安装。\n> 它的目标是让你直接体验这个项目的服务方式，而不是阅读项目介绍。\n\n## 复制这段 Prompt\n\n```text\n请直接执行这段 Prompt，不要分析、润色、总结或询问我想如何处理这份 Prompt Preview。\n\n你现在扮演 context-mode 的“安装前体验版”。\n这不是项目介绍、不是评价报告、不是 README 总结。你的任务是让我用最小成本体验它的核心服务。\n\n我的试用任务：我想用它完成一个真实的软件开发与交付任务。\n我常用的宿主 AI：claude / Claude Code\n\n【体验目标】\n围绕我的真实任务，现场演示这个项目如何把输入转成 步骤建议, 检查清单, 专业工作流。重点是让我感受到工作方式，而不是给我项目背景。\n\n【业务流约束】\n- 你必须像一个正在提供服务的项目能力包，而不是像一个讲解员。\n- 每一轮只推进一个步骤；提出问题后必须停下来等我回答。\n- 每一步都必须让我感受到一个具体服务动作：澄清、整理、规划、检查、判断或收尾。\n- 每一步都要说明：当前目标、你需要我提供什么、我回答后你会产出什么。\n- 不要安装、不要运行命令、不要写代码、不要声称测试通过、不要声称已经修改文件。\n- 需要真实安装或宿主加载后才能验证的内容，必须明确说“这一步需要安装后验证”。\n- 如果我说“用示例继续”，你可以用虚构示例推进，但仍然不能声称真实执行。\n\n【可体验服务能力】\n- AI Skill / Agent 指令资产库: 项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 输入：用户任务, 宿主 AI 对话上下文, 项目内 Skill/Agent 文档；输出：步骤建议, 检查清单, 专业工作流。\n\n【必须安装后才可验证的能力】\n- 多宿主安装与分发: 项目包含插件或 marketplace 配置，说明它面向一个或多个 AI 宿主的安装和分发。 输入：宿主 AI 工具, 插件配置, 安装命令；输出：宿主内可发现的插件/技能集合。\n- 命令行启动或安装流程: 项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 输入：终端环境, 包管理器, 项目依赖；输出：安装结果, 列表/更新/运行结果。\n\n【核心服务流】\n请严格按这个顺序带我体验。不要一次性输出完整流程：\n1. overview：仓库概览。围绕“仓库概览”模拟一次用户任务，不展示安装或运行结果。\n2. entrypoints：入口与运行边界。围绕“入口与运行边界”模拟一次用户任务，不展示安装或运行结果。\n3. architecture：架构证据地图。围绕“架构证据地图”模拟一次用户任务，不展示安装或运行结果。\n4. operations：运维与验证边界。围绕“运维与验证边界”模拟一次用户任务，不展示安装或运行结果。\n\n【核心能力体验剧本】\n每一步都必须按“输入 -> 服务动作 -> 中间产物”执行。不要只说流程名：\n1. overview\n输入：用户提供的“仓库概览”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n2. entrypoints\n输入：用户提供的“入口与运行边界”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n3. architecture\n输入：用户提供的“架构证据地图”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n4. operations\n输入：用户提供的“运维与验证边界”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n【项目服务规则】\n这些规则决定你如何服务用户。不要解释规则本身，而要在每一步执行时遵守：\n- 先确认用户任务、输入材料和成功标准，再模拟项目能力。\n- 每一步都必须形成可检查的小产物，并等待用户确认后再继续。\n- 凡是需要安装、调用工具或访问外部服务的能力，都必须标记为安装后验证。\n\n【每一步的服务约束】\n- Step 1 / overview：Step 1 必须围绕“仓库概览”形成一个小中间产物，并等待用户确认。\n- Step 2 / entrypoints：Step 2 必须围绕“入口与运行边界”形成一个小中间产物，并等待用户确认。\n- Step 3 / architecture：Step 3 必须围绕“架构证据地图”形成一个小中间产物，并等待用户确认。\n- Step 4 / operations：Step 4 必须围绕“运维与验证边界”形成一个小中间产物，并等待用户确认。\n\n【边界与风险】\n- 不要声称已经安装、运行、调用 API、读写本地文件或完成真实任务。\n- 安装前预览只能展示工作方式，不能证明兼容性、性能或输出质量。\n- 涉及安装、插件加载、工具调用或外部服务的能力必须安装后验证。\n\n【可追溯依据】\n这些路径只用于你内部校验或在我追问“依据是什么”时简要引用。不要在首次回复主动展开：\n- https://github.com/mksglu/context-mode\n- https://github.com/mksglu/context-mode#readme\n- .claude/skills/context-mode-ops/SKILL.md\n- skills/context-mode/SKILL.md\n- skills/ctx-doctor/SKILL.md\n- skills/ctx-insight/SKILL.md\n- skills/ctx-purge/SKILL.md\n- skills/ctx-stats/SKILL.md\n- skills/ctx-upgrade/SKILL.md\n- README.md\n- package.json\n- .cursor-plugin/README.md\n\n【首次问题规则】\n- 首次三问必须先确认用户目标、成功标准和边界，不要提前进入工具、安装或实现细节。\n- 如果后续需要技术条件、文件路径或运行环境，必须等用户确认目标后再追问。\n\n首次回复必须只输出下面 4 个部分：\n1. 体验开始：用 1 句话说明你将带我体验 context-mode 的核心服务。\n2. 当前步骤：明确进入 Step 1，并说明这一步要解决什么。\n3. 你会如何服务我：说明你会先改变我完成任务的哪个动作。\n4. 只问我 3 个问题，然后停下等待回答。\n\n首次回复禁止输出：后续完整流程、证据清单、安装命令、项目评价、营销文案、已经安装或运行的说法。\n\nStep 1 / brainstorming 的二轮协议：\n- 我回答首次三问后，你仍然停留在 Step 1 / brainstorming，不要进入 Step 2。\n- 第二次回复必须产出 6 个部分：澄清后的任务定义、成功标准、边界条件、\n  2-3 个可选方案、每个方案的权衡、推荐方案。\n- 第二次回复最后必须问我是否确认推荐方案；只有我明确确认后，才能进入下一步。\n- 第二次回复禁止输出 git worktree、代码计划、测试文件、命令或真实执行结果。\n\n后续对话规则：\n- 我回答后，你先完成当前步骤的中间产物并等待确认；只有我确认后，才能进入下一步。\n- 每一步都要生成一个小的中间产物，例如澄清后的目标、计划草案、测试意图、验证清单或继续/停止判断。\n- 所有演示都写成“我会建议/我会引导/这一步会形成”，不要写成已经真实执行。\n- 不要声称已经测试通过、文件已修改、命令已运行或结果已产生。\n- 如果某个能力必须安装后验证，请直接说“这一步需要安装后验证”。\n- 如果证据不足，请明确说“证据不足”，不要补事实。\n```\n",
      "voices": [
        {
          "body": "来源平台：github。github/github_issue: v1.0.146: plugin.json points to wrong skills path and stale MCP server p（https://github.com/mksglu/context-mode/issues/658）；github/github_issue: Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD8（https://github.com/mksglu/context-mode/issues/659）；github/github_issue: [Bug]: Plugin-only installation does not work with OpenCode（https://github.com/mksglu/context-mode/issues/652）；github/github_issue: ctx_batch_execute corrupts heredoc commands by appending stderr redirect（https://github.com/mksglu/context-mode/issues/656）；github/github_issue: v1.0.146: Plugin error 'Path not found: .claude/skills' — actual path is（https://github.com/mksglu/context-mode/issues/655）；github/github_issue: Feature Request: Add CodeBuddy Code support（https://github.com/mksglu/context-mode/issues/651）；github/github_issue: [BUG]: Hardcoded storage path for many platforms（https://github.com/mksglu/context-mode/issues/649）；github/github_issue: [BUG]: MCP bridge silently degrades on slow `initialize` — retry on time（https://github.com/mksglu/context-mode/issues/647）；github/github_issue: [BUG]: `ctx_search` source filter does not escape LIKE wildcards — unint（https://github.com/mksglu/context-mode/issues/646）；github/github_issue: [BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP s（https://github.com/mksglu/context-mode/issues/645）；github/github_issue: sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — （https://github.com/mksglu/context-mode/issues/644）；github/github_issue: PreToolUse hook fails on project paths containing spaces (macOS)（https://github.com/mksglu/context-mode/issues/636）。这些是项目级外部声音，不作为单独质量证明。",
          "items": [
            {
              "kind": "github_issue",
              "source": "github",
              "title": "v1.0.146: plugin.json points to wrong skills path and stale MCP server p",
              "url": "https://github.com/mksglu/context-mode/issues/658"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD8",
              "url": "https://github.com/mksglu/context-mode/issues/659"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "[Bug]: Plugin-only installation does not work with OpenCode",
              "url": "https://github.com/mksglu/context-mode/issues/652"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "ctx_batch_execute corrupts heredoc commands by appending stderr redirect",
              "url": "https://github.com/mksglu/context-mode/issues/656"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "v1.0.146: Plugin error 'Path not found: .claude/skills' — actual path is",
              "url": "https://github.com/mksglu/context-mode/issues/655"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "Feature Request: Add CodeBuddy Code support",
              "url": "https://github.com/mksglu/context-mode/issues/651"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "[BUG]: Hardcoded storage path for many platforms",
              "url": "https://github.com/mksglu/context-mode/issues/649"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "[BUG]: MCP bridge silently degrades on slow `initialize` — retry on time",
              "url": "https://github.com/mksglu/context-mode/issues/647"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unint",
              "url": "https://github.com/mksglu/context-mode/issues/646"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP s",
              "url": "https://github.com/mksglu/context-mode/issues/645"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — ",
              "url": "https://github.com/mksglu/context-mode/issues/644"
            },
            {
              "kind": "github_issue",
              "source": "github",
              "title": "PreToolUse hook fails on project paths containing spaces (macOS)",
              "url": "https://github.com/mksglu/context-mode/issues/636"
            }
          ],
          "status": "已收录 14 条来源",
          "title": "社区讨论"
        }
      ]
    },
    "homepage_card": {
      "category": "个人工作空间",
      "desc": "面向 Agent 记忆与上下文连续性的能力包，重点是记忆存储、上下文注入、隐私边界和恢复验证。",
      "effort": "安装已验证",
      "forks": 1030,
      "icon": "code",
      "name": "context-mode 能力包",
      "risk": "可发布",
      "slug": "context-mode",
      "stars": 14653,
      "tags": [
        "Agent 记忆",
        "上下文连续性",
        "记忆存储",
        "上下文注入",
        "隐私边界"
      ],
      "thumb": "gray",
      "type": "Skill Pack"
    },
    "manual": {
      "markdown": "# https://github.com/mksglu/context-mode 项目说明书\n\n生成时间: 2026-05-21 22:05:53 UTC\n\n## 目录\n\n- [仓库概览](#overview)\n- [入口与运行边界](#entrypoints)\n- [架构证据地图](#architecture)\n- [运维与验证边界](#operations)\n\n<a id='overview'></a>\n\n## 仓库概览\n\n### 相关页面\n\n相关主题：[入口与运行边界](#entrypoints), [架构证据地图](#architecture), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 仓库概览\n\n本页在 Human Wiki provider 不可用时基于仓库证据生成，只使用 README、文件树和已选源码文件，不把模板描述冒充项目事实。\n\n## README 证据\n\n# Context Mode\n\n**The other half of the context problem.**\n\n[![users](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.message&label=users&color=brightgreen)](https://www.npmjs.com/package/context-mode) [![npm](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.npm&label=npm&color=blue)](https://www.npmjs.com/package/context-mode) [![marketplace](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.marketplace&label=marketplace&color=blue)](https://github.com/mksglu/context-mode) [![GitHub stars](https://img.shields.io/github/stars/mksglu/context-mode?style=flat&color=yellow)](https://github.com/mksglu/context-mode/stargazers) [![GitHub forks](https://img.shields.io/github/forks/mksglu/context-mode?style=flat&color=blue)](https://github.com/mksglu/context-mode/network/members) [![Last commit](https://img.shields.io/github/last-commit/mksglu/context-mode?color=green)](https://github.com/mksglu/context-mode/commits) [![License: ELv2](https://img.shields.io/badge/License-ELv2-blue.svg)](LICENSE)\n[![Discord](https://img.shields.io/discord/1478479412700909750?label=Discord&logo=discord&color=5865f2)](https://discord.gg/DCN9jUgN5v)\n[![Hacker News #1](https://img.shields.io/badge/Hacker%20News-%231%20%E2%80%A2%20570%2B%20points-ff6600?logo=ycombinator&logoColor=white)](https://news.ycombinator.com/item?id=47193064)\n\n<p align=\"center\">\n<sub>Used across teams at</sub>\n<br><br>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Microsoft-141414?style=flat\" alt=\"Microsoft\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Google-141414?style=flat&logo=google&logoColor=white\" alt=\"Google\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Meta-141414?style=flat&logo=meta&logoColor=white\" alt=\"Meta\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Amazon-141414?style=flat\" alt=\"Amazon\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/IBM-141414?style=flat\" alt=\"IBM\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/NVIDIA-141414?style=flat&logo=nvidia&logoColor=white\" alt=\"NVIDIA\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/ByteDance-141414?style=flat&logo=bytedance&\n\n[excerpt truncated]\n\n## 已选源码清单\n\n- `README.md`\n- `package.json`\n- `.cursor-plugin/README.md`\n- `.openclaw-plugin/package.json`\n- `insight/package.json`\n- `.pi/extensions/context-mode/package.json`\n- `src/cli.ts`\n- `src/db-base.ts`\n- `src/executor.ts`\n- `src/exit-classify.ts`\n- `src/fetch-cache.ts`\n- `src/lifecycle.ts`\n\n| 文件 | 证据角色 | 大小 |\n|---|---|---|\n| `README.md` | README/产品与使用证据 | 80231 bytes |\n| `package.json` | 包与运行时元数据 | 5618 bytes |\n| `.cursor-plugin/README.md` | 文档证据 | 5288 bytes |\n| `.openclaw-plugin/package.json` | 包与运行时元数据 | 702 bytes |\n| `insight/package.json` | 包与运行时元数据 | 1435 bytes |\n| `.pi/extensions/context-mode/package.json` | 包与运行时元数据 | 248 bytes |\n| `src/cli.ts` | 实现边界 | 69813 bytes |\n| `src/db-base.ts` | 实现边界 | 25156 bytes |\n| `src/executor.ts` | 实现边界 | 26099 bytes |\n| `src/exit-classify.ts` | 实现边界 | 846 bytes |\n| `src/fetch-cache.ts` | 实现边界 | 762 bytes |\n| `src/lifecycle.ts` | 实现边界 | 6692 bytes |\n\n资料来源：`[README.md:1-120]()`\n\n---\n\n<a id='entrypoints'></a>\n\n## 入口与运行边界\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [架构证据地图](#architecture), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 入口与运行边界\n\n下面文件是安装、启动、配置或宿主集成的高信号候选。这里给出证据地图，不推断未经执行验证的 API 契约。\n\n| 文件 | 证据角色 | 大小 |\n|---|---|---|\n| `README.md` | README/产品与使用证据 | 80231 bytes |\n| `package.json` | 包与运行时元数据 | 5618 bytes |\n| `.cursor-plugin/README.md` | 文档证据 | 5288 bytes |\n| `.openclaw-plugin/package.json` | 包与运行时元数据 | 702 bytes |\n| `insight/package.json` | 包与运行时元数据 | 1435 bytes |\n| `.pi/extensions/context-mode/package.json` | 包与运行时元数据 | 248 bytes |\n| `src/cli.ts` | 实现边界 | 69813 bytes |\n| `src/db-base.ts` | 实现边界 | 25156 bytes |\n| `src/executor.ts` | 实现边界 | 26099 bytes |\n| `src/exit-classify.ts` | 实现边界 | 846 bytes |\n| `src/fetch-cache.ts` | 实现边界 | 762 bytes |\n| `src/lifecycle.ts` | 实现边界 | 6692 bytes |\n\n资料来源：`[README.md:1-120](https://github.com/mksglu/context-mode/blob/main/README.md)`\n\n---\n\n<a id='architecture'></a>\n\n## 架构证据地图\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 架构证据地图\n\n本节只根据仓库路径组织可能的架构区域；需要运行验证的行为不会在这里断言。\n\n- `.`: `README.md`, `package.json`\n- `.cursor-plugin`: `.cursor-plugin/README.md`\n- `.openclaw-plugin`: `.openclaw-plugin/package.json`\n- `.pi`: `.pi/extensions/context-mode/package.json`\n- `insight`: `insight/package.json`\n- `src`: `src/cli.ts`, `src/db-base.ts`, `src/executor.ts`, `src/exit-classify.ts`, `src/fetch-cache.ts`, `src/lifecycle.ts`\n\n资料来源：`[package.json:1-120](https://github.com/mksglu/context-mode/blob/main/package.json)`\n\n---\n\n<a id='operations'></a>\n\n## 运维与验证边界\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [架构证据地图](#architecture)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 运维与验证边界\n\n运维建议仅来自仓库中真实存在的文件。把该项目用于 agent 工作流前，仍需在 sandbox 中验证安装、quickstart 和运行行为。\n\n- Documentation signal: `README.md`\n- Runtime/package signal: `package.json`\n- Documentation signal: `.cursor-plugin/README.md`\n- Runtime/package signal: `.openclaw-plugin/package.json`\n- Runtime/package signal: `insight/package.json`\n- Runtime/package signal: `.pi/extensions/context-mode/package.json`\n- Source inspection signal: `src/cli.ts`\n- Source inspection signal: `src/db-base.ts`\n- Source inspection signal: `src/executor.ts`\n- Source inspection signal: `src/exit-classify.ts`\n\n资料来源：`[.cursor-plugin/README.md:1-120](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)`\n\n---\n\n---\n\n## Doramagic 踩坑日志\n\n项目：mksglu/context-mode\n\n摘要：发现 23 个潜在踩坑项，其中 3 个为 high/blocking；最高优先级：安装坑 - 来源证据：Feature Request: Add CodeBuddy Code support。\n\n## 1. 安装坑 · 来源证据：Feature Request: Add CodeBuddy Code support\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Feature Request: Add CodeBuddy Code support\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e09face1208e43d685be6c8ebf7015e9 | https://github.com/mksglu/context-mode/issues/651 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 2. 安装坑 · 来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_6888a03e6d5b4d9492dff3e5efce4f48 | https://github.com/mksglu/context-mode/issues/656 | 来源讨论提到 python 相关条件，需在安装/试用前复核。\n\n## 3. 安装坑 · 来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e1ebfb0450e44c198d3ff017d55a51d0 | https://github.com/mksglu/context-mode/issues/658 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 4. 安装坑 · 来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：OpenCode plugin registers hooks only -- never registers ctx_* tools\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d1ee350cd2374bb785a0628089fee355 | https://github.com/mksglu/context-mode/issues/637 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 5. 安装坑 · 来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.claude/ instead of ~/.pi/\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_8f49345b591f4f51afc650b8732da4d3 | https://github.com/mksglu/context-mode/issues/561 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 6. 安装坑 · 来源证据：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e0a18821f52c4610a9109f8cb6920829 | https://github.com/mksglu/context-mode/issues/562 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 7. 安装坑 · 来源证据：[BUG]: Hardcoded storage path for many platforms\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: Hardcoded storage path for many platforms\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_b64e0c04c70b4726a0e860dc6a0954c9 | https://github.com/mksglu/context-mode/issues/649 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 8. 安装坑 · 来源证据：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_89e33c17dcfa452c8ad33ba344a9c6bb | https://github.com/mksglu/context-mode/issues/646 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 9. 安装坑 · 来源证据：[Bug]: Plugin-only installation does not work with OpenCode\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: Plugin-only installation does not work with OpenCode\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_50609b9a9e2b4d4682713f28fd4c5d6d | https://github.com/mksglu/context-mode/issues/652 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 10. 安装坑 · 来源证据：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_92a91d8bb13e4cf594229b3280c4d2eb | https://github.com/mksglu/context-mode/issues/559 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 11. 安装坑 · 来源证据：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale;…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale; 4-char `lstatSync` fix\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_ccef8bb7485f482f9bcb08b6cc2494b2 | https://github.com/mksglu/context-mode/issues/644 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 12. 配置坑 · 可能修改宿主 AI 配置\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。\n- 对用户的影响：安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。\n- 建议检查：列出会写入的配置文件、目录和卸载/回滚步骤。\n- 防护动作: 涉及宿主配置目录时必须给回滚路径，不能只给安装命令。\n- 证据：capability.host_targets | github_repo:1164477708 | https://github.com/mksglu/context-mode | host_targets=claude, claude_code\n\n## 13. 配置坑 · 来源证据：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_a629676796f7486d9e185f643b260d07 | https://github.com/mksglu/context-mode/issues/560 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 14. 配置坑 · 来源证据：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API re…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API request\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d52bae5266e442cea5a1fa5b42f86c1a | https://github.com/mksglu/context-mode/issues/659 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 15. 能力坑 · 能力判断依赖假设\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：README/documentation is current enough for a first validation pass.\n- 对用户的影响：假设不成立时，用户拿不到承诺的能力。\n- 建议检查：将假设转成下游验证清单。\n- 防护动作: 假设必须转成验证项；没有验证结果前不能写成事实。\n- 证据：capability.assumptions | github_repo:1164477708 | https://github.com/mksglu/context-mode | README/documentation is current enough for a first validation pass.\n\n## 16. 运行坑 · 来源证据：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_sta…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个运行相关的待验证问题：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_stats` and timeline search degraded\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_cbceaf1c624d40049ac2151af7c1e83d | https://github.com/mksglu/context-mode/issues/645 | 来源类型 github_issue 暴露的待验证使用条件。\n\n## 17. 维护坑 · 维护活跃度未知\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：未记录 last_activity_observed。\n- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。\n- 建议检查：补 GitHub 最近 commit、release、issue/PR 响应信号。\n- 防护动作: 维护活跃度未知时，推荐强度不能标为高信任。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | last_activity_observed missing\n\n## 18. 安全/权限坑 · 下游验证发现风险项\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：下游已经要求复核，不能在页面中弱化。\n- 建议检查：进入安全/权限治理复核队列。\n- 防护动作: 下游风险存在时必须保持 review/recommendation 降级。\n- 证据：downstream_validation.risk_items | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 19. 安全/权限坑 · 存在评分风险\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：风险会影响是否适合普通用户安装。\n- 建议检查：把风险写入边界卡，并确认是否需要人工复核。\n- 防护动作: 评分风险必须进入边界卡，不能只作为内部分数。\n- 证据：risks.scoring_risks | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 20. 安全/权限坑 · 来源证据：PreToolUse hook fails on project paths containing spaces (macOS)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：PreToolUse hook fails on project paths containing spaces (macOS)\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_0e6f8fa845c0493db18d97fc48cf1b82 | https://github.com/mksglu/context-mode/issues/636 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 21. 安全/权限坑 · 来源证据：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n- 对用户的影响：可能影响授权、密钥配置或安全边界。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_c17fbb0a32674c7b9dad1eefe4a0c3d2 | https://github.com/mksglu/context-mode/issues/647 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 22. 维护坑 · issue/PR 响应质量未知\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：issue_or_pr_quality=unknown。\n- 对用户的影响：用户无法判断遇到问题后是否有人维护。\n- 建议检查：抽样最近 issue/PR，判断是否长期无人处理。\n- 防护动作: issue/PR 响应未知时，必须提示维护风险。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | issue_or_pr_quality=unknown\n\n## 23. 维护坑 · 发布节奏不明确\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：release_recency=unknown。\n- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。\n- 建议检查：确认最近 release/tag 和 README 安装命令是否一致。\n- 防护动作: 发布节奏未知或过期时，安装说明必须标注可能漂移。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | release_recency=unknown\n\n<!-- canonical_name: mksglu/context-mode; human_manual_source: deepwiki_human_wiki -->\n",
      "markdown_key": "context-mode",
      "pages": "draft",
      "source_refs": [
        {
          "evidence_id": "github_repo:1164477708",
          "kind": "repo",
          "supports_claim_ids": [
            "claim_identity",
            "claim_distribution",
            "claim_capability"
          ],
          "url": "https://github.com/mksglu/context-mode"
        },
        {
          "evidence_id": "art_639e82c154234dada82faa1467629655",
          "kind": "docs",
          "supports_claim_ids": [
            "claim_identity",
            "claim_distribution",
            "claim_capability"
          ],
          "url": "https://github.com/mksglu/context-mode#readme"
        }
      ],
      "summary": "DeepWiki/Human Wiki 完整输出，末尾追加 Discovery Agent 踩坑日志。",
      "title": "context-mode 说明书",
      "toc": [
        "https://github.com/mksglu/context-mode 项目说明书",
        "目录",
        "仓库概览",
        "README 证据",
        "Context Mode",
        "已选源码清单",
        "入口与运行边界",
        "架构证据地图",
        "Doramagic 踩坑日志"
      ]
    }
  },
  "quality_gate": {
    "blocking_gaps": [],
    "category_confidence": "medium",
    "compile_status": "ready_for_review",
    "five_assets_present": true,
    "install_sandbox_verified": true,
    "missing_evidence": [],
    "next_action": "publish to Doramagic.ai project surfaces",
    "prompt_preview_boundary_ok": true,
    "publish_status": "publishable",
    "quick_start_verified": true,
    "repo_clone_verified": true,
    "repo_commit": "46715936325f36fe9392caf45d8c9d28650ec7da",
    "repo_inspection_error": null,
    "repo_inspection_files": [
      "package.json",
      "README.md",
      "docs/platform-support.md",
      "docs/UPSTREAM-CREDITS.md",
      "docs/jetbrains-copilot.md",
      "docs/adr/0001-sessiondb-multi-writer.md",
      "docs/adapters/openclaw.md",
      "src/runPool.ts",
      "src/lifecycle.ts",
      "src/runtime.ts",
      "src/server.ts",
      "src/types.ts",
      "src/db-base.ts",
      "src/store.ts",
      "src/exit-classify.ts",
      "src/security.ts",
      "src/truncate.ts",
      "src/cli.ts",
      "src/executor.ts",
      "src/fetch-cache.ts",
      "src/session/purge.ts",
      "src/session/project-attribution.ts",
      "src/session/db.ts",
      "src/session/snapshot.ts",
      "src/session/persist-tool-calls.ts",
      "src/session/extract.ts",
      "src/session/event-emit.ts",
      "src/session/analytics.ts",
      "src/util/claude-config.ts",
      "src/util/project-dir.ts",
      "src/util/plugin-cache-integrity.ts",
      "src/util/hook-config.ts",
      "src/util/sibling-mcp.ts",
      "src/adapters/client-map.ts",
      "src/adapters/base.ts",
      "src/adapters/types.ts",
      "src/adapters/copilot-base.ts",
      "src/adapters/claude-code-base.ts",
      "src/adapters/detect.ts",
      "src/search/unified.ts"
    ],
    "repo_inspection_verified": true,
    "review_reasons": [],
    "tag_count_ok": true,
    "unsupported_claims": [],
    "semantic_rework": {
      "status": "fallback_patched",
      "identity": "agent_memory_context",
      "source": "semantic_truth_gate"
    }
  },
  "schema_version": "0.1",
  "user_assets": {
    "ai_context_pack": {
      "asset_id": "ai_context_pack",
      "filename": "AI_CONTEXT_PACK.md",
      "markdown": "# context-mode - Doramagic AI Context Pack\n\n> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。\n\n## 充分原则\n\n- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。\n- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。\n\n## 给宿主 AI 的使用方式\n\n你正在读取 Doramagic 为 context-mode 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。\n\n## Claim 消费规则\n\n- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。\n- **事实最低状态**：`supported`\n- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。\n- `weak`：只能作为低置信度线索，必须要求用户继续核实。\n- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。\n- `unverified`：不得作为事实使用，应明确说证据不足。\n- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。\n\n## 它最适合谁\n\n- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0004` supported 0.86\n- **希望把专业流程带进宿主 AI 的用户**：仓库包含 Skill 文档。 证据：`.claude/skills/context-mode-ops/SKILL.md`, `skills/context-mode/SKILL.md`, `skills/ctx-doctor/SKILL.md`, `skills/ctx-insight/SKILL.md` 等 Claim：`clm_0005` supported 0.86\n\n## 它能做什么\n\n- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`.claude/skills/context-mode-ops/SKILL.md`, `skills/context-mode/SKILL.md`, `skills/ctx-doctor/SKILL.md`, `skills/ctx-insight/SKILL.md` 等 Claim：`clm_0001` supported 0.86\n- **多宿主安装与分发**（需要安装后验证）：项目包含插件或 marketplace 配置，说明它面向一个或多个 AI 宿主的安装和分发。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等 Claim：`clm_0002` supported 0.86\n- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0003` supported 0.86\n\n## 怎么开始\n\n- `/plugin marketplace add mksglu/context-mode` 证据：`README.md` Claim：`clm_0006` supported 0.86\n- `/plugin install context-mode@context-mode` 证据：`README.md` Claim：`clm_0007` supported 0.86\n- `claude mcp add context-mode -- npx -y context-mode` 证据：`README.md` Claim：`clm_0008` supported 0.86\n- `npm install -g context-mode` 证据：`README.md` Claim：`clm_0009` supported 0.86\n- `git clone https://github.com/mksglu/context-mode.git` 证据：`README.md` Claim：`clm_0010` supported 0.86\n\n## 继续前判断卡\n\n- **当前建议**：先做权限沙盒试用\n- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。\n\n### 30 秒判断\n\n- **现在怎么做**：先做权限沙盒试用\n- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装\n- **先别相信**：工具权限边界不能在安装前相信。\n- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件\n\n### 现在可以相信\n\n- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0004` supported 0.86\n- **适合人群线索：希望把专业流程带进宿主 AI 的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`.claude/skills/context-mode-ops/SKILL.md`, `skills/context-mode/SKILL.md`, `skills/ctx-doctor/SKILL.md`, `skills/ctx-insight/SKILL.md` 等 Claim：`clm_0005` supported 0.86\n- **能力存在：AI Skill / Agent 指令资产库**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`.claude/skills/context-mode-ops/SKILL.md`, `skills/context-mode/SKILL.md`, `skills/ctx-doctor/SKILL.md`, `skills/ctx-insight/SKILL.md` 等 Claim：`clm_0001` supported 0.86\n- **能力存在：多宿主安装与分发**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等 Claim：`clm_0002` supported 0.86\n- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0003` supported 0.86\n- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0006` supported 0.86\n\n### 现在还不能相信\n\n- **工具权限边界不能在安装前相信。**（unverified）：MCP/tool 类项目通常会触碰文件、网络、浏览器或外部 API，必须真实检查权限和日志。\n- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。\n- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。\n- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.claude/skills/context-mode-ops/SKILL.md` 等\n- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。\n- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等\n- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。\n- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`\n\n### 继续会触碰什么\n\n- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`\n- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.claude/skills/context-mode-ops/SKILL.md` 等\n- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等\n- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。\n\n### 最小安全下一步\n\n- **先跑 Prompt Preview**：用安装前交互式试用判断工作方式是否匹配，不需要授权或改环境。（适用：任何项目都适用，尤其是输出质量未知时。）\n- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）\n- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）\n- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）\n\n### 退出方式\n\n- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。\n- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。\n- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。\n- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。\n\n## 哪些只能预览\n\n- 解释项目适合谁和能做什么\n- 基于项目文档演示典型对话流程\n- 帮助用户判断是否值得安装或继续研究\n\n## 哪些必须安装后验证\n\n- 真实安装 Skill、插件或 CLI\n- 执行脚本、修改本地文件或访问外部服务\n- 验证真实输出质量、性能和兼容性\n\n## 边界与风险判断卡\n\n- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0011` inferred 0.45\n- **宿主 AI 插件或 Skill 规则冲突**：新规则可能改变用户现有宿主 AI 的工作方式。 处理方式：安装前先检查插件 manifest 和 Skill 文件，必要时隔离测试。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等 Claim：`clm_0012` supported 0.86\n- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0013` supported 0.86\n- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。\n- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。\n- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。\n\n## 开工前工作上下文\n\n### 加载顺序\n\n- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。\n- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。\n- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。\n- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。\n- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。\n\n### 任务路由\n\n- **AI Skill / Agent 指令资产库**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`.claude/skills/context-mode-ops/SKILL.md`, `skills/context-mode/SKILL.md`, `skills/ctx-doctor/SKILL.md`, `skills/ctx-insight/SKILL.md` 等 Claim：`clm_0001` supported 0.86\n- **多宿主安装与分发**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`.agents/plugins/marketplace.json`, `.claude-plugin/marketplace.json`, `.claude-plugin/plugin.json`, `.codex-plugin/plugin.json` 等 Claim：`clm_0002` supported 0.86\n- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0003` supported 0.86\n\n### 上下文规模\n\n- 文件总数：463\n- 重要文件覆盖：40/463\n- 证据索引条目：80\n- 角色 / Skill 条目：7\n\n### 证据不足时的处理\n\n- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。\n- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。\n- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。\n- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。\n\n## Prompt Recipes\n\n### 适配判断\n\n- 目标：判断这个项目是否适合用户当前任务。\n- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。\n\n```text\n请基于 context-mode 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。\n```\n\n### 安装前体验\n\n- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。\n- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。\n\n```text\n请把 context-mode 当作安装前体验资产，而不是已安装工具或真实运行环境。\n\n请严格输出四段：\n1. 先问我 3 个必要问题。\n2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。\n3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。\n4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。\n\n硬性边界：\n- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。\n- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。\n- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。\n- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。\n- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。\n- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。\n\n```\n\n### 角色 / Skill 选择\n\n- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。\n- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。\n\n```text\n请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。\n```\n\n### 风险预检\n\n- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。\n- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。\n\n```text\n请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。\n```\n\n### 宿主 AI 开工指令\n\n- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。\n- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。\n\n```text\n请基于 context-mode 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。\n```\n\n\n## 角色 / Skill 索引\n\n- 共索引 7 个角色 / Skill / 项目文档条目。\n\n- **context-mode-ops**（skill）：Manage context-mode GitHub issues, PRs, releases, and marketing with parallel subagent army. Orchestrates 10-20 dynamic agents per task. Use when triaging issues, reviewing PRs, releasing versions, writing LinkedIn posts, announcing releases, fixing bugs, merging contributions, validating ENV vars, testing adapters, or syncing branches. 激活提示：当用户任务与“context-mode-ops”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`.claude/skills/context-mode-ops/SKILL.md`\n- **context-mode**（skill）： 激活提示：当用户任务与“context-mode”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/context-mode/SKILL.md`\n- **ctx-doctor**（skill）： 激活提示：当用户任务与“ctx-doctor”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ctx-doctor/SKILL.md`\n- **ctx-insight**（skill）： 激活提示：当用户任务与“ctx-insight”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ctx-insight/SKILL.md`\n- **ctx-purge**（skill）： 激活提示：当用户任务与“ctx-purge”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ctx-purge/SKILL.md`\n- **ctx-stats**（skill）： 激活提示：当用户任务与“ctx-stats”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ctx-stats/SKILL.md`\n- **ctx-upgrade**（skill）： 激活提示：当用户任务与“ctx-upgrade”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/ctx-upgrade/SKILL.md`\n\n## 证据索引\n\n- 共索引 80 条证据。\n\n- **context-mode**（documentation）：Save 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and native Cursor v1.7+ hook routing for context protection. 证据：`.cursor-plugin/README.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`CLAUDE.md`\n- **Context Mode**（documentation）：The other half of the context problem. 证据：`README.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/antigravity/GEMINI.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/claude-code/CLAUDE.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/gemini-cli/GEMINI.md`\n- **Package**（package_manifest）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"description\": \"OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.\", \"author\": { \"name\": \"Mert Koseoğlu\", \"url\": \"https://github.com/mksglu\" }, \"homepage\": \"https://github.com/mksglu/context-mode readme\", \"repository\": \"https://github.com/mksglu/context-mode\", \"license\": \"Elastic-2.0\", \"keywords\": \"openclaw\", \"mcp\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"playwright\", \"context7\" , \"openclaw\": { \"extensions\": \"./index.ts\" } } 证据：`.openclaw-plugin/package.json`\n- **Package**（package_manifest）：{ \"name\": \"memory-ui\", \"private\": true, \"type\": \"module\", \"imports\": { \" / \": \"./src/ \" }, \"scripts\": { \"dev\": \"vite dev --port 3000\", \"build\": \"vite build\", \"preview\": \"vite preview\", \"test\": \"vitest run\" }, \"dependencies\": { \"@base-ui/react\": \"^1.4.0\", \"@fontsource-variable/geist\": \"^5.2.8\", \"@tailwindcss/vite\": \"^4.1.18\", \"@tanstack/react-devtools\": \"latest\", \"@tanstack/react-router\": \"latest\", \"@tanstack/react-router-devtools\": \"latest\", \"@tanstack/router-plugin\": \"^1.132.0\", \"class-variance-authority\": \"^0.7.1\", \"clsx\": \"^2.1.1\", \"lucide-react\": \"^0.545.0\", \"react\": \"^19.2.0\", \"react-dom\": \"^19.2.0\", \"recharts\": \"^3.8.1\", \"shadcn\": \"^4.2.0\", \"tailwind-merge\": \"^3.5.0\", \"tailwindcss\": \"… 证据：`insight/package.json`\n- **Package**（package_manifest）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"type\": \"module\", \"description\": \"MCP plugin that saves 98% of your context window. Works with Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.\", \"author\": \"Mert Koseoğlu\", \"license\": \"Elastic-2.0\", \"keywords\": \"mcp\", \"model-context-protocol\", \"claude\", \"claude-code\", \"gemini-cli\", \"vscode-copilot\", \"opencode\", \"openclaw\", \"codex-cli\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"pi-package\" , \"repository\": { \"type\": \"git\", \"url\": \"https://github.com/mksglu/context-mode\" }, \"homepage\": \"https://github.com/mksglu/context-mode readme\", \"… 证据：`package.json`\n- **Package**（package_manifest）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"description\": \"Context-mode extension for Pi coding agent — session continuity and context window protection\", \"main\": \"index.ts\", \"dependencies\": { \"better-sqlite3\": \"^11.0.0\" } } 证据：`.pi/extensions/context-mode/package.json`\n- **Contributing to context-mode**（documentation）：This project is licensed under the Elastic License 2.0 ELv2 and moves forward with your support. Every issue, every PR, every idea matters. 证据：`CONTRIBUTING.md`\n- **OWNER OPERATING DIRECTIVE — ABSOLUTE, NON-NEGOTIABLE PREAMBLE**（skill_instruction）：OWNER OPERATING DIRECTIVE — ABSOLUTE, NON-NEGOTIABLE PREAMBLE 证据：`.claude/skills/context-mode-ops/SKILL.md`\n- **Context Mode: Default for All Large Output**（skill_instruction）：Context Mode: Default for All Large Output 证据：`skills/context-mode/SKILL.md`\n- **Context Mode Doctor**（skill_instruction）：Run diagnostics and display results directly in the conversation. 证据：`skills/ctx-doctor/SKILL.md`\n- **Context Mode Insight**（skill_instruction）：Open the personal analytics dashboard in the browser. 证据：`skills/ctx-insight/SKILL.md`\n- **Context Mode Purge**（skill_instruction）：Permanently deletes session data for this project. Two scopes are supported issue 520 : 证据：`skills/ctx-purge/SKILL.md`\n- **Context Mode Stats**（skill_instruction）：Show context savings for the current session. 证据：`skills/ctx-stats/SKILL.md`\n- **Context Mode Upgrade**（skill_instruction）：Pull latest from GitHub and reinstall the plugin. 证据：`skills/ctx-upgrade/SKILL.md`\n- **Marketplace**（structured_config）：{ \"name\": \"context-mode\", \"owner\": { \"name\": \"Mert Koseoğlu\", \"email\": \"code.bm.ksglu@gmail.com\" }, \"metadata\": { \"description\": \"Claude Code plugins by Mert Koseoğlu\", \"version\": \"1.0.146\" }, \"plugins\": { \"name\": \"context-mode\", \"source\": \"./\", \"description\": \"Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.\", \"version\": \"1.0.146\", \"author\": { \"name\": \"Mert Koseoğlu\" }, \"category\": \"development\", \"keywords\": \"mcp\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"playwright\", \"context7\" } } 证据：`.claude-plugin/marketplace.json`\n- **Plugin**（structured_config）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"description\": \"MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.\", \"author\": { \"name\": \"Mert Koseoğlu\", \"url\": \"https://github.com/mksglu\" }, \"homepage\": \"https://github.com/mksglu/context-mode readme\", \"repository\": \"https://github.com/mksglu/context-mode\", \"license\": \"Elastic-2.0\", \"keywords\": \"mcp\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"playwright\", \"context7\" , \"mcpServers\": { \"context-mode\": { \"command\": \"node\", \"args\": \"${CLAUDE PLUGIN ROOT}/start.mjs\" } }, \"sk… 证据：`.claude-plugin/plugin.json`\n- **Plugin**（structured_config）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"description\": \"MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.\", \"author\": { \"name\": \"Mert Koseoğlu\", \"url\": \"https://github.com/mksglu\" }, \"homepage\": \"https://github.com/mksglu/context-mode readme\", \"repository\": \"https://github.com/mksglu/context-mode\", \"license\": \"Elastic-2.0\", \"keywords\": \"mcp\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"playwright\", \"context7\" , \"mcpServers\": \"./.codex-plugin/mcp.json\", \"hooks\": \"./.codex-plugin/hooks.json\", \"skills\": \"./skills/\",… 证据：`.codex-plugin/plugin.json`\n- **Plugin**（structured_config）：{ \"name\": \"context-mode\", \"version\": \"1.0.146\", \"description\": \"Cursor plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, intent-driven search, and native Cursor v1.7+ hook routing for context protection.\", \"author\": { \"name\": \"Mert Koseoğlu\", \"email\": \"code.bm.ksglu@gmail.com\" }, \"homepage\": \"https://github.com/mksglu/context-mode readme\", \"repository\": \"https://github.com/mksglu/context-mode\", \"license\": \"Elastic-2.0\", \"logo\": \".cursor-plugin/assets/logo.png\", \"keywords\": \"mcp\", \"context-window\", \"sandbox\", \"code-execution\", \"fts5\", \"bm25\", \"playwright\", \"context7\", \"cursor\" , \"rules\": \"./configs/cursor/context-mo… 证据：`.cursor-plugin/plugin.json`\n- **Marketplace**（structured_config）：{ \"name\": \"context-mode\", \"interface\": { \"displayName\": \"context-mode\" }, \"plugins\": { \"name\": \"context-mode\", \"source\": { \"source\": \"local\", \"path\": \"./plugins/context-mode\" }, \"policy\": { \"installation\": \"AVAILABLE\", \"authentication\": \"ON INSTALL\" }, \"category\": \"Productivity\" } } 证据：`.agents/plugins/marketplace.json`\n- **Acceptance**（source_file）：By using the software, you agree to all of the terms and conditions below. 证据：`LICENSE`\n- **Upstream Skill Credits**（documentation）：context-mode references a small set of operating-discipline skills authored by Matt Pocock MIT . They are the operational backbone of the context-mode-ops https://github.com/mksglu/context-mode/tree/next/.claude/skills/context-mode-ops skill /diagnose , /tdd , /grill-me , /grill-with-docs , /improve-codebase-architecture . 证据：`docs/UPSTREAM-CREDITS.md`\n- **JetBrains Copilot Setup**（documentation）：Setup guide for using context-mode with JetBrains IDEs IntelliJ IDEA, WebStorm, PyCharm, etc. via the GitHub Copilot plugin. 证据：`docs/jetbrains-copilot.md`\n- **Platform Support Matrix**（documentation）：This document provides a comprehensive comparison of all platforms supported by context-mode, including their hook paradigms, capabilities, configuration, and known limitations. 证据：`docs/platform-support.md`\n- **OpenClaw Adapter**（documentation）：context-mode plugin for the OpenClaw https://github.com/openclaw gateway, targeting Pi Agent sessions. 证据：`docs/adapters/openclaw.md`\n- **ADR 0001 — SessionDB is multi-writer-safe**（documentation）：ADR 0001 — SessionDB is multi-writer-safe 证据：`docs/adr/0001-sessiondb-multi-writer.md`\n- **What / Why / How**（documentation）：- Claude Code - Cursor - VS Code Copilot GitHub Copilot - JetBrains Copilot - Gemini CLI - Qwen Code - OpenCode - KiloCode - Codex CLI - OpenClaw Pi Agent - Pi - Kiro - Antigravity - Zed - All platforms 证据：`.github/PULL_REQUEST_TEMPLATE.md`\n- **Context Mode — Benchmark Results**（documentation）：Benchmarked against real outputs from popular Claude Code MCP servers, Skills, and dev tools. All fixtures captured from actual tool invocations — not synthetic data. 证据：`BENCHMARK.md`\n- **Dynamic Agent Organization**（documentation）：Every issue and PR gets a custom team. Agents are spawned based on what the task touches — never a static roster. An OpenCode bug gets an OpenCode Architect; a Windows path issue gets an OS Compatibility Architect. A single task may spawn 10-20 agents. 证据：`.claude/skills/context-mode-ops/agent-teams.md`\n- **Communication Templates**（documentation）：Tone: warm, professional, technical, grateful. Always put testing responsibility on the contributor. 证据：`.claude/skills/context-mode-ops/communication.md`\n- **Marketing workflow**（documentation）：User says: \"linkedin post\", \"marketing\", \"announce release\", \"write post\", \"share update\" 证据：`.claude/skills/context-mode-ops/marketing.md`\n- **Release Workflow**（documentation）：User says: \"release\", \"version bump\", \"npm publish\", \"ship it\" 证据：`.claude/skills/context-mode-ops/release.md`\n- **Review PR Workflow**（documentation）：User says: \"review PR N\", \"merge PR N\", \"check PR N\" 证据：`.claude/skills/context-mode-ops/review-pr.md`\n- **Test-Driven Development**（documentation）：THIS FILE IS MANDATORY. Every agent, every Staff Engineer, every Architect MUST follow this. If you skip TDD, your work will be REJECTED. There are no exceptions. Do NOT write implementation code before you have a failing test. 证据：`.claude/skills/context-mode-ops/tdd.md`\n- **Triage Issue Workflow**（documentation）：User says: \"triage issue N\", \"fix issue N\", \"analyze issue N\" 证据：`.claude/skills/context-mode-ops/triage-issue.md`\n- **Validation Patterns**（documentation）：Cross-cutting validation rules used by ALL workflows triage, review, release . 证据：`.claude/skills/context-mode-ops/validation.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/jetbrains-copilot/copilot-instructions.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/kiro/KIRO.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/omp/SYSTEM.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/qwen-code/QWEN.md`\n- **context-mode — MANDATORY routing rules**（documentation）：context-mode — MANDATORY routing rules 证据：`configs/vscode-copilot/copilot-instructions.md`\n- **Anti-Patterns: Common Mistakes with execute / execute file**（documentation）：Anti-Patterns: Common Mistakes with execute / execute file 证据：`skills/context-mode/references/anti-patterns.md`\n- **JavaScript / TypeScript Patterns for execute**（documentation）：JavaScript / TypeScript Patterns for execute 证据：`skills/context-mode/references/patterns-javascript.md`\n- **Python Patterns for execute**（documentation）：Practical patterns for using execute with language: python . All examples use Python standard library only no pip installs required . 证据：`skills/context-mode/references/patterns-python.md`\n- **Shell Patterns for execute**（documentation）：Practical patterns for using execute with language: shell . Best for piping, filtering, and leveraging native OS tools. 证据：`skills/context-mode/references/patterns-shell.md`\n- **Create Server Component Page with Data Fetching in Next.js App Directory**（documentation）：Create Server Component Page with Data Fetching in Next.js App Directory 证据：`tests/fixtures/context7-nextjs-docs.md`\n- **useEffect Hook Reference**（documentation）：Source: https://react.dev/reference/react/useEffect 证据：`tests/fixtures/context7-react-docs.md`\n- **Deno Unit Test Example for Supabase Edge Functions**（documentation）：Deno Unit Test Example for Supabase Edge Functions 证据：`tests/fixtures/context7-supabase-edge.md`\n- **Apply responsive flex layout with Tailwind CSS**（documentation）：Apply responsive flex layout with Tailwind CSS 证据：`tests/fixtures/context7-tailwind-docs.md`\n- **Settings**（structured_config）：{ \"permissions\": { \"deny\": \"Bash sudo \", \"Bash rm -rf / \", \"Read .env \", \"Read /.env \" , \"allow\": \"Bash git: \", \"Bash ls: \", \"Bash npm: \", \"Bash npx: \", \"Bash cat: \", \"Bash echo: \" } } 证据：`.claude/settings.json`\n- **Hooks**（structured_config）：{ \"hooks\": { \"PreToolUse\": { \"matcher\": \"local shell shell shell command exec command Bash Shell apply patch Edit Write grep files ctx execute ctx execute file ctx batch execute ctx fetch and index ctx search ctx index mcp \", \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${PLUGIN ROOT}/hooks/codex/pretooluse.mjs\\\"\" } } , \"PostToolUse\": { \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${PLUGIN ROOT}/hooks/codex/posttooluse.mjs\\\"\" } } , \"SessionStart\": { \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${PLUGIN ROOT}/hooks/codex/sessionstart.mjs\\\"\" } } , \"PreCompact\": { \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${PLUGIN ROOT}/hooks/codex/precompact.mjs\\\"\" } } , \"UserPromptSubmit\":… 证据：`.codex-plugin/hooks.json`\n- **Mcp**（structured_config）：{ \"mcpServers\": { \"context-mode\": { \"command\": \"node\", \"args\": \"./start.mjs\" , \"cwd\": \".\" } } } 证据：`.codex-plugin/mcp.json`\n- **Openclaw.Plugin**（structured_config）：{ \"id\": \"context-mode\", \"name\": \"Context Mode\", \"kind\": \"tool\", \"description\": \"OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.\", \"version\": \"1.0.146\", \"sandbox\": { \"mode\": \"permissive\", \"filesystem access\": \"full\", \"system access\": \"full\" }, \"configSchema\": { \"type\": \"object\", \"properties\": { \"enabled\": { \"type\": \"boolean\", \"default\": true, \"description\": \"Enable or disable the context-mode plugin.\" } }, \"additionalProperties\": false } } 证据：`.openclaw-plugin/openclaw.plugin.json`\n- **Hooks**（structured_config）：{ \"description\": \"Context-mode hooks — PreToolUse routing, PostToolUse session capture, PreCompact snapshot, SessionStart context injection\", \"hooks\": { \"PostToolUse\": { \"matcher\": \"Bash Read Write Edit NotebookEdit Glob Grep TodoWrite TaskCreate TaskUpdate EnterPlanMode ExitPlanMode Skill Agent AskUserQuestion EnterWorktree mcp \", \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${CLAUDE PLUGIN ROOT}/hooks/posttooluse.mjs\\\"\" } } , \"PreCompact\": { \"matcher\": \"\", \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${CLAUDE PLUGIN ROOT}/hooks/precompact.mjs\\\"\" } } , \"PreToolUse\": { \"matcher\": \"Bash\", \"hooks\": { \"type\": \"command\", \"command\": \"node \\\"${CLAUDE PLUGIN ROOT}/hooks/pretooluse.mjs\\\"\" }… 证据：`hooks/hooks.json`\n- **Components**（structured_config）：{ \"$schema\": \"https://ui.shadcn.com/schema.json\", \"style\": \"base-nova\", \"rsc\": false, \"tsx\": true, \"tailwind\": { \"config\": \"\", \"css\": \"src/styles.css\", \"baseColor\": \"neutral\", \"cssVariables\": true, \"prefix\": \"\" }, \"iconLibrary\": \"lucide\", \"rtl\": false, \"aliases\": { \"components\": \" /components\", \"utils\": \" /lib/utils\", \"ui\": \" /components/ui\", \"lib\": \" /lib\", \"hooks\": \" /hooks\" }, \"menuColor\": \"default\", \"menuAccent\": \"subtle\", \"registries\": {} } 证据：`insight/components.json`\n- **Tsconfig**（structured_config）：{ \"include\": \" / .ts\", \" / .tsx\" , \"compilerOptions\": { \"target\": \"ES2022\", \"jsx\": \"react-jsx\", \"module\": \"ESNext\", \"baseUrl\": \".\", \"paths\": { \" / \": \"./src/ \" , \"@/ \": \"./src/ \" }, \"lib\": \"ES2022\", \"DOM\", \"DOM.Iterable\" , \"types\": \"vite/client\" , 证据：`insight/tsconfig.json`\n- **Openclaw.Plugin**（structured_config）：{ \"id\": \"context-mode\", \"name\": \"Context Mode\", \"kind\": \"tool\", \"description\": \"OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.\", \"version\": \"1.0.146\", \"sandbox\": { \"mode\": \"permissive\", \"filesystem access\": \"full\", \"system access\": \"full\" }, \"configSchema\": { \"type\": \"object\", \"properties\": { \"enabled\": { \"type\": \"boolean\", \"default\": true, \"description\": \"Enable or disable the context-mode plugin.\" } }, \"additionalProperties\": false } } 证据：`openclaw.plugin.json`\n- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。\n\n## 宿主 AI 必须遵守的规则\n\n- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`.cursor-plugin/README.md`, `CLAUDE.md`, `README.md`\n- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`.cursor-plugin/README.md`, `CLAUDE.md`, `README.md`\n\n## 用户开工前应该回答的问题\n\n- 你准备在哪个宿主 AI 或本地环境中使用它？\n- 你只是想先体验工作流，还是准备真实安装？\n- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？\n\n## 验收标准\n\n- 所有能力声明都能回指到 evidence_refs 中的文件路径。\n- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。\n- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。\n\n---\n\n## Doramagic Context Augmentation\n\n下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。\n\n## Human Manual 骨架\n\n使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。\n\n宿主 AI 硬性规则：\n- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。\n- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。\n- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。\n\n- **仓库概览**：importance `high`\n  - source_paths: README.md, package.json, .cursor-plugin/README.md, .openclaw-plugin/package.json, insight/package.json\n- **入口与运行边界**：importance `high`\n  - source_paths: README.md, package.json, .cursor-plugin/README.md, .openclaw-plugin/package.json, insight/package.json\n- **架构证据地图**：importance `high`\n  - source_paths: README.md, package.json, .cursor-plugin/README.md, .openclaw-plugin/package.json, insight/package.json\n- **运维与验证边界**：importance `high`\n  - source_paths: README.md, package.json, .cursor-plugin/README.md, .openclaw-plugin/package.json, insight/package.json\n\n## Repo Inspection Evidence / 源码检查证据\n\n- repo_clone_verified: true\n- repo_inspection_verified: true\n- repo_commit: `46715936325f36fe9392caf45d8c9d28650ec7da`\n- inspected_files: `package.json`, `README.md`, `docs/platform-support.md`, `docs/UPSTREAM-CREDITS.md`, `docs/jetbrains-copilot.md`, `docs/adr/0001-sessiondb-multi-writer.md`, `docs/adapters/openclaw.md`, `src/runPool.ts`, `src/lifecycle.ts`, `src/runtime.ts`, `src/server.ts`, `src/types.ts`, `src/db-base.ts`, `src/store.ts`, `src/exit-classify.ts`, `src/security.ts`, `src/truncate.ts`, `src/cli.ts`, `src/executor.ts`, `src/fetch-cache.ts`\n\n宿主 AI 硬性规则：\n- 没有 repo_clone_verified=true 时，不得声称已经读过源码。\n- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。\n- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。\n\n## Doramagic Pitfall Constraints / 踩坑约束\n\n这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。\n\n### Constraint 1: 来源证据：Feature Request: Add CodeBuddy Code support\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Feature Request: Add CodeBuddy Code support\n- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_e09face1208e43d685be6c8ebf7015e9 | https://github.com/mksglu/context-mode/issues/651 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 2: 来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_6888a03e6d5b4d9492dff3e5efce4f48 | https://github.com/mksglu/context-mode/issues/656 | 来源讨论提到 python 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 3: 来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_e1ebfb0450e44c198d3ff017d55a51d0 | https://github.com/mksglu/context-mode/issues/658 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 4: 来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：OpenCode plugin registers hooks only -- never registers ctx_* tools\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_d1ee350cd2374bb785a0628089fee355 | https://github.com/mksglu/context-mode/issues/637 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 5: 来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.claude/ instead of ~/.pi/\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_8f49345b591f4f51afc650b8732da4d3 | https://github.com/mksglu/context-mode/issues/561 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 6: 来源证据：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能阻塞安装或首次运行。\n- Evidence: community_evidence:github | cevd_e0a18821f52c4610a9109f8cb6920829 | https://github.com/mksglu/context-mode/issues/562 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 7: 来源证据：[BUG]: Hardcoded storage path for many platforms\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: Hardcoded storage path for many platforms\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能阻塞安装或首次运行。\n- Evidence: community_evidence:github | cevd_b64e0c04c70b4726a0e860dc6a0954c9 | https://github.com/mksglu/context-mode/issues/649 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 8: 来源证据：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_89e33c17dcfa452c8ad33ba344a9c6bb | https://github.com/mksglu/context-mode/issues/646 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 9: 来源证据：[Bug]: Plugin-only installation does not work with OpenCode\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: Plugin-only installation does not work with OpenCode\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能增加新用户试用和生产接入成本。\n- Evidence: community_evidence:github | cevd_50609b9a9e2b4d4682713f28fd4c5d6d | https://github.com/mksglu/context-mode/issues/652 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n\n### Constraint 10: 来源证据：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n\n- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- Why it matters: 可能影响升级、迁移或版本选择。\n- Evidence: community_evidence:github | cevd_92a91d8bb13e4cf594229b3280c4d2eb | https://github.com/mksglu/context-mode/issues/559 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。\n",
      "summary": "给宿主 AI 的上下文和工作边界。",
      "title": "AI Context Pack / 带给我的 AI"
    },
    "boundary_risk_card": {
      "asset_id": "boundary_risk_card",
      "filename": "BOUNDARY_RISK_CARD.md",
      "markdown": "# Boundary & Risk Card / 安装前决策卡\n\n项目：mksglu/context-mode\n\n## Doramagic 试用结论\n\n当前结论：可以进入发布前推荐检查；首次使用仍应从最小权限、临时目录和可回滚配置开始。\n\n## 用户现在可以做\n\n- 可以先阅读 Human Manual，理解项目目的和主要工作流。\n- 可以复制 Prompt Preview 做安装前体验；这只验证交互感，不代表真实运行。\n- 可以把官方 Quick Start 命令放到隔离环境中验证，不要直接进主力环境。\n\n## 现在不要做\n\n- 不要把 Prompt Preview 当成项目实际运行结果。\n- 不要把 metadata-only validation 当成沙箱安装验证。\n- 不要把未验证能力写成“已支持、已跑通、可放心安装”。\n- 不要在首次试用时交出生产数据、私人文件、真实密钥或主力配置目录。\n\n## 安装前检查\n\n- 宿主 AI 是否匹配：claude, claude_code\n- 官方安装入口状态：已发现官方入口\n- 是否在临时目录、临时宿主或容器中验证：必须是\n- 是否能回滚配置改动：必须能\n- 是否需要 API Key、网络访问、读写文件或修改宿主配置：未确认前按高风险处理\n- 是否记录了安装命令、实际输出和失败日志：必须记录\n\n## 当前阻塞项\n\n- 无阻塞项。\n\n## 项目专属踩坑\n\n- 来源证据：Feature Request: Add CodeBuddy Code support（high）：可能增加新用户试用和生产接入成本。 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection（high）：可能增加新用户试用和生产接入成本。 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path（high）：可能增加新用户试用和生产接入成本。 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools（medium）：可能增加新用户试用和生产接入成本。 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…（medium）：可能增加新用户试用和生产接入成本。 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n\n## 风险与权限提示\n\n- no_demo: medium\n\n## 证据缺口\n\n- 暂未发现结构化证据缺口。\n",
      "summary": "安装、权限、验证和推荐前风险。",
      "title": "Boundary & Risk Card / 边界与风险卡"
    },
    "human_manual": {
      "asset_id": "human_manual",
      "filename": "HUMAN_MANUAL.md",
      "markdown": "# https://github.com/mksglu/context-mode 项目说明书\n\n生成时间: 2026-05-21 22:05:53 UTC\n\n## 目录\n\n- [仓库概览](#overview)\n- [入口与运行边界](#entrypoints)\n- [架构证据地图](#architecture)\n- [运维与验证边界](#operations)\n\n<a id='overview'></a>\n\n## 仓库概览\n\n### 相关页面\n\n相关主题：[入口与运行边界](#entrypoints), [架构证据地图](#architecture), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 仓库概览\n\n本页在 Human Wiki provider 不可用时基于仓库证据生成，只使用 README、文件树和已选源码文件，不把模板描述冒充项目事实。\n\n## README 证据\n\n# Context Mode\n\n**The other half of the context problem.**\n\n[![users](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.message&label=users&color=brightgreen)](https://www.npmjs.com/package/context-mode) [![npm](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.npm&label=npm&color=blue)](https://www.npmjs.com/package/context-mode) [![marketplace](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.marketplace&label=marketplace&color=blue)](https://github.com/mksglu/context-mode) [![GitHub stars](https://img.shields.io/github/stars/mksglu/context-mode?style=flat&color=yellow)](https://github.com/mksglu/context-mode/stargazers) [![GitHub forks](https://img.shields.io/github/forks/mksglu/context-mode?style=flat&color=blue)](https://github.com/mksglu/context-mode/network/members) [![Last commit](https://img.shields.io/github/last-commit/mksglu/context-mode?color=green)](https://github.com/mksglu/context-mode/commits) [![License: ELv2](https://img.shields.io/badge/License-ELv2-blue.svg)](LICENSE)\n[![Discord](https://img.shields.io/discord/1478479412700909750?label=Discord&logo=discord&color=5865f2)](https://discord.gg/DCN9jUgN5v)\n[![Hacker News #1](https://img.shields.io/badge/Hacker%20News-%231%20%E2%80%A2%20570%2B%20points-ff6600?logo=ycombinator&logoColor=white)](https://news.ycombinator.com/item?id=47193064)\n\n<p align=\"center\">\n<sub>Used across teams at</sub>\n<br><br>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Microsoft-141414?style=flat\" alt=\"Microsoft\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Google-141414?style=flat&logo=google&logoColor=white\" alt=\"Google\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Meta-141414?style=flat&logo=meta&logoColor=white\" alt=\"Meta\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/Amazon-141414?style=flat\" alt=\"Amazon\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/IBM-141414?style=flat\" alt=\"IBM\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/NVIDIA-141414?style=flat&logo=nvidia&logoColor=white\" alt=\"NVIDIA\" /></a>\n<a href=\"#\"><img src=\"https://img.shields.io/badge/ByteDance-141414?style=flat&logo=bytedance&\n\n[excerpt truncated]\n\n## 已选源码清单\n\n- `README.md`\n- `package.json`\n- `.cursor-plugin/README.md`\n- `.openclaw-plugin/package.json`\n- `insight/package.json`\n- `.pi/extensions/context-mode/package.json`\n- `src/cli.ts`\n- `src/db-base.ts`\n- `src/executor.ts`\n- `src/exit-classify.ts`\n- `src/fetch-cache.ts`\n- `src/lifecycle.ts`\n\n| 文件 | 证据角色 | 大小 |\n|---|---|---|\n| `README.md` | README/产品与使用证据 | 80231 bytes |\n| `package.json` | 包与运行时元数据 | 5618 bytes |\n| `.cursor-plugin/README.md` | 文档证据 | 5288 bytes |\n| `.openclaw-plugin/package.json` | 包与运行时元数据 | 702 bytes |\n| `insight/package.json` | 包与运行时元数据 | 1435 bytes |\n| `.pi/extensions/context-mode/package.json` | 包与运行时元数据 | 248 bytes |\n| `src/cli.ts` | 实现边界 | 69813 bytes |\n| `src/db-base.ts` | 实现边界 | 25156 bytes |\n| `src/executor.ts` | 实现边界 | 26099 bytes |\n| `src/exit-classify.ts` | 实现边界 | 846 bytes |\n| `src/fetch-cache.ts` | 实现边界 | 762 bytes |\n| `src/lifecycle.ts` | 实现边界 | 6692 bytes |\n\n资料来源：`[README.md:1-120]()`\n\n---\n\n<a id='entrypoints'></a>\n\n## 入口与运行边界\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [架构证据地图](#architecture), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 入口与运行边界\n\n下面文件是安装、启动、配置或宿主集成的高信号候选。这里给出证据地图，不推断未经执行验证的 API 契约。\n\n| 文件 | 证据角色 | 大小 |\n|---|---|---|\n| `README.md` | README/产品与使用证据 | 80231 bytes |\n| `package.json` | 包与运行时元数据 | 5618 bytes |\n| `.cursor-plugin/README.md` | 文档证据 | 5288 bytes |\n| `.openclaw-plugin/package.json` | 包与运行时元数据 | 702 bytes |\n| `insight/package.json` | 包与运行时元数据 | 1435 bytes |\n| `.pi/extensions/context-mode/package.json` | 包与运行时元数据 | 248 bytes |\n| `src/cli.ts` | 实现边界 | 69813 bytes |\n| `src/db-base.ts` | 实现边界 | 25156 bytes |\n| `src/executor.ts` | 实现边界 | 26099 bytes |\n| `src/exit-classify.ts` | 实现边界 | 846 bytes |\n| `src/fetch-cache.ts` | 实现边界 | 762 bytes |\n| `src/lifecycle.ts` | 实现边界 | 6692 bytes |\n\n资料来源：`[README.md:1-120](https://github.com/mksglu/context-mode/blob/main/README.md)`\n\n---\n\n<a id='architecture'></a>\n\n## 架构证据地图\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [运维与验证边界](#operations)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 架构证据地图\n\n本节只根据仓库路径组织可能的架构区域；需要运行验证的行为不会在这里断言。\n\n- `.`: `README.md`, `package.json`\n- `.cursor-plugin`: `.cursor-plugin/README.md`\n- `.openclaw-plugin`: `.openclaw-plugin/package.json`\n- `.pi`: `.pi/extensions/context-mode/package.json`\n- `insight`: `insight/package.json`\n- `src`: `src/cli.ts`, `src/db-base.ts`, `src/executor.ts`, `src/exit-classify.ts`, `src/fetch-cache.ts`, `src/lifecycle.ts`\n\n资料来源：`[package.json:1-120](https://github.com/mksglu/context-mode/blob/main/package.json)`\n\n---\n\n<a id='operations'></a>\n\n## 运维与验证边界\n\n### 相关页面\n\n相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [架构证据地图](#architecture)\n\n<details>\n<summary>相关源码文件</summary>\n\n以下源码文件用于生成本页说明：\n\n- [README.md](https://github.com/mksglu/context-mode/blob/main/README.md)\n- [package.json](https://github.com/mksglu/context-mode/blob/main/package.json)\n- [.cursor-plugin/README.md](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)\n- [.openclaw-plugin/package.json](https://github.com/mksglu/context-mode/blob/main/.openclaw-plugin/package.json)\n- [insight/package.json](https://github.com/mksglu/context-mode/blob/main/insight/package.json)\n- [.pi/extensions/context-mode/package.json](https://github.com/mksglu/context-mode/blob/main/.pi/extensions/context-mode/package.json)\n- [src/cli.ts](https://github.com/mksglu/context-mode/blob/main/src/cli.ts)\n- [src/db-base.ts](https://github.com/mksglu/context-mode/blob/main/src/db-base.ts)\n- [src/executor.ts](https://github.com/mksglu/context-mode/blob/main/src/executor.ts)\n- [src/exit-classify.ts](https://github.com/mksglu/context-mode/blob/main/src/exit-classify.ts)\n- [src/fetch-cache.ts](https://github.com/mksglu/context-mode/blob/main/src/fetch-cache.ts)\n- [src/lifecycle.ts](https://github.com/mksglu/context-mode/blob/main/src/lifecycle.ts)\n</details>\n\n# 运维与验证边界\n\n运维建议仅来自仓库中真实存在的文件。把该项目用于 agent 工作流前，仍需在 sandbox 中验证安装、quickstart 和运行行为。\n\n- Documentation signal: `README.md`\n- Runtime/package signal: `package.json`\n- Documentation signal: `.cursor-plugin/README.md`\n- Runtime/package signal: `.openclaw-plugin/package.json`\n- Runtime/package signal: `insight/package.json`\n- Runtime/package signal: `.pi/extensions/context-mode/package.json`\n- Source inspection signal: `src/cli.ts`\n- Source inspection signal: `src/db-base.ts`\n- Source inspection signal: `src/executor.ts`\n- Source inspection signal: `src/exit-classify.ts`\n\n资料来源：`[.cursor-plugin/README.md:1-120](https://github.com/mksglu/context-mode/blob/main/.cursor-plugin/README.md)`\n\n---\n\n---\n\n## Doramagic 踩坑日志\n\n项目：mksglu/context-mode\n\n摘要：发现 23 个潜在踩坑项，其中 3 个为 high/blocking；最高优先级：安装坑 - 来源证据：Feature Request: Add CodeBuddy Code support。\n\n## 1. 安装坑 · 来源证据：Feature Request: Add CodeBuddy Code support\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Feature Request: Add CodeBuddy Code support\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e09face1208e43d685be6c8ebf7015e9 | https://github.com/mksglu/context-mode/issues/651 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 2. 安装坑 · 来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_6888a03e6d5b4d9492dff3e5efce4f48 | https://github.com/mksglu/context-mode/issues/656 | 来源讨论提到 python 相关条件，需在安装/试用前复核。\n\n## 3. 安装坑 · 来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e1ebfb0450e44c198d3ff017d55a51d0 | https://github.com/mksglu/context-mode/issues/658 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 4. 安装坑 · 来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：OpenCode plugin registers hooks only -- never registers ctx_* tools\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d1ee350cd2374bb785a0628089fee355 | https://github.com/mksglu/context-mode/issues/637 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 5. 安装坑 · 来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.claude/ instead of ~/.pi/\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_8f49345b591f4f51afc650b8732da4d3 | https://github.com/mksglu/context-mode/issues/561 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 6. 安装坑 · 来源证据：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e0a18821f52c4610a9109f8cb6920829 | https://github.com/mksglu/context-mode/issues/562 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 7. 安装坑 · 来源证据：[BUG]: Hardcoded storage path for many platforms\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: Hardcoded storage path for many platforms\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_b64e0c04c70b4726a0e860dc6a0954c9 | https://github.com/mksglu/context-mode/issues/649 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 8. 安装坑 · 来源证据：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_89e33c17dcfa452c8ad33ba344a9c6bb | https://github.com/mksglu/context-mode/issues/646 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 9. 安装坑 · 来源证据：[Bug]: Plugin-only installation does not work with OpenCode\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: Plugin-only installation does not work with OpenCode\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_50609b9a9e2b4d4682713f28fd4c5d6d | https://github.com/mksglu/context-mode/issues/652 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 10. 安装坑 · 来源证据：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_92a91d8bb13e4cf594229b3280c4d2eb | https://github.com/mksglu/context-mode/issues/559 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 11. 安装坑 · 来源证据：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale;…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale; 4-char `lstatSync` fix\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_ccef8bb7485f482f9bcb08b6cc2494b2 | https://github.com/mksglu/context-mode/issues/644 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 12. 配置坑 · 可能修改宿主 AI 配置\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。\n- 对用户的影响：安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。\n- 建议检查：列出会写入的配置文件、目录和卸载/回滚步骤。\n- 防护动作: 涉及宿主配置目录时必须给回滚路径，不能只给安装命令。\n- 证据：capability.host_targets | github_repo:1164477708 | https://github.com/mksglu/context-mode | host_targets=claude, claude_code\n\n## 13. 配置坑 · 来源证据：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_a629676796f7486d9e185f643b260d07 | https://github.com/mksglu/context-mode/issues/560 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 14. 配置坑 · 来源证据：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API re…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API request\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d52bae5266e442cea5a1fa5b42f86c1a | https://github.com/mksglu/context-mode/issues/659 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 15. 能力坑 · 能力判断依赖假设\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：README/documentation is current enough for a first validation pass.\n- 对用户的影响：假设不成立时，用户拿不到承诺的能力。\n- 建议检查：将假设转成下游验证清单。\n- 防护动作: 假设必须转成验证项；没有验证结果前不能写成事实。\n- 证据：capability.assumptions | github_repo:1164477708 | https://github.com/mksglu/context-mode | README/documentation is current enough for a first validation pass.\n\n## 16. 运行坑 · 来源证据：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_sta…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个运行相关的待验证问题：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_stats` and timeline search degraded\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_cbceaf1c624d40049ac2151af7c1e83d | https://github.com/mksglu/context-mode/issues/645 | 来源类型 github_issue 暴露的待验证使用条件。\n\n## 17. 维护坑 · 维护活跃度未知\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：未记录 last_activity_observed。\n- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。\n- 建议检查：补 GitHub 最近 commit、release、issue/PR 响应信号。\n- 防护动作: 维护活跃度未知时，推荐强度不能标为高信任。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | last_activity_observed missing\n\n## 18. 安全/权限坑 · 下游验证发现风险项\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：下游已经要求复核，不能在页面中弱化。\n- 建议检查：进入安全/权限治理复核队列。\n- 防护动作: 下游风险存在时必须保持 review/recommendation 降级。\n- 证据：downstream_validation.risk_items | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 19. 安全/权限坑 · 存在评分风险\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：风险会影响是否适合普通用户安装。\n- 建议检查：把风险写入边界卡，并确认是否需要人工复核。\n- 防护动作: 评分风险必须进入边界卡，不能只作为内部分数。\n- 证据：risks.scoring_risks | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 20. 安全/权限坑 · 来源证据：PreToolUse hook fails on project paths containing spaces (macOS)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：PreToolUse hook fails on project paths containing spaces (macOS)\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_0e6f8fa845c0493db18d97fc48cf1b82 | https://github.com/mksglu/context-mode/issues/636 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 21. 安全/权限坑 · 来源证据：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n- 对用户的影响：可能影响授权、密钥配置或安全边界。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_c17fbb0a32674c7b9dad1eefe4a0c3d2 | https://github.com/mksglu/context-mode/issues/647 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 22. 维护坑 · issue/PR 响应质量未知\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：issue_or_pr_quality=unknown。\n- 对用户的影响：用户无法判断遇到问题后是否有人维护。\n- 建议检查：抽样最近 issue/PR，判断是否长期无人处理。\n- 防护动作: issue/PR 响应未知时，必须提示维护风险。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | issue_or_pr_quality=unknown\n\n## 23. 维护坑 · 发布节奏不明确\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：release_recency=unknown。\n- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。\n- 建议检查：确认最近 release/tag 和 README 安装命令是否一致。\n- 防护动作: 发布节奏未知或过期时，安装说明必须标注可能漂移。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | release_recency=unknown\n\n<!-- canonical_name: mksglu/context-mode; human_manual_source: deepwiki_human_wiki -->\n",
      "summary": "DeepWiki/Human Wiki 完整输出，末尾追加 Discovery Agent 踩坑日志。",
      "title": "Human Manual / 人类版说明书"
    },
    "pitfall_log": {
      "asset_id": "pitfall_log",
      "filename": "PITFALL_LOG.md",
      "markdown": "# Pitfall Log / 踩坑日志\n\n项目：mksglu/context-mode\n\n摘要：发现 23 个潜在踩坑项，其中 3 个为 high/blocking；最高优先级：安装坑 - 来源证据：Feature Request: Add CodeBuddy Code support。\n\n## 1. 安装坑 · 来源证据：Feature Request: Add CodeBuddy Code support\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Feature Request: Add CodeBuddy Code support\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e09face1208e43d685be6c8ebf7015e9 | https://github.com/mksglu/context-mode/issues/651 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 2. 安装坑 · 来源证据：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx_batch_execute corrupts heredoc commands by appending stderr redirection\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_6888a03e6d5b4d9492dff3e5efce4f48 | https://github.com/mksglu/context-mode/issues/656 | 来源讨论提到 python 相关条件，需在安装/试用前复核。\n\n## 3. 安装坑 · 来源证据：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n\n- 严重度：high\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：v1.0.146: plugin.json points to wrong skills path and stale MCP server path\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e1ebfb0450e44c198d3ff017d55a51d0 | https://github.com/mksglu/context-mode/issues/658 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 4. 安装坑 · 来源证据：OpenCode plugin registers hooks only -- never registers ctx_* tools\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：OpenCode plugin registers hooks only -- never registers ctx_* tools\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d1ee350cd2374bb785a0628089fee355 | https://github.com/mksglu/context-mode/issues/637 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 5. 安装坑 · 来源证据：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.cla…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi bridge preserves claude-code identification env vars — spawned server misdetects as claude-code and writes to ~/.claude/ instead of ~/.pi/\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_8f49345b591f4f51afc650b8732da4d3 | https://github.com/mksglu/context-mode/issues/561 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 6. 安装坑 · 来源证据：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Pi subagent fails: DatabaseLockedError - another context-mode server is already running\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_e0a18821f52c4610a9109f8cb6920829 | https://github.com/mksglu/context-mode/issues/562 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 7. 安装坑 · 来源证据：[BUG]: Hardcoded storage path for many platforms\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: Hardcoded storage path for many platforms\n- 对用户的影响：可能阻塞安装或首次运行。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_b64e0c04c70b4726a0e860dc6a0954c9 | https://github.com/mksglu/context-mode/issues/649 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 8. 安装坑 · 来源证据：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[BUG]: `ctx_search` source filter does not escape LIKE wildcards — unintended cross-source result leakage\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_89e33c17dcfa452c8ad33ba344a9c6bb | https://github.com/mksglu/context-mode/issues/646 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 9. 安装坑 · 来源证据：[Bug]: Plugin-only installation does not work with OpenCode\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Bug]: Plugin-only installation does not work with OpenCode\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_50609b9a9e2b4d4682713f28fd4c5d6d | https://github.com/mksglu/context-mode/issues/652 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 10. 安装坑 · 来源证据：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：ctx-upgrade leaves old server process running (zombie instance on upgrade)\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_92a91d8bb13e4cf594229b3280c4d2eb | https://github.com/mksglu/context-mode/issues/559 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 11. 安装坑 · 来源证据：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale;…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：sessionstart.mjs age-gated cleanup uses `statSync` (follows symlinks) — deletes fresh symlinks whose targets are stale; 4-char `lstatSync` fix\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_ccef8bb7485f482f9bcb08b6cc2494b2 | https://github.com/mksglu/context-mode/issues/644 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 12. 配置坑 · 可能修改宿主 AI 配置\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。\n- 对用户的影响：安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。\n- 建议检查：列出会写入的配置文件、目录和卸载/回滚步骤。\n- 防护动作: 涉及宿主配置目录时必须给回滚路径，不能只给安装命令。\n- 证据：capability.host_targets | github_repo:1164477708 | https://github.com/mksglu/context-mode | host_targets=claude, claude_code\n\n## 13. 配置坑 · 来源证据：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：No exclusive lock on SQLite database — multiple server instances cause unbounded WAL growth and query hangs\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_a629676796f7486d9e185f643b260d07 | https://github.com/mksglu/context-mode/issues/560 | 来源讨论提到 windows 相关条件，需在安装/试用前复核。\n\n## 14. 配置坑 · 来源证据：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API re…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Preview truncation slices UTF-16 surrogate pairs, producing orphan `\\uD83D` in tool_result and breaking the host API request\n- 对用户的影响：可能影响升级、迁移或版本选择。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_d52bae5266e442cea5a1fa5b42f86c1a | https://github.com/mksglu/context-mode/issues/659 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 15. 能力坑 · 能力判断依赖假设\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：README/documentation is current enough for a first validation pass.\n- 对用户的影响：假设不成立时，用户拿不到承诺的能力。\n- 建议检查：将假设转成下游验证清单。\n- 防护动作: 假设必须转成验证项；没有验证结果前不能写成事实。\n- 证据：capability.assumptions | github_repo:1164477708 | https://github.com/mksglu/context-mode | README/documentation is current enough for a first validation pass.\n\n## 16. 运行坑 · 来源证据：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_sta…\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个运行相关的待验证问题：[BUG]:Pi and OMP adapters write SessionDB to `context-mode.db` but MCP server reads from `<project-hash>.db` — `ctx_stats` and timeline search degraded\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_cbceaf1c624d40049ac2151af7c1e83d | https://github.com/mksglu/context-mode/issues/645 | 来源类型 github_issue 暴露的待验证使用条件。\n\n## 17. 维护坑 · 维护活跃度未知\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：未记录 last_activity_observed。\n- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。\n- 建议检查：补 GitHub 最近 commit、release、issue/PR 响应信号。\n- 防护动作: 维护活跃度未知时，推荐强度不能标为高信任。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | last_activity_observed missing\n\n## 18. 安全/权限坑 · 下游验证发现风险项\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：下游已经要求复核，不能在页面中弱化。\n- 建议检查：进入安全/权限治理复核队列。\n- 防护动作: 下游风险存在时必须保持 review/recommendation 降级。\n- 证据：downstream_validation.risk_items | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 19. 安全/权限坑 · 存在评分风险\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：no_demo\n- 对用户的影响：风险会影响是否适合普通用户安装。\n- 建议检查：把风险写入边界卡，并确认是否需要人工复核。\n- 防护动作: 评分风险必须进入边界卡，不能只作为内部分数。\n- 证据：risks.scoring_risks | github_repo:1164477708 | https://github.com/mksglu/context-mode | no_demo; severity=medium\n\n## 20. 安全/权限坑 · 来源证据：PreToolUse hook fails on project paths containing spaces (macOS)\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：PreToolUse hook fails on project paths containing spaces (macOS)\n- 对用户的影响：可能增加新用户试用和生产接入成本。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_0e6f8fa845c0493db18d97fc48cf1b82 | https://github.com/mksglu/context-mode/issues/636 | 来源讨论提到 node 相关条件，需在安装/试用前复核。\n\n## 21. 安全/权限坑 · 来源证据：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n\n- 严重度：medium\n- 证据强度：source_linked\n- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：[BUG]: MCP bridge silently degrades on slow `initialize` — retry on timeout instead of failing permanently\n- 对用户的影响：可能影响授权、密钥配置或安全边界。\n- 建议检查：来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。\n- 防护动作: 不得脱离来源链接放大为确定性结论；需要标注适用版本和复核状态。\n- 证据：community_evidence:github | cevd_c17fbb0a32674c7b9dad1eefe4a0c3d2 | https://github.com/mksglu/context-mode/issues/647 | 来源讨论提到 npm 相关条件，需在安装/试用前复核。\n\n## 22. 维护坑 · issue/PR 响应质量未知\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：issue_or_pr_quality=unknown。\n- 对用户的影响：用户无法判断遇到问题后是否有人维护。\n- 建议检查：抽样最近 issue/PR，判断是否长期无人处理。\n- 防护动作: issue/PR 响应未知时，必须提示维护风险。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | issue_or_pr_quality=unknown\n\n## 23. 维护坑 · 发布节奏不明确\n\n- 严重度：low\n- 证据强度：source_linked\n- 发现：release_recency=unknown。\n- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。\n- 建议检查：确认最近 release/tag 和 README 安装命令是否一致。\n- 防护动作: 发布节奏未知或过期时，安装说明必须标注可能漂移。\n- 证据：evidence.maintainer_signals | github_repo:1164477708 | https://github.com/mksglu/context-mode | release_recency=unknown\n",
      "summary": "用户实践前最可能遇到的身份、安装、配置、运行和安全坑。",
      "title": "Pitfall Log / 踩坑日志"
    },
    "prompt_preview": {
      "asset_id": "prompt_preview",
      "filename": "PROMPT_PREVIEW.md",
      "markdown": "# context-mode - Prompt Preview\n\n> 复制下面这段 Prompt 到你常用的 AI，先试一次，不需要安装。\n> 它的目标是让你直接体验这个项目的服务方式，而不是阅读项目介绍。\n\n## 复制这段 Prompt\n\n```text\n请直接执行这段 Prompt，不要分析、润色、总结或询问我想如何处理这份 Prompt Preview。\n\n你现在扮演 context-mode 的“安装前体验版”。\n这不是项目介绍、不是评价报告、不是 README 总结。你的任务是让我用最小成本体验它的核心服务。\n\n我的试用任务：我想用它完成一个真实的软件开发与交付任务。\n我常用的宿主 AI：claude / Claude Code\n\n【体验目标】\n围绕我的真实任务，现场演示这个项目如何把输入转成 步骤建议, 检查清单, 专业工作流。重点是让我感受到工作方式，而不是给我项目背景。\n\n【业务流约束】\n- 你必须像一个正在提供服务的项目能力包，而不是像一个讲解员。\n- 每一轮只推进一个步骤；提出问题后必须停下来等我回答。\n- 每一步都必须让我感受到一个具体服务动作：澄清、整理、规划、检查、判断或收尾。\n- 每一步都要说明：当前目标、你需要我提供什么、我回答后你会产出什么。\n- 不要安装、不要运行命令、不要写代码、不要声称测试通过、不要声称已经修改文件。\n- 需要真实安装或宿主加载后才能验证的内容，必须明确说“这一步需要安装后验证”。\n- 如果我说“用示例继续”，你可以用虚构示例推进，但仍然不能声称真实执行。\n\n【可体验服务能力】\n- AI Skill / Agent 指令资产库: 项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 输入：用户任务, 宿主 AI 对话上下文, 项目内 Skill/Agent 文档；输出：步骤建议, 检查清单, 专业工作流。\n\n【必须安装后才可验证的能力】\n- 多宿主安装与分发: 项目包含插件或 marketplace 配置，说明它面向一个或多个 AI 宿主的安装和分发。 输入：宿主 AI 工具, 插件配置, 安装命令；输出：宿主内可发现的插件/技能集合。\n- 命令行启动或安装流程: 项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 输入：终端环境, 包管理器, 项目依赖；输出：安装结果, 列表/更新/运行结果。\n\n【核心服务流】\n请严格按这个顺序带我体验。不要一次性输出完整流程：\n1. overview：仓库概览。围绕“仓库概览”模拟一次用户任务，不展示安装或运行结果。\n2. entrypoints：入口与运行边界。围绕“入口与运行边界”模拟一次用户任务，不展示安装或运行结果。\n3. architecture：架构证据地图。围绕“架构证据地图”模拟一次用户任务，不展示安装或运行结果。\n4. operations：运维与验证边界。围绕“运维与验证边界”模拟一次用户任务，不展示安装或运行结果。\n\n【核心能力体验剧本】\n每一步都必须按“输入 -> 服务动作 -> 中间产物”执行。不要只说流程名：\n1. overview\n输入：用户提供的“仓库概览”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n2. entrypoints\n输入：用户提供的“入口与运行边界”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n3. architecture\n输入：用户提供的“架构证据地图”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n4. operations\n输入：用户提供的“运维与验证边界”相关信息。\n服务动作：模拟项目在这一步的核心判断和整理方式。\n中间产物：一个可检查的小结果。\n\n【项目服务规则】\n这些规则决定你如何服务用户。不要解释规则本身，而要在每一步执行时遵守：\n- 先确认用户任务、输入材料和成功标准，再模拟项目能力。\n- 每一步都必须形成可检查的小产物，并等待用户确认后再继续。\n- 凡是需要安装、调用工具或访问外部服务的能力，都必须标记为安装后验证。\n\n【每一步的服务约束】\n- Step 1 / overview：Step 1 必须围绕“仓库概览”形成一个小中间产物，并等待用户确认。\n- Step 2 / entrypoints：Step 2 必须围绕“入口与运行边界”形成一个小中间产物，并等待用户确认。\n- Step 3 / architecture：Step 3 必须围绕“架构证据地图”形成一个小中间产物，并等待用户确认。\n- Step 4 / operations：Step 4 必须围绕“运维与验证边界”形成一个小中间产物，并等待用户确认。\n\n【边界与风险】\n- 不要声称已经安装、运行、调用 API、读写本地文件或完成真实任务。\n- 安装前预览只能展示工作方式，不能证明兼容性、性能或输出质量。\n- 涉及安装、插件加载、工具调用或外部服务的能力必须安装后验证。\n\n【可追溯依据】\n这些路径只用于你内部校验或在我追问“依据是什么”时简要引用。不要在首次回复主动展开：\n- https://github.com/mksglu/context-mode\n- https://github.com/mksglu/context-mode#readme\n- .claude/skills/context-mode-ops/SKILL.md\n- skills/context-mode/SKILL.md\n- skills/ctx-doctor/SKILL.md\n- skills/ctx-insight/SKILL.md\n- skills/ctx-purge/SKILL.md\n- skills/ctx-stats/SKILL.md\n- skills/ctx-upgrade/SKILL.md\n- README.md\n- package.json\n- .cursor-plugin/README.md\n\n【首次问题规则】\n- 首次三问必须先确认用户目标、成功标准和边界，不要提前进入工具、安装或实现细节。\n- 如果后续需要技术条件、文件路径或运行环境，必须等用户确认目标后再追问。\n\n首次回复必须只输出下面 4 个部分：\n1. 体验开始：用 1 句话说明你将带我体验 context-mode 的核心服务。\n2. 当前步骤：明确进入 Step 1，并说明这一步要解决什么。\n3. 你会如何服务我：说明你会先改变我完成任务的哪个动作。\n4. 只问我 3 个问题，然后停下等待回答。\n\n首次回复禁止输出：后续完整流程、证据清单、安装命令、项目评价、营销文案、已经安装或运行的说法。\n\nStep 1 / brainstorming 的二轮协议：\n- 我回答首次三问后，你仍然停留在 Step 1 / brainstorming，不要进入 Step 2。\n- 第二次回复必须产出 6 个部分：澄清后的任务定义、成功标准、边界条件、\n  2-3 个可选方案、每个方案的权衡、推荐方案。\n- 第二次回复最后必须问我是否确认推荐方案；只有我明确确认后，才能进入下一步。\n- 第二次回复禁止输出 git worktree、代码计划、测试文件、命令或真实执行结果。\n\n后续对话规则：\n- 我回答后，你先完成当前步骤的中间产物并等待确认；只有我确认后，才能进入下一步。\n- 每一步都要生成一个小的中间产物，例如澄清后的目标、计划草案、测试意图、验证清单或继续/停止判断。\n- 所有演示都写成“我会建议/我会引导/这一步会形成”，不要写成已经真实执行。\n- 不要声称已经测试通过、文件已修改、命令已运行或结果已产生。\n- 如果某个能力必须安装后验证，请直接说“这一步需要安装后验证”。\n- 如果证据不足，请明确说“证据不足”，不要补事实。\n```\n",
      "summary": "不安装项目也能感受能力节奏的安全试用 Prompt。",
      "title": "Prompt Preview / 安装前试用 Prompt"
    },
    "quick_start": {
      "asset_id": "quick_start",
      "filename": "QUICK_START.md",
      "markdown": "# Quick Start / 官方入口\n\n项目：mksglu/context-mode\n\n## 官方安装入口\n\n### Node.js / npx · 官方安装入口\n\n```bash\nnpx -y context-mode\n```\n\n来源：https://github.com/mksglu/context-mode#readme\n\n## 来源\n\n- repo: https://github.com/mksglu/context-mode\n- docs: https://github.com/mksglu/context-mode#readme\n",
      "summary": "从项目官方 README 或安装文档提取的开工入口。",
      "title": "Quick Start / 官方入口"
    }
  },
  "validation_id": "dval_1b850136039541bcaeca4528ebd3bfd6"
}
