Damus
Anil Madhavapeddy · 6w
Here's my proposal for voluntary disclosure of AI tool usage in published OCaml code. Are any other language ecosystems doing this? I'd love to hear about them if so! https://anil.recoil.org/notes/opa...
Edwin Török profile picture
@nprofile1q... 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.
1
Anil Madhavapeddy · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqhxatvn8sm87kkhrnqku097p5ddqhmhwtn385v3are3gk208p3dqqpvlv9g 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