cd /news/ai-tools/cursor-vs-copilot-write-ins-12-steps… · home › topics › ai-tools › article
[ARTICLE · art-179885] src=shattered.io ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Cursor vs Copilot Write-Ins: 12 Steps, 65 Min

A tutorial published by Shattered builds a small Python matcher that maps messy free-text tool names in the 2025 Stack Overflow Developer Survey to stable canonical IDs, flags unresolved entries, and reports shares with an explicit denominator, after finding that Cursor's 17.9% and GitHub Copilot's 67.9% come from different questions with different respondent bases (26,143 for development environments versus 8,323 for out-of-the-box AI agents). The piece cites 24/7 Wall St reporting that Cursor was renamed Grok Build on November 30, 2026, after SpaceX closed its all-stock purchase of Anysphere in August, leaving two name strings for one tool in surveys and telemetry. It also notes Copilot appears in write-in rows as separate 'copilot', 'github copilot' and 'microsoft copilot' lines at 0.1% each, which the matcher is designed to consolidate.

recommendation

Before comparing tool adoption, map write-in names like 'copilot', 'github copilot' and 'microsoft copilot' to one canonical ID and state the denominator for each question.

more in playbook: Evals and testing for LLM apps
by read29 min views21 publishedDec 2, 2026
Cursor vs Copilot Write-Ins: 12 Steps, 65 Min
Image: Shattered (auto-discovered)

Most Cursor vs Copilot share charts start from a number nobody normalized. In the 2025 Stack Overflow Developer Survey, Cursor appears at 17.9% of the 26,143 people who answered the development-environments question, while GitHub Copilot appears at 67.9% among the 8,323 who answered a separate question about out-of-the-box AI agents. Different questions, different bases, different spellings. Dividing one figure by the other produces a ratio that means nothing.

The naming problem got worse this week. According to 24/7 Wall St, Cursor became Grok Build on November 30, 2026, after SpaceX closed its all-stock purchase of Anysphere in August. Any survey, telemetry export or support ticket that spells the product by name now carries two strings for one tool, and Copilot has its own spelling mess on the other side.

The structured columns of the survey are the easy part, and a pandas walkthrough of the Stack Overflow survey data covers them. Free-text write-ins are where counts quietly drift. This project builds a small Python matcher that turns messy tool names into stable canonical IDs, flags what it cannot resolve, and reports shares with an explicit denominator. It runs in a single sitting, needs no API keys, and fits in a handful of source files plus a test file.

Don't miss new tech stories on Google

Add Shattered once in the Google app and our stories show up in your news suggestions.

Add now

What the 2025 Stack Overflow Cursor vs Copilot Numbers Actually Measure #

Stack Overflow’s 2025 survey is the most cited source for the Cursor vs GitHub Copilot market share debate, and the most misread. The AI section reports that 84% of respondents use or plan to use AI tools in their development process, up from 76% a year earlier, and that 51% of professional developers use them daily. Those headline figures come from the general AI usage question, not from the narrower questions that report Cursor and GitHub Copilot, which have their own respondent bases.

The tool-level numbers live elsewhere. Copilot’s 67.9% comes from the out-of-the-box agents question, which only 8,323 respondents (about 17% of the whole survey) answered. Cursor’s 17.9% comes from the development-environments question, answered by 26,143 people, or 53.3% of the survey. Visual Studio Code leads that second list at 75.9%, followed by Cursor, Claude Code at 9.7% and Windsurf at 4.9%.

Figure (2025 survey) Value Question it came from Respondents (n)
Use or plan to use AI tools 84% AI tools in the development process 33,662
Professional developers using AI daily 51% Same question, professional subset Not split out on the page
GitHub Copilot 67.9% Out-of-the-box agents, copilots, assistants 8,323
ChatGPT 81.7% Out-of-the-box agents, copilots, assistants 8,323
Claude Code (agents question) 40.8% Out-of-the-box agents, copilots, assistants 8,323
Visual Studio Code 75.9% Development environments and AI-enabled editors 26,143
Cursor 17.9% Development environments and AI-enabled editors 26,143
Claude Code (editors question) 9.7% Development environments and AI-enabled editors 26,143
Windsurf 4.9% Development environments and AI-enabled editors 26,143

Copilot does not appear in the main editor list at all. On the technology page it only shows up in write-in rows, where copilot and github copilot sit on separate lines at 0.1% each under Have Used, and microsoft copilot adds a third line. That is the exact failure this tutorial fixes: one product, three rows, and nobody summing them.

