Extending agent with directory monitoring