Custom Git Trailers with Magit A new Emacs Lisp configuration lets Magit users insert an "Assisted-by" commit trailer to credit AI coding agents, prompted via the transient menu at C-c TAB with completion history. The snippet, published as a HOWTO, appends the trailer using Magit's private git-commit--insert-trailer function and registers the token for font-lock, with an optional savehist setup to persist entered values across sessions. Git trailers are just lines of text at the bottom of a commit that take note of some metadata. Common ones are Co-Authored-By , Reported-By , Reviewed-By or Signed-Off-By , all of them autodescriptive I think. Magit has a way of adding trailers, just press C-c TAB or C-c C-i in commit view. Magit will then display a transient menu with some options: Nowadays it's becoming commonplace to use the Assisted-by: trailer https://github.com/microsoft/vscode/issues/313962 to credit AI coding agents, and I wanted to start using it as I'm doing most of my coding with AI support now. Magit doesn't support this trailer yet , but I had my AI figure out how to add it. In this small HOWTO I will show you how to add a new kind of commit trailer to Magit, so it will be just a C-c TAB away. I will use the Assisted-by example, but you can tweak it to anything you need. It prompts for a value free text, e.g. Kimi K3 or venice/zai-org-glm-5-2 and appends it to the commit buffer as Assisted-by: