Brute
Brute::Prompts
module Brute module Prompts endendConstants
TEMPLATES
TEMPLATES = {}Compiled templates, keyed by absolute path. Compilation is idempotent, so a racy double-assign under Async is harmless.
TEXT_DIR
TEXT_DIR = File.expand_path("text", __dir__)Not documented.
Class Methods
self.agent_prompt
agent_prompt(name)Read a named agent prompt (e.g. “explore”, “compaction”).
self.read
read(section, provider_name)Resolve a provider-specific text file. Looks for
section/provider_name.txt, falls back to
section/default.txt.
self.render
render(section, ctx)Resolve and render text/
Templates are ERB: arbitrary Ruby. Only ship templates with the gem or load them from paths you trust.
Defined in
lib/brute/prompts.rblib/brute/prompts/autonomy.rblib/brute/prompts/base.rblib/brute/prompts/build_switch.rblib/brute/prompts/code_references.rblib/brute/prompts/code_style.rblib/brute/prompts/conventions.rblib/brute/prompts/doing_tasks.rblib/brute/prompts/editing_approach.rblib/brute/prompts/editing_constraints.rblib/brute/prompts/environment.rblib/brute/prompts/frontend_tasks.rblib/brute/prompts/git_safety.rblib/brute/prompts/identity.rblib/brute/prompts/instructions.rblib/brute/prompts/max_steps.rblib/brute/prompts/objectivity.rblib/brute/prompts/plan_reminder.rblib/brute/prompts/proactiveness.rblib/brute/prompts/security_and_safety.rblib/brute/prompts/skills.rblib/brute/prompts/task_management.rblib/brute/prompts/tone_and_style.rblib/brute/prompts/tool_usage.rb