I'm studying a proof of the fact that the category of dg-categories admits a (Dwyer-Kan) model structure. As references, I'm using Pieter Belmans' master thesis and Goncalo Tabuada's paper Une structure de catégorie de modèles de Quillen sur la catégorie des dg-catégories (where the proof has first appeared).
An important ingredient of the proof is the Lemma B.2 in Belmans' notes. I won't reproduce everything here, only the relevant part. Suppose we're given homogeneous morphisms $f\colon X\to X$ and $g\colon X\to Y$ in some dg category $C$, of degrees $-1$ and $0$, respectively. Let $Y_C\colon C\to \mathrm{dgMod}\text{-}C$ be the embedding of $C$ into the dg-category of right $C$-modules, i.e. dg-functors $C^{\mathrm{op}}\to C_{\mathrm{dg}}(k)$. Unless I'm misunderstanding him, Belmans essentially claims that "because of Koszul sign rule" we have $Y_C(g\circ f) = -Y_C(g)\circ Y_C(f)$. Tabuada doesn't treat this part in detail, but for his proof of the lemma to work, the identity should be satisfied as well. On the other hand, if $f'\colon Y\to Y$ is also of degree $0$, we should have $Y_C(f'\circ g) = Y_C(f')\circ Y_C(g)$ (according to the proof).
Now $Y_C(h)$, for homogeneous $h$ of degree $i$, should give a dg-natural transformation $\mathrm{Hom}(-,h)$. But what is the sign convention for this? The result is well-known so I doubt there is a mistake and only blame my ignorance. Still, a possibility is open, and for that reason I provide context.
Edit: It appears an (only?) reasonable sign convention for this is as follows: $\mathrm{Hom}(-,X)(f)(g) = (-1)^{\deg(f)\deg(g)} g\circ f$ and $\mathrm{Hom}(-,f)_{X'}(g) = f\circ g$. Otherewise either $\mathrm{Hom}(-,f)$ is a not a dg natural transformation of degree $\deg(f)$, or $Y_C$ doesn't commute with differentials. This raises the question, however: is there a mistake in the proof? If there is, I'm sure it can easily be rectified since the result is widely accepted. Of course, it's more likely that I'm missing something, and would be immensely grateful if someone could point out what exactly is I'm missing here.