Serial port debug tool for humans and AI agents
Project description
ttypal
Serial port debug tool designed for both humans and AI agents.
Features
- Interactive terminal (like minicom, but better)
- Auto-logging with timestamps and rotation
- External command injection via Unix socket (for AI/scripts)
- ZMODEM file transfer over serial
- Record/replay serial sessions
- Macro recording and playback (F1-F12 hotkeys)
- Board config management
- Claude Code skill for AI-driven serial debugging
Install
pip install ttypal-ai
Platform-specific setup:
Quick Start
# Interactive mode
ttypal
# Headless daemon (for AI automation)
ttypal-daemon start -b myboard
# Send commands from another process
ttypal-send --wait "# " "uname -a"
# Read recent serial output
ttypal-tail -n 50
Macros
Bind command sequences to F1-F12 keys in your board config:
[macro]
F1 = ["echo hello", "sleep 0.5", "ls -la"]
F2 = ["reboot"]
Or record interactively: Ctrl-T r to start, Ctrl-T s to stop and save.
Claude Code Integration
Clone this repo and open it with Claude Code — the /ttypal skill loads automatically from .claude/skills/.
cd /path/to/ttypal-ai
claude
# Then use /ttypal skill or just ask AI to operate the serial port
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttypal_ai-0.4.7.tar.gz.
File metadata
- Download URL: ttypal_ai-0.4.7.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b791dc2390539e6facbdda3c47a3dd6ca4848672b62712844c59184f20c9590
|
|
| MD5 |
a407e44767b38f76e11d94fddc1f9027
|
|
| BLAKE2b-256 |
979fa966f76223e13635bce540c480c3c199ef94df7c005293478d33ad4dae9a
|
File details
Details for the file ttypal_ai-0.4.7-py3-none-any.whl.
File metadata
- Download URL: ttypal_ai-0.4.7-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1a4de86d850eb7a93b92f76960efdbed80cdf0cd795a93db9165c752ec71207
|
|
| MD5 |
4adebf695f383a8370777b7feadba54d
|
|
| BLAKE2b-256 |
91ed4ec567bf503c5fcd739259798aaee1a157ef22f94018cfc69c11adf278f5
|