Kode's @ mention system provides intelligent auto-completion and smart delegation for models, agents, and files. This unified interface makes it easy to reference different resources and trigger appropriate actions.
- 🦜 Expert Model Consultation -
@ask-model-name - 👤 Agent Delegation -
@run-agent-name - 📁 File References -
@path/to/file - ⚡ Smart Completion - Real-time suggestions as you type
- 🔍 Context-Aware - Shows relevant options based on input
Consult specific AI models for specialized analysis and expert opinions.
Format: @ask-{model-name}
Examples:
@ask-claude-sonnet-4 How should I optimize this React component?
@ask-gpt-5 What are the security implications of this API design?
@ask-o1-preview Analyze the time complexity of this algorithmBehavior:
- Triggers
AskExpertModelTool - Model receives only your question (no conversation history)
- Requires complete, self-contained questions
- Ideal for getting fresh perspectives from different models
Delegate tasks to specialized subagents with predefined capabilities.
Format: @run-agent-{agent-type}
Examples:
@run-agent-general-purpose Review this code for over-engineering
@run-agent-my-custom-agent Design a microservices architectureBehavior:
- Triggers
TaskToolwith specified subagent - Agent has access to project context and tools
- Uses agent's specialized prompt and model preferences
- Ideal for focused, expert-level task execution
Reference files and directories with intelligent path completion.
Format: @{file-path}
Examples:
@src/components/Button.tsx
@docs/api-reference.md
@package.json
@README.mdBehavior:
- Shows file/directory structure as you type
- Supports relative and absolute paths
- Integrates with file reading tools
- Provides context for file-based discussions
- 🦜 Ask Models (Score: 90) - Expert consultation options
- 👤 Run Agents (Score: 85) - Available subagents
- 📁 Files (Score: 70-80) - Project files and directories
- Tab - Cycle through suggestions or complete partial matches
- ↑/↓ - Navigate suggestion list
- Enter - Select highlighted suggestion
- Esc - Close completion menu
- Space - Complete and continue (for directories)
- 🦜 - Expert model consultation
- 👤 - Agent delegation
- 📁 - Directory
- 📄 - File
- Pattern Matching - Regular expressions detect @ask-, @run-agent-, and @file patterns
- Event Emission - MentionProcessor emits events to SystemReminder service
- System Reminder Generation - Creates tool-specific guidance messages
- Tool Invocation - AI selects appropriate tool based on reminder context
// Recognized patterns
/@(ask-[\w\-]+)/g // @ask-model-name
/@(run-agent-[\w\-]+)/g // @run-agent-name
/@(agent-[\w\-]+)/g // @agent-name (legacy)
/@([a-zA-Z0-9/._-]+)/g // @file/pathThe system intelligently detects email addresses and treats them as regular text:
[email protected] # Treated as regular text, no completion
@ask-claude # Triggers completion@agent-nameformat supported by agentMentionDetector@run-agent-nameformat supported by mentionProcessor- Both patterns trigger TaskTool with subagent_type parameter
# Old format (still works)
@my-agent
# New format (recommended)
@run-agent-my-agentModels are loaded dynamically from your configuration:
# View configured models
/model
# Models appear in @ask- completions automaticallyAgents are loaded from multiple sources:
- Built-in agents (only general-purpose currently available)
- User agents (
~/.kode/agents/) - Project agents (
./.kode/agents/)
# View available agents
/agents
# Create new agent
/agents -> c (create)- Provide Complete Context: Include all relevant background information
- Structure Questions: Background → Situation → Question
- Be Specific: Ask for particular types of analysis or perspectives
- Use Right Model: Choose models based on their strengths
- Match Task to Agent: Use specialists for their expertise areas
- Clear Instructions: Provide specific, actionable task descriptions
- Context Awareness: Agents have project context, use it effectively
- Tool Permissions: Ensure agents have necessary tool access
- Use Auto-completion: Let the system suggest valid paths
- Relative Paths: Prefer relative paths for project portability
- Context Clarity: Explain what you want to do with the file
- Multiple Files: Reference multiple files when needed
- Check if you're in the terminal input area
- Ensure @ is at the start of a word boundary
- Try typing more characters to trigger completion
- Restart Kode if completion seems stuck
- Verify model configuration with
/model - Check agent configurations with
/agents - Ensure proper file permissions for agent directories
- Try reloading agents with
/agents→r
- Check system reminder events in verbose mode
- Verify mention format matches expected patterns
- Ensure agent configurations are valid
- Review tool descriptions for conflicts
Planned improvements:
- Fuzzy Matching - Better completion matching
- Context Hints - Show tool descriptions in completions
- Custom Shortcuts - User-defined @ shortcuts
- Completion Analytics - Track most-used mentions
- Multi-file Selection - Select multiple files at once