Tips & Best Practices
Prompting tips
Be specific
Vague prompts lead to vague results. Instead of:
Fix this code
Try:
Refactor the authenticate function in src/auth.ts to use async/await instead of callbacks. Maintain backward compatibility for the legacy API.
Provide context
Use context files or @-references:
@README.md @package.json what stack is this project using?
Break down complex tasks
For multi-step work, ask Mona to plan first:
Plan the steps to migrate this Express app to Fastify, then execute them one by one.
Use [SILENT] for monitoring
When setting up automated checks:
Check if the site is up. If yes, respond with [SILENT]. If down, describe the error.
CLI shortcuts
| Shortcut | Action |
|---|---|
monoclaw -c | Continue last session |
monoclaw --file README.md | Start with file context |
monoclaw --tui | Launch TUI |
Ctrl+B | Record voice |
Alt+Enter | New line in chat |
/ | Show slash commands |
Cost optimization
Model selection
| Task | Recommended model | Approx cost |
|---|---|---|
| Simple Q&A | DeepSeek V4 Flash | $0.001/turn |
| Code review | Claude Sonnet | $0.02/turn |
| Complex architecture | Claude Opus | $0.10/turn |
| Image generation | Fal FLUX | $0.03/image |
Use context efficiently
- Reference specific files instead of entire directories
- Use skills for repetitive workflows
- Clear old sessions to reduce memory overhead
Local models
For cost-sensitive tasks, run a local model:
ollama run llama3:8b
monoclaw config set model.custom.endpoint "http://localhost:11434/v1"
Security best practices
- Use Docker backend for untrusted code
- Enable allowlists on all gateway platforms
- Review before sending — Mona drafts emails but doesn't auto-send
- Rotate master key monthly:
monoclaw secrets rotate-master-key - Audit installed skills — Review
~/.monoclaw/skills/regularly
Memory management
- Seed USER.md with your preferences at setup
- Use
/checkpointbefore large refactoring - Run
monoclaw memory tidyweekly - Export memories before major updates
Gateway setup checklist
- Bot token configured
- Allowlist populated with user IDs
- Admin users designated
- Approval mode set to
ask - Gateway tested in DM before adding to groups
-
/updatecommand tested
Troubleshooting workflow
When something breaks:
monoclaw doctor- Check
~/.monoclaw/logs/ - Verify config:
monoclaw config check - Test with minimal setup (no skills, default model)
- Check provider status page