Statistical error bars are a separate issue, and the Wilson interval walkthrough for Cursor and Copilot handles them well. Intervals only help after the counts are right, though. A confidence interval around a miscounted numerator is just a precise wrong answer.

Why Free-Text Tool Names Break Share Counts #

A write-in field accepts whatever a respondent types. In a field like that, one product easily collects a dozen spellings: GitHub Copilot, github copilot, gh copilot, Copilot, copilot chat, Copiolt. A naive group-by counts each spelling as its own tool. The biggest spelling then looks like the whole product, and the share you publish is a floor that nobody labeled as one.

Four distinct failure modes show up in real survey exports. Case and punctuation variants inflate the row count. Typos hide mentions below any exact-match filter. Multi-tool answers such as Cursor + Copilot get counted as a single unknown string. And collisions pull in the wrong things: a bare copilot can mean GitHub’s product or Microsoft’s consumer assistant, and cursor can mean a mouse pointer or a database cursor.

The matcher built here handles each mode with a separate, inspectable rule. Exact alias matching runs first because it is cheap and predictable. Fuzzy matching with RapidFuzz runs second, only on strings that survive the first pass and only above a strict cutoff. Everything uncertain goes to a review queue rather than into a count, which keeps the audit trail honest.

Overlap matters as well. Developers who name two tools in one answer sit in both numerators, so shares add to more than 100% by design. The Jaccard and lift analysis of Cursor and Copilot overlap shows what to do with that overlap once the rows are clean. Here the goal is narrower: count each respondent once per tool, and say so in the output.

Cursor Is Now Grok Build: The Rename Problem #

According to 24/7 Wall St, SpaceX completed its all-stock acquisition of Anysphere on August 14, 2026, at a GAAP value of $42.5 billion plus $23.4 billion in equity awards for future employee compensation. The outlet reports that Cursor became Grok Build effective November 30, 2026, and that the company describes a from-scratch rewrite that is 3 to 10 times faster. Treat the price and speed claims as reported, because they come from one outlet quoting the company.

What matters for data work is narrower. The desktop editor, agent sessions and third-party model support continue, and command-line and API scripts keep working. From December 7, Slack, GitHub, Linear and Jira integrations require typing @Build instead of @Cursor. In other words, the product kept its function and changed its label, which is exactly the case where string-based analytics split a single tool into two.

What to do with the old and new names

Keep one canonical ID, cursor, and map both names to it. Then record which alias fired, so the report can say how many respondents used the old name and how many used the new one. A survey fielded before November 30 will contain almost no Grok Build strings. A support-ticket export from December will contain plenty. Merging them under one ID keeps the time series continuous, and the alias split keeps the rename visible.

Copilot moved too

GitHub changed Copilot’s billing on June 1, 2026, replacing premium request units with usage-based AI Credits. Copilot Pro stays at $10 a month and Pro+ at $39, per a Copilot pricing history tracker, with code completions still included. The billing change has no effect on spellings, but plan and product names keep shifting, so the alias list needs regular edits.

For a broader view of how the two products compare on price and limits, see the Claude Code vs Cursor vs Copilot pricing comparison.

Prerequisites and Versions for the Write-In Matcher #

Everything runs locally on a plain Python install. The versions below are the ones the project was built and tested with on Linux. Older Python releases may fail on the str | None type hints, so use a recent Python 3 release.

Component Tested version Why it is needed
Python 3.12.3 Runs the matcher and the audit CLI
RapidFuzz Not listed Fast fuzzy string scoring for typo recovery
PyYAML Not listed Loads the alias registry from a YAML file
pytest 9.2.0 Locks the matching rules with regression tests
A CSV with one free-text column Any Synthetic demo file here, a real survey export later
Terminal and text editor Any Bash-style shell assumed for the commands

No API keys, no network access after installation, and no GPU. The synthetic demo file is generated locally with a fixed random seed, so every run produces the same 2,000 rows and the same counts. That determinism matters because the tests assert exact behavior.

Plan for roughly 65 minutes the first time through: 10 minutes for setup and the alias file, 25 for the matching logic, 15 for the counting CLI and review loop, and 15 for tests and a run on real data. A second pass on a new dataset takes about 10 minutes, since only the alias file and the column name change.

Project Layout: Five Source Files and One Data Folder #

The structure is deliberately flat. Each file has a single job, and none imports more than the file before it, which makes the pipeline easy to read top to bottom and easy to test in pieces.

writein_audit/
  aliases.yaml        # canonical tools, aliases, guards, thresholds
  normalize.py        # text cleaning and multi-tool splitting
  matcher.py          # exact + fuzzy matching with guards
  audit.py            # CLI: counts, shares, review queue
  make_sample.py      # synthetic write-in generator (demo only)
  data/
    writeins.csv      # input (generated or real)
    review_queue.csv  # output: strings the matcher refused to guess
  tests/
    test_matcher.py   # regression tests

