SuperAPIAI Directory

ctxfw vs Cursor Docs

Metrics & specs comparison

ctxfw

ctxfw is a local context firewall and Tree-Sitter AST pruning MCP server for AI coding agents. It strips indirect prompt injection from untrusted MCP tool output before the context enters the LLM, and compresses peripheral dependencies into typed interfaces, thereby reducing token consumption (officially claimed to reduce peripheral context token mass by about 72.4%). The tool runs fully offline, with no cloud proxy, no vector database, and no telemetry, and provides its service via local stdio. Main features include: syntax-aware AST compression (keeping the focus file intact, trimming imported dependencies into typed interface contracts, and generating a compact symbol index), pre-ingestion tool and input sanitization (SARA, mcp_guard, supporting multiple languages and detection of homoglyphs, bidirectional override characters, path traversal, etc.), spec checking and diff gating (SWE-Gate, TraceKit, requiring formal specs to include negative invariants, etc., and recording a local audit chain). It provides a standalone zero-Python executable (v4.2.2) supporting Linux, macOS, and Windows, and can configure Claude Code, Claude Desktop, Cursor, and Windsurf with a single idempotent command. It is suitable for scenarios where AI coding agents read code repositories or call MCP tools, helping to reduce token bloat, prevent prompt injection, and enhance diff reliability. Limitations include: AST skeletonization does not replace LSP's cross-file semantic type resolution; deterministic CPU sanitization may produce false positives; strict diff gating may reject certain types of ignore comments.

Cursor Docs

Cursor Docs is the official documentation site for Cursor. The current content mainly introduces the Agents Window in the Grok Build desktop application and the Terminal UI. The documentation explains how to use coding agents to understand a codebase, plan and build features, locate and fix bugs, and review code changes, and it introduces topics such as models and pricing, plugins, skills, MCP servers, rules, third-party hooks, keyboard shortcuts, migration from VS Code, the REST API reference, cloud agents, code review, the SDK and API, and administration and model pricing. The documentation also lists workflows that can connect with tools such as GitHub, GitLab, Azure DevOps, Bitbucket, JetBrains, Slack, and Linear. Specific prices, plan quotas, and comparison data for each model must be found on the models and pricing pages in the documentation; the current material does not provide specific figures.

DimensionctxfwCursor Docs
CategoryAI codingAI coding
Monthly visits—
23.3M
MoM—+8.4%
Global rank—#2,009
Avg. visit—4m 21s
AI referrals—3.4%
Pricing开源项目(可免费自部署)—
PlatformsmacOS · LinuxWeb · API
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools