Replace Go backend with Kotlin mainline #96

Merged
ph merged 5 commits from kotlin-mainline-replace-go into master 2026-06-19 02:47:03 +00:00
Owner

Summary

  • Move the Kotlin Gradle backend to the repository root as the mainline implementation.
  • Remove the old Go cmd/internal backend and Go module files.
  • Update Makefile, README, docs, and frontend protocol/server wording for the Kotlin server.
  • Track stable frontend wire types now that the Go type generator is removed.

Verification

  • make test
  • cd web && pnpm build
  • JAVA_HOME=/home/ph/git/geek/.graalvm/graalvm-community-openjdk-25.0.2+10.1 PATH=/home/ph/git/geek/.graalvm/graalvm-community-openjdk-25.0.2+10.1/bin:$PATH make build
  • native binary smoke: /health and /ws create/run agent stream

Breaking Change

Go backend entrypoints and old daemon/TUI commands are removed. The backend now runs through the Kotlin Gradle app/server modules.

## Summary - Move the Kotlin Gradle backend to the repository root as the mainline implementation. - Remove the old Go cmd/internal backend and Go module files. - Update Makefile, README, docs, and frontend protocol/server wording for the Kotlin server. - Track stable frontend wire types now that the Go type generator is removed. ## Verification - make test - cd web && pnpm build - JAVA_HOME=/home/ph/git/geek/.graalvm/graalvm-community-openjdk-25.0.2+10.1 PATH=/home/ph/git/geek/.graalvm/graalvm-community-openjdk-25.0.2+10.1/bin:$PATH make build - native binary smoke: /health and /ws create/run agent stream ## Breaking Change Go backend entrypoints and old daemon/TUI commands are removed. The backend now runs through the Kotlin Gradle app/server modules.
Move the Kotlin Gradle backend to the repository root and remove the old Go cmd/internal implementation. Update Makefile, docs, and frontend protocol types so the Kotlin server is the mainline backend.

BREAKING CHANGE: Go backend entrypoints and old daemon/TUI commands are removed; the backend is now run through the Kotlin Gradle app/server modules.
Configure Kotlin modules to use module-local src, test, resources, and test-resources directories while preserving existing Gradle module boundaries.

Update backend documentation to reference the flattened paths.
Add an isolated Mosaic TUI host over GeekRuntime with Makefile and docs wiring.

Persist cumulative usage and compact metadata, record provider cache and reasoning counters in traces, include subagent usage, and recover interrupted background tasks on startup.
Rebuild the Mosaic TUI around the legacy Go terminal experience: full-screen layout, sidebar, composer, finder, approval/question modes, in-place tool cards, and session resume rendering.

Add repeatable --eval inputs for deterministic plain-mode smoke runs and document the restored TUI behavior.
Break the Mosaic TUI out of the oversized Main.kt into focused files for the entrypoint, host state, Runtime factory, rendering, finder, questions, formatting, and shared models.

This keeps behavior unchanged while making the legacy-parity TUI easier to review and maintain.
ph merged commit 357c6a0af1 into master 2026-06-19 02:47:03 +00:00
ph deleted branch kotlin-mainline-replace-go 2026-06-19 02:47:03 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ph/agentic!96
No description provided.