The same split, config in YAML and logic in code, appears in the share-claim linter for Cursor and Copilot, and it pays off here for the same reason. Analysts edit aliases without touching Python, and reviewers can diff the alias file between survey waves.

Set Up the Project, the Demo Data and the Alias Registry (Steps 1 to 3) #

Step 1: Create the project and a virtual environment

Make a project folder, create a virtual environment, and install the three dependencies. Pinning exact versions in a requirements file keeps the demo reproducible months from now.

mkdir -p writein_audit/tests writein_audit/data && cd writein_audit
python3 -m venv .venv
source .venv/bin/activate
pip install rapidfuzz==3.14.7 pyyaml==6.0.4 pytest==9.2.0
pip freeze | grep -iE "rapidfuzz|pyyaml|pytest" > requirements.txt
python --version
Python 3.12.3

If python --version prints anything below 3.10, stop and install a newer interpreter before continuing.

Step 2: Generate a synthetic write-in file

The demo file imitates a free-text question where about a third of respondents skip the field. It mixes the spellings seen in real exports: case variants, typos, combined answers, Microsoft’s assistant, mouse-pointer false positives and tools outside the audit. The mix is invented, so the shares it produces describe the generator’s weights and say nothing about real developers.

import csv
import random

random.seed(2026)
POOL = [
    (30, ["GitHub Copilot", "github copilot", "Copilot", "gh copilot", "Github Copilot Chat", "copilot (github)"]),
    (4, ["Microsoft Copilot", "M365 Copilot", "copilot studio"]),
    (22, ["Cursor", "cursor", "Cursor AI", "Cursor IDE", "cursor ai editor", "Anysphere Cursor"]),
    (3, ["Grok Build", "grokbuild", "xAI Grok Build"]),
    (9, ["Claude Code", "claude code", "claudecode"]),
    (4, ["Windsurf", "windsurf"]),
    (3, ["Copiolt", "Githb Copilot", "Cusor", "Curser", "Wndsurf"]),
    (2, ["mouse cursor", "database cursor", "sql cursor"]),
    (6, ["ChatGPT", "Gemini", "Tabnine", "none", "n/a", "Aider", "Codex CLI"]),
]
COMBOS = ["{a}, {b}", "{a} and {b}", "{a} / {b}", "{a} + {b}"]

def pick():
    weights = [w for w, _ in POOL]
    return random.choice(random.choices(POOL, weights=weights)[0][1])

with open("data/writeins.csv", "w", newline="", encoding="utf-8") as fh:
    out = csv.writer(fh)
    out.writerow(["respondent_id", "ai_tools_writein"])
    for i in range(1, 2001):
        if random.random() < 0.35:
            out.writerow([i, ""])
            continue
        text = pick()
        if random.random() < 0.18:
            text = random.choice(COMBOS).format(a=text, b=pick())
        out.writerow([i, text])
python make_sample.py
head -8 data/writeins.csv
respondent_id,ai_tools_writein
1,
2,Cursor
3,Cursor IDE
4,claude code
5,Github Copilot Chat / claude code
6,
7,Cursor AI

Step 3: Write the alias registry

The registry is the single source of truth. Each tool gets a canonical key, a display label and a list of aliases. Three optional fields carry the guards that appear later: ambiguous_aliases for strings that might mean something else, negative phrases that veto a match, and renamed_aliases for names adopted after a rebrand.

fuzzy_cutoff: 85
min_fuzzy_len: 6
tie_margin: 3
tools:
  github_copilot:
    label: GitHub Copilot
    aliases: [github copilot, gh copilot, github copilot chat, copilot chat, copilot agent, copilot cli, githubcopilot, copilot]
    ambiguous_aliases: [copilot]
  microsoft_copilot:
    label: Microsoft Copilot
    aliases: [microsoft copilot, ms copilot, m365 copilot, copilot studio, copilot pc]
  cursor:
    label: Cursor (renamed Grok Build on 2026-11-30)
    aliases: [cursor, cursor ai, cursor ide, cursor editor, anysphere cursor, grok build, grokbuild, xai grok build]
    renamed_aliases: [grok build, grokbuild, xai grok build]
    negative: [mouse cursor, text cursor, database cursor, db cursor, sql cursor, cursor position]
  claude_code:
    label: Claude Code
    aliases: [claude code, claudecode, claude cli]
  windsurf:
    label: Windsurf
    aliases: [windsurf, codeium windsurf]

Notice that microsoft_copilot exists as its own tool. Giving the neighboring product a real entry is cheaper than writing exclusion rules, because the longest-alias-wins logic in Step 5 sorts microsoft copilot chat into the right bucket automatically. Notice also that cursor lists grok build, grokbuild and xai grok build under renamed_aliases, which is how the report will separate old-name from new-name respondents.

Match Tool Names: Normalize, Exact Pass, Fuzzy Pass and Guards (Steps 4 to 7) #

Step 4: Normalize the text

Normalization removes variation that carries no meaning. Unicode NFKC folds lookalike characters such as full-width letters and ligatures, casefold handles case more thoroughly than lower, and a regex turns punctuation into spaces so Copilot (GitHub) and copilot github collapse to the same string.

import re
import unicodedata

_NON_WORD = re.compile(r"[^\w\s]")
_SPACES = re.compile(r"\s+")

def normalize(text: str) -> str:
    t = unicodedata.normalize("NFKC", text or "").casefold()
    t = _NON_WORD.sub(" ", t)
    return _SPACES.sub(" ", t).strip()

Apply the same function to the aliases when the registry loads. If aliases stay raw while input gets normalized, GitHub Copilot in the YAML never matches github copilot in the data, and the failure is silent.

Step 5: Build the exact-pass matcher

The matcher compiles one word-boundary regex per alias and tries them from longest to shortest. Longest-first is what makes microsoft copilot beat copilot on the string microsoft copilot chat. The boundaries, (?<!\w) and (?!\w), stop cursor from matching inside cursors or precursor.

import re
from dataclasses import dataclass

import yaml
from rapidfuzz import fuzz, process

from normalize import normalize

@dataclass(frozen=True)
class Match:
    tool: str | None
    method: str  # contains | fuzzy | blocked | review | none
    score: float
    alias: str | None = None
    ambiguous: bool = False

class Registry:
    def __init__(self, path: str):
        with open(path, encoding="utf-8") as fh:
            cfg = yaml.safe_load(fh)
        self.cutoff = cfg["fuzzy_cutoff"]
        self.min_len = cfg["min_fuzzy_len"]
        self.margin = cfg["tie_margin"]
        self.labels, self.alias_tool = {}, {}
        self.ambiguous, self.renamed, self.negative = set(), set(), {}
        for key, spec in cfg["tools"].items():
            self.labels[key] = spec["label"]
            for a in spec["aliases"]:
                self.alias_tool[normalize(a)] = key
            self.ambiguous |= {normalize(a) for a in spec.get("ambiguous_aliases", [])}
            self.renamed |= {normalize(a) for a in spec.get("renamed_aliases", [])}
            self.negative[key] = [normalize(n) for n in spec.get("negative", [])]
        ordered = sorted(self.alias_tool, key=len, reverse=True)
        self._patterns = [(a, re.compile(rf"(?<!\w){re.escape(a)}(?!\w)")) for a in ordered]
        self._choices = list(self.alias_tool)

    def match(self, text: str) -> Match:
        for alias, pattern in self._patterns:
            if pattern.search(text):
                tool = self.alias_tool[alias]
                if any(n in text for n in self.negative[tool]):
                    return Match(None, "blocked", 100.0, alias)
                return Match(tool, "contains", 100.0, alias, alias in self.ambiguous)
        if len(text) < self.min_len:
            return Match(None, "none", 0.0)
        top = process.extract(text, self._choices, scorer=fuzz.ratio,
                              score_cutoff=self.cutoff, limit=2)
        if not top:
            return Match(None, "none", 0.0)
        best_alias, best_score, _ = top[0]
        if len(top) == 2:
            rival_alias, rival_score, _ = top[1]
            rival_tool = self.alias_tool[rival_alias]
            if rival_tool != self.alias_tool[best_alias] and best_score - rival_score < self.margin:
                return Match(None, "review", best_score, best_alias)
        return Match(self.alias_tool[best_alias], "fuzzy", best_score, best_alias)

Every result is a frozen dataclass with the tool, the method used, a score and the alias that fired. Keeping the method and alias on every result is what lets the audit report split old-name and new-name respondents later.

Step 6: Recover typos with a strict fuzzy pass

Strings that contain no alias fall through to RapidFuzz. The matcher scores the input against every alias with fuzz.ratio, keeps results at or above the cutoff of 85, and returns the top two. ratio is deliberately stricter than the looser WRatio, which forgives partial overlaps and will happily call a stray word a tool name.

