min_engine_version = 1
[[rule]]
id = "workspace_trust_prompt"
state = "blocked"
priority = 300
region = "bottom_non_empty_lines(8)"
gate = { all = [
{ contains = "do you trust the authors of this directory?" },
{ contains = "with untrusted content." },
{ contains = "yes, trust " },
] }
[[rule]]
id = "permission_prompt"
state = "blocked"
priority = 290
region = "bottom_non_empty_lines(8)"
gate = { all = [
{ contains = "approve once" },
{ contains = "select" },
{ contains = "confirm" },
{ contains = "esc cancel" },
] }
[[rule]]
id = "running_tools_footer"
state = "working"
priority = 200
region = "bottom_non_empty_lines(8)"
gate = { all = [
{ contains = "running tools" },
{ contains = "esc to interrupt" },
{ not = { all = [ { contains = "approve once" }, { contains = "esc cancel" } ] } },
] }
[[rule]]
id = "guide_while_working"
state = "working"
priority = 190
region = "bottom_non_empty_lines(6)"
gate = { all = [
{ contains = "guide devin while it works" },
{ not = { all = [ { contains = "approve once" }, { contains = "esc cancel" } ] } },
] }
[[rule]]
id = "tool_reading_timeout"
state = "working"
priority = 180
region = "bottom_non_empty_lines(8)"
gate = { all = [
{ contains = "reading shell " },
{ contains = "timeout:" },
{ not = { all = [ { contains = "approve once" }, { contains = "esc cancel" } ] } },
] }
[[rule]]
id = "welcome_prompt_footer"
state = "idle"
priority = 120
region = "bottom_non_empty_lines(8)"
gate = { all = [
{ contains = "ask devin to build" },
{ contains = "features, fix bugs" },
{ contains = "your code" },
{ line_regex = '^\s*❭ Ask Devin to build' },
{ not = { any = [
{ all = [ { contains = "approve once" }, { contains = "esc cancel" } ] },
{ all = [ { contains = "running tools" }, { contains = "esc to interrupt" } ] },
{ contains = "guide devin while it works" },
] } },
] }
[[rule]]
id = "live_prompt_footer"
state = "idle"
priority = 100
region = "bottom_non_empty_lines(6)"
gate = { all = [
{ contains = "context:" },
{ line_regex = '^\s*❭' },
{ not = { any = [
{ all = [ { contains = "approve once" }, { contains = "esc cancel" } ] },
{ all = [ { contains = "running tools" }, { contains = "esc to interrupt" } ] },
{ contains = "guide devin while it works" },
] } },
] }