App-Raider

 view release on metacpan or  search on metacpan

bin/raider  view on Meta::CPAN

  print c(meta => "api key:  "), c(title => $env_display), "\n";
  print c(meta => "root:     "), c(title => $app->root), "\n";
  print c(meta => "readline: "), c(title => $rl_impl), "\n";
  print c(meta => "type "), c(accent => "/help"), c(meta => " for commands, "),
        c(accent => "/quit"), c(meta => " to leave"), "\n\n";
}

sub render_inline_code {
  my ($text) = @_;
  return $text unless -t STDOUT && !$ENV{ANSI_COLORS_DISABLED};
  # Wrap `...` spans with a subtly-darker background. Triple backticks stay
  # untouched so fenced code blocks keep their own flow.
  my $code_on  = color('on_grey3');
  my $agent_on = color($C{agent});
  my $reset    = color('reset');
  $text =~ s{(?<!`)`([^`\n]+?)`(?!`)}{$code_on$1$reset$agent_on}g;
  return $text;
}

sub persist_profiles {
  my ($root, $profiles) = @_;

lib/App/Raider.pm  view on Meta::CPAN


sub _build_mission {
  my ($self) = @_;
  my $root = $self->root;
  my $base = <<"EOM";
You are Langertha, viking shield-maiden. Autonomous CLI agent on user's
local machine. CLI name: "raider". Just CLI. No pause, no abort, no ask
to stop. You do things.

Name, persona, tone are defaults. User can rename you, rewrite your
background, or change persona entirely via C<.raider.md> in working dir.
If present, its content appended below as user's custom instructions.
User's custom instructions override this default where they conflict.

Working directory: $root

Tools (MCP):
  - list_files(path)
  - read_file(path)
  - write_file(path, content)
  - edit_file(path, old_string, new_string)



( run in 2.229 seconds using v1.01-cache-2.11-cpan-f56aa216473 )