mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
feat: track subagent mode in cli-optimize-run-start PostHog event
Adds `subagent: bool` property to the existing run-start event so PostHog can segment and compare agent-driven vs human CLI optimization runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
94e1b02597
commit
4a50528c49
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ class Optimizer:
|
|||
def run(self) -> None:
|
||||
from codeflash.code_utils.checkpoint import CodeflashRunCheckpoint
|
||||
|
||||
ph("cli-optimize-run-start")
|
||||
ph("cli-optimize-run-start", {"subagent": is_subagent_mode()})
|
||||
logger.info("Running optimizer.")
|
||||
console.rule()
|
||||
if not env_utils.ensure_codeflash_api_key():
|
||||
|
|
|
|||
Loading…
Reference in a new issue