Elektrine lite

← Feed

@avsm@amok.recoil.org

2026-04-03 17:28 UTC

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/opam-ai-disclosure

Replies (2)

  • @andrewnez@mastodon.social 2026-04-03 17:37

    @avsm@amok.recoil.org I saw something earlier in the week in a similar style to the REUSE license data, I’ll and dig it out

    Open ##2973683

  • @edwintorok@discuss.systems 2026-04-03 18:28

    @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.

    Open ##2973687