Skip to content
项目

关于

TUI log viewer of the systemd journal (journald) in Turbo Vision, with AI-powered log analysis: a built-in LLM client explains entries, an MCP server opens it to AI agents; scriptable in Lua

人工智能与机器学习

这些数字如何统计

可以做什么

  • Follows the tail, Space pauses; scrolling past the oldest line brings the older entries in. The title of every window tells it: ► follows, ‖ is paused, ‖ +12 has 12 entries come meanwhile; a click on the sign pauses or follows. A paused window that is full keeps its lines and marks, the new entries are counted and come in when it follows again
  • The newest entries at the bottom or on top, like journalctl --reverse, for every window of its own; the lines of a message stay under it, the title ends with ▲ or ▼ and a click on it turns the order
  • Columns to choose: date, time, level, host, unit, identifier, PID; UTC, milliseconds, wrapped messages, hidden heading, the newest on top
  • Highlighting of messages by rules: built-in ones for times, addresses, identifiers, paths, quoted text, key=value and the words that matter, or any rule file of grc; colors of the escape sequences a message comes with are shown under the rules, the rest of the sequences are taken out

实测星标增长

24小时
0
7天
0
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

TurboJedi

Turbo Journald Interface (J[e]DI) — a TUI log viewer of the systemd journal (journald) in Turbo Vision, with AI-powered log analysis: what journalctl shows, in windows side by side in the terminal. Every window is a journal client of its own: its filter goes to the journal as a query, so a window of one unit or of errors only reads just those entries, while other windows follow the whole system next to it.

It is scriptable in Lua 5.4: plugins make the Actions menu of an entry and watch the journal as it comes, see plugins.

Language models work with it both ways:

  • TurboJedi asks a model itself. Arrakis, a client of LLMs built in, explains the entries you mark, the errors of a window or a pile of bookmarks: what has happened, the likely root cause, what to check, and answers your questions about it in a conversation. Any service of the API of OpenAI or of Anthropic does: llama.cpp, Ollama, vLLM or the model of your Mac with nothing leaving your network, or OpenAI and Anthropic with a key. It can record what a large model answers on your journals, as training data for a small model of your own. See ARRAKIS.md

    Arrakis has models of its own, small ones taught to explain journals, of 0.5 to 5 GB, that run on the CPU of the machine itself with nothing leaving it: one command picks the best one the memory carries and sets it up, see a model of your own machine

    Or the ChatGPT plan you have, Plus or Pro, instead of a key of the API paid by its tokens: arrakis-chatgpt.py signs in with ChatGPT on your computer, Linux, macOS or Windows, and puts it on the server over SSH, the plugin renews the token by itself; see ChatGPT of your plan

  • An agent asks TurboJedi. turbojedi-mcp.py, a server of the Model Context Protocol, gives Claude Code, Codex or another agent the windows you have open, over SSH; the agent finds and points at entries on your screen, you act. See MCP.md

Built on magiblot/tvision, libsystemd, PCRE2, Lua 5.4, libcurl, SQLite, libzip, lua-cjson and lsqlite3.

Three windows: the whole journal following, its warnings and errors paused with marked lines and 7 entries come meanwhile, and their timeline in Braille dots; the Plugins menu open with the items of Arrakis, Watches and Console

Features

  • Windows with journals and filters of their own: journals of this machine, of every machine or of a directory, one mounted from another machine over SSH or NFS as well, levels, source (unit, identifier, command, transport, boot, user, machine, PID, any FIELD=VALUE), time range, and a chain of texts and values to show or to leave out, /start/ !/restart/ _PID!=123, plain or a regular expression of PCRE2
  • Follows the tail, Space pauses; scrolling past the oldest line brings the older entries in. The title of every window tells it: ► follows, ‖ is paused, ‖ +12 has 12 entries come meanwhile; a click on the sign pauses or follows. A paused window that is full keeps its lines and marks, the new entries are counted and come in when it follows again
  • The newest entries at the bottom or on top, like journalctl --reverse, for every window of its own; the lines of a message stay under it, the title ends with ▲ or ▼ and a click on it turns the order
  • Columns to choose: date, time, level, host, unit, identifier, PID; UTC, milliseconds, wrapped messages, hidden heading, the newest on top
  • Highlighting of messages by rules: built-in ones for times, addresses, identifiers, paths, quoted text, key=value and the words that matter, or any rule file of grc; colors of the escape sequences a message comes with are shown under the rules, the rest of the sequences are taken out
  • Find with highlighting, next and previous, on into the older entries past the oldest line
  • Clone of a window with its lines, filter, selection and place: one stays where it is, the other goes elsewhere; a timeline is cloned with its counts, step and scale
  • List of the windows to go to, narrowed down by a filter
  • Go to a time, and every other window to the time of the selected line: what happened elsewhere at that moment
  • Details of an entry with all its fields, a field there opens a window narrowed to it
  • Actions of an entry by plugins in Lua 5.4: Alt-F10, A, F11, Shift-F10 or a right click opens the menu of what the plugins offer for it, Alt-P the Plugins menu of what they do without one. The plugins of the package: bookmarks, an entry or a selection kept with a comment and a topic after the journal has rotated; Arrakis, a language model of your choice that explains the entries; the unit and the process of an entry, addresses, core dumps, fail2ban; more of them are examples. A plugin is a file, a folder of its modules and files, or the same folder in an archive of ZIP, one file to copy. See plugins and how to write one, LUA.md
  • Watches of plugins: entries of a filter as they come, a status and lines of each in a list, F12; Watch 1/3 * in the status line tells about new ones, an important one brings the list up with a bell
  • Arrakis, a client of LLMs: Explain this entry, Explain N marked entries or the errors of a window, Ask Arrakis about bookmarks; the answer in a window with a line for the next question, kept in a watch of F12 with the entries it names. A model of llama.cpp, Ollama or vLLM on your machine, or a service of OpenAI or Anthropic, several of them in one file to compare; an address off the machine is asked about before the first request. Models of its own taught on journals, set up by arrakis-local.sh, see A model of Arrakis; the plan of ChatGPT of the user, signed in by arrakis-chatgpt.py, see ChatGPT of your plan. See ARRAKIS.md
  • AI agents: every instance offers its workspace on the system bus, and turbojedi-mcp.py gives it to an agent such as Claude Code or Codex over SSH. The agent points, the user acts; plugins may offer it methods of their own, a search or a watch the user follows. See MCP.md, the interface itself in DBUS.md
  • Selection with the keyboard or the mouse, copy to the clipboard (OSC 52 over SSH), export to a file; Ctrl-D shows the marked lines alone
  • Timeline: entries of the filter of a window by intervals of time, errors, warnings and the rest stacked in a column per interval; a column takes every journal window to its time
  • Layouts: all windows with their filters, columns and places, saved to and opened from INI files; the last one comes back on the next start
  • Check for updates in the Help menu, only when chosen or once a day when you say so; nothing goes to the network otherwise

