1. A method comprising: requesting an as-needed canonical rule set for an agent that is configured to utilize the as-needed canonical rule set in a first execution environment, wherein the as-needed canonical rule set comprises a subset of a total rule set that the agent is configured to utilize, the subset comprising a plurality of as-needed canonical rules that are configured to be triggered based on data in a working memory, wherein the subset comprises less canonical rules than the total rule set, wherein one or more of the plurality of as-needed canonical rules are included in the subset based at least in part on a plurality of characteristics of the first execution environment, wherein the plurality of characteristics include at least a screen size of the first execution environment and a previous global positioning system (GPS) location of the first execution environment, and wherein at least some of the as-needed canonical rules define at least one rule condition and an action to be performed by the agent in response to the at least one rule condition being satisfied based on the data in the working memory; supplying the agent with the as-needed canonical rule set; and requesting compilation of the as-needed canonical rule set.