The chat now intelligently detects your intent and automatically invokes the right functionality - no slash commands required!
Previously, you HAD to use slash commands:
β Old Way (required):
> /scanrepo
> /contextload
> /swarm
> /make
Now, just talk naturally:
β
New Way (natural):
> scan this repository
> load context
> enable swarm mode
> analyze this app
The chat router detects 8 types of intents:
Triggers: "scan repo", "scan codebase", "scan this", "scan project"
Example:
You: scan this repository
App: π Scanning repository...
[Runs /scanrepo automatically]
Triggers: "analyze app", "analyze code", "code analysis", "review code"
Example:
You: analyze this app
App: π Analyzing codebase with AI...
[Scans if needed, then runs AI analysis]
Triggers: "load context", "save context", "show context", "list context"
Example:
You: load context
App: π Loading saved context...
[Runs /contextload automatically]
You: show context
App: π Showing context...
[Displays context state]
Triggers: "use swarm", "enable swarm", "swarm mode", "activate swarm"
Example:
You: enable swarm mode
App: π Swarm Mode Configuration
Current Status: OFF
To use swarm mode for analysis:
1. Swarm is now enabled
2. Add context: run scan or add files
3. Use /make with your prompt
4. Swarm will activate for large contexts
β Swarm mode enabled!
Triggers: "show status", "check status", "current status"
Example:
You: show status
App: π Current Status
Platform: termux
Provider: gemini
Model: 2.5-flash
Repository: AIworkbench
Swarm: π ON (auto, 5 workers)
Triggers: "implement", "add", "fix", "update", "modify", "change", "edit"
Example:
You: add a dark mode toggle
App: π€ Detected code change request. Analyzing repository...
[Routes to smart_edit automatically]
Triggers: "generate", "scaffold", "boilerplate", "build from scratch"
Example:
You: generate a login page
App: π€ Starting code generation workflow...
[Enters /make mode automatically]
Triggers: "how", "what", "why", "explain", questions with "?"
Example:
You: how does swarm mode work?
App: [Provides explanation via AI chat]
You: scan this repo
App: [Scans all files]
Context saved: 45 source files + analysis
You: analyze this codebase for improvements
App: [Uses swarm if enabled]
π Swarm Mode Execution
Processing 5 chunks with 5 parallel workers
[Complete analysis provided]
You: enable swarm mode
App: β Swarm mode enabled!
You: use swarm to analyze the app
App: π Analyzing codebase with AI...
[Scans if needed]
π Swarm Mode Execution
[Multi-agent analysis]
You: scan this project
App: [Scans files]
Context saved: 30 files
You: show context
App: Context: 0 in-memory, 30 saved + scan
You: load context
App: β
Loaded 30 files into memory
You: analyze the architecture
App: [Analyzes with loaded context]
β
"scan this repo"
β
"enable swarm"
β
"analyze the codebase"
β
"load my context"
β
"show current status"
β
/make (when you want the make menu)
β
/tweak (when you want tweak mode specifically)
β
/context (when you want the context menu)
β
"How does swarm work?" β AI explanation
β
"What is context?" β AI explanation
β
"Why use swarm mode?" β AI explanation
β
"scan this" β Runs /scanrepo
β
"analyze app" β Runs analysis workflow
β
"enable swarm" β Enables swarm mode
- Scan keywords β Repository scan
- Context keywords β Context operations
- Swarm keywords β Swarm configuration
- Status keywords β Status display
- Edit keywords β Code editing
- Generate keywords β Code generation
- Analyze keywords β AI analysis
- Question keywords β AI chat
- Default β AI chat
"scan this repo"
β Matches: "scan.*repo"
β Intent: scan
β Action: auto_scan_repo()
β Result: Repository scanned
"load context"
β Matches: "load.*context"
β Intent: context
β Action: auto_handle_context() β cmd_contextload()
β Result: Context loaded
"enable swarm mode"
β Matches: "enable swarm"
β Intent: swarm
β Action: auto_handle_swarm() β Enables swarm
β Result: Swarm enabled
"analyze this app"
β Matches: "analyze.*app"
β Intent: analyze
β Action: auto_analyze_code() β Scans + analyzes
β Result: AI analysis provided| What You Say | What Happens | Equivalent Slash Command |
|---|---|---|
| "scan this repo" | Scans repository | /scanrepo |
| "scan repository" | Scans repository | /scanrepo |
| "scan codebase" | Scans repository | /scanrepo |
| "analyze app" | Scans + AI analysis | /scanrepo β /make |
| "analyze code" | Scans + AI analysis | /scanrepo β /make |
| "load context" | Loads saved context | /contextload |
| "save context" | Saves context | /contextsave |
| "show context" | Shows context state | /contextshow |
| "clear context" | Clears context | /contextclear |
| "enable swarm" | Enables swarm mode | /swarm β Enable |
| "use swarm" | Enables swarm mode | /swarm β Enable |
| "swarm mode" | Shows swarm menu | /swarm |
| "show status" | Shows current status | /status |
| "check status" | Shows current status | /status |
| "implement X" | Code editing | (smart_edit) |
| "add X" | Code editing | (smart_edit) |
| "fix X" | Code editing | (smart_edit) |
| "generate X" | Code generation | /make |
| "create X" | Code editing/generation | (context-dependent) |
You: enable swarm, then scan and analyze this repo
App: [Enables swarm]
[Scans repository]
[Runs AI analysis with swarm]
You: scan this
App: [Scans current directory]
You: now analyze it
App: [Uses just-scanned context for analysis]
You: load context
App: [Loads 30 files]
You: analyze for security issues
App: [Analyzes loaded files for security]
If the chat doesn't detect your intent, try:
- Use more specific keywords from the triggers list
- Use the slash command directly
- Rephrase your request
Examples:
β "I want to see the repo"
β
"scan this repo"
β "turn on that swarm thing"
β
"enable swarm mode"
β "check what's going on"
β
"show status"
If your command went to AI chat instead of routing:
- Check if you used a question word (how, what, why)
- Try removing question marks
- Use imperative form (commands)
Examples:
β "Can you scan the repo?" β Goes to chat
β
"scan the repo" β Runs scan
β "How do I enable swarm?" β Goes to chat
β
"enable swarm" β Enables swarm
You asked: "Why not possible for chat to use all functionality?!"
Answer: It IS now! Just talk naturally:
- "scan this" β Scans
- "analyze app" β Analyzes
- "enable swarm" β Enables swarm
- "load context" β Loads context
- "show status" β Shows status
No slash commands needed! The chat is now truly intelligent. π
For more information, see:
docs/SWARM_MODE_GUIDE.md- Swarm mode detailsdocs/CRITICAL_FIXES.md- Recent bug fixesQUICKSTART.md- Getting started guide