Automation
← Projectstoolbox
A personal command-line tool: AI-assisted debugging, journal, GitHub repos, backup and machine setup.
Whenever a task came up often enough to become a chore, it became a subcommand of x.
What Each Command Solves
Understanding an error without leaving the terminal. When a command fails, my shell records the command and its error message. x wtf passes them to a language model through OpenRouter, which explains why it failed and how to fix it.
The journal at hand. x notes shows today's note, the latest entry or the task list, with syntax highlighting.
Keeping all my repos up to date. With a dozen projects, checking one by one what is left to pull or push quickly gets tedious. x repos clones, updates or pushes one repo, or all of them at once. Updating never merges anything on its own: if a branch has diverged, it says so and leaves the call to me. Before pushing everything, the pending commits are listed and a confirmation is required, so forgotten work never gets published by accident.
Backing up what is not in Git. Claude's memory and skills, my journal and my CV project live outside any repo. x sync sends them to my Nextcloud space, and the credentials stay in the system keyring, never in plain text. x sync --restore goes the other way and puts each file back in the right place, even when the username differs from one machine to the next.
Setting up a new machine. x setup fetches my dotfiles and runs the Ansible playbook that installs and configures the whole environment. The --short option sticks to the user level, without admin rights.
Roadmap
- Done:
x wtf— AI-powered error analysis - Done:
x notes— daily journal in the terminal - Done:
x repos— clone, pull and push GitHub repos, one or all - Done:
x sync— backup and restore to Nextcloud - Done:
x setup— set up a machine from the dotfiles - Done:
install.sh— one-line installation script - To do:
x history— browse past errors
Built With
- Python 3.8+
- Main language
- Click
- CLI framework for commands and argument parsing
- OpenRouter API
- AI backend for
x wtf - batcat
- Syntax-highlighted note viewing for
x notes - gh CLI
- GitHub repo cloning for
x repos clone - requests + keyring
- WebDAV uploads and secure credential storage for
x sync - Ansible
- Machine provisioning from the dotfiles for
x setup - Gruvbox Dark
- Terminal color theme across all commands