2026-04-03 18:28 UTC
@avsm@amok.recoil.org the Linux kernel requires the use of Assisted-By tags in git commits https://docs.kernel.org/process/coding-assistants.html#attribution. (be careful when parsing, this is used to declare both AI assistance *and* regular analysis tools like `sparse`. AI is distinguished by having an `AGENT_NAME:MODEL_VERSION` format).
Also some AI tools add a Co-authored-by tag. Adding support for parsing these conventions may help in classifying existing code/commits (at least in the 'unknown' -> 'ai-assisted' direction).
It is also useful to list what *cannot* be used as an indicator of AI assistance, e.g. the presence of a `CLAUDE.md` file and similar. I've seen projects that added such a file containing and instructed the AI to refuse to contribute to that repository (and for Claude sometimes including the official refusal magic string).
Although the presence of such a file could still be used to issue a warning, or a hint when trying to update the classification of `unknown` disclosure states.
Replies (2)
-
@nemo@camp.crates.im 2026-04-03 19:03
@edwintorok@discuss.systems @avsm@amok.recoil.org >and for Claude sometimes including the official refusal magic string i do this with my repos now 🫠
-
@avsm@amok.recoil.org 2026-04-03 19:05
@edwintorok@discuss.systems this proposal deliberately doesn’t depend on VCS info: it’s a marker in the code itself that’s easy to keep across rebase etc and also for the human to edit