| while ($true) { | |
| $data = npx -y -q ccusage monthly --by-agent --json | ConvertFrom-Json | |
| Clear-Host | |
| Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')`n" | |
| $data.monthly[0].agents | | |
| Where-Object { $_.agent -eq "claude" -or $_.agent -eq "codex" } | | |
| ForEach-Object { [PSCustomObject]@{ agent = $_.agent; totalCost = "`$ {0:N2}" -f $_.totalCost } } | | |
| Format-Table -AutoSize | |
| Start-Sleep -Seconds 60 | |
| } |
| 2026-07-21 15:14:06 | | | agent totalCost | | | ----- --------- | | | claude $ 8.42 | | | codex $ 4.34 |
source & further reading
gist.github.com — original article
Flatpak app disapear in Elementary OS 8.1 sometimes.md
Sample MVP Plan Prompt
Multi-agent development prompt