Installation

Ready packages of every release are on the releases page: Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04, Fedora 44, RHEL 9 and 10 (and their rebuilds), Amazon Linux 2023, openSUSE Tumbleweed and Leap 16 on amd64 and arm64, Arch Linux on amd64. GitHub Actions builds each of them in a container of its distribution. The script takes the one that fits:

curl -fsSL https://raw.githubusercontent.com/cyanide-burnout/TurboJedi/master/install.sh | sh

It asks for sudo when not run as root, TURBOJEDI_VERSION=0.6 before sh takes that release instead of the latest one. Run again, it updates TurboJedi and leaves it alone when that release is installed already. After an upgrade of the distribution it puts the package of the same release built for the new one; Check for updates tells about it as well. Raspberry Pi OS of 64 bits is Debian on arm64 and has packages; on 32 bits (armhf) TurboJedi builds from the sources. By hand:

sudo apt install ./turbojedi_<version>_<distribution>_<arch>.deb
sudo dnf install ./turbojedi-<version>-1.<dist>.<arch>.rpm
sudo zypper install --allow-unsigned-rpm ./turbojedi-<version>-1.<tumbleweed|leap16>.<arch>.rpm
sudo pacman -U turbojedi-<version>-1-x86_64.pkg.tar.zst

Alpine has no systemd, so there is no journal to show. Elsewhere TurboJedi builds from the sources.

A model of Arrakis

A small model taught to explain journals runs on the machine itself, the entries going nowhere else. The models are taught by Dmitry Teplitsky (icelord75, [email protected]) and given out on Hugging Face, of Qwen3.5 and Gemma 4 (Apache 2.0) taught on journals and on Loghub (CC BY 4.0): questions about the models go to him. The script takes the best one the free memory carries, of 0.5 to 5 GB, sets up llama-server as a service and tells the plugin where it is:

curl -fsSL https://raw.githubusercontent.com/cyanide-burnout/TurboJedi/master/arrakis-local.sh | sh

Run as root it serves every user, as a user that user alone; it asks before it does anything, sh -s -- --yes asks nothing, --model NAME takes another model, --dry-run tells the plan, --remove takes it all away. The models and the rest are in ARRAKIS.md.

ChatGPT of your plan

A plan of ChatGPT, Plus or Pro, answers instead of a key of the API: OpenAI lets an open-source app you run sign in with ChatGPT. arrakis-chatgpt.py signs in in the browser of your computer, Linux, macOS or Windows, and puts the tokens and the engine of Arrakis on the server over ssh, or on this machine with --local; the plugin renews the token by itself from then on:

curl -fsSLO https://raw.githubusercontent.com/cyanide-burnout/TurboJedi/master/arrakis-chatgpt.py
python3 arrakis-chatgpt.py --remote server

The entries go to OpenAI, the first request asks about it; on Plus the requests share the limit of five hours with Codex and the other apps of the plan. The rest is in ARRAKIS.md.

Building

git clone --recursive https://github.com/cyanide-burnout/TurboJedi.git
cd TurboJedi
make
sudo make install

The dependencies and the packages of the distributions: BUILD.md.

Start

turbojedi [options] [FIELD=VALUE | FIELD!=VALUE | /text/ | !/text/ ...]

-u nginx takes the entries of a unit, -p err the errors, -S -1h the last hour, -D DIR a directory of journals; reading the whole journal needs root or the systemd-journal group. F1 tells the keys, the main ones:

Key
F2 new window
F4, F7 the filter of the window: rules of fields and texts to keep or to leave out, levels, times; its source, the journals
Ctrl-T time range
Ctrl-F find
Space pause or follow
Enter details of the entry
M mark lines
Ctrl-D the marked lines only, or all of them
Alt-F10, A actions of the plugins for the entry
Alt-P the Plugins menu, the watches and the console
Alt-T timeline
Alt-G every other window to the time of the line
Alt-X exit, the layout is kept for the next start

Documentation

USAGE.md options, keys, journals of other machines, layouts, highlighting
BUILD.md building from the sources and the packages of the distributions
PLUGINS.md the plugins of the package and the examples, where plugins are
BOOKMARKS.md bookmarks of entries, their topics and the base they are kept in
ARRAKIS.md Arrakis, the client of LLMs: entries explained by a language model of your choice
MCP.md AI agents over the Model Context Protocol
LUA.md the interface of Lua for plugins of your own
DBUS.md the interface on the system bus
CHANGELOG.md what every release has brought

探索相关项目

加载中…