Your app run in the app context, that is not accessible for an AI.
You don't let your agent look at logs? How can it debug?