Agent actions can refer to the attributes of the current agent using the 'agent' designator, whilst smart adornments can similarly use the 'adornment' designator. For example:
Query: $Status=="Important"
Action: $Color=$Color(agent)
This agent gathers all "Important" notes and sets their colour to match the colour of the agent. Note that this is different from
Action: $Color=$Color(this)
since "this" refers to the note being gathered, and is also different from
Action: $Color=$Color(parent)
since "parent" is the parent of the original note, not the parent of the newly-made alias.