Two settings control the risk. min_fuzzy_len blocks very short strings, because pilot scores close enough to copilot that it would slip through a lower cutoff. tie_margin sends a string to review when it lands within a small margin of two different tools. The cost is real: curser scores just under the cutoff against cursor and is missed, and cusor is too short to try. Step 10 shows how the review queue recovers those.

Step 7: Add guards for ambiguous and hostile strings

Three guards sit inside the matcher already. A negative list vetoes a match when a phrase like mouse cursor or database cursor appears, returning the method blocked. An ambiguous_aliases entry still counts the match but sets a flag, so a bare copilot is visible in the report as lower confidence. And the tie margin keeps near-equal fuzzy candidates out of the totals.

Guards trade recall for precision, and that trade should be explicit. Blocking mouse-pointer talk removes 38 mentions from the demo run. If the data came from a survey that only asks about coding tools, the negative list would be unnecessary overhead, and the selection-bias tipping-point analysis explains why such filters can move a share more than sampling noise does.

Count Respondents and Work the Review Queue (Steps 8 to 10) #

Step 8: Split multi-tool answers and drop placeholders

About one answer in six names two tools. Splitting on commas, semicolons, slashes, plus signs, ampersands, pipes and the words and or plus turns Cursor + Github Copilot, Claude Code into three clean mentions. Many survey exports store multi-select answers with semicolons, so that delimiter matters for real files.

The first version of this splitter had a bug that the review queue exposed at once. The string n/a split on the slash into n and a, and both landed in the queue with 16 hits each. The fix rewrites n/a to none before splitting, then discards a small set of placeholders.

import re
import unicodedata

_SPLIT = re.compile(r"\s*(?:,|;|/|\+|&|\||\band\b|\bplus\b)\s*", re.IGNORECASE)
_NON_WORD = re.compile(r"[^\w\s]")
_SPACES = re.compile(r"\s+")
_NOT_APPLICABLE = re.compile(r"\bn\s*/\s*a\b", re.IGNORECASE)
_PLACEHOLDERS = {"none", "na", "no", "nothing", "nil"}

def normalize(text: str) -> str:
    t = unicodedata.normalize("NFKC", text or "").casefold()
    t = _NON_WORD.sub(" ", t)
    return _SPACES.sub(" ", t).strip()

def split_mentions(raw: str) -> list[str]:
    parts = _SPLIT.split(_NOT_APPLICABLE.sub("none", raw or ""))
    cleaned = (normalize(p) for p in parts)
    return [p for p in cleaned if p and p not in _PLACEHOLDERS]

Step 9: Count each respondent once per tool

The audit CLI reads the CSV, splits each answer, matches each mention and collects the tools found per respondent in a set. Using a set is what stops a respondent who writes Cursor, cursor ai from counting twice. The denominator is the number of respondents who wrote anything in the field, and the output prints it first.

import argparse
import csv
from collections import Counter

from matcher import Registry
from normalize import normalize, split_mentions

def main() -> None:
    ap = argparse.ArgumentParser()
    ap.add_argument("--csv", required=True)
    ap.add_argument("--column", required=True)
    ap.add_argument("--aliases", default="aliases.yaml")
    ap.add_argument("--review-out", default="data/review_queue.csv")
    args = ap.parse_args()

    reg = Registry(args.aliases)
    answered = 0
    per_tool, naive = Counter(), Counter()
    methods, review = Counter(), Counter()
    ambiguous_rows, renamed_rows = 0, 0

    with open(args.csv, newline="", encoding="utf-8") as fh:
        for row in csv.DictReader(fh):
            raw = (row.get(args.column) or "").strip()
            if not raw:
                continue
            answered += 1
            key = normalize(raw)
            if key in ("github copilot", "cursor"):
                naive[key] += 1
            tools, row_ambiguous, row_renamed = set(), False, False
            for mention in split_mentions(raw):
                m = reg.match(mention)
                methods[m.method] += 1
                if m.tool:
                    tools.add(m.tool)
                    row_ambiguous |= m.ambiguous
                    row_renamed |= m.alias in reg.renamed
                elif m.method in ("none", "review"):
                    review[mention] += 1
            for t in tools:
                per_tool[t] += 1
            ambiguous_rows += row_ambiguous
            renamed_rows += row_renamed

    print(f"respondents answering the write-in: {answered}")
    print(f"{'tool':<44}{'rows':>6}{'share':>9}")
    for tool, n in per_tool.most_common():
        print(f"{reg.labels[tool]:<44}{n:>6}{n / answered:>9.1%}")
    print(f"\nnaive exact-string baseline: copilot={naive['github copilot']} cursor={naive['cursor']}")
    print(f"match methods: {dict(methods)}")
    print(f"rows with a bare 'copilot' (ambiguous): {ambiguous_rows}")
    print(f"rows using a post-rename Cursor name: {renamed_rows}")

    with open(args.review_out, "w", newline="", encoding="utf-8") as fh:
        out = csv.writer(fh)
        out.writerow(["mention", "count"])
        out.writerows(review.most_common())
    print(f"review queue: {len(review)} distinct strings -> {args.review_out}")

