6 Commits

Author SHA1 Message Date
f083031537 fix: keep kimi queue labels truthful (#415) 2026-04-05 19:33:37 +00:00
1cef8034c5 fix: keep kimi queue labels truthful (#414) 2026-04-05 18:27:22 +00:00
dba3e90893 feat: rewrite KimiClaw heartbeat — launchd, sovereignty fixes, dispatch cap (#112) 2026-04-04 20:17:40 +00:00
Alexander Whitestone
a0ec802403 feat: add planning/decomposition phase to KimiClaw heartbeat
Complex tasks (body >500 chars) now get a 2-minute planning pass first:
- Kimi analyzes the task and decides EXECUTE (single pass) or DECOMPOSE
- DECOMPOSE: creates child issues labeled assigned-kimi, marks parent done
- EXECUTE: proceeds to 8-minute execution with --timeout 480
- Simple tasks skip planning and execute directly

Also:
- Pass --timeout to openclaw agent (was using default 600s, now explicit)
- Post KimiClaw results back as comments on the issue
- Post failure comments with actionable advice
- Execution prompt tells Kimi to stop and summarize if running long
2026-03-30 18:28:38 -04:00
Alexander Whitestone
ee7f37c5c7 feat: rewrite KimiClaw heartbeat — launchd, sovereignty fixes, dispatch cap
Rewrote kimi-heartbeat.sh with sovereignty-first design:
- Prefer Tailscale (100.x) over public IP for Gitea API calls
- Use $HOME instead of hardcoded /Users/apayne paths
- Remove token file paths from prompts sent to Kimi API
- Add MAX_DISPATCH=5 cap per heartbeat run
- Proper lockfile with stale detection (10min timeout)
- Correct identity separation: timmy-token for labels, kimi_gitea_token for comments
- Covers 4 repos: timmy-home, timmy-config, the-nexus, hermes-agent
- Label lifecycle: assigned-kimi -> kimi-in-progress -> kimi-done
- Failure handling: removes in-progress label so retry is possible

LaunchAgent: ai.timmy.kimi-heartbeat.plist (every 5 minutes)
Zero LLM cost for polling — bash/curl only. Kimi tokens only for actual work.

All Hermes cron jobs removed — they burned Anthropic tokens for polling.
KimiClaw dispatch is now pure infrastructure, no cloud LLM in the loop.
2026-03-30 17:59:43 -04:00
83e400d4aa [KimiClaw] Uniwizard routing modules — quality scorer, task classifier, self-grader (#107)
Co-authored-by: Kimi Claw <kimi@timmytime.ai>
Co-committed-by: Kimi Claw <kimi@timmytime.ai>
2026-03-30 20:15:36 +00:00