This paper focuses on message handling in multi-agent systems. The proposed approach uses aspect-oriented programming to separate message handling from other agent concerns, thus increasing system’s modularity and simplifying modification and expansion. To illustrate the proposed approach in practice, a prototype of a simple knowledge base agent model is implemented. The prototype is built on top of JADE platform. AspectJ is used for aspect-oriented implementation