if __name__ == "__main__":
    main()
python audit.py --csv data/writeins.csv --column ai_tools_writein
respondents answering the write-in: 1272
tool                                          rows    share
GitHub Copilot                                 540    42.5%
Cursor (renamed Grok Build on 2026-11-30)      436    34.3%
Claude Code                                    143    11.2%
Windsurf                                        82     6.4%
Microsoft Copilot                               77     6.1%

naive exact-string baseline: copilot=113 cursor=96
match methods: {'contains': 1313, 'none': 106, 'blocked': 38, 'fuzzy': 23}
rows with a bare 'copilot' (ambiguous): 191
rows using a post-rename Cursor name: 56
review queue: 7 distinct strings -> data/review_queue.csv

The baseline line is the argument for the whole exercise. Counting only rows that equal github copilot or cursor exactly finds 113 and 96 respondents. The normalized pass finds many more for both tools, several times the exact-match counts. The shares are percentages of the 1,272 respondents who answered, so they sum past 100% whenever people name more than one tool.

Method Mentions What it means
contains Not listed An alias matched on a word boundary, longest alias first
fuzzy 23 RapidFuzz recovered a typo above the 85 cutoff
blocked 38 A negative phrase vetoed the match (mouse or database cursors)
none 106 No alias or fuzzy hit, sent to the review queue
review 0 A fuzzy tie between two tools within 3 points

Step 10: Work the review queue and feed it back

The queue lists every string the matcher refused to guess, sorted by frequency. That ordering is the point: fix the top rows and coverage improves fastest. Open the file and sort the entries into three piles, which are real tools to add to the registry, real tools outside the audit, and junk.

mention,count
codex cli,25
aider,17
chatgpt,17
tabnine,15
curser,12
cusor,10
gemini,10

Four of the seven rows are tools the audit does not track, so they stay in the queue by design. Two rows, curser and cusor, are Cursor typos that the fuzzy pass was too careful to accept. Add both as exact aliases. One YAML edit is enough, and no Python changes.

sed -i 's/aliases: \[cursor, cursor ai,/aliases: [cursor, curser, cusor, cursor ai,/' aliases.yaml
python audit.py --csv data/writeins.csv --column ai_tools_writein | head -4
respondents answering the write-in: 1272
tool                                          rows    share
GitHub Copilot                                 540    42.5%
Cursor (renamed Grok Build on 2026-11-30)      456    35.8%

Cursor rises from 436 to 456 respondents, a 20-person gain from two lines of YAML, and the queue drops to five strings that all belong to tools outside the audit. Re-run the tests after every alias edit, because a loosened alias can shift an older expectation.

Repeating this review loop across survey waves also feeds the drift decomposition of Cursor and Copilot survey shares, which separates real change from relabeling noise. Without a stable alias file, those two effects blur together.

Lock It Down With Tests, Then Run It on a Real Survey File (Steps 11 and 12) #

Step 11: Write regression tests

Tests turn the matching rules into promises. They cover the happy path, the Microsoft collision, the bare-copilot flag, the mouse-pointer veto, the typo that now has an alias, the short typo that still goes to review, the pilot trap and the splitter. Run them with python -m pytest from the project root so the module imports resolve.

import pytest

from matcher import Registry
from normalize import split_mentions

REG = Registry("aliases.yaml")

@pytest.mark.parametrize("text,tool", [
    ("github copilot", "github_copilot"),
    ("gh copilot", "github_copilot"),
    ("microsoft copilot chat", "microsoft_copilot"),
    ("cursor ai", "cursor"),
    ("grok build", "cursor"),
    ("copiolt", "github_copilot"),
    ("claudecode", "claude_code"),
])
def test_known_mentions(text, tool):
    assert REG.match(text).tool == tool

def test_bare_copilot_is_flagged_ambiguous():
    m = REG.match("copilot")
    assert m.tool == "github_copilot" and m.ambiguous

def test_mouse_cursor_is_blocked():
    assert REG.match("mouse cursor").tool is None

def test_reviewed_typo_is_now_an_alias():
    assert REG.match("cusor").tool == "cursor"

def test_unlisted_short_typo_goes_to_review():
    assert REG.match("cursr").tool is None

