In reply to supal:
The main problem with global variables is scalability. If your design starts growing and you need multiple instances, it becomes difficult to maintain. Many languages discourage the use of global variables. You can search for it and find many articles, such as this.
We recommend using a single config_object for each agent. If you find many items in your agent config object duplicated, you may want to put them in an env config object.