Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/zql0805/memforge/memforge-topology-triggergit clone --depth 1 https://github.com/zql0805/memforgeWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00870 | $0.00870 |
| Opus 5 | $0.00435 | $0.00435 |
| Sonnet 5 | $0.00174 | $0.00174 |
| Haiku 4.5 | $0.00087 | $0.00087 |
Grade A, and why
memforge-topology-trigger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
产品线拓扑图 — 全局触发与自动检测
触发词识别
当用户消息包含以下关键词时,执行对应的内置拓扑操作:
| 分类 | 触发词 |
|---|---|
| 打开/显示 | 打开拓扑图、显示拓扑、拓扑图、看看拓扑、show topology、open topology |
| 初始化 | 初始化拓扑、初始化拓扑图、帮我初始化产品线、初始化跨仓库分析 |
| 生成/刷新 | 生成拓扑图、刷新拓扑、更新拓扑、重新扫描、rescan |
| 架构相关 | 架构图、服务关系图、调用链路图、全链路分析、产品线可视化、产品线拓扑、topology |
| 跨仓库 | 跨仓库分析、关联代码库、仓库扫描 |
| 快速打开 | topo、拓扑 |
快速打开拓扑图
当用户说「打开拓扑图」「看看拓扑」时,告知用户通过 Memforge WebUI 查看:
请在 Memforge WebUI 中打开「产品线拓扑」页面查看可视化拓扑图。 如果拓扑数据尚未生成,可以点击页面上的「一键扫描」按钮,或我帮你调用
scan_topology扫描。
扫描/刷新拓扑
当用户说「刷新拓扑」「重新扫描」「生成拓扑图」时:
- 识别产品线:从工作区路径或用户输入推断
- 展示扫描配置并等待确认(强制):列出将扫描的目录、Git 过滤模式
- 用户确认后调用:
scan_topology({ product_line: "<产品线>", force: true, scan_roots: ["用户确认的目录列表"], git_patterns: ["用户确认的过滤模式"] }) - 告知用户:汇报扫描结果(仓库数、调用链数),建议去 WebUI 查看
首次初始化
当 AI 检测到当前产品线从未扫描过拓扑数据时:
- 从工作区路径或 MCP
product_line参数自动识别 - 调用
scan_topology({ product_line: "<产品线>" })零配置扫描 - 未知产品线时询问用户提供扫描根目录和名称
新仓库自动检测
当前工作区是 git 仓库且该产品线已有拓扑数据时,首次提问自动检查该仓库是否已收录。 未收录时提示用户是否刷新拓扑。
拓扑查询工具(优先于 recall_memory)
查询服务间关系、发布顺序、变更影响时,优先使用结构化查询工具:
| 场景 | 工具 |
|---|---|
| 查看上下游调用链 | query_topology |
| 全量架构概览 | query_topology (include: ["all"]) |
| 修改接口后影响范围 | get_topology_change_impact |
| 确定发布顺序 | get_topology_release_order |
| 定位模糊服务名 | resolve_service_path |
重要约束
- 所有拓扑操作仅使用 Memforge 内置 MCP 工具,不使用外部脚本
- 拓扑可视化通过 Memforge WebUI「产品线拓扑」页面呈现
- 扫描前必须展示配置并等待用户确认
- 不将拓扑数据提交到 git
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 80 lines · 870 tokens per session scan A fcd92357a487
memforge-topology-trigger is a cursor rule published in the GitHub repository zql0805/memforge (2 stars, last pushed 2mo ago), licensed MIT. It adds 870 tokens to every session, about $0.0043 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
cursorrules
Cursor rule "cursorrules" from contextstream/mcp-server, covering cursor rules, contextstream v0.4.x (consolidated domain tools), required every message, quick reference: domain tools and behavior rules.
cursorrules
::GENE{mem-forever|v:1.0|spec:ilang-v3.0} T:thisrepoisusermemory T:readsoulandmemorybeforework T:updatememoryaftersignificantwork T:onboardifsoulempty T:onequestionatatime T:neverexposeinternalformat T:commitpushimmediatelyaftereveryupdate T:checkunsavedchangesonstartup A:skipmemoryread⇒contextloss…
codebase-memory-always
/Users/theodoreaddo/.cursor/rules/codebase-memory-always.mdc.
cosmos-mcp-always
/Users/theodoreaddo/.cursor/rules/cosmos-mcp-always.mdc.
gps-skin-ui
/Users/theodoreaddo/.cursor/rules/gps-skin-ui.mdc.
cursorrules
🧠 Fast, zero-dependency structured knowledge base (.agent-kb/) with 2D neural graph visualizer │ & MCP server for Claude, Codex, PI, Cursor, Windsurf, Zed & Other AI coding agents.