def test_pilot_does_not_become_copilot():
    assert REG.match("pilot").tool is None

def test_split_handles_na_and_combos():
    assert split_mentions("n/a") == []
    assert split_mentions("Cursor + Github Copilot, Claude Code") == ["cursor", "github copilot", "claude code"]
python -m pytest -q
.............                                                            [100%]
13 passed in 0.06s

One test failed during development, and the failure was useful. After the typo aliases went in, the old assertion that cusor goes to review broke, which forced a deliberate decision about whether the rule or the test was wrong. A failing test after an alias edit is the system working.

Step 12: Point it at a real export

The survey’s public results ship as downloadable data files. Download the file for the year you want, then find the free-text column. Column names vary by year, so list the headers before guessing. Inspecting the header row first costs seconds and avoids a confusing empty report.

head -1 survey_results_public.csv | tr ',' '\n' | grep -n -i -E "ai|tool|other"
python audit.py --csv survey_results_public.csv --column YOUR_COLUMN_NAME \
  --review-out data/review_real.csv

Run the real file in two passes. First, the registry as written, then read the top 30 rows of the review queue and add what belongs. Report both runs if the second moves any share by more than a percentage point, because readers should see how sensitive a published number is to the cleaning rules.

A caution on the 2026 edition. According to a DiffVibe analysis of the 2026 survey, a count it attributes to Stack Overflow’s 2026 survey (30,903 valid responses out of 39,266 rows) puts Copilot at 58.7% and Cursor at 25.5% on a base of 12,255, while an independent recount of the same public data gets 61.3% and 26.6% on 11,739. Same file, different denominators, different percentages. Treat that as one outlet’s reading and verify it against the raw data before repeating it.

Seven Common Pitfalls When Comparing Cursor and Copilot Write-Ins #

  1. Dividing numbers from different questions. A 67.9% from one question and a 17.9% from another do not form a ratio. State the question and the base next to every share, or leave the comparison out.
  2. Calling every bare copilot GitHub Copilot. The word also names Microsoft’s consumer assistant. The matcher counts it but flags it, so publish the share with and without the ambiguous rows when they are a large slice, as the 191 rows were in the demo.
  3. Setting the fuzzy cutoff too low. At 80 or below,pilot becomescopilot andcursed edges towardcursor . Raise the cutoff before lowering it, and let the review queue handle the rest.
  4. Changing the denominator without saying so. Shares of all respondents, shares of write-in answerers and shares of people who named any tool are three different numbers. The audit prints the base on its first line for this reason.
  5. Splitting on slashes without guarding n/a. It creates two junk strings per skipped answer and inflates the queue. Rewrite known placeholders before splitting.
  6. Treating Grok Build as a new competitor. The tool is Cursor under a new label. Mapping it to a separate ID would show a fake newcomer rising while Cursor falls, so keep one canonical ID and split the report by alias instead.
  7. Editing the raw CSV. Cleaning should live in code and the alias file. A hand-edited export cannot be audited, and the next survey wave will reintroduce every problem.

For a wider look at how analysts choose between a point estimate and a model, the Bayesian pooling approach to Cursor and Copilot share is the natural next layer. It depends on the same clean counts this project produces.

Troubleshooting: Ten Problems and Their Fixes #

  • ModuleNotFoundError for rapidfuzz or yaml. The virtual environment is not active. Runsource .venv/bin/activate and confirm withwhich python .
  • KeyError or an empty report with the right column name. The file probably starts with a byte order mark, which glues a hidden character to the first header. Open it withencoding="utf-8-sig" .
  • Nearly everything lands in the review queue. The column is wrong, or the field holds codes instead of text. Print five raw values from the column before debugging the matcher.
  • yaml.scanner.ScannerError on load. An alias contains a colon or a stray tab. Quote the string and use spaces for indentation.
  • ImportError when running pytest. Runpython -m pytest from the project root. The barepytest command may not put the root on the import path.
  • Copilot share looks too high. Check the ambiguous-row count in the report. Bare mentions of the word copilot can include Microsoft’s assistant. Add the extra phrasings you see in the data tomicrosoft_copilot .
  • Cursor share includes pointer talk. Add the offending phrase to the tool’snegative list and add a test that locks it in.
  • Shares add up to more than 100%. That is expected. A respondent who names two tools counts once for each. The denominator is people, not mentions.
  • A fuzzy match picks the wrong tool. Raisefuzzy_cutoff ormin_fuzzy_len , or widentie_margin . Then add the string as an explicit alias if it recurs.
  • Zero-width characters split a word. Strings pasted from web pages sometimes hide invisible characters that turncopilot intoco pilot . Strip characters in the Unicode category Cf before normalizing.

