[claude] Implement Kimi delegation for heavy research via Gitea labels (#979) #1085

Merged
Rockachopa merged 2 commits from claude/issue-979 into main 2026-03-23 15:14:54 +00:00

2 Commits

Author SHA1 Message Date
Alexander Whitestone
e23fb6fdcc feat: implement Kimi delegation for heavy research via Gitea labels (#979)
Some checks failed
Tests / lint (pull_request) Failing after 12s
Tests / test (pull_request) Has been skipped
Adds kimi_delegation.py with the full delegation pipeline:
- exceeds_local_capacity() heuristic (keywords + word-count threshold)
- _build_research_template() fills structured markdown issue body
- create_kimi_research_issue() creates a Gitea issue labelled `kimi-ready`
  and auto-creates the label if it doesn't exist
- poll_kimi_issue() monitors the issue until Kimi closes it or timeout
- index_kimi_artifact() stores Kimi's artifact in Timmy's semantic memory
- extract_and_create_followups() parses action items and files follow-up issues
- delegate_research_to_kimi() top-level entry point

Adds 57-test suite covering all pure functions and async paths with
httpx/settings/memory_system mocked.

Fixes #979

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 11:12:15 -04:00
Alexander Whitestone
36db3e27ad WIP: Salvage before loop restart for #979 2026-03-23 11:07:07 -04:00