Cursor vs Copilot Attention Share: 12 Steps, 65 Min Stack Overflow's 2025 Developer Survey reports GitHub Copilot at 67.9% among respondents using out-of-the-box AI tools and Cursor at about 18% in a separate development-environments question, but the two figures come from different respondent bases and cannot be divided into a Cursor vs Copilot market share, according to a Shattered tutorial that builds a roughly 400-line Python package in about 65 minutes to measure the pair's attention share from daily Wikipedia pageviews with bootstrap error bars. The tutorial cites Neon's State of AI 2025 survey, where 71% of respondents had used GitHub Copilot and 33% had used Cursor on a single question, and notes a DiffVibe write-up reporting Copilot at 58.7% and Cursor at 25.5% in Stack Overflow's 2026 Developer Survey, which it says does not form a trend line with 2025 because the questions differ. Stack Overflow's 2025 survey collected more than 49,000 responses from 177 countries, with 84% of respondents saying they use or plan to use AI tools and 51% of professional developers reporting daily AI tool use. Stack Overflow’s 2025 Developer Survey lists GitHub Copilot at 67.9% among respondents who use out-of-the-box AI tools, and it shows Cursor at about 18% in a separate question about development environments. Those two percentages describe different groups of people, so the denominators differ https://diffvibe.com/articles/stack-overflow-s-copilot-numbers-split-three-ways-one-is-a-sign-error and no clean Cursor vs Copilot market share falls out of them. Surveys give one lens. A second, cheap lens is public attention: how many people open the Wikipedia article for each product on a given day. The project below pulls daily pageviews for both products, strips news spikes, puts bootstrap error bars on the result, and refuses to combine survey figures that came from different questions. If you hold seat exports from your own company, start with a seat-level market share audit https://shattered.io/cursor-vs-github-copilot-market-share-audit-12-steps-2026/ and treat this build as the outside check. Plan on about 65 minutes. You finish with a Python package of roughly 400 lines, seven passing tests, a daily CSV, a chart, and a report that prints the attention share of the pair with a 95% interval beside survey anchors it will not let you misuse. Everything runs offline in demo mode first, so you can verify the logic before touching the network. 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 https://www.google.com/preferences/source?hl=en&q=https%3A%2F%2Fshattered.io%2F Why the Cursor vs Copilot share numbers disagree Start with what the 2025 surveys actually measured. Stack Overflow collected more than 49,000 responses from 177 countries, and 84% of respondents said they use or plan to use AI tools in their development process, up from 76% the year before. Among professional developers, 51% reported using AI tools daily. Those are adoption figures for AI in general. Neither number belongs to Cursor or to Copilot. The product-level figures sit on different questions. Copilot’s 67.9% counts respondents who picked it inside the out-of-the-box AI tools question, which only people using AI agents or assistants answered. It is not a market share, a paid-seat share, a revenue share, or an exclusive-use share. Cursor’s roughly 18% comes from the development environments question, where every respondent could tick the editors they use. Dividing one by the other gives a ratio that means nothing because the bases do not match. Neon’s State of AI 2025 survey asked a cleaner pair. According to Neon’s published results https://neon.com/blog/state-of-ai-survey-2025 , 71% of respondents had used GitHub Copilot and 33% had used Cursor. Both figures answer one question for one base, so a ratio is at least defined. Even so, respondents could pick several tools, which means the two percentages overlap and the pair is a share of mentions, never a share of developers. A newer edition complicates the picture again. Stack Overflow has released a 2026 Developer Survey, and a secondary write-up from DiffVibe reports Copilot at 58.7% and Cursor at 25.5% in it. Treat those as reported figures. The 2026 questions differ from the 2025 ones, so the two years do not form a trend line, and the 2025 results remain a dated snapshot rather than a statement about December 2026. Researchers have attacked this problem from several angles already. You can read the raw tables with Stack Overflow survey tables in pandas https://shattered.io/cursor-vs-copilot-stack-overflow-survey-pandas-12-steps-2026/ , or you can pool several surveys with a Bayesian pooling model https://shattered.io/cursor-vs-copilot-share-bayesian-beta-binomial-pooling-12-steps-2026/ . Both start from stated answers. Pageviews start from behavior, and that difference is the reason to add them to the evidence stack. The goal here is narrow and practical. You will measure one thing attention , label it honestly, and keep it away from the usage numbers it cannot replace. Done well, an attention series tells you whether interest in a tool is rising or fading faster than the yearly surveys can show. Three kinds of share: attention, usage, and seats Most bad share charts come from mixing metrics. Before writing code, fix the vocabulary. Each metric below has a numerator, a denominator, and a set of questions it can answer. Only the attention row is something this project computes from scratch. | Metric | Numerator | Denominator | Can answer | Cannot answer | |---|---|---|---|---| | Survey usage share | Respondents who picked the tool | Respondents asked that exact question | How common a tool is among that sample | Share of the whole developer market | | Share of mentions | One tool’s mentions | Mentions of both tools in one question | Relative popularity inside one survey | Share of developers multi-select overlap | | Seat share | Licensed or active seats for one tool | Seats for both tools in one company | Spend and utilization in your org | Anything outside your company | | Revenue share | One vendor’s recurring revenue | Revenue of both vendors | Money flowing to each product | Number of users prices differ | | Attention share | Wikipedia pageviews for one article | Pageviews for both articles | Momentum and curiosity over time | Usage, satisfaction, or paid adoption | | Search demand share | Searches for one tool name | Searches for both names | Buying and research intent | Daily active use | Attention skews toward newcomers. A person who has used Copilot inside Visual Studio Code for three years rarely opens an encyclopedia page to look it up. A person who hears about a newer editor in a podcast often does. That asymmetry means attention share will tend to run ahead of usage share for the newer product, and the project is built to show that gap rather than hide it. The same discipline applies to claims you read online. A claim linter for share statements https://shattered.io/cursor-vs-copilot-share-claim-linter-python-12-steps-2026/ checks that every percentage carries a question, a base, and a metric type. The survey guard you will write in Step 8 enforces the same rule in code, so a figure with a missing or mismatched base cannot reach the report. One more distinction matters for the rest of the build. Attention share here means Cursor’s share of the pair, computed as Cursor views divided by Cursor plus Copilot views. Claude Code, Windsurf, Zed, and every other tool are outside the denominator. The number answers a two-way question and says nothing about a market of many players. Prerequisites and tested versions The project uses the standard library for fetching, filtering, and statistics. That choice keeps installs trivial and makes every calculation readable. Two optional packages add tests and a chart. - Python 3.11 or newer. The config loader uses tomllib , which ships from 3.11. The code was tested on Python 3.12.3 under Linux. - pytest 9.2.0 for the seven unit tests. Any recent pytest works. - matplotlib 3.6.3 optional for the chart. Without it the report still runs and skips the PNG. - Network access to wikimedia.org for live mode. Demo mode needs no network. - A contact string an email address or project URL for the HTTP User-Agent header. Wikimedia asks API clients to identify themselves. - About 65 minutes. Budget 10 minutes for setup, 35 for code, 10 for tests, and 10 for reading the output. No pandas, no requests, no database. If you prefer pandas, the filtering steps translate directly, but the dependency adds nothing the tutorial needs. Create an isolated environment first. The commands below work in any POSIX shell. On Windows, activate the environment with .venv\Scripts\activate instead. python3 --version python3 -m venv .venv source .venv/bin/activate pip install pytest matplotlib mkdir -p attention-share/{attn,tests,data/raw,out} cd attention-share touch attn/ init .py The data/raw folder caches API responses so repeated runs do not hit Wikimedia again. The out folder receives the CSV and chart. Both can be deleted at any time without losing source code. Steps 1 and 2: Lay out the project and write the config Step 1: Map the files. Nine files each own one job. Keeping fetch, filter, statistics, and survey logic apart makes each piece testable and lets you swap the data source later without touching the math. | File | Job | Touches network | |---|---|---| | config.toml | Date range, article titles, filter and bootstrap settings | No | | events.csv | Launch and publication dates to mask or annotate | No | | surveys.json | Survey figures with question, base, and source URL | No | | attn/fetch.py | Wikimedia pageview download, cache, gap filling | Yes | | attn/demo.py | Deterministic synthetic series for offline runs | No | | attn/series.py | Spike filter, event mask, monthly rollup | No | | attn/stats.py | Share, Wilson interval, block bootstrap, trend slope | No | | attn/survey.py | Comparability guard for survey figures | No | | attn/report.py and attn/cli.py | CSV, chart, and the command line entry point | No | Step 2: Write the config. Every tunable lives in config.toml , so a rerun with different settings never needs a code edit. Replace the User-Agent contact with your own. The survey window dates are placeholders. Copy the real fielding dates from the methodology page of whichever survey you anchor against. wikimedia project = "en.wikipedia" access = "all-access" agent = "user" user agent = "attention-share-tutorial/1.0 email protected " start = "20250101" end = "20251231" articles copilot = "GitHub Copilot" cursor = "Cursor code editor " baseline = "Visual Studio Code" analysis hampel window = 15 hampel sigmas = 4.0 bootstrap block days = 14 bootstrap draws = 2000 event buffer days = 3 seed = 7 windows Placeholder dates: replace with the fielding dates from the survey's methodology page. survey start = "2025-05-01" survey end = "2025-06-30" Add the events file next. It holds dates that deserve special treatment, such as a product launch or the day a survey published its results. The sample rows below are markers for the demo. In a real run, fill the file from the vendors’ changelogs and release notes. date,product,label 2025-02-24,cursor,example launch marker 2025-07-29,survey,Stack Overflow 2025 results published 2025-10-15,copilot,example launch marker A short buffer around each event gets masked in one of the three share calculations later. That gives you a baseline attention share with the launch noise removed, which is usually the more honest number. Steps 3 and 4: Fetch pageviews and fill the gaps Step 3: Download daily views. Wikimedia’s REST API returns one JSON object per article, with a row for each day. The URL pattern puts project, access type, agent type, article title, granularity, and date range in the path. Parentheses in a title such as Cursor code editor must be percent-encoded, which urllib.parse.quote handles when you pass an empty safe set. The fetcher sets a descriptive User-Agent, caches each response under a name that includes the date range, and converts HTTP failures into one readable error. The cache name matters. If it omitted the range, changing start in the config would silently reuse the old file. python import json import urllib.error import urllib.parse import urllib.request from datetime import date, timedelta from pathlib import Path API = "https://wikimedia.org/api/rest v1/metrics/pageviews/per-article" class FetchError RuntimeError : pass def build url cfg, article : w = cfg "wikimedia" title = urllib.parse.quote article, safe="" return f"{API}/{w 'project' }/{w 'access' }/{w 'agent' }/{title}/daily/{w 'start' }/{w 'end' }" def fetch article cfg, article, cache dir, refresh=False : w = cfg "wikimedia" path = Path cache dir / f"{article} {w 'start' } {w 'end' }.json" if path.exists and not refresh: return json.loads path.read text req = urllib.request.Request build url cfg, article , headers={"User-Agent": w "user agent" } try: with urllib.request.urlopen req, timeout=30 as resp: payload = json.load resp except urllib.error.HTTPError as err: raise FetchError f"{article}: HTTP {err.code}. Check the exact title, the date range and the User-Agent." from err except urllib.error.URLError as err: raise FetchError f"{article}: network error {err.reason}" from err path.parent.mkdir parents=True, exist ok=True path.write text json.dumps payload return payload def to series payload : out = {} for item in payload "items" : stamp = item "timestamp" :8 out date int stamp :4 , int stamp 4:6 , int stamp 6:8 = int item "views" return out def fill missing series, start, end : days, d = , start while d <= end: days.append d d += timedelta days=1 return days, series.get day, 0 for day in days Step 4: Fill missing days and build the demo generator. The pageview endpoint can leave out days that have no recorded views, so the series you get back may have holes. The fill missing function walks every calendar day in the range and writes a zero where the API said nothing. Without it, rolling windows and bootstraps would run over a shorter, misaligned list. The demo generator creates three synthetic series with weekday seasonality, a steady Cursor growth line, and two artificial spikes. Every demo number in this article comes from that generator with seed 7. They are not measurements of anything real, and the console prints a DEMO label so nobody mistakes them for data. python import math import random from datetime import date from .fetch import fill missing def noisy rng, mean : return max 0, int round rng.gauss mean, math.sqrt max mean, 1 def synthetic start, end, seed=7 : rng = random.Random seed days, = fill missing {}, start, end out = {"copilot": , "cursor": , "baseline": } for i, day in enumerate days : weekday = 1.0 if day.weekday < 5 else 0.7 copilot = 900 weekday + 0.2 i cursor = 150 + 2.2 i weekday baseline = 1200 weekday if day == date 2025, 2, 24 : cursor += 4000 if day == date 2025, 10, 15 : copilot += 3000 out "copilot" .append noisy rng, copilot out "cursor" .append noisy rng, cursor out "baseline" .append noisy rng, baseline return days, out Run the demo first, even if you plan to go live. A pipeline that works on data where you know the truth is a pipeline you can trust on data where you do not. Step 5: Strip news spikes without deleting weekends Pageview series carry two kinds of structure that a naive outlier filter confuses. Weekly seasonality pushes weekend counts well below weekday counts, and news events push single days far above the trend. A standard Hampel filter, which compares each day with the median of its neighbors, treats every weekend as an outlier because the surrounding window is mostly weekdays. The fix is to adjust for the day of the week before filtering. The code below computes a median for each weekday, turns those into factors relative to the overall level, divides each day by its factor, and runs the Hampel test on the adjusted values. Flagged days get replaced by the local median multiplied back by the weekday factor, so a spiking Tuesday becomes a normal Tuesday and not a flat line. Two details deserve attention. The factors use medians, not means, because a mean absorbs the very spike you want to catch. And the scale estimate has a floor 2% of the local median, at least 1 view because a perfectly quiet window has a median absolute deviation of zero, which would otherwise make the filter skip real spikes. python import statistics def weekday factors days, values : buckets = for in range 7 for d, v in zip days, values : buckets d.weekday .append v mids = statistics.median b if b else 0 for b in buckets overall = sum mids / 7 or 1 return m / overall if m else 1.0 for m in mids def hampel days, values, window=15, sigmas=4.0 : factors = weekday factors days, values adj = v / factors d.weekday for d, v in zip days, values half = window // 2 cleaned, flagged = list values , for i, value in enumerate adj : local = adj max 0, i - half :i + half + 1 med = statistics.median local mad = statistics.median abs x - med for x in local 1.4826 mad = max mad, 0.02 abs med , 1.0 if abs value - med sigmas mad: cleaned i = int round med factors days i .weekday flagged.append i return cleaned, flagged def mask events days, event dates, buffer days : blocked = set for ev in event dates: for k in range -buffer days, buffer days + 1 : blocked.add ev.toordinal + k return d.toordinal not in blocked for d in days def monthly days, cursor, copilot : buckets = {} for day, c, p in zip days, cursor, copilot : key = f"{day.year}-{day.month:02d}" a, b = buckets.get key, 0, 0 buckets key = a + c, b + p return {k: a, b, a / a + b if a + b else float "nan" for k, a, b in sorted buckets.items } The function returns both the cleaned list and the indexes it changed. Keep the second value. Printing how many days each series flagged is a fast sanity check. In the demo run, the filter flags only a handful of days per series. If yours flags a quarter of the year, the window is too small or the weekday adjustment is not running. Event masking does a different job from spike filtering. The filter repairs single bad days inside a series. The mask removes whole neighborhoods around known events, in both series at once, so launch weeks cannot tilt the pair. You will use both views and compare them. A final design note: the monthly rollup sums raw counts before dividing. Averaging daily shares would give a quiet Sunday the same weight as a busy Tuesday. Summing first weights every reader equally, which is what a share of pageviews should do. Steps 6 and 7: Compute the share and honest error bars Step 6: Define the share. The pair share is total Cursor views divided by total Cursor plus Copilot views over the window. It is a ratio of sums, not a mean of daily ratios. The function raises an error when both counts are zero, because a share of nothing should stop the run and not return zero. Step 7: Add uncertainty. Daily pageviews are autocorrelated. A busy week tends to follow a busy week, so a standard bootstrap that resamples single days understates the spread. A moving block bootstrap resamples chunks of consecutive days instead. The code uses 14-day blocks, builds prefix sums so each block total costs two lookups, draws 2,000 resamples, and reports the 2.5th and 97.5th percentiles of the resampled share. The module also holds a Wilson score interval. You will not use it on pageviews. It exists for survey rows that publish a base size, where a binomial interval is the right tool. The function refuses to run without n , which pushes you to find the number of respondents behind a percentage before you attach error bars to it. python import math import random def share a, b : total = a + b if total == 0: raise ValueError "both counts are zero, share is undefined" return a / total def wilson k, n, z=1.96 : if n is None or n <= 0: raise ValueError "Wilson interval needs the published base size n" p = k / n denom = 1 + z z / n centre = p + z z / 2 n / denom half = z math.sqrt p 1 - p / n + z z / 4 n n / denom return centre - half, centre + half def block bootstrap share a vals, b vals, block=14, draws=2000, seed=7 : n = len a vals if n < block 2: raise ValueError "series too short for this block length" pa, pb = 0 , 0 for x, y in zip a vals, b vals : pa.append pa -1 + x pb.append pb -1 + y rng = random.Random seed nblocks = math.ceil n / block shares = for in range draws : sa = sb = 0 for in range nblocks : s = rng.randrange 0, n - block + 1 sa += pa s + block - pa s sb += pb s + block - pb s shares.append sa / sa + sb shares.sort return shares int 0.025 draws , shares int 0.975 draws - 1 def ols slope ys : n = len ys xs = range n mx, my = n - 1 / 2, sum ys / n num = sum x - mx y - my for x, y in zip xs, ys den = sum x - mx 2 for x in xs return num / den The trend helper fits an ordinary least squares line through the monthly shares and returns the slope. Read it as percentage points per month once you multiply by 100. It is a rough summary, and the monthly series is short, so quote it with the interval from the bootstrap rather than alone. If your question is how far survey samples might sit from the real population, a separate analysis such as a selection bias tipping point https://shattered.io/cursor-vs-copilot-survey-selection-bias-tipping-point-12-steps-2026/ test is the better instrument. The bootstrap here measures only how much the pageview ratio would wobble if the same process ran over different weeks. It says nothing about whether Wikipedia readers resemble developers. Block length is the one setting to revisit. Fourteen days respects two weekly cycles. Shorter blocks make the interval too tight, and very long blocks leave too few distinct resamples on a one-year series. If you extend the window to several years, a block of 28 days is a reasonable next value. Step 8: Add survey anchors and a refusal guard Survey figures enter the project as data, never as constants buried in code. Each row records the publisher, the year, the question text, the base, the tool, the value, the base size when known, and a source URL. The sample file holds four rows from the 2025 surveys discussed above. The respondent counts are null because the published extracts used here do not give the base size for each question. {"id": "so2025-ai-agents", "publisher": "Stack Overflow", "year": 2025, "question": "AI agent out-of-the-box tools", "base": "respondents using AI agents or assistants", "tool": "copilot", "value pct": 67.9, "n": null, "source url": "https://survey.stackoverflow.co/2025/ai"}, {"id": "so2025-ide", "publisher": "Stack Overflow", "year": 2025, "question": "Development environments", "base": "all respondents", "tool": "cursor", "value pct": 17.9, "n": null, "source url": "https://survey.stackoverflow.co/2025/technology"}, {"id": "neon2025-used", "publisher": "Neon", "year": 2025, "question": "Which AI coding tools have you used", "base": "survey respondents", "tool": "copilot", "value pct": 71.0, "n": null, "source url": "https://neon.com/blog/state-of-ai-survey-2025"}, {"id": "neon2025-used", "publisher": "Neon", "year": 2025, "question": "Which AI coding tools have you used", "base": "survey respondents", "tool": "cursor", "value pct": 33.0, "n": null, "source url": "https://neon.com/blog/state-of-ai-survey-2025"} The guard sits in survey.py . It groups rows by survey id and computes a share of mentions only when both tools came from the same question and the same base. When they do not, it raises NonComparable with a message the report prints. The Stack Overflow pair is the test case: one row from the AI tools question and one from the development environments question, so the guard refuses. python import json from collections import defaultdict from .stats import share, wilson class NonComparable ValueError : pass def load path : return json.loads open path, encoding="utf-8" .read def by survey rows : groups = defaultdict dict for row in rows: groups row "id" row "tool" = row return groups def mention share pair cur, cop : if cur "question" , cur "base" = cop "question" , cop "base" : raise NonComparable "different question or base, no share allowed" return share cur "value pct" , cop "value pct" def mention share group : cur, cop = group.get "cursor" , group.get "copilot" if not cur or not cop: raise NonComparable "this survey id lacks one of the two tools" return mention share pair cur, cop def interval row : k = row "value pct" / 100 row "n" if row.get "n" else None return wilson k, row "n" if k is not None else None This refusal is the most valuable twenty lines in the project. A tool that always returns a number invites people to paste it into slides. A tool that sometimes says no teaches the team which comparisons are safe. Survey drift is a related trap. The same product can show different numbers when a questionnaire changes its wording between years, and a drift decomposition https://shattered.io/cursor-vs-copilot-survey-drift-duckdb-decomposition-12-steps-2026/ separates real change from wording change. Add a new row to surveys.json for each edition and let the guard decide whether any two rows may meet. When you add the 2026 edition, give it its own survey id and record the exact question text. Do not reuse a 2025 id. The id is the unit of comparability, and reusing it would let the guard compare answers that were never asked the same way. Steps 9 and 10: Write the report and the command line Step 9: Produce the files. The report module writes a daily CSV with the cleaned counts and the daily share, and a PNG with the seven-day rolling share. The chart import sits inside a function, so a missing matplotlib returns false and the run carries on. A report generator that crashes because of an optional chart is a report nobody runs twice. python import csv from pathlib import Path from .stats import share def write csv path, days, cursor, copilot, baseline : with open path, "w", newline="" as fh: w = csv.writer fh w.writerow "date", "cursor", "copilot", "baseline", "cursor share" for d, c, p, b in zip days, cursor, copilot, baseline : w.writerow d.isoformat , c, p, b, f"{share c, p :.4f}" if c + p else "" def plot path, days, cursor, copilot : try: import matplotlib matplotlib.use "Agg" import matplotlib.pyplot as plt except ImportError: return False roll = for i in range len days : lo = max 0, i - 6 c, p = sum cursor lo:i + 1 , sum copilot lo:i + 1 roll.append c / c + p if c + p else float "nan" fig, ax = plt.subplots figsize= 9, 3.5 ax.plot days, roll ax.set ylabel "Cursor share of the pair 7-day " ax.set ylim 0, 1 fig.tight layout Path path .parent.mkdir parents=True, exist ok=True fig.savefig path, dpi=130 return True Step 10: Wire the entry point. The command line loads the config, picks demo or live data, runs the spike filter on every series, computes three shares raw, filtered, and filtered with event days removed , prints the monthly table and the trend, runs the survey guard on every survey id, and finally tries the cross-survey Stack Overflow pair to demonstrate a refusal. Demo mode is the default on purpose. Passing --live is an explicit act, and the first console line always states which mode ran. Three shares in a row also serve as a built-in sensitivity check. If raw and filtered shares differ by more than a point or two, spikes are driving your result and you should inspect them before trusting any single figure. python import argparse import sys import tomllib from datetime import date, datetime from pathlib import Path from . import demo, fetch, report, series, stats, survey def parse day text : return datetime.strptime text, "%Y%m%d" .date def load events path : import csv with open path, newline="", encoding="utf-8" as fh: return date.fromisoformat r "date" , r "product" , r "label" for r in csv.DictReader fh def load series cfg, live, refresh : start, end = parse day cfg "wikimedia" "start" , parse day cfg "wikimedia" "end" if not live: return demo.synthetic start, end, cfg "analysis" "seed" out = {} for key, title in cfg "articles" .items : payload = fetch.fetch article cfg, title, "data/raw", refresh days, vals = fetch.fill missing fetch.to series payload , start, end out key = vals return days, out def main argv=None : ap = argparse.ArgumentParser prog="attn" ap.add argument "--config", default="config.toml" ap.add argument "--live", action="store true", help="fetch real pageviews default is demo data " ap.add argument "--refresh", action="store true" args = ap.parse args argv cfg = tomllib.loads Path args.config .read text a = cfg "analysis" days, raw = load series cfg, args.live, args.refresh print f"mode={'live' if args.live else 'DEMO synthetic '} days={len days } {days 0 }..{days -1 }" clean, flags = {}, {} for key, vals in raw.items : clean key , flags key = series.hampel days, vals, a "hampel window" , a "hampel sigmas" print "spike days flagged:", {k: len v for k, v in flags.items } events = load events "events.csv" keep = series.mask events days, e 0 for e in events , a "event buffer days" for label, c, p in "raw", raw "cursor" , raw "copilot" , "hampel", clean "cursor" , clean "copilot" , "no-event-days", v for v, k in zip clean "cursor" , keep if k , v for v, k in zip clean "copilot" , keep if k : lo, hi = stats.block bootstrap share c, p, a "bootstrap block days" , a "bootstrap draws" , a "seed" print f"{label: 14}: cursor share of pair = {stats.share sum c , sum p :.3f} 95% CI {lo:.3f}, {hi:.3f} " months = series.monthly days, clean "cursor" , clean "copilot" print "month cursor copilot share" for k, c, p, s in months.items : print f"{k} {c: 7} {p: 7} {s:.3f}" slope = stats.ols slope s for , , s in months.values print f"trend: {slope 100:+.2f} percentage points per month" groups = survey.by survey survey.load "surveys.json" for sid, group in groups.items : try: print f"survey {sid}: share of mentions = {survey.mention share group :.3f}" except survey.NonComparable as err: print f"survey {sid}: REFUSED {err} " rows = survey.load "surveys.json" cur = next r for r in rows if r "id" == "so2025-ide" cop = next r for r in rows if r "id" == "so2025-ai-agents" try: survey.mention share pair cur, cop except survey.NonComparable as err: print f"cross-survey pair so2025: REFUSED {err} " Path "out" .mkdir exist ok=True report.write csv "out/daily.csv", days, clean "cursor" , clean "copilot" , clean "baseline" ok = report.plot "out/share.png", days, clean "cursor" , clean "copilot" print "wrote out/daily.csv" + " and out/share.png" if ok else " matplotlib missing, chart skipped " return 0 if name == " main ": sys.exit main Notice what the CLI does not do. It never divides a survey percentage by an attention figure, and it never prints a survey pair share unless the guard allowed it. The report places attention and survey numbers on separate lines with separate labels, so a reader cannot mistake one for the other. The entry file for python -m attn is two lines. Save it as attn/ main .py . python from .cli import main raise SystemExit main Steps 11 and 12: Test the project and run it Step 11: Lock the logic with tests. Seven small tests cover the places where silent errors hide: the zero guard on share, the Wilson interval’s refusal without a base size, the weekday-aware spike filter, the event mask width, the bootstrap interval containing a known share, and both branches of the survey guard. The weekend test builds a noiseless series with one spike and asserts that exactly that day is flagged. python from datetime import date, timedelta import pytest from attn import series, stats, survey def days n, start=date 2025, 1, 6 : return start + timedelta days=i for i in range n def test share and zero guard : assert stats.share 1, 3 == 0.25 with pytest.raises ValueError : stats.share 0, 0 def test wilson needs n : with pytest.raises ValueError : stats.wilson 10, None lo, hi = stats.wilson 50, 100 assert lo < 0.5 < hi def test hampel keeps weekends and kills spike : d = days 70 vals = 1000 if x.weekday < 5 else 700 for x in d vals 30 = 9000 cleaned, flagged = series.hampel d, vals assert flagged == 30 assert cleaned 30 < 1100 def test event mask blocks buffer : d = days 10 keep = series.mask events d, d 5 , 1 assert keep.count False == 3 def test bootstrap interval contains point : a, b = 30 120, 70 120 lo, hi = stats.block bootstrap share a, b, block=14, draws=200 assert lo <= 0.3 <= hi def test survey guard refuses mixed bases : cur = {"question": "q1", "base": "all", "value pct": 18} cop = {"question": "q2", "base": "agent users", "value pct": 68} with pytest.raises survey.NonComparable : survey.mention share pair cur, cop def test survey guard allows same base : cur = {"question": "q", "base": "b", "value pct": 33} cop = {"question": "q", "base": "b", "value pct": 71} assert round survey.mention share pair cur, cop , 3 == 0.317 Run the suite from the project root. All seven should pass in well under a second. If the spike test fails with an empty list, you removed the scale floor in Step 5. python3 -m pytest -q 7 passed in 0.02s Step 12: Run the demo, then go live. Demo mode prints the synthetic results below. Because the generator is seeded, your numbers should match to the last digit if you copied the code unchanged. python3 -m attn mode=DEMO synthetic days=365 2025-01-01..2025-12-31 spike days flagged: {'copilot': 2, 'cursor': 1, 'baseline': 1} raw: cursor share of pair = 0.372 95% CI 0.341, 0.403 hampel: cursor share of pair = 0.369 95% CI 0.333, 0.401 no-event-days: cursor share of pair = 0.369 95% CI 0.333, 0.402 month cursor copilot share 2025-01 5122 25941 0.165 2025-02 6478 23222 0.218 2025-03 8718 26008 0.251 2025-04 10694 25320 0.297 2025-05 12712 26375 0.325 2025-06 13991 25376 0.355 2025-07 16426 27361 0.375 2025-08 18016 26594 0.404 2025-09 19800 26572 0.427 2025-10 22609 27474 0.451 2025-11 23043 26011 0.470 2025-12 26241 27947 0.484 trend: +2.83 percentage points per month survey so2025-ai-agents: REFUSED this survey id lacks one of the two tools survey so2025-ide: REFUSED this survey id lacks one of the two tools survey neon2025-used: share of mentions = 0.317 cross-survey pair so2025: REFUSED different question or base, no share allowed wrote out/daily.csv and out/share.png Read the demo output against the generator’s design. Cursor’s synthetic readership grows by a steady increment every day, so the monthly share should climb, and it does. The three overall shares agree within a point, which tells you the two injected spikes barely moved the result after filtering. The Neon row is a share of mentions and not a share of developers. | Month demo | Cursor views | Copilot views | Cursor share of pair | |---|---|---|---| | 2025-01 | Not listed | Not listed | 0.165 | | 2025-03 | Not listed | Not listed | 0.251 | | 2025-05 | Not listed | Not listed | Not listed | | 2025-07 | Not listed | Not listed | Not listed | | 2025-09 | Not listed | Not listed | Not listed | | 2025-12 | Not listed | Not listed | 0.484 | Those rows are synthetic and exist only to show the format. Now switch to real data with python3 -m attn --live . The first run downloads three JSON files into data/raw , and later runs read the cache. Add --refresh when you want fresh numbers. In a live run on December 1, 2026, the real series showed a pattern worth checking. The Cursor article was not yet a full page at the start of the window, and for much of 2025 it out-drew the Copilot article, even though every 2025 survey in this article puts Copilot ahead on usage. The next section explains why those two facts coexist. Reading attention share next to the 2025 surveys In any Cursor vs Copilot comparison, a live result where the newer tool wins attention and the older tool wins usage is not a bug. It is the pattern the metric table predicted. Copilot ships inside editors millions of developers already use, so most of its users have no reason to read an encyclopedia entry. Cursor asks people to switch editors, and switching starts with research. Attention share is therefore best read as momentum in the Cursor vs Copilot race. Compare the monthly slope, not the level. A rising slope says interest in the tool is growing faster than interest in its rival. It does not say the tool has more users. For levels of use, stay with the survey rows and obey the guard. Product state shapes the series, so keep the current picture in mind. As of December 1, 2026, Cursor sells five individual plans: Free at $0, Plus at $8, Premium at $30, Super at $100, and Ultra at $200 a month. Its model list includes its own Composer 2.5 along with Grok 4.7 and Claude Opus 5.5. Cursor’s pricing page now carries a Grok title and a SpaceX Super Intelligence LLC copyright line, and Anysphere’s acquisition by SpaceX reportedly closed on August 14, 2026. A November 30 report claims SpaceX retired the Cursor brand and launched Grok Build in its place. That BigGo report https://finance.biggo.com/news/256a3d18-2d35-4bc2-806e-3a1a25280b76 comes from a secondary source, and no official Cursor, Anysphere, or SpaceX page confirms it. Treat it as a rumor. It matters to this project for a practical reason: if the Wikipedia article is renamed or merged, your configured title will start returning 404 errors, and the series will end on the rename date. GitHub Copilot is the steadier product. It now spans Free, Student, Pro, Pro+, Max, Business, and Enterprise plans, and its November changelog added MAI Code 2 and MAI Code 2 Flash on November 17 and Gemini 4 Neon on November 18. Usage is metered in AI credits, where one credit equals one cent, as laid out in GitHub’s models and pricing reference https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/copilot-billing/models-and-pricing?trk=article-ssr-frontend-pulse little-text-block . Each model launch can lift attention for a few days, so add the dates to events.csv . Pricing differences can explain some of the attention gap, since newer vendors also push comparison traffic. A pricing and limits comparison https://shattered.io/claude-code-vs-cursor-vs-github-copilot-pricing-limits-2026/ shows how the plans diverge, and an overlap analysis https://shattered.io/cursor-vs-copilot-survey-overlap-jaccard-lift-12-steps-2026/ shows how many developers run both tools, which no pageview series can reveal. The 2026 survey cycle adds one more reason for caution. Stack Overflow’s 2026 AI results page https://survey.stackoverflow.co/2026/ai?ref=arabroot.io exists and covers coding agents under new wording. When you load those rows, give them a new survey id. Then compare the attention slope for the months around the field period with the survey’s story, and say plainly that the two measure different things. Common pitfalls that skew an attention share - Dividing survey percentages from different questions. Copilot’s 67.9% and Cursor’s roughly 18% have different bases. The guard exists to stop exactly this. Never override it with a manual calculation. - Letting launch weeks set the level. A single release can double a product’s readers for a few days. Always print the raw, filtered, and no-event shares together and investigate any gap above two points. - Starting the window before the article existed. A series that begins near zero pulls the annual share toward the other product. Check the first month of each series and move start forward when an article was a redirect. - Using means for weekday factors. A mean absorbs the spike you want to remove, so the filter then misses it. The code uses medians for that reason. - Trusting a share of the pair as a market share. Claude Code, Windsurf, and other tools sit outside the denominator. Say two-way share every time you quote the figure. - Mixing access or agent types between articles. If one article uses all-access and the other desktop only, the ratio is meaningless. Keep one setting for the whole run, and keep it in the config. - Reading a bootstrap interval as population uncertainty. It measures week-to-week wobble in readers, not whether readers represent developers. Describe it that way in any caption. A lighter pitfall is date drift. Pageview days follow UTC, so a launch announced late in the evening in San Francisco lands on the next day in your series. Give event masks a buffer of at least two days on each side for that reason, and the default of three covers most cases. Release events also leave marks in sign-up data, which an adoption funnel in DuckDB https://shattered.io/cursor-vs-copilot-adoption-funnel-duckdb-12-steps-2026/ can line up with your attention series. Troubleshooting: 10 fixes for the errors you will hit - HTTP 404 from the API. The title is wrong, the article was renamed, or no data exists for the range. Open the article in a browser, copy the exact title with underscores, and keep parentheses as typed. A moved page needs its new title in the config. - HTTP 403 or 429. The request lacked a descriptive User-Agent or you hammered the endpoint. Put a real contact in user agent , rely on the cache, and wait a minute before retrying. - ModuleNotFoundError: tomllib. Your interpreter is older than 3.11. Install a newer Python or add the tomli package and change the import. - URLError or SSL certificate failure. A proxy or an outdated certificate store is intercepting the call. Set the standard proxy environment variables or update the system certificates, then rerun with --refresh . - Cursor series is all zeros. The date range predates the article. Move start to a later month or check whether the page existed under another title. - ValueError: series too short for this block length. The window holds fewer than 28 days. Lengthen the range or lower bootstrap block days . - The filter flags a quarter of all days. The weekday adjustment is not applied, or hampel sigmas is below 3. Confirm the call passes days as its first argument and restore the default of 4. - NonComparable on a pair you expected to work. The question strings differ by a single character. Copy the wording from the survey page into both rows exactly. - No chart appears. matplotlib is missing, and the CLI says so on its last line. Run pip install matplotlib and rerun. - Numbers do not change after editing the config. You are reading cached files. Rerun with --refresh , or delete the matching file in data/raw . When a result looks wrong and none of these apply, reproduce it in demo mode first. If demo mode behaves, the bug sits in the live data. If demo mode misbehaves too, the bug sits in your code, and the tests will usually point to the module. Advanced tips for a sturdier attention series - Normalize by a baseline article. The project already downloads the Visual Studio Code article as baseline . Dividing each product’s views by baseline views cancels slow drift in overall Wikipedia traffic, which can drift as search and AI answers change how people reach Wikipedia. - Add other language editions. Change project to de.wikipedia or ja.wikipedia and the article titles to match. Attention in Tokyo can behave differently from attention in Texas. - Fill the events file from changelogs. Pull release dates from Cursor’s changelog and GitHub’s changelog, and tag each as a model launch, a price change, or a rename. Then test whether launches lift attention for longer than three days. - Run it on a schedule. A weekly job that calls the CLI with --refresh and archives out/daily.csv builds a history you can plot after a year. - Pair it with your own data. Rank agreement between attention and your internal seat counts is a useful check. A seat export and the pageview series disagree for good reasons, and the disagreement tells you where hype and usage diverge. - Version the survey file. Commit surveys.json with a note for every edit so a reviewer can see when a base or a question changed. For wider context on how these assistants fit into daily engineering work, the coding and developer tools coverage https://shattered.io/category/software/ collects related builds and comparisons. FAQ: Cursor vs Copilot share questions Does Cursor or GitHub Copilot have more market share? No survey in this article can settle that. Stack Overflow’s 2025 figures put Copilot at 67.9% inside one question and Cursor at about 18% inside another, and Neon’s survey put them at 71% and 33% on one shared question. All of those count respondents, not paid seats or revenue. Copilot leads in each measure here, but none of them is a market share. Can I divide Cursor’s 18% by Copilot’s 67.9%? No. The two numbers answer different questions for different bases. Cursor’s roughly 18% and Copilot’s 67.9% come from different survey questions and respondent groups, so dividing one by the other has no defined meaning. The survey guard in this project raises an error for exactly that pair. Why use Wikipedia pageviews instead of Google Trends? Pageviews come from an open API with daily granularity, stable URLs, and no sampling or scaling. That makes the calculation reproducible by anyone. Search tools rescale values to a 0 to 100 index, which hides the real ratio between two names unless you compare them in a single query. Is attention share a good proxy for adoption? It is a proxy for curiosity. Newer, switch-required tools draw lookups from people who are still deciding, while established tools in familiar editors draw few. Use attention for momentum and use surveys or seat data for adoption. How reliable is the bootstrap interval? It reflects how much the pair share would vary across different weeks of the same process, using 14-day blocks to respect autocorrelation. It does not cover bias from who reads Wikipedia, and it does not turn attention into usage. What if the Cursor article is renamed or merged? The API will return a 404 for the old title, and the series ends on the rename date. Update the title in config.toml , then stitch the two series by concatenating the cached files, and record the change in events.csv . Reports of a Cursor brand retirement were unconfirmed as of December 1, 2026. Do the 2026 survey figures replace the 2025 ones? They add to them. The 2026 edition uses different wording, so it needs its own survey id, and a comparison across years must pass the guard before you draw any trend. Reported 2026 figures such as Copilot at 58.7% and Cursor at 25.5% are secondary and not a continuation of the 2025 series.