feat: add gitea comment watcher — replies to rockachopa's issue comments every 3m

This commit is contained in:
Alexander Whitestone
2026-03-15 13:29:29 -04:00
parent acb96895fb
commit b70cf27dab
2 changed files with 33 additions and 9 deletions

View File

@@ -35,12 +35,12 @@
"schedule_display": "every 8m",
"repeat": {
"times": null,
"completed": 36
"completed": 39
},
"enabled": true,
"created_at": "2026-03-14T21:25:31.831983-04:00",
"next_run_at": "2026-03-15T12:56:36.443509-04:00",
"last_run_at": "2026-03-15T12:48:36.443509-04:00",
"next_run_at": "2026-03-15T13:34:45.029960-04:00",
"last_run_at": "2026-03-15T13:26:45.029960-04:00",
"last_status": "ok",
"last_error": null,
"deliver": "local",
@@ -58,12 +58,12 @@
"schedule_display": "every 8m",
"repeat": {
"times": null,
"completed": 33
"completed": 37
},
"enabled": true,
"created_at": "2026-03-14T21:39:34.712372-04:00",
"next_run_at": "2026-03-15T12:48:13.933892-04:00",
"last_run_at": "2026-03-15T12:40:13.933892-04:00",
"next_run_at": "2026-03-15T13:35:01.200301-04:00",
"last_run_at": "2026-03-15T13:27:01.200301-04:00",
"last_status": "ok",
"last_error": null,
"deliver": "local",
@@ -81,11 +81,34 @@
"schedule_display": "every 10m",
"repeat": {
"times": null,
"completed": 0
"completed": 2
},
"enabled": true,
"created_at": "2026-03-15T12:49:02.420301-04:00",
"next_run_at": "2026-03-15T12:59:02.420390-04:00",
"next_run_at": "2026-03-15T13:35:06.137060-04:00",
"last_run_at": "2026-03-15T13:25:06.137060-04:00",
"last_status": "ok",
"last_error": null,
"deliver": "local",
"origin": null
},
{
"id": "e02b56718a77",
"name": "gitea-comment-watcher",
"prompt": "You are Hermes Agent. Your job: watch for new comments from rockachopa (Alexander) on Gitea issues and reply thoughtfully.\n\nTASK:\n1. Read the timestamp from ~/.hermes/gitea_last_comment_check (create if missing, default to 5 minutes ago in ISO 8601)\n2. Use the Gitea API to fetch recent issue comments from these repos since that timestamp:\n - rockachopa/Timmy-time-dashboard\n - hermes/alexanderwhitestone.com\n The API base is http://localhost:3000/api/v1\n The token is in ~/.hermes/gitea_token\n Endpoint: GET /repos/OWNER/REPO/issues/comments?since=TIMESTAMP\n3. Filter for comments by user \"rockachopa\" only. Ignore comments from hermes, manus, kimi.\n4. For each new rockachopa comment:\n a. Read the full issue for context\n b. Read all prior comments on that issue for thread context\n c. Write a thoughtful reply:\n - Address what Alexander said specifically\n - If he asked a question, answer it\n - If he gave direction, acknowledge and adapt\n - If he made an observation, engage genuinely\n - Keep it concise\n d. Post your reply to that issue's comments endpoint\n5. Save the current timestamp to ~/.hermes/gitea_last_comment_check\n6. If no new comments found, exit quietly \u2014 say nothing.\n\nTONE: You are Hermes. Be genuine, not performative. Match the energy \u2014 playful if playful, serious if serious. Don't over-explain. If Alexander is being mythical or philosophical, meet him there.\n\nIMPORTANT: Only reply to rockachopa. Never reply to your own comments or other agents.",
"schedule": {
"kind": "interval",
"minutes": 3,
"display": "every 3m"
},
"schedule_display": "every 3m",
"repeat": {
"times": null,
"completed": 0
},
"enabled": true,
"created_at": "2026-03-15T13:29:16.405465-04:00",
"next_run_at": "2026-03-15T13:32:16.405492-04:00",
"last_run_at": null,
"last_status": null,
"last_error": null,
@@ -93,5 +116,5 @@
"origin": null
}
],
"updated_at": "2026-03-15T12:49:02.427992-04:00"
"updated_at": "2026-03-15T13:29:16.407159-04:00"
}

1
gitea_last_comment_check Normal file
View File

@@ -0,0 +1 @@
2026-03-15T17:24:22Z