A protocol for connecting any editor to any agent
This report presents the forensic synthetic code analysis of agentclientprotocol/agent-client-protocol, a Rust project with 3,656 GitHub stars. SynthScan v2.0 examined 100,872 lines of code across 77 source files, recording 921 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 6.4 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 921 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in | COMMENT |
| LOW | deny.toml | 41 | #exclude = [] | COMMENT |
| LOW | deny.toml | 61 | COMMENT | |
| LOW | deny.toml | 81 | # See Git Authentication for more information about setting up git authentication. | COMMENT |
| LOW | deny.toml | 101 | confidence-threshold = 0.8 | COMMENT |
| LOW | deny.toml | 121 | # and the crate will be checked normally, which may produce warnings or errors | COMMENT |
| LOW | deny.toml | 141 | # This section is considered when running `cargo deny check bans`. | COMMENT |
| LOW | deny.toml | 161 | # on a crate-by-crate basis if desired. | COMMENT |
| LOW | deny.toml | 181 | # List of features to allow/deny | COMMENT |
| LOW | deny.toml | 201 | # this is set there is no point setting `deny` | COMMENT |
| LOW | agent-client-protocol-schema/src/version.rs | 21 | Display, | COMMENT |
| LOW | agent-client-protocol-schema/src/version.rs | 41 | pub const V2: Self = Self(2); | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 1 | //! Custom option-like field wrappers and builder helpers for serde. | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 21 | }; | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 181 | /// Mirrors the pattern applied to every optional `Option<Vec<T>>` field: | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 341 | fn into_option(self) -> Option<serde_json::Value> { | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 361 | /// #[serde(default, skip_serializing_if = "MaybeUndefined::is_undefined")] | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 501 | /// let mut value = None; | COMMENT |
| LOW | agent-client-protocol-schema/src/serde_util.rs | 521 | impl<T, E> MaybeUndefined<Result<T, E>> { | COMMENT |
| LOW | agent-client-protocol-schema/src/lib.rs | 1 | #![cfg_attr(docsrs, feature(doc_cfg))] | COMMENT |
| LOW | agent-client-protocol-schema/src/lib.rs | 21 | //! | COMMENT |
| LOW | agent-client-protocol-schema/src/rpc.rs | 1 | //! JSON-RPC envelope types shared by ACP clients and agents. | COMMENT |
| LOW | agent-client-protocol-schema/src/rpc.rs | 161 | /// Unwraps the contained message. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 41 | /// Used to stream real-time progress and results during prompt processing. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 81 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 101 | UserMessageChunk(ContentChunk), | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 121 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 141 | /// The current mode of the session has changed | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 181 | self.meta = meta.into_option(); | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 221 | /// these keys. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 241 | /// Human-readable title for the session. Set to null to clear. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 281 | self | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 301 | #[non_exhaustive] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 341 | } | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 361 | pub struct Cost { | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 401 | /// A streamed item of content | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 441 | /// A unique identifier for the message this chunk belongs to. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 481 | } | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 521 | /// See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility) | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 541 | #[serde_as(deserialize_as = "DefaultOnError")] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 601 | #[serde(rename_all = "camelCase")] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 641 | COMMENT | |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 701 | #[serde_as] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 741 | /// The _meta property is reserved by ACP to allow clients and agents to attach additional | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 761 | /// Wraps a protocol string as a typed [`PermissionOptionId`]. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 781 | /// Reject this operation and remember the choice. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 821 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 841 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 881 | /// metadata to their interactions. Implementations MUST NOT make assumptions about values at | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 901 | #[serde(rename_all = "camelCase")] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 941 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 961 | /// | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 981 | /// See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility) | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1001 | /// The session ID for this request. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1061 | self.meta = meta.into_option(); | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1121 | #[must_use] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1141 | #[schemars(extend("x-deserialize-default-on-error" = true, "x-deserialize-skip-invalid-items" = true))] | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1161 | /// specified limit. | COMMENT |
| LOW | agent-client-protocol-schema/src/v1/client.rs | 1241 | #[serde_as] | COMMENT |
| 853 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | agent-client-protocol-schema/src/v1/content.rs | 8 | //! allowing seamless integration between ACP and MCP-based tools. | COMMENT |
| MEDIUM | agent-client-protocol-schema/src/v2/content.rs | 8 | //! allowing seamless integration between ACP and MCP-based tools. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_registry_docs.py | 128 | except Exception as e: | CODE |
| MEDIUM | scripts/generate_registry_docs.py | 153 | print(f"Error: Failed to fetch icons for {len(failed)} agent(s): {', '.join(failed)}") | CODE |
| MEDIUM | scripts/generate_registry_docs.py | 210 | print(f"Error: Template file not found at {TEMPLATE_PATH}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_registry_docs.py | 208 | # Check if template exists | COMMENT |
| LOW | scripts/spellcheck.sh | 3 | # Check if typos is installed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_registry_docs.py | 15 | CODE |