From 2fe79ac6a34f0e384cc292c961080d1ec7aee7de Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 28 Mar 2025 16:32:47 -1000 Subject: [PATCH] feat: Add analytics for auto-commits and auto-model selection --- aider/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/main.py b/aider/main.py index b42b84299..916c58b73 100644 --- a/aider/main.py +++ b/aider/main.py @@ -771,6 +771,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F io.tool_warning( f"Found {env_key} so using {model_name} since no --model was specified." ) + # Track which API key was used for auto-selection + analytics.event("auto_model_selection", api_key=env_key, model_selected=model_name) break if not args.model: io.tool_error("You need to specify a --model and an --api-key to use.") @@ -922,6 +924,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F else: map_tokens = args.map_tokens + # Track auto-commits configuration + analytics.event("auto_commits", enabled=bool(args.auto_commits)) + try: coder = Coder.create( main_model=main_model,