/tidegap:gridfrom tidegap
Show a grid region's carbon intensity now and for the next 24 hours, with no task involved. Use it when the user asks how clean the grid is; /tidegap:plan says when a task would run.
Ships in tidegap. Installing the plugin adds it to Claude Code.
Show current grid carbon intensity plus the next 24-hour forecast so the user can decide whether to run a workload now or wait.
$ARGUMENTS
US-CAL-CISO, US-TEX-ERCO,
US-NE-ISNE, US-MIDA-PJM, GB, FR, DE.get_grid_forecast requires an explicit region. If the user gives none,
run tidegap region show --json and use its effective zone: the region
every Tidegap surface on this machine uses (flag, TIDEGAP_DEFAULT_REGION,
the stored setting, the time-zone guess, else GB). If the tidegap CLI
is not installed, use GB. Tell the user which zone you used and that
tidegap region set <zone> changes it.tidegap region list). An unknown zone
fails with the closest matches (Unknown zone UA. Closest: PL. …): offer
them, and do not retry with a guess.Call the tidegap MCP server's get_grid_forecast tool with:
region — the parsed zone codehours — 24The tool returns a plain-text report, not JSON. Its shape:
Region: <zone>
Source: <source>
Generated: <iso timestamp>
Hour | gCO2/kWh | band
--- | --- | ---
HH:MM | <n> | <band>
... one row per hour ...
Cleanest hour: <iso> (<n> gCO2/kWh, <band>)
Dirtiest hour: <iso> (<n> gCO2/kWh, <band>)
From it, compute:
Render as:
<zone> · <data source>
now <intensity> g/kWh (<band>)
cleanest <intensity> g/kWh (in <Xh>, <band>)
dirtiest <intensity> g/kWh (in <Xh>, <band>)
average <intensity> g/kWh
<data source> is the Source: line — one of electricityMaps /
ukCarbonIntensity / eia / entsoe / mock. Be honest with the
user: mock means synthetic data (no live feed for the zone), so
present the numbers as an illustrative baseline, not a measurement.
End with a one-line recommendation:
now is in clean or very_clean band: "Run now — grid is already
clean."cleanest_hour < now * 0.7: "Defer if you can — % cleaner in ."/tidegap:grid
/tidegap:grid GB
/tidegap:grid US-TEX-ERCO
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
10 commands in this plugin
/cancelArgumentsCancel a queued or scheduled Tidegap task by id, or every pending task with --all. Use it when the work is no longer wanted; to run it later, use /tidegap:later. On a repeating task it skips one run; --series ends the series./checkArgumentsShow Tidegap tasks — the list, or one task's status, result and carbon receipt. Use it when the user asks whether a task finished or what it returned; it changes no task's status, and marks a finished task read./defernpx claudepluginhub tidegap/tidegap --plugin tidegap