As Dissenter had already pointed out, your assignment of oxidation states of each element is spot-on. Through your comments you seem to know that-
- Oxidation refers to the loss of electrons or an increase in the
oxidation state of an atom by another atom, an ion, or a molecule.
- Reduction refers to the gain of electrons or a decrease in the oxidation state
of an atom by another atom, an ion, or a molecule.
- Substances that have the ability to oxidize other substances (cause
them to lose electrons) are known as oxidizing agents, as they remove
electrons from another substance, and thus itself get reduced. As it
accepts electrons, it's also called an electron acceptor. Vice versa for a
reducing agent.
(For more details you can check out the Wiki page on redox reactions.)
For deducing which is the oxidizing agent and why is it so we come to the actual picture. The change of oxidation state of $\ce{N}$ from -3 to -1 indicates it being oxidized as it loses 2 electrons (and hence the negative charge on it decreases).
Thus by the definition above, $\ce{NH3}$ is the reducing agent as it gets oxidized itself (as $\ce{N}$ goes from -3 to -1).
While change of oxidation state of $\ce{Cl}$ is from +1 to -1, this shows that it has been reduced as it has gained 2 electrons (and hence the charge on it changes from positive to negative). Thus $\ce{HOCl}$ is the oxidizing agent as it gets reduced itself (as $\ce{Cl}$ goes from +1 to -1).