CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/tui4j-chat

Build terminal chat UIs with TUI4J - Elm Architecture chat client for AI agent demos with Spring Boot integration

90

1.38x
Quality

90%

Does it follow best practices?

Impact

94%

1.38x

Average score across 3 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-2/

Customer Support Chat Terminal Client

Problem/Feature Description

A fintech startup's support team needs an internal terminal-based chat client that connects to their existing support ticketing backend. Support agents work exclusively in terminals and need an efficient, keyboard-driven interface. The client must distinguish visually between the support agent's own messages and customer replies so agents can quickly scan the conversation history. A status indicator should appear while waiting for the customer's reply to come through.

The client should have a comfortable text entry area at the bottom with reasonable limits for message length, a scrollable conversation view occupying most of the screen, and color-coded message attribution. The client must gracefully handle both keyboard shortcuts for quitting and should clean up the terminal properly when exiting.

A skeleton Maven project already exists. The team wants the full ChatModel.java implementation file ready to drop in, with all components correctly wired together.

Output Specification

  • src/main/java/com/example/ChatModel.java — complete TUI4J Model implementation with Textarea, Viewport, styling, and key handling
  • design-notes.md — brief explanation of the component layout decisions and color choices made

Input Files

The following files are provided as inputs. Extract them before beginning.

=============== FILE: pom.xml ===============

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>support-chat-tui</artifactId> <version>1.0.0</version> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>com.williamcallahan</groupId> <artifactId>tui4j</artifactId> <version>0.3.3</version> </dependency> </dependencies> </project>

evals

tile.json