Commit 19ea44f
Changed files (1)
lib
elelem
plugins
lib/elelem/plugins/mode.rb
@@ -1,8 +1,6 @@
# frozen_string_literal: true
Elelem::Plugins.register(:mode) do |agent|
- plan_file = ".elelem/plan.md"
-
agent.commands.register("mode",
description: "Switch system prompt mode",
completions: -> { Elelem::SystemPrompt.available_modes }
@@ -24,10 +22,4 @@ Elelem::Plugins.register(:mode) do |agent|
agent.conversation.add(role: "user", content: "Context: #{response}")
agent.terminal.say " → compacted"
end
-
- agent.toolbox.after do |_, _, tool_name:|
- next unless File.exist?(plan_file)
- pending = File.read(plan_file).scan(/^- \[ \]/).count
- agent.terminal.say " → #{pending} pending" if pending > 0
- end
end