Skip to content

Commit f44db2d

Browse files
feat(ai): add experimental flag
1 parent 41f19b1 commit f44db2d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

ggshield/cmd/ai/discover.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,20 @@
4444
default=False,
4545
help="Also backfill historical MCP tool calls parsed from agent transcripts.",
4646
)
47+
@click.option(
48+
"--activity",
49+
"scan_activity",
50+
is_flag=True,
51+
default=False,
52+
help="[Experimental] Also backfill all agent activity events. Will later be merged with --history.",
53+
)
4754
@add_common_options()
4855
@click.pass_context
4956
def discover_cmd(
5057
ctx: click.Context,
5158
use_json: bool,
5259
scan_history: bool,
60+
scan_activity: bool,
5361
**kwargs: Any,
5462
) -> None:
5563
"""
@@ -82,6 +90,7 @@ def discover_cmd(
8290
save_discovery_cache(config)
8391
if scan_history:
8492
backfill_report = backfill_mcp_history(client, config)
93+
if scan_activity:
8594
activity_report = collect_agent_activity(
8695
client, config.user, AGENTS.values()
8796
)

ggshield/verticals/ai/agent_activity/orchestrator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class AgentActivityBatchResult:
3535
class AgentActivityReport:
3636
parsed: int = 0
3737
ingested: int = 0
38-
duplicates: int = 0
3938
failed_batches: int = 0
4039
# Records the server could not scan and dropped (never stored).
4140
dropped: int = 0

0 commit comments

Comments
 (0)