@dreamorosi/agent-timekeeper-opencode
v0.2.6
Published
OpenCode plugin for Agent Timekeeper: records Sessions, Runs, tool calls, Interactions and terminal Input and Focus as Signals, and uploads them to your own endpoint
Maintainers
Readme
@dreamorosi/agent-timekeeper-opencode
An OpenCode plugin for Agent Timekeeper. It records how you and your coding agents spend time in OpenCode: Sessions, Runs, model steps, tool calls, your Interactions (prompts, answers, permission replies, aborts), and in the terminal, how much you type and scroll and which Session is on screen. It uploads them to an ingestion endpoint you run yourself.
It never records prompt or answer text, tool output, which keys you press, or more than the first two words of a shell command.
Install
Add it to the plugins list in ~/.config/opencode/opencode.json, pinned to a version:
{
"plugins": ["@dreamorosi/[email protected]"]
}Both parts load from that one entry: the server part in the OpenCode service, and the TUI part in every terminal.
Configure
Create ~/.config/agent-timekeeper/config.json, readable by you only:
mkdir -p ~/.config/agent-timekeeper
cat > ~/.config/agent-timekeeper/config.json <<'EOF'
{
"endpoint": "https://timekeeper.example.com/v1/signals",
"token": "<the endpoint's bearer token>"
}
EOF
chmod 600 ~/.config/agent-timekeeper/config.jsonIf the file already existed, umask doesn't change its mode, so run chmod 600 on it either way.
The Machine is named after its hostname. Add "machineId": "laptop" to name it yourself.
Until the config exists, Signals wait in ~/.local/state/agent-timekeeper/spool/, and nothing is lost. The token is never read from a file other users can read.
Status
The plugin is silent while everything works. If the config is missing, the token is rejected, nothing has uploaded for a day, or the endpoint rejected some Signals, a toast in the TUI says what's wrong and how to fix it. Run /timekeeper for the current status. It never shows the token.
