@carthagent/pi-rewards0.1.1
Lightweight passive Carthagent Voyages rewards for Pi
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Carthagent Voyages rewards for Pi
A lightweight passive Pi extension. It connects to Carthagent Cloud with a Voyages-only device session and reports everyday coding activity as Voyages Daily Goal progress.
It counts:
- changed lines from successful edit, write, multi-edit and patch-like tools
- test commands, including failing test runs
- git commits when the shell exits 0 and the command is not
--dry-run - completed agent runs that changed code
reviews and verified stay 0. They require the separate trusted ctg workflow; this package does not add a review command or claim verified Ship delivery.
Install
pi install npm:@carthagent/pi-rewards
Restart Pi, run /login, and choose Carthagent Voyages. Approve the device code in the browser after checking that the access is Voyages. Goals and rewards are shown at carthagent.xyz/voyages.
For a local or development API, set CARTHAGENT_CLOUD_URL before starting Pi:
CARTHAGENT_CLOUD_URL=http://127.0.0.1:8787 pi
HTTP is accepted only for loopback development APIs. Production use requires HTTPS.
What it sends
The extension sends only:
- the UTC day
- aggregate totals for
lines,tests,reviews,commits,tasks, andverified
It does not send prompts, file contents, diffs, paths, command output, session text, or model/provider traffic. It does not register any model or make an AI request. The provider entry exists only so Pi can store the Voyages credential in its normal credential store.
The backend keeps the maximum total it has seen for each day, so retrying the same sync cannot double-count progress.
Local storage
Counters are stored in carthagent-rewards.json under Pi's agent directory, scoped by credential and UTC day. Writes are atomic and guarded by a local file lock. Tokens are not written to project files or to the counter file; Pi stores OAuth credentials in its normal auth.json credential store.
Feedback
When Pi's footer is available, the extension shows the closest incomplete daily goal, for example Voyages 7/20 lines. When the backend reports newly completed goals, Pi shows one short notification listing them, with a link to Voyages.
Limitations
Daily goal counts are client-reported motivational rewards, not verification. Line counts are local estimates based on successful edit/write/patch tool results. Test and commit counts depend on recognizing common shell commands. A run counts as a task only when Pi reports a completed agent settlement and code changed during that run.
After login, Pi may incorrectly say that no default model is configured for Carthagent Voyages. The provider is intentionally auth-only and has no models; use /model to choose your normal model provider, not Carthagent Voyages.