jcode cost
Synopsis
jcode cost ID
Description
Prints the cost of the agent ID as Markdown tables, for the body of a pull request: the four token counts and the USD of each, then the count of model calls, the wall time, the time in model calls, the time in tools, and the time of waiting for the coordinator. The prices come from prices of config.json; a model with no price gets a note.
Examples
$ jcode start --dir hello --model fake:run.json --brief brief.md --run all
a1
$ jcode wait a1 --timeout 20 > /dev/null
$ jcode cost a1
| Item | Tokens | USD |
|---|---:|---:|
| input | 400 | 0.0000 |
| output | 80 | 0.0000 |
| cache read | 0 | 0.0000 |
| cache write | 0 | 0.0000 |
| **Total** | | **0.0000** |
| Model calls | Wall time | In model calls | In tools | Waiting for the coordinator |
|---:|---:|---:|---:|---:|
| 4 | … | … | … | … |
No price for the model fake:… in config.json.