NAME
Langertha::Raider::CLI::Commands - Internal slash commands of the raider REPL
VERSION
version 0.503
SYNOPSIS
# Internal to Langertha-Raider -- no API promise.
my $commands = Langertha::Raider::CLI::Commands->new(app => $app, output => $out);
$commands->dispatch('/pack on polite');
DESCRIPTION
Internal module. Its interface may change without notice.
The slash commands of the raider REPL (/help, /clear, /metrics, /stats, /reload, /prompt, /skill, /skill-claude, /config, /model, /packs, /pack). Each command /name is the method cmd_name (dashes become underscores) and gets the rest of the line as its argument. Leaving the REPL (/quit) is the REPL's business.
app
The Langertha::Raider::CLI the commands act on. Required.
output
The Langertha::Raider::CLI::Output to print to. Required.
in
Filehandle /prompt reads its conversation from. Defaults to STDIN.
dispatch
$commands->dispatch('/model list gpt');
Runs one slash command line. Returns false for an unknown command (after saying so), true otherwise.
collapse_model_list
my @rows = $commands->collapse_model_list(\@ids, $current);
Folds dated snapshots (gpt-4o-2024-08-06, claude-3-5-sonnet-20241022 style -YYYY suffixes) under their base model. Returns sorted rows { id, snaps, current, orphan }; orphan marks a snapshot family whose base is not listed itself.
SEE ALSO
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha-raider/issues.
IRC
Join #langertha on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.