I am wondering how to view semigroups as categories. For example, we can easily view monoids as categories with a single object. Unfortunately, semigroups do not necessarily have identities, so the same view does not work with semigroups.
However, I did come across this idea where one adjoins a new element to a semigroup and treats it like its identity; effectively the semigroup gets promoted to a monoid. Of course, this new identity element must satisfy some additional properties to make sure that the original elements of the semigroup continue to behave as before. I am wondering what the additional properties might be.
The main reference on this question is [1]. You may look in particular to Section 1.2, p.22 (Foundations) and p. 95, where the definition of a semigroupoid is given.
The following is a quote from this book.
Now, another point of view is to consider semigroupoids instead of categories. Quoting [1] p. 95,
[1] J. Rhodes, B. Steinberg, The $q$-theory of finite semigroups. Springer Monographs in Mathematics. Springer, New York, 2009. xxii+666 pp. ISBN: 978-0-387-09780-0