Stack Overflow’s 2026 developer survey says Claude Code (66%) and GitHub Copilot (59%) are the clear leaders among AI coding tools. That number answers a question about developers in general. It says nothing about the 60 engineers on your payroll, where GitHub Copilot usage might be 30% or 90% depending on who got a seat, who installed what, and who stopped opening the editor in September.
Seat counts lie in a different direction. A seat means someone clicked assign, not that anyone typed a prompt. The fix is to stack four signals and let them disagree: the roster, the seat exports from each vendor, a privacy-safe inventory of what sits on each laptop, and a 28-day activity window. If you are still deciding which assistant deserves a budget line, run a team pilot of AI coding assistants first and come back here once people have habits worth measuring.
Every output below comes from code that ran: two Python files, a test file and a fake 60-person organisation. The audit takes 12 steps and about 70 minutes with demo data. It also gives a more honest answer to the question behind every Cursor versus Copilot market share claim: how many of our people really use each tool, and what are we paying for the ones who do not?
Don't miss new tech stories on Google
Add Shattered once in the Google app and our stories show up in your news suggestions.
What the Survey Says About GitHub Copilot Usage, and What It Misses #
The 2026 Stack Overflow survey is the biggest public yardstick for AI tool adoption this year, and it is worth reading closely before you compare yourself to it. Its AI section reports that 83% of respondents use at least one AI tool. Coding assistants reach 66% and general chat tools reach 63%, while agents and workflow tools land at 26%. Among people who use coding assistants, 73% use them daily. The all-respondents chart behind the daily-use figures is based on 14,478 people.
Three details in the survey matter for an internal audit. First, the figures are self-reported developer use, so a respondent who tried Copilot once and kept their Pro subscription counts the same as one who lives in it. Second, tool proliferation is the norm: three-quarters of respondents use two to five AI products weekly, and only 5% use six or more. Third, the survey does not confirm active seats, acceptance rates, suggestion volume, agent usage or spend for any organisation. It cannot, because it never sees your admin console.
| Survey finding (Stack Overflow 2026, AI section) | Figure | What it means for your audit |
|---|---|---|
| Respondents using at least one AI tool | 83% | Your own baseline for any AI tool should be near this, not near 100% |
| Coding assistants, as a category | 66% | Category reach, not a single product |
| Claude Code among coding agents | 66% | Add it to the inventory, because it leads the survey |
| GitHub Copilot among coding agents | 59% | Self-reported use, not paid seats or active seats |
| Daily use among coding assistant users | 73% | Compare to your 28-day active rate, not to install rate |
| Use two to five AI products weekly | About three-quarters | Expect overlap, so count developers, not licences |
| Use six or more AI products weekly | 5% | Very high overlap in one person is rare |
Before you quote any public chart, check three things. Read the exact question wording, because “used in the past year” and “use daily” produce very different numbers for the same tool. Read the denominator, because “all respondents” and “respondents who use AI at work” are different groups and can produce quite different percentages. And read the date, because Copilot’s plans, credit rules and model lineup have changed several times since the first 2025 surveys, so an older percentage describes a product that no longer exists in that form.
Vendors publish their own comparisons too. Cursor said in a 2025 post that GitHub Copilot reached about a fifth of one team while its own editor hit nearly full usage right after rollout. That is one team, chosen and described by a vendor, with no method attached. It may be true for that team and still useless for yours.
Independent surveys hint at the same gap between access and habit. OpsLevel, a DevOps and engineering-management platform, reported that “Only about a third of companies using AI report that 50% or more of their developers regularly use AI assistants.” Having the tool and using the tool are different measurements, and the audit exists to separate them.
You can sharpen the reading of public numbers with statistics. A walkthrough on the Stack Overflow survey data in pandas shows how to reproduce the headline percentages. Small samples carry wide uncertainty bands, which matters when you read a vendor’s one-team anecdote. None of that replaces measuring your own people, which is the job here.
The Four Signals Behind a GitHub Copilot Usage Audit #
A single metric breaks the moment the tooling changes, and the tooling is changing weekly. GitHub moved Copilot to billing based on GitHub AI Credits on June 1, 2026, and on October 28 it said GitHub Enterprise customers could use all Copilot features without buying a separate Copilot subscription, with usage paid through AI credits. In that world a seat count no longer equals adoption, because some people have access at no seat cost and the bill follows consumption.
The surfaces keep multiplying as well. GitHub lists Copilot experiences across Web, Mobile, the Copilot app, CLI, VS Code, Slack and Microsoft Teams, and it said Copilot also became available in Xcode’s coding assistant this month. An editor-extension inventory will miss several of those. Cursor has widened in the same way: its current materials describe an IDE plus cloud agents, voice interaction, live-app workflows and a choice of third-party models. For team measurement, Cursor points to team settings, Origin API data and routed usage and billing metrics.
So the audit combines four signals, each with a known blind spot. The point is not that any one is right. The point is that the places where they disagree are your action list.
| Signal | Where it comes from | Good at | Blind spot |
|---|---|---|---|
| Roster | HR or identity provider export | Defines the denominator | Misses contractors and alias emails |
| Seat and last activity | Copilot and Cursor admin exports | Finds idle paid seats | Does not see personal accounts |
| Install footprint | Collector run on each laptop | Finds shadow installs and dead seats | Misses CLI, web, Xcode and mobile use |
| 28-day activity window | Last-active date in the admin exports | Separates trial from habit | Vendors define ‘active’ differently |
Define “active” once, in writing. Copilot and Cursor report last activity differently, and a developer who accepts one suggestion on day 27 looks identical to one who works in the tool all day. The audit uses a 28-day window because it spans four full work weeks and survives holidays better than a 7-day cut. The window is a constant at the top of audit.py, so changing it is a one-line edit. If you move to 14 days, expect active rates to fall and idle seats to rise, and do not compare the new numbers with last quarter’s.
The install footprint is the signal most teams skip, and it is the one that exposes personal-account use. A developer who installed Cursor on a free tier has no paid seat and may never appear in an invoice, yet your code is open in that editor. You cannot judge that risk from a survey, and you cannot judge it from billing alone.
If you want a database-first version of the same idea, the adoption funnel built in DuckDB models seat to active conversion with SQL. The version here favours a collector you can hand to a security team and a report you can paste into a budget review.
Prerequisites and Versions #
The audit needs very little. Everything runs on a laptop, the collector uses only the Python standard library, and the analysis uses one data library. Approval matters more than software, because the collector reads a list of installed tools from employee machines. Get written sign-off from engineering leadership and whoever owns privacy or legal review before step 6, and tell developers what is collected.
| Requirement | Version or access | Why |
|---|---|---|
| Python | 3.12 or newer (tested on 3.12.3) | Type-hint syntax such as str | None in the scripts |
| pandas | Current release | Joins, group-bys and date math in audit.py |
| pytest | Current release (tested on 9.2.0) | Three guard tests in step 11 |
| VS Code | Latest stable, code command on PATH | Source of the extension list |
| Cursor | Latest stable, cursor command on PATH | Source of the Cursor and extension signals |
| GitHub Copilot admin | Organization or enterprise owner, or billing manager | Seat and last-activity export |
| Cursor admin | Team admin | Member and last-active export |
| Shell | bash or zsh on macOS and Linux, PowerShell on Windows | Running the collector and the audit |
Budget the 70 minutes like this: about 20 for steps 1 to 3 (the project, the rules file and the exports), 20 for the collector in steps 4 to 6, 15 for the demo data and audit script in steps 7 and 8, and 15 for running, testing and scheduling in steps 9 to 12. Real exports add time, mostly for cleaning email addresses. Plan an extra hour the first time you pull the seat lists, because the people who own those admin screens are rarely the people running this audit.
Copilot plan names matter when you read exports. GitHub currently lists Copilot Free, Student, Pro, Pro+, Max, Business and Enterprise. Business costs $19 per granted seat per month and Enterprise costs $39, while Pro is $10, Pro+ is $39 and Max is $100 per user per month. Cursor lists Free at $0, Plus at $8, Premium at $30, Super at $100 and Ultra at $200 per month, with Teams seats at $30, $100 or $200 depending on tier.
One practical warning before you start. GitHub’s own materials say the model lineup keeps moving. GPT-6.2 Astra and GPT-6.2 Sol reached general availability in Copilot on November 17, 2026, MAI Code 2 and MAI Code 2 Flash arrived the same day, and Gemini 4 Neon followed on November 18. Nothing in this audit depends on a model name, and that is deliberate. A metric tied to a model dies when the model is replaced.
Steps 1 to 3: Project, Consent Rules and Roster Exports #
Step 1: Create the project and a pinned environment
Make a folder, a virtual environment and a secret salt. The salt feeds the pseudonymous developer ID that both the collector and the audit compute. Store it somewhere other than the repository, because anyone holding it can test guesses against the IDs.
mkdir ai-footprint && cd ai-footprint
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
pip install pandas pytest
python3 -c "import secrets; print(secrets.token_hex(16))" > ~/.ai_footprint_salt
chmod 600 ~/.ai_footprint_salt
export AI_FOOTPRINT_SALT="$(cat ~/.ai_footprint_salt)"
echo ".venv/" >> .gitignore && echo "footprints/" >> .gitignore
Command substitution strips the trailing newline from the salt file. That detail saves an hour later, when a salt read another way carries a hidden newline and every ID stops matching.
Step 2: Write the data rules before any code
Put the rules in the repository as a short text file and show it to the people being measured. The audit is only defensible if it collects a small, boring set of facts and nothing else. Mine looks like this.
DATA RULES (v1)
Collected per machine: pseudonymous developer ID, OS family, collection time,
presence and version of: VS Code Copilot extensions,
Cursor app and its Copilot extensions, JetBrains Copilot
plugin folder, Claude Code CLI.
Never collected: source code, file names, paths, prompts, completions,
browser history, process lists, usernames, hostnames.
Stored: JSON per developer, 90 days, then deleted.
Reported: team-level percentages only, groups under 5 suppressed.
Salt: held by the collection job and the analyst, never by
developers, never committed.
Purpose: reconcile paid seats with real use. Not performance review.
The last line carries more weight than it looks. The moment a manager uses install data to rank individuals, developers will uninstall tools, and your measurement collapses. State the purpose, and enforce it by never putting developer-level rows in a report.
Step 3: Export the roster and the two admin files
You need three CSV files. The roster comes from your identity provider or HR system. The Copilot file comes from the organisation’s admin tooling and should list each person holding a seat with a last-activity timestamp. The Cursor file comes from the team’s member list with a last-active date. If you are comparing paid seats with real usage in more depth, the seat audit for cost per active developer covers the billing side.
roster.csv email,team
copilot_admin.csv user_email,last_activity_at
cursor_admin.csv email,last_active
Those headers are the ones my scripts expect, not a promise about what any vendor’s export will contain. I did not verify the current column names of either admin screen, and both products are changing quickly. That is why audit.py keeps a COLUMN_MAP dictionary at the top. When your export says something different, edit the map and nothing else. Dates can be plain ISO dates or full timestamps with a timezone.
Steps 4 to 6: Build the Collector #
Step 4: Compute a pseudonymous developer ID
The collector never writes an email address. It computes a keyed hash with HMAC-SHA256, keeps the first 12 hex characters and uses that as both the file name and the join key. The audit applies the identical function to the three CSVs, which lets the two halves meet without a lookup table. Lowercasing and trimming the email first is what keeps a trailing space or a capital letter from splitting one person into two.
Step 5: Read the extension lists from VS Code and Cursor
Both editors expose the same command line. Running code –list-extensions –show-versions prints one line per extension in the form publisher.name@version, and Cursor, which is built on the same foundation, answers to cursor –list-extensions –show-versions. The collector filters for identifiers beginning with github.copilot, which catches both the core extension and the chat extension. It deliberately discards every other extension name, because an unrelated list of tools is nobody’s business.
The collector calls the command with a 20-second timeout and no shell, and it treats a missing command as an empty result rather than an error. On macOS you may need to install the shell command from the editor’s command palette first. On Windows, the command resolves to a .cmd wrapper, which Python’s subprocess handles when it receives the full path from shutil.which.
Step 6: Add JetBrains and Claude Code, then save the file
JetBrains does not offer an extension listing from the shell, so the collector looks for a Copilot plugin folder named github-copilot-intellij under the IDE’s per-user directory on each operating system. Treat that folder name as something to confirm against your own machines, since plugin folder names can change between releases. Claude Code gets a plain version check, because the survey ranks it first and any team audit that ignores it is incomplete. Teams weighing it against the incumbent can read GitHub Copilot versus Claude Code for seat pricing. Add more tools by adding a binary name to the dictionary in collect().
#!/usr/bin/env python3
"""Record which AI coding tools are installed on this machine. No code, no paths, no file contents."""
import argparse
import datetime as dt
import hashlib
import hmac
import json
import os
import platform
import shutil
import subprocess
import sys
from pathlib import Path
SCHEMA = 1
COPILOT_EXT_PREFIX = "github.copilot"
JETBRAINS_COPILOT_DIR = "github-copilot-intellij"
def dev_id(email: str, salt: str) -> str:
digest = hmac.new(salt.encode(), email.strip().lower().encode(), hashlib.sha256)
return digest.hexdigest()[:12]
def run(cmd: list[str]) -> str | None:
try:
out = subprocess.run(cmd, capture_output=True, text=True, timeout=20, check=False)
except (OSError, subprocess.TimeoutExpired):
return None
return out.stdout if out.returncode == 0 else None
def list_extensions(binary: str) -> dict[str, str]:
path = shutil.which(binary)
if not path:
return {}
raw = run([path, "--list-extensions", "--show-versions"])
found = {}
for line in (raw or "").splitlines():
ext_id, _, version = line.strip().partition("@")
if ext_id.lower().startswith(COPILOT_EXT_PREFIX):
found[ext_id.lower()] = version or "unknown"
return found
def binary_version(binary: str) -> str | None:
path = shutil.which(binary)
if not path:
return None
raw = run([path, "--version"])
return raw.splitlines()[0].strip() if raw else "unknown"
def jetbrains_roots() -> list[Path]:
home = Path.home()
system = platform.system()
if system == "Darwin":
return [home / "Library/Application Support/JetBrains"]
if system == "Windows":
appdata = os.environ.get("APPDATA")
return [Path(appdata) / "JetBrains"] if appdata else []
return [home / ".local/share/JetBrains"]
def jetbrains_has_copilot() -> bool:
for root in jetbrains_roots():
if not root.is_dir():
continue
for product_dir in root.iterdir():
for sub in (product_dir, product_dir / "plugins"):
if (sub / JETBRAINS_COPILOT_DIR).is_dir():
return True
return False
def collect() -> dict:
return {
"vscode_copilot_ext": list_extensions("code"),
"cursor_copilot_ext": list_extensions("cursor"),
"cursor_version": binary_version("cursor"),
"claude_code_version": binary_version("claude"),
"jetbrains_copilot_plugin": jetbrains_has_copilot(),
}
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--email", default=os.environ.get("AI_FOOTPRINT_EMAIL"))
parser.add_argument("--out", type=Path, help="directory for the JSON file")
parser.add_argument("--print", action="store_true", help="show the record and exit without saving")
args = parser.parse_args()
if not args.print and not args.out:
parser.error("--out is required unless you pass --print")
salt = os.environ.get("AI_FOOTPRINT_SALT")
if not salt or not args.email:
print("Set AI_FOOTPRINT_SALT and pass --email (or AI_FOOTPRINT_EMAIL).", file=sys.stderr)
return 2
record = {
"schema": SCHEMA,
"collected_at": dt.datetime.now(dt.timezone.utc).isoformat(timespec="seconds"),
"dev_id": dev_id(args.email, salt),
"os": platform.system().lower(),
"tools": collect(),
}
text = json.dumps(record, indent=2, sort_keys=True)
if args.print:
print(text)
return 0
args.out.mkdir(parents=True, exist_ok=True)
(args.out / f"{record['dev_id']}.json").write_text(text + "\n")
print(f"wrote {record['dev_id']}.json")
return 0
if __name__ == "__main__":
sys.exit(main())
Run it once in print mode so you see exactly what would leave the machine. This is also the demo you show developers when you explain the rules.
$ python collect_footprint.py --email [email protected] --print
{
"collected_at": "2026-11-26T01:33:20+00:00",
"dev_id": "eea19ef99a59",
"os": "linux",
"schema": 1,
"tools": {
"claude_code_version": null,
"cursor_copilot_ext": {},
"cursor_version": null,
"jetbrains_copilot_plugin": false,
"vscode_copilot_ext": {}
}
}
That record has no path, no name and no code. If a stakeholder asks what the collector can see, paste this block into the reply. The record above comes from a clean machine with no Copilot or Cursor installed, which is why every field is empty or null.
Steps 7 and 8: Generate Demo Data and Write the Audit #
Step 7: Create a fake organisation to test against
Real data is the wrong place to debug a join. The generator below invents 60 developers on six teams, gives roughly 80% a Copilot seat and 35% a Cursor seat, scatters last-activity dates between zero and 90 days ago, and writes footprint files for about 85% of them. It also adds a Copilot seat holder who is not on the roster, to mimic a contractor. The seed is fixed, so you get the same numbers I did.
#!/usr/bin/env python3
"""Generate a fake 60-person org so the audit runs without real data."""
import datetime as dt
import json
import os
import random
from pathlib import Path
from collect_footprint import dev_id
random.seed(7)
salt = os.environ["AI_FOOTPRINT_SALT"]
today = dt.date(2026, 11, 26)
teams = {"platform": 14, "payments": 12, "mobile": 11, "data": 10, "web": 10, "security": 3}
roster, copilot, cursor = [], [], []
out = Path("footprints")
out.mkdir(exist_ok=True)
n = 0
for team, size in teams.items():
for _ in range(size):
n += 1
email = f"dev{n:02d}@example.com"
roster.append((email, team))
has_cp = random.random() < 0.8
has_cu = random.random() < 0.35
if has_cp:
days = random.choice([1, 2, 3, 5, 9, 14, 20, 27, 45, 90])
copilot.append((email, (today - dt.timedelta(days=days)).isoformat()))
if has_cu:
days = random.choice([0, 1, 2, 4, 7, 12, 40, 75])
cursor.append((email, (today - dt.timedelta(days=days)).isoformat()))
if random.random() < 0.85:
rec = {
"schema": 1,
"collected_at": f"2026-11-2{random.randint(0, 5)}T09:00:00+00:00",
"dev_id": dev_id(email, salt),
"os": random.choice(["linux", "darwin", "windows"]),
"tools": {
"vscode_copilot_ext": {"github.copilot-chat": "1.0.0"} if (has_cp and random.random() < 0.9) or random.random() < 0.1 else {},
"cursor_copilot_ext": {},
"cursor_version": "installed" if has_cu or random.random() < 0.12 else None,
"claude_code_version": "installed" if random.random() < 0.3 else None,
"jetbrains_copilot_plugin": random.random() < 0.08,
},
}
(out / f"{rec['dev_id']}.json").write_text(json.dumps(rec, indent=2) + "\n")
Path("roster.csv").write_text("email,team\n" + "\n".join(f"{e},{t}" for e, t in roster) + "\n")
Path("copilot_admin.csv").write_text("user_email,last_activity_at\n" + "\n".join(f"{e},{d}" for e, d in copilot) + "\[email protected],2026-11-20\n")
Path("cursor_admin.csv").write_text("email,last_active\n" + "\n".join(f"{e},{d}" for e, d in cursor) + "\n")
print(f"{n} developers, {len(list(out.glob('*.json')))} footprints")
export AI_FOOTPRINT_SALT="demo-salt-change-me"
python make_demo_data.py
Step 8: Write the audit script
The script has five jobs. It hashes the emails in all three CSVs and then drops the raw addresses. It converts each last-active date into a flag meaning active within 28 days of the as-of date. It reads every footprint file and keeps the newest record per developer. It left-joins everything onto the roster, so the roster stays the denominator. It then builds a funnel per tool and a team table in which any group smaller than five people is suppressed.
Two design choices deserve a comment. The join is a left join on the roster, which means seat holders absent from the roster are counted separately as orphans rather than silently inflating a tool’s numbers. And install metrics use only machines that returned a footprint, so a 90% coverage rate does not drag install percentages down by treating missing laptops as empty ones.
#!/usr/bin/env python3
"""Reconcile seats, installs and recent activity for GitHub Copilot and Cursor."""
import argparse
import hashlib
import hmac
import json
import os
import sys
from pathlib import Path
import pandas as pd
MIN_GROUP = 5
ACTIVE_DAYS = 28
SURVEY_COPILOT_PCT = 59 # Stack Overflow 2026 AI survey, self-reported use
COLUMN_MAP = {
"roster": {"email": "email", "team": "team"},
"copilot": {"email": "user_email", "last_active": "last_activity_at"},
"cursor": {"email": "email", "last_active": "last_active"},
}
def dev_id(email: str, salt: str) -> str:
digest = hmac.new(salt.encode(), str(email).strip().lower().encode(), hashlib.sha256)
return digest.hexdigest()[:12]
def load_csv(path: Path, mapping: dict[str, str], salt: str) -> pd.DataFrame:
df = pd.read_csv(path)
missing = [col for col in mapping.values() if col not in df.columns]
if missing:
raise SystemExit(f"{path.name}: missing columns {missing}. Fix COLUMN_MAP in audit.py.")
df = df.rename(columns={v: k for k, v in mapping.items()})
df["dev_id"] = df["email"].map(lambda e: dev_id(e, salt))
return df.drop(columns=["email"]).drop_duplicates("dev_id")
def load_admin(path: Path, tool: str, salt: str, as_of: pd.Timestamp) -> pd.DataFrame:
df = load_csv(path, COLUMN_MAP[tool], salt)
last = pd.to_datetime(df["last_active"], errors="coerce", utc=True).dt.tz_localize(None)
age = (as_of - last).dt.days
out = pd.DataFrame({"dev_id": df["dev_id"]})
out[f"{tool}_seat"] = True
out[f"{tool}_active"] = age.le(ACTIVE_DAYS).fillna(False)
return out
def load_footprints(folder: Path) -> pd.DataFrame:
rows = []
for file in sorted(folder.glob("*.json")):
rec = json.loads(file.read_text())
tools = rec["tools"]
rows.append(
{
"dev_id": rec["dev_id"],
"collected_at": rec["collected_at"],
"copilot_installed": bool(
tools["vscode_copilot_ext"]
or tools["cursor_copilot_ext"]
or tools["jetbrains_copilot_plugin"]
),
"cursor_installed": tools["cursor_version"] is not None,
"claude_installed": tools["claude_code_version"] is not None,
}
)
if not rows:
raise SystemExit(f"No footprint JSON files in {folder}")
df = pd.DataFrame(rows).sort_values("collected_at")
return df.drop_duplicates("dev_id", keep="last").drop(columns=["collected_at"])
def build_frame(roster, copilot, cursor, footprints):
frame = roster.merge(copilot, on="dev_id", how="left").merge(cursor, on="dev_id", how="left")
frame = frame.merge(footprints, on="dev_id", how="left")
frame["covered"] = frame["copilot_installed"].notna()
flag_cols = [
"copilot_seat", "copilot_active", "cursor_seat", "cursor_active",
"copilot_installed", "cursor_installed", "claude_installed",
]
for col in flag_cols:
frame[col] = frame[col].astype("boolean").fillna(False).astype(bool)
return frame
def tool_funnel(frame: pd.DataFrame, tool: str) -> dict:
covered = frame[frame["covered"]]
seat, active = frame[f"{tool}_seat"], frame[f"{tool}_active"]
installed = covered[f"{tool}_installed"]
return {
"tool": tool,
"devs": len(frame),
"seats": int(seat.sum()),
"active_28d": int(active.sum()),
"idle_seats": int((seat & ~active).sum()),
"installed_covered": int(installed.sum()),
"install_no_seat": int((covered[f"{tool}_installed"] & ~covered[f"{tool}_seat"]).sum()),
"active_not_installed": int((covered[f"{tool}_active"] & ~covered[f"{tool}_installed"]).sum()),
}
def team_table(frame: pd.DataFrame) -> pd.DataFrame:
rows = []
for team, grp in frame.groupby("team"):
n = len(grp)
if n < MIN_GROUP:
rows.append({"team": team, "devs": f"<{MIN_GROUP}", "copilot_active": "-", "cursor_active": "-", "both_active": "-"})
continue
pct = lambda s: f"{100 * s.mean():.0f}%"
rows.append(
{
"team": team,
"devs": n,
"copilot_active": pct(grp["copilot_active"]),
"cursor_active": pct(grp["cursor_active"]),
"both_active": pct(grp["copilot_active"] & grp["cursor_active"]),
}
)
return pd.DataFrame(rows)
def md_table(df: pd.DataFrame) -> str:
head = "| " + " | ".join(df.columns) + " |"
rule = "|" + "|".join("---" for _ in df.columns) + "|"
body = ["| " + " | ".join(str(v) for v in row) + " |" for row in df.itertuples(index=False)]
return "\n".join([head, rule, *body])
def main() -> int:
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument("--roster", type=Path, required=True)
ap.add_argument("--copilot", type=Path, required=True)
ap.add_argument("--cursor", type=Path, required=True)
ap.add_argument("--footprints", type=Path, required=True)
ap.add_argument("--as-of", default=pd.Timestamp.today().strftime("%Y-%m-%d"))
ap.add_argument("--out", type=Path, default=Path("report.md"))
args = ap.parse_args()
salt = os.environ.get("AI_FOOTPRINT_SALT")
if not salt:
print("Set AI_FOOTPRINT_SALT to the same value the collector used.", file=sys.stderr)
return 2
as_of = pd.Timestamp(args.as_of)
roster = load_csv(args.roster, COLUMN_MAP["roster"], salt)
copilot = load_admin(args.copilot, "copilot", salt, as_of)
cursor = load_admin(args.cursor, "cursor", salt, as_of)
footprints = load_footprints(args.footprints)
orphans = len((set(copilot.dev_id) | set(cursor.dev_id)) - set(roster.dev_id))
frame = build_frame(roster, copilot, cursor, footprints)
coverage = frame["covered"].mean() * 100
funnel = pd.DataFrame([tool_funnel(frame, "copilot"), tool_funnel(frame, "cursor")])
covered = frame[frame["covered"]]
install_pct = 100 * covered["copilot_installed"].mean()
lines = [
f"# AI coding tool footprint, as of {args.as_of}",
"",
f"Roster: {len(frame)} developers. Footprint coverage: {coverage:.0f}%. "
f"Seat holders missing from the roster: {orphans}.",
"",
"## Funnel",
md_table(funnel),
"",
"## Teams (groups under 5 are suppressed)",
md_table(team_table(frame)),
"",
"## Survey context",
f"Copilot installed on {install_pct:.0f}% of covered machines. The Stack Overflow 2026 survey "
f"reports {SURVEY_COPILOT_PCT}% self-reported use. Different denominators: do not subtract one from the other.",
"",
f"Developers with Copilot and Cursor both active: {int((frame.copilot_active & frame.cursor_active).sum())}",
f"Developers with Claude Code installed: {int(covered['claude_installed'].sum())}",
]
args.out.write_text("\n".join(lines) + "\n")
frame.to_csv(args.out.with_suffix(".devices.csv"), index=False)
print("\n".join(lines))
return 0
if __name__ == "__main__":
sys.exit(main())
Steps 9 and 10: Reconcile Seats, Installs and Activity #
Step 9: Run the audit
python audit.py \
--roster roster.csv \
--copilot copilot_admin.csv \
--cursor cursor_admin.csv \
--footprints footprints \
--as-of 2026-11-26 \
--out report.md
The command prints the report and writes two files. report.md holds the funnel and team tables you can share. report.devices.csv holds one pseudonymous row per developer with every flag, and it stays with the analyst. If someone later asks why a specific ID was flagged, you can answer without reopening any laptop.
Step 10: Read the output
Roster: 60 developers. Footprint coverage: 90%. Seat holders missing from the roster: 1.
## Funnel
| tool | devs | seats | active_28d | idle_seats | installed_covered | install_no_seat | active_not_installed |
|---|---|---|---|---|---|---|---|
| copilot | 60 | 45 | 37 | 8 | 40 | 1 | 0 |
| cursor | 60 | 15 | 10 | 5 | 22 | 8 | 0 |
## Teams (groups under 5 are suppressed)
| team | devs | copilot_active | cursor_active | both_active |
|---|---|---|---|---|
| data | 10 | 70% | 20% | 10% |
| mobile | 11 | 55% | 9% | 0% |
| payments | 12 | 50% | 8% | 0% |
| platform | 14 | 79% | 29% | 21% |
| security | <5 | - | - | - |
| web | 10 | 50% | 20% | 20% |
## Survey context
Copilot installed on 74% of covered machines. The Stack Overflow 2026 survey reports 59% self-reported use. Different denominators: do not subtract one from the other.
Developers with Copilot and Cursor both active: 6
Developers with Claude Code installed: 15
Every column answers a different question, and the table below maps each one to the action it should trigger. The numbers above are synthetic, so treat them as a worked example rather than a benchmark.
| Column | Meaning | What to do when it is high |
|---|---|---|
| seats | People holding a paid or granted seat | Compare with active_28d before renewing |
| active_28d | Seat holders with activity in the last 28 days | Your honest adoption figure for that tool |
| idle_seats | Seat held, no activity in 28 days | Ask the owner, then reassign or remove |
| installed_covered | Installs on machines that reported | Compare with seats to size shadow use |
| install_no_seat | Installed but no seat | Check for free-tier or personal-account use and set policy |
| active_not_installed | Active in admin data, no editor install found | Usually CLI, web, Xcode or mobile use, so widen the collector |
Steps 11 and 12: Guard Tests, Rollout and Schedule #
Step 11: Lock the behaviour with three tests
A measurement script that silently changes its answer is worse than no script. Three tests cover the failure modes that have cost me the most time: the collector and the audit disagreeing about an ID, a small team leaking through suppression, and the 28-day window drifting by a day. The boundary test pins the rule that a developer last active exactly 28 days before the as-of date still counts as active.
import pandas as pd
import audit
from collect_footprint import dev_id as collector_dev_id
def test_hash_matches_between_collector_and_audit():
assert collector_dev_id("[email protected] ", "s") == audit.dev_id("[email protected]", "s")
def test_small_team_is_suppressed():
frame = pd.DataFrame(
{"team": ["tiny"] * 3, "copilot_active": [True] * 3, "cursor_active": [False] * 3}
)
row = audit.team_table(frame).iloc[0]
assert row["devs"] == "<5" and row["copilot_active"] == "-"
def test_active_window_boundary(tmp_path):
csv = tmp_path / "cp.csv"
csv.write_text("user_email,last_activity_at\[email protected],2026-10-29\[email protected],2026-10-28\n")
out = audit.load_admin(csv, "copilot", "s", pd.Timestamp("2026-11-26"))
flags = dict(zip(out.dev_id, out.copilot_active))
assert flags[audit.dev_id("[email protected]", "s")]
assert not flags[audit.dev_id("[email protected]", "s")]
bash
$ python -m pytest -q
... [100%]
3 passed in 0.34s
Step 12: Roll out the collector and schedule the audit
The collector belongs in whatever device management you already run, because that tool can inject the salt without handing it to developers. Wrap the call in a short script, run it weekly, and push the JSON to a location developers can write to but not read. Keep the wrapper boring.
#!/bin/sh
set -eu
EMAIL="$(git config --global user.email || true)"
[ -n "$EMAIL" ] || exit 0
python3 /opt/ai-footprint/collect_footprint.py --email "$EMAIL" --out "$HOME/.ai-footprint"
curl --fail --silent -T "$HOME/.ai-footprint/"*.json https://collector.internal.example/footprints/
0 8 1 * * cd /srv/ai-footprint && . .venv/bin/activate && \
AI_FOOTPRINT_SALT="$(cat /etc/ai_footprint_salt)" \
python audit.py --roster roster.csv --copilot copilot_admin.csv \
--cursor cursor_admin.csv --footprints footprints --out reports/$(date +%F).md
Roll the collector out in three waves. Start with ten volunteers and ask each to read their own record in print mode and confirm it matches the data rules file. Then enable one department, and finally everyone. During the first wave, count how many machines return empty extension lists even though the owner says they use Copilot. That rate is your early warning for PATH problems and for surfaces the collector cannot see.
Treat the collector as production code, because a script that runs on every laptop is a supply-chain surface of its own. Keep the source in version control with a named code owner, pin the install path, require a second reviewer on every change, and sign the file if your device management supports it. A collector that quietly grows new fields is exactly the surveillance creep the data rules file exists to prevent.
Once the policy is settled, enforce it where developers work. A shared Cursor team plugin bundle with rules and hooks can carry the approved settings to everyone who keeps the editor.
Monthly is enough for budget decisions. Weekly collection with monthly reporting gives you a trend line without making the audit a surveillance routine. Keep the dated reports, because the second report is where the audit starts paying for itself: you can finally see whether idle seats shrank after you acted.
Reading the Demo Funnel Like an Engineering Manager #
Start with Copilot. Of 60 developers, 45 hold a seat and 37 were active in the last 28 days. The 8 idle seats are the quickest win, and the one seat holder who is not on the roster deserves a question to whoever manages contractor access. The 74% install rate on covered machines sits above the 59% survey figure, but the survey measures self-reported use among all respondents, so the two numbers describe different populations and the gap means nothing.
Cursor tells the opposite story. Only 15 developers hold a seat, yet 22 covered machines have the app. Eight of those installs have no seat, which is the pattern you expect when developers try the free tier or pay personally. That group is the one security and finance should discuss together, because it is invisible in both the invoice and the seat list. Cursor lists a Free plan at $0, so the cost of this shadow use is zero while the exposure is not.
The team table shows where the averages hide variation. Platform is the only team with meaningful two-tool use, at 21% active on both. Mobile and payments show no developers active in both. If one assistant is supposed to be the standard, those two teams are where the standard is working, and if you wanted a split of tools, they are where it is not. Teams moving the other way can use the guide to migrating Copilot habits into Cursor rules. The security team, with three people, is suppressed and appears as a dash. That suppression is a feature. With three people, a percentage identifies individuals.
Overlap deserves its own attention. Six developers are active on both Copilot and Cursor, and the survey’s finding that most developers use two to five AI products weekly says that is normal. Budget conversations that assume one tool per person will overstate the savings from consolidation, because the people most likely to be paying twice are usually the heaviest users. Look at who is in the overlap before you cut either side.
The report supports three decisions, and it helps to name them before the meeting. The first is renewal sizing: buy seats for the active count plus a small buffer, not for the headcount. The second is a policy on personal accounts, which the install-without-seat group forces you to write down. The third is enablement: teams with seats and low activity probably need a working session or a shared rules file, and removing their seats would waste the effort already spent on rollout.
Finally, check active_not_installed. It is zero in the demo because the generator ties activity to installs. In a real organisation it is rarely zero. Copilot’s agentic use is growing, with GitHub’s Octoverse report saying 55% of monthly active Copilot users used agentic features, up from 35% a year earlier. A growing share of that work happens in the cloud, the CLI or other surfaces that an extension inventory cannot see. A rising active_not_installed count is your signal to extend the collector rather than distrust the data.
Turning Idle Seats Into Dollars #
A funnel is easier to defend when it carries a price tag. Use the plan prices from the vendors’ own pages and keep the arithmetic visible. GitHub documents usage-based billing for individuals, where a GitHub AI Credit is worth $0.01 and each plan carries a monthly allowance. Pro, Pro+ and Max list $15, $70 and $200 of total monthly credits respectively. GitHub also says a user can see usage and the reset date in Copilot settings, with alerts at 75%, 90% and 100% of a configured budget.
| Plan | Listed price | Unit | Idle-seat cost per month at 8 seats |
|---|---|---|---|
| Copilot Pro | $10 | Per user per month | $80 |
| Copilot Pro+ | $39 | Per user per month | Not listed |
| Copilot Max | $100 | Per user per month | $800 |
| Copilot Business | $19 | Per granted seat per month | $152 |
| Copilot Enterprise | $39 | Per granted seat per month | Not listed |
| Cursor Premium | $30 | Per month | Not listed |
| Cursor Teams (lowest tier) | $30 | Per seat per month | Not listed |
Applied to the demo, the 8 idle Copilot Business seats are billed at $19 per granted seat per month. The 5 idle Cursor seats are billed at $30 per seat per month if they sit on the $30 Teams tier. Those are small amounts for a 60-person team, and that is a useful result in itself. The audit’s biggest value is rarely the idle-seat savings. It is knowing which tool people actually reach for when you negotiate the next renewal.
Credit-based billing changes the math further. When consumption drives cost, an inactive seat may cost almost nothing, and a heavy user may cost far more than the sticker price. Pair this audit with spend data from each vendor once you have it. For plan limits and how the paid tiers differ, the pricing comparison of Claude Code, Cursor and Copilot lays out the ladder from $8 to $200.
Remember what a price tag cannot say. A seat that looks idle in a 28-day window might belong to a developer on leave, or to one who works mostly in a surface your export does not count. Confirm with the person before you reclaim anything. A conversation costs a few minutes, and a wrongly revoked seat costs trust.
Common Pitfalls That Skew GitHub Copilot Usage Numbers #
Counting installs as usage
An installed extension proves a click, not a habit. Developers install tools during onboarding, trials and hack days, and they leave them behind. Always report installs and activity side by side, and never present install percentage as adoption.
Comparing your percentage to a survey percentage
The Stack Overflow figure is self-reported use among respondents who chose to answer. Your figure is a measured share of a known roster. Different denominators, different time windows, different definitions. Put them in the same paragraph if you must, and say they cannot be subtracted. Survey respondents also select themselves, so enthusiasts are likelier to answer than skeptics.
Trusting seats as the denominator
Since GitHub Enterprise customers can use Copilot features without a separate subscription, with usage paid through credits, a roster is the denominator and a seat list is just one input. If you divide active users by seats, you reward yourself for buying fewer seats and learn nothing about adoption.
Letting the salt leak
A keyed hash only protects IDs from people who lack the key. Because email addresses are easy to guess, anyone with the salt can recompute every ID in minutes. Keep it in the device-management system and on the analyst machine, and never in a shared repository or a message to a team channel.
Publishing tiny groups
A team of three with a 33% Cursor rate tells everyone which colleague uses it. The audit suppresses groups under five, and you should raise that threshold if your organisation is small or if the tool use is sensitive. Never publish the devices file outside the analyst’s access.
Ignoring surfaces outside the editor
Copilot now runs in the CLI, on the web, in mobile and in Xcode, and Cursor runs cloud agents. An audit built only on editor extensions will undercount both. The active_not_installed column is the tripwire. Check it every run.
Troubleshooting: 10 Failures and Fixes #
- The collector prints “command not found” or returns empty extension lists. The editor’s shell command is not on PATH. In VS Code and Cursor, install the shell command from the command palette, then open a new terminal. On Windows, check thatwhere code returns a path.
- The collector exits with status 2. Either AI_FOOTPRINT_SALT is unset or no email was supplied. Export the salt and pass –email, or set AI_FOOTPRINT_EMAIL in the wrapper.
- audit.py stops with “missing columns”. Your export headers differ from COLUMN_MAP. Open the CSV, copy the real header names into the map and rerun. The check runs before any data is processed.
- Every Copilot or Cursor seat shows inactive. Dates failed to parse and were coerced to missing values, which count as inactive. Load the CSV in a Python shell, run pd.to_datetime on the column with errors set to raise, and fix the format or timezone.
- Many seat holders are missing from the roster. Look for contractors, alias addresses and plus-addressed emails. Normalise the addresses upstream so one person has one identity across all three files.
- Coverage is under 70%. Laptops are offline, outside device-management scope or running the wrapper as a different user. Do not extrapolate. Report coverage next to every install number and chase the gap before you draw conclusions.
- Copilot looks uninstalled for someone who clearly uses it. They may use the CLI, the web, Xcode, or a JetBrains plugin folder with a different name. Check active_not_installed and extend collect() for the surface they use.
- IDs from the collector never match the audit. The salt differs, often because one side read it with a trailing newline. Print len(salt) on both sides, and confirm the test for matching hashes passes in the same shell.
- ModuleNotFoundError for pandas. The virtual environment is not active. Run the activate script again and confirm which python points inside .venv.
- A team that should appear shows a dash. It has fewer than five people on the roster, so suppression is working. Merge it with a neighbouring team in the roster file, or raise the group definition.
Advanced Tips for Teams Past the First Report #
Track the trend, not the snapshot. Save every monthly report and plot active rate per tool by team. A tool that rises from 40% to 60% in a quarter is behaving very differently from one that sits at 60% for a year, even though the latest number is identical. Moving the join into a database later is easy, and the DuckDB funnel mentioned earlier is one route.
Add one signal at a time. The next most useful addition is spend. Copilot’s usage and credit data and Cursor’s routed usage and billing metrics let you compute cost per active developer, and those figures change the budget discussion far more than seat counts. Add them as a new CSV with its own COLUMN_MAP entry.
Never tie a metric to a model name. Copilot added GPT-6.2 Astra, GPT-6.2 Sol and MAI Code 2 on November 17 and Gemini 4 Neon on November 18, and GitHub’s Octoverse report said 61% of Copilot users who manually picked a model used more than one in their sessions. Model-level reporting goes stale in days. Report by tool and by surface instead.
Raise the suppression threshold with the stakes. Five is a floor. For sensitive reporting to executives, set MIN_GROUP to ten and fold small teams into departments. A line in the report should never let a reader work out one person’s tool choice.
Run an opt-in attestation alongside the collector. A two-question pulse, which AI coding tools did you use this week and why, catches the use the collector cannot see. Keep it anonymous and short, and weigh the answers with care, because a self-selected pulse skews toward enthusiasts.
Add identity events as a fifth signal. If your identity provider logs sign-ins to Copilot or Cursor, those events often cover web and mobile use that no extension inventory sees. Join them on the same pseudonymous ID and compare them with the 28-day activity flag. Where the two disagree, the dashboards usually define activity differently, and writing that difference down is worth the hour.
Write findings as decisions. A report that says 8 idle seats and 8 shadow installs gets a nod. A report that says reclaim 8 seats after owner confirmation, publish a personal-account policy by the next planning cycle and extend the collector to the CLI gets a ticket. Close every report with the three actions it supports and an owner for each.
Measure quality before you standardise. Usage tells you who reaches for a tool, not which tool produces better code. Before you consolidate on one assistant, test them on your own tasks with a method like the Cursor versus GitHub Copilot benchmark. For more coverage of developer tooling, the software and developer tools section collects the related tutorials.
FAQ: GitHub Copilot Usage, Cursor Adoption and This Audit #
Is an installed extension a fair measure of GitHub Copilot usage?
No. Installation shows access and intent, and activity shows habit. Use the install footprint to find shadow use and dead seats, and use the 28-day activity flag from the admin export as your adoption figure.
Is the 59% survey figure GitHub Copilot’s market share?
No. Stack Overflow’s 2026 AI section reports 59% self-reported use of GitHub Copilot among respondents, with Claude Code at 66%. It is a survey of developers who answered, not a count of paid seats or active accounts, and respondents can report several tools at once.
Can I run the collector without telling developers?
Do not. Rules differ by country and employer, so ask legal or privacy counsel, and get written approval from engineering leadership. Tell developers what is collected using the data rules file, show them the print-mode output, and state that the purpose is seat reconciliation and not performance review. This is not legal advice.
How often should I run the audit?
Collect weekly and report monthly. Weekly collection catches machines that were offline, and monthly reporting is frequent enough for renewal decisions without turning measurement into surveillance.
Why does Cursor show installs with no seat?
Most often the developer uses the Free plan, which Cursor lists at $0, or pays personally. Neither shows up in your seat export. Decide whether personal-account use is allowed for work code and write the policy down before you start asking people to remove it.
Does the audit see Copilot in the CLI, on the web or in Xcode?
Not through the collector, which only inspects editor extensions, the Cursor app, one JetBrains plugin folder and the Claude Code command. Admin activity data will show use on those surfaces, and the active_not_installed column flags the mismatch so you know to extend the collector.
How many seats should I remove?
Remove none on the report alone. Contact each owner of an idle seat first, because leave, a role change or off-editor use can all explain a quiet 28 days. Reclaim only after a reply or a second quiet period.