When a count looks wrong, trace one respondent end to end. Print the raw string, the split mentions and each Match object for that row. The method and alias fields make it obvious which rule fired, and most bugs show up within three lines of output.

Advanced Tips: Time Series, Caching and Confidence #

Version the alias file. Commit aliases.yaml to git and tag it per survey wave. A published share should always cite the alias file version that produced it, because adding a single typo alias moved Cursor by 20 respondents in the demo.

Add validity dates to aliases. The rename gives a natural case. Extend the registry with a valid_from date on grok build of 2026-11-30, then warn when a response collected before that date contains the name. That catches mislabeled exports and test data.

Cache the matcher on large files. Real exports repeat the same strings thousands of times. Wrapping Registry.match in functools.lru_cache turns repeated lookups into dictionary hits. The cache key is the normalized string, so it stays small.

Report match confidence. Split the output into three bands: exact alias, fuzzy above 90 and fuzzy between 85 and 90. If the bottom band holds more than a few percent of a tool’s count, publish it as a range instead of a single number.

Chain the clean counts into the rest of the toolkit. Once the numerators are right, add interval estimates from the Wilson approach, check overlap, and reweight toward a known population as in the raking approach to Cursor and Copilot survey weights. Each step assumes the count underneath it is honest.

Extend the tool list. Claude Code, Windsurf and Microsoft’s assistant are already in the registry. Adding Codex, Aider or Gemini takes four lines of YAML each. The review queue in the demo already shows those names waiting, with Codex CLI leading at 25 mentions.

The Complete Project: Run It End to End #

The files from Steps 2 through 11 form the whole project. A small Makefile ties them into one command, so a teammate can reproduce the demo and the test run without reading any of the steps.

.PHONY: demo test clean

demo:
	.venv/bin/python make_sample.py
	.venv/bin/python audit.py --csv data/writeins.csv --column ai_tools_writein

test:
	.venv/bin/python -m pytest -q

clean:
	rm -f data/writeins.csv data/review_queue.csv
make demo
make test

The final state after Step 10 holds one alias edit beyond the first draft, with 13 passing tests, a review queue of five strings and a Cursor count of 456 out of 1,272 respondents. The shares come from synthetic data, so the numbers show how the code behaves and carry no information about the real market.

For the same question approached from a different angle, the market share audit of Cursor and GitHub Copilot compares public signals, and the software category collects the rest of the developer-tools coverage.

Frequently Asked Questions #

Is Cursor bigger than GitHub Copilot according to the 2025 Stack Overflow survey? The survey cannot answer that directly. Copilot’s 67.9% comes from a question answered by 8,323 respondents about out-of-the-box agents, and Cursor’s 17.9% comes from a question answered by 26,143 respondents about development environments. Different questions mean different bases, so the two figures are not comparable.

What does the 2025 survey say about AI tool use overall? It reports that 84% of respondents use or plan to use AI tools in their development process, up from 76% the year before, and that 51% of professional developers use them daily.

Is Cursor still called Cursor? Not officially. According to 24/7 Wall St, the product became Grok Build on November 30, 2026, and from December 7 chat integrations such as Slack, GitHub, Linear and Jira expect @Build instead of @Cursor. Command-line and API scripts keep working.

Should I count Grok Build mentions as Cursor? Yes, for any analysis that spans the rename. Map both names to one canonical ID so trends stay continuous, then keep the alias that fired so you can still report how many respondents used each name.

What fuzzy-matching threshold works best? This project uses a RapidFuzz ratio cutoff of 85 with a minimum string length of 6 and a tie margin of 3. Those values favor precision. Lower the cutoff only after reading the review queue, and add recurring typos as exact aliases instead.

Do the 2026 survey numbers change the picture? They add another caution. A DiffVibe analysis reports Copilot at 58.7% and Cursor at 25.5% on a base of 12,255, while an independent recount of the same public data lands at 61.3% and 26.6% on 11,739. The gap comes from denominators, which is exactly why this audit prints its base.

Can the matcher handle tools other than Cursor and Copilot? Yes. Add an entry under tools in the YAML file with a key, a label and its aliases. No Python edits are needed, though a new test per tool is a good habit.

Which Python version do I need? A recent Python 3 release, because the code uses str | None annotations. The project was tested on 3.12.3 with pytest 9.2.0.

── more in #ai-tools 4 stories · sorted by recency
── more on @cursor 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cursor-vs-copilot-wr…] indexed:0 read:29min 2026-12-02 · —