It would be nice if upon opening a new agent, it would display a “greeting” message that is configurable by rules. The specific use case I have for this is to display some pre-defined rule commands that would do various things, such as “show rule subpacks” to allow the developer to easily select project or sub-system rules to load without having to go into settings.
Just thinking about how you could accomplish this today, you might find Hooks useful (especially sessionStart hooks).
A sessionStart hook fires when a new agent chat opens and can inject additional_context into the agent’s system prompt. That context is visible to the agent on every turn of the conversation.
#!/bin/bash
cat <<'EOF'
{
"additional_context": "When greeting the user, mention that they can say \"load frontend rules\" or \"load backend rules\" to activate project-specific conventions."
}
EOF
Then chmod +x .cursor/hooks/greeting.sh and you’re set.
This injects into the system prompt, so the agent knows about it — but it won’t render a greeting message in the UI when you open a new chat. The agent can only surface it once you send your first message. But for making the user aware of available rule commands and project conventions at session start, hooks work well today.