Move skills/freebsd/freebsd-cost-optimization.md to skills/freebsd-cost-optimization/SKILL.md so the Colibri importer (skills/**/SKILL.md) picks it up. Import smoke now loads 10 skills. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
| name | description |
|---|---|
| freebsd-cost-optimization | How to use Colibri's fast/smart/max cost modes to minimize DeepSeek API spending on FreeBSD deployments |
FreeBSD Cost Optimization
Cost modes
Colibri supports three cost modes that control context window usage:
- fast — tighter context budget, compaction triggers earlier. Use for high-volume, low-importance tasks (log scanning, status checks).
- smart (default) — balanced budget. Most agent sessions should run here.
- max — preserves full context, compaction only when absolutely necessary. Use for complex multi-step tasks where losing history would cause rework.
When to escalate
The daemon auto-escalates fast→smart→max when the current session budget is
exceeded or compaction cannot free enough space. This is intent, not a policy
engine — the thresholds are fixed in colibri-daemon/src/cost.rs:
| Mode | Session budget | Uncompacted turns | Tool result limit |
|---|---|---|---|
| fast | 500,000 bytes | 5 | 4,000 bytes |
| smart | 2,000,000 bytes | 20 | 16,000 bytes |
| max | 8,000,000 bytes | 100 | unlimited |
Operator tips
- Set
colibri_cost_mode="fast"in/etc/rc.conffor disposable worker agents; the FreeBSD rc.d script exports it asCOLIBRI_COST_MODE. - Use the MCP write-gated
colibri_set_cost_modetool, or the daemon socket{"cmd":"set-cost-mode","mode":"smart"}, for runtime intent changes. - Treat runtime
set-cost-modeas acknowledgement-only until persistent live config mutation is designed; verify the active mode withcolibri status. - On FreeBSD live USB, the default is
smartto balance cost and capability.