2026-11-26 15:40 UTC

Claude-assisted Tk ports bring a legacy XMPP client to Android and Wayland

state: watchingheat: mediumuncertainty: mediumrelevance: mediumagent-assisted-systems-engineering cross-platform-portingClaudeTkabber maintainer

What is this?

A developer’s GitHub project, `tk-wayland`, contains separate Android and Wayland ports of Tk, the graphical toolkit used by Tcl/Tk applications. The developer says Claude generated most of the ports with human supervision. A linked demonstration packages the long-running Tcl/Tk XMPP client Tkabber as an Android app and shows it running on Wayland: its code is unchanged on Wayland and needs one TLS-related fix on Android. The Android demo is an installable APK for Android 11+ on 64-bit ARM, signed with a debug key. This is a community project, separate from Tk’s official Wayland effort. A maintainer of that effort calls the work impressive but reports usability problems with menus and popups, and questions its dependencies and reliance on X11 code; the sources do not establish independent testing or broader adoption.

Why it matters

The project is a concrete example of AI-assisted systems engineering: a difficult toolkit-level port, rather than a small application feature, reportedly became feasible quickly, and lets an existing desktop app cross platform with little code change. If the approach proves maintainable, it could lower the cost of reviving or extending mature software across operating systems. The demo establishes a working path, not production readiness; the cited maintainer’s usability concerns and architectural trade-offs matter for judging whether this is a durable alternative to official platform work.

Current assessment

New evidence: the author’s repository and Tkabber demo describe a Tk port with Android and native Wayland variants, and the author attributes most of the implementation to Claude, with human testing and supervision. The demo says Tkabber runs unchanged on Wayland and requires one Android fix because Android lacks the expected `/etc/ssl/certs` path; it provides an APK, build instructions, and screenshots, including an Android roster connected over TLS. These are project-author claims and demonstrations, not independent validation. An HN commenter identified as a maintainer of the official Wayland port says the Claude-assisted port is impressive at large-scale implementation but rough in use: menus and cascades misbehave on Mutter, and tooltips disappear in TkDiff. The commenter also argues that Cairo is a heavy dependency and that dependence on X11 code could be a long-term liability; they say the official port uses a different design and has had extensive user testing. They report that the project nevertheless prompted improvements to clipboard and input-method work in the official port. The separate official effort is therefore relevant context, not evidence that this project is official or supersedes it. The practical implication is a potentially much lower barrier to complex cross-platform porting, while usability testing, maintenance, architecture, and adoption remain unresolved. The sources provide no independent benchmark, production deployment evidence, or confirmation that the ports are accepted into upstream Tk.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 938h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-18 13:00⭐ origin echo-reconstructedThe origin is the author's Tk port repository, linked from Tcler's Wiki discussion by the same author. On the wiki, pounceandmiss wrote: “I
pounceandmiss on github (echo) · attributed from hn.story.50426474
—
11-09 14:53first on hacker news · published · +529.9hShow HN: Native Tcl/Tk Wayland and Android Port
wusspuss
—
11-09 14:53amplified on hacker news 👑hn.story.50426474
wusspuss
peak 2 · 3 comments · 100% of case engagement
11-09 15:20our radar first saw it · +530.4hdiscovery anchor: hn.story.50426474—
pace: p34 vs 879 stories at the 720h mark (now 938h old) — ahead of agentprobe-failure-injection-agent-testing (1.3x), behind agentplay-coding-agent-cost-dashboard (0.8x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Native Tcl/Tk Wayland and Android Port
Retrieved article excerpt

Open article · Retrieved 2026-11-09T15:21:56.495223+00:00

# Tkabber on Android

A demonstration of [Tk for Android](https://github.com/pounceandmiss/tk-wayland)
(the `android` branch of `tk-wayland`, which also has the native Wayland port):
[Tkabber](https://chiselapp.com/user/sgolovan/repository/tkabber), a
full-featured XMPP client written in Tcl/Tk over two decades, running as a
native Android app. Tkabber's code is unchanged except for one small fix (below);
the work is in the Tk port, which was written mostly by Claude with human
supervision.

[Tkabber starting on Android](https://github.com/pounceandmiss/tkabber-demo/blob/main/android/screenshots/splash.png)
[Tkabber's roster on Android, connected over TLS](https://github.com/pounceandmiss/tkabber-demo/blob/main/android/screenshots/roster.png)

## Try it

Download `tkabber-android-arm64.apk` from
[Releases](https://github.com/pounceandmiss/tkabber-demo/releases) and install
it (Android 11 or later, 64-bit ARM; you need to allow installing from unknown
sources). It is signed with a debug key.

## What is in this repository

- **Tkabber and TclXMPP** as of upstream trunk on 2026-08-29, imported from the
  Debian source package (see the first commit for the checksums). TclXMPP is in
  `tclxmpp/`. Their history is in their Fossil repositories on
  [Chiselapp](https://chiselapp.com/user/sgolovan/repository/tkabber).
- **One fix to Tkabber** (`login.tcl`): the CA certificate store defaults to
  `/etc/ssl/certs` only if it exists. Android has no such directory, and the
  missing path stopped TLS from verifying any server.
- **`android/`**: the packaging, which is not part of Tkabber.
  - `build.sh` builds the APK (see below).
  - `tls.mk` cross-builds OpenSSL and tcltls, which are linked statically into
    the app; `tlsinit.c` registers tcltls as a static package.
  - `main.tcl` starts Tkabber, after collecting Android's CA certificates for
    OpenSSL; `tls/android.tcl` passes them to `tls::import`.
  - `res/` holds the launcher icon (Tkabber's logo).

## On Wayland

The same Tk runs natively on Wayland, where Tkabber works unchanged, with the
compositor's (or libdecor's) window decorations. `wayland/csd.tcl` is an
optional Tkabber plugin which replaces them with a header bar made of Tk
widgets, with rounded corners: the presence icon, the menus and the window
buttons, using the `::tk::wayland` commands of the port (`startmove`,
`startresize`, `windowmenu`, `corners`). Copy it to
`~/.tkabber/plugins/csd/csd.tcl`; it does nothing on other windowing systems.

[Tkabber on Wayland (Weston) with a header bar drawn by Tk](https://github.com/pounceandmiss/tkabber-demo/blob/main/wayland/csd.png)

## Building

You need a checkout of the Android build of Tk, set up as described in
`tk/android/README.md` of
[tk-wayland](https://github.com/pounceandmiss/tk-wayland): a directory `TOP`
with the Tk sources (`android` branch) in `tk`, Tcl in `tcl`, the Android SDK
in `android-sdk`, and the `tk-android-build` Docker image built from
`tk/android/build/Dockerfile`. Then:

```
android/build.sh TOP
```

downloads OpenSSL 3.6.5, tcltls 2.0.1, tcllib 2.0 and BWidget 1.10.1 from their
upstreams (checksums are checked), builds everything with the NDK, and writes
`TOP/build/tkabber-arm64-v8a/tkabber.apk`. Set `ANDROID_ABI=x86_64` for the
emulator.

## Licenses

Tkabber is under the GNU GPL, version 2 or later (`COPYING`); TclXMPP under a
BSD-style license (`tclxmpp/license.terms`). The APK also contains Tcl/Tk,
tcllib and BWidget (BSD-style), tcltls (BSD-style) and OpenSSL (Apache 2.0).
wusspuss23
🟧 echo.github ⭐The origin is the author's Tk port repository, linked from Tcler's Wiki discussion by the same author. On the wiki, pounceandmiss wrote: “I pounceandmiss——

Interpretation history

Decision trace