Skip to content

Commit f35412b

Browse files
authored
fix(#89): add pipe utility permissions to enable Shortcut CLI with pipes (#91)
Added head, tail, wc, sort, uniq permissions to 14 agents with Shortcut CLI access. OpenCode evaluates entire command strings including piped components. Commands like 'short iterations list | head -50' were failing because head wasn't in allow list. This fixes git-agent and all other specialists to support piped Shortcut commands.
1 parent e59eaed commit f35412b

1 file changed

Lines changed: 173 additions & 104 deletions

File tree

‎opencode.work.json‎

Lines changed: 173 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
"description": "Pure orchestrator that coordinates specialists but never executes code - read-only tools and delegation only",
1616
"mode": "primary",
1717
"prompt": "{file:prompts/project-manager.txt}",
18-
"permission": {
19-
"bash": {
20-
"remory *": "allow",
21-
"export PROJECT_ID=*": "allow",
18+
"permission": {
19+
"bash": {
20+
"short*": "allow",
21+
"head*": "allow",
22+
"tail*": "allow",
23+
"sort*": "allow",
24+
"uniq*": "allow",
25+
"remory *": "allow",
26+
"export PROJECT_ID=*": "allow",
2227
"cat *": "allow",
2328
"uuidgen*": "allow",
2429
"echo*": "allow",
@@ -54,15 +59,20 @@
5459
"todowrite": true
5560
}
5661
},
57-
"python-best-practices-architect": {
58-
"description": "Minimalist Python architect enforcing TDD, 80%+ coverage, and quality gates",
59-
"mode": "subagent",
60-
"model": "{env:SUBAGENT_MODEL}",
61-
"prompt": "{file:prompts/python-best-practices.txt}",
62-
"permission": {
63-
"bash": {
64-
"short*": "allow",
65-
"git add*": "deny",
62+
"python-best-practices-architect": {
63+
"description": "Minimalist Python architect enforcing TDD, 80%+ coverage, and quality gates",
64+
"mode": "subagent",
65+
"model": "{env:SUBAGENT_MODEL}",
66+
"prompt": "{file:prompts/python-best-practices.txt}",
67+
"permission": {
68+
"bash": {
69+
"short*": "allow",
70+
"head*": "allow",
71+
"tail*": "allow",
72+
"wc*": "allow",
73+
"sort*": "allow",
74+
"uniq*": "allow",
75+
"git add*": "deny",
6676
"git commit*": "deny",
6777
"git push*": "deny",
6878
"git pull*": "deny",
@@ -111,15 +121,20 @@
111121
"perplexity-ask_deep_research": true
112122
}
113123
},
114-
"git-agent": {
115-
"description": "Git and GitHub workflow expert for version control and PR management",
116-
"mode": "subagent",
117-
"model": "{env:SUBAGENT_MODEL}",
118-
"prompt": "{file:prompts/git-agent.txt}",
119-
"permission": {
120-
"bash": {
121-
"short*": "allow",
122-
"remory *": "allow",
124+
"git-agent": {
125+
"description": "Git and GitHub workflow expert for version control and PR management",
126+
"mode": "subagent",
127+
"model": "{env:SUBAGENT_MODEL}",
128+
"prompt": "{file:prompts/git-agent.txt}",
129+
"permission": {
130+
"bash": {
131+
"short*": "allow",
132+
"head*": "allow",
133+
"tail*": "allow",
134+
"wc*": "allow",
135+
"sort*": "allow",
136+
"uniq*": "allow",
137+
"remory *": "allow",
123138
"export *": "allow",
124139
"cat *": "allow",
125140
"echo *": "allow",
@@ -204,14 +219,19 @@
204219
"perplexity-ask_deep_research": true
205220
}
206221
},
207-
"rails-architect": {
208-
"description": "Ruby on Rails expert for scalable, secure Rails applications with RSpec testing",
209-
"mode": "subagent",
210-
"model": "{env:SUBAGENT_MODEL}",
211-
"prompt": "{file:prompts/rails-architect.txt}",
212-
"permission": {
213-
"bash": {
214-
"short*": "allow",
222+
"rails-architect": {
223+
"description": "Ruby on Rails expert for scalable, secure Rails applications with RSpec testing",
224+
"mode": "subagent",
225+
"model": "{env:SUBAGENT_MODEL}",
226+
"prompt": "{file:prompts/rails-architect.txt}",
227+
"permission": {
228+
"bash": {
229+
"short*": "allow",
230+
"head*": "allow",
231+
"tail*": "allow",
232+
"wc*": "allow",
233+
"sort*": "allow",
234+
"uniq*": "allow",
215235
"git add*": "deny",
216236
"git commit*": "deny",
217237
"git push*": "deny",
@@ -261,14 +281,19 @@
261281
"perplexity-ask_deep_research": true
262282
}
263283
},
264-
"react-native-mobile-specialist": {
265-
"description": "Expo and React Native mobile specialist for iOS/Android cross-platform development",
266-
"mode": "subagent",
267-
"model": "{env:SUBAGENT_MODEL}",
268-
"prompt": "{file:prompts/react-native-mobile-specialist.txt}",
269-
"permission": {
270-
"bash": {
271-
"short*": "allow",
284+
"react-native-mobile-specialist": {
285+
"description": "Expo and React Native mobile specialist for iOS/Android cross-platform development",
286+
"mode": "subagent",
287+
"model": "{env:SUBAGENT_MODEL}",
288+
"prompt": "{file:prompts/react-native-mobile-specialist.txt}",
289+
"permission": {
290+
"bash": {
291+
"short*": "allow",
292+
"head*": "allow",
293+
"tail*": "allow",
294+
"wc*": "allow",
295+
"sort*": "allow",
296+
"uniq*": "allow",
272297
"git add*": "deny",
273298
"git commit*": "deny",
274299
"git push*": "deny",
@@ -318,14 +343,19 @@
318343
"perplexity-ask_deep_research": true
319344
}
320345
},
321-
"react-web-specialist": {
322-
"description": "React/TypeScript/JavaScript web specialist combining React expertise with minimalist philosophy for browser and Node.js applications",
323-
"mode": "subagent",
324-
"model": "{env:SUBAGENT_MODEL}",
325-
"prompt": "{file:prompts/react-web-specialist.txt}",
326-
"permission": {
327-
"bash": {
328-
"short*": "allow",
346+
"react-web-specialist": {
347+
"description": "React/TypeScript/JavaScript web specialist combining React expertise with minimalist philosophy for browser and Node.js applications",
348+
"mode": "subagent",
349+
"model": "{env:SUBAGENT_MODEL}",
350+
"prompt": "{file:prompts/react-web-specialist.txt}",
351+
"permission": {
352+
"bash": {
353+
"short*": "allow",
354+
"head*": "allow",
355+
"tail*": "allow",
356+
"wc*": "allow",
357+
"sort*": "allow",
358+
"uniq*": "allow",
329359
"git add*": "deny",
330360
"git commit*": "deny",
331361
"git push*": "deny",
@@ -375,14 +405,19 @@
375405
"perplexity-ask_deep_research": true
376406
}
377407
},
378-
"postgres-specialist": {
379-
"description": "PostgreSQL specialist for schema design, query optimization, performance tuning, with AWS Aurora expertise",
380-
"mode": "subagent",
381-
"model": "{env:SUBAGENT_MODEL}",
382-
"prompt": "{file:prompts/postgres-specialist.txt}",
383-
"permission": {
384-
"bash": {
385-
"short*": "allow",
408+
"postgres-specialist": {
409+
"description": "PostgreSQL specialist for schema design, query optimization, performance tuning, with AWS Aurora expertise",
410+
"mode": "subagent",
411+
"model": "{env:SUBAGENT_MODEL}",
412+
"prompt": "{file:prompts/postgres-specialist.txt}",
413+
"permission": {
414+
"bash": {
415+
"short*": "allow",
416+
"head*": "allow",
417+
"tail*": "allow",
418+
"wc*": "allow",
419+
"sort*": "allow",
420+
"uniq*": "allow",
386421
"git add*": "deny",
387422
"git commit*": "deny",
388423
"git push*": "deny",
@@ -430,14 +465,19 @@
430465
"mcp_barona_production_query": true
431466
}
432467
},
433-
"api-design-architect": {
434-
"description": "API design expert for RESTful, GraphQL, and scalable API architecture",
435-
"mode": "subagent",
436-
"model": "{env:SUBAGENT_MODEL}",
437-
"prompt": "{file:prompts/api-design.txt}",
438-
"permission": {
439-
"bash": {
440-
"short*": "allow",
468+
"api-design-architect": {
469+
"description": "API design expert for RESTful, GraphQL, and scalable API architecture",
470+
"mode": "subagent",
471+
"model": "{env:SUBAGENT_MODEL}",
472+
"prompt": "{file:prompts/api-design.txt}",
473+
"permission": {
474+
"bash": {
475+
"short*": "allow",
476+
"head*": "allow",
477+
"tail*": "allow",
478+
"wc*": "allow",
479+
"sort*": "allow",
480+
"uniq*": "allow",
441481
"git add*": "deny",
442482
"git commit*": "deny",
443483
"git push*": "deny",
@@ -488,14 +528,19 @@
488528
"perplexity-ask_deep_research": true
489529
}
490530
},
491-
"devops-infrastructure": {
492-
"description": "DevOps expert for CI/CD, Docker, Kubernetes, and infrastructure automation",
493-
"mode": "subagent",
494-
"model": "{env:SUBAGENT_MODEL}",
495-
"prompt": "{file:prompts/devops-infrastructure.txt}",
496-
"permission": {
497-
"bash": {
498-
"short*": "allow",
531+
"devops-infrastructure": {
532+
"description": "DevOps expert for CI/CD, Docker, Kubernetes, and infrastructure automation",
533+
"mode": "subagent",
534+
"model": "{env:SUBAGENT_MODEL}",
535+
"prompt": "{file:prompts/devops-infrastructure.txt}",
536+
"permission": {
537+
"bash": {
538+
"short*": "allow",
539+
"head*": "allow",
540+
"tail*": "allow",
541+
"wc*": "allow",
542+
"sort*": "allow",
543+
"uniq*": "allow",
499544
"git add*": "deny",
500545
"git commit*": "deny",
501546
"git push*": "deny",
@@ -546,15 +591,19 @@
546591
"perplexity-ask_deep_research": true
547592
}
548593
},
549-
"code-review-specialist": {
550-
"description": "Code review expert for security, performance, quality analysis, and GitHub PR reviews",
551-
"mode": "subagent",
552-
"model": "{env:SUBAGENT_MODEL}",
553-
"prompt": "{file:prompts/code-review-specialist.txt}",
554-
"permission": {
555-
"edit": "deny",
556-
"bash": {
557-
"short*": "allow",
594+
"code-review-specialist": {
595+
"description": "Code review expert for security, performance, quality analysis, and GitHub PR reviews",
596+
"mode": "subagent",
597+
"model": "{env:SUBAGENT_MODEL}",
598+
"prompt": "{file:prompts/code-review-specialist.txt}",
599+
"permission": {
600+
"edit": "deny",
601+
"bash": {
602+
"short*": "allow",
603+
"head*": "allow",
604+
"tail*": "allow",
605+
"sort*": "allow",
606+
"uniq*": "allow",
558607
"gh *": "allow",
559608
"echo*": "allow",
560609
"grep*": "allow",
@@ -625,14 +674,19 @@
625674
"perplexity-ask_deep_research": true
626675
}
627676
},
628-
"rust-tdd-architect": {
629-
"description": "Elite Rust architect - zero-cost abstractions, memory safety, ABSOLUTE MINIMUM code using TDD, std-first philosophy",
630-
"mode": "subagent",
631-
"model": "{env:SUBAGENT_MODEL}",
632-
"prompt": "{file:prompts/rust-tdd-architect.txt}",
633-
"permission": {
634-
"bash": {
635-
"short*": "allow",
677+
"rust-tdd-architect": {
678+
"description": "Elite Rust architect - zero-cost abstractions, memory safety, ABSOLUTE MINIMUM code using TDD, std-first philosophy",
679+
"mode": "subagent",
680+
"model": "{env:SUBAGENT_MODEL}",
681+
"prompt": "{file:prompts/rust-tdd-architect.txt}",
682+
"permission": {
683+
"bash": {
684+
"short*": "allow",
685+
"head*": "allow",
686+
"tail*": "allow",
687+
"wc*": "allow",
688+
"sort*": "allow",
689+
"uniq*": "allow",
636690
"git add*": "deny",
637691
"git commit*": "deny",
638692
"git push*": "deny",
@@ -690,7 +744,12 @@
690744
"permission": {
691745
"bash": {
692746
"short*": "allow",
693-
"git add*": "deny",
747+
"head*": "allow",
748+
"tail*": "allow",
749+
"wc*": "allow",
750+
"sort*": "allow",
751+
"uniq*": "allow",
752+
"git add*": "deny",
694753
"git commit*": "deny",
695754
"git push*": "deny",
696755
"git pull*": "deny",
@@ -739,14 +798,19 @@
739798
"perplexity-ask_deep_research": true
740799
}
741800
},
742-
"technical-writer": {
743-
"description": "Lead technical writer creating clear, concise, user-focused documentation with zero bloat",
744-
"mode": "subagent",
745-
"model": "{env:SUBAGENT_MODEL}",
746-
"prompt": "{file:prompts/technical-writer.txt}",
747-
"permission": {
748-
"bash": {
749-
"short*": "allow",
801+
"technical-writer": {
802+
"description": "Lead technical writer creating clear, concise, user-focused documentation with zero bloat",
803+
"mode": "subagent",
804+
"model": "{env:SUBAGENT_MODEL}",
805+
"prompt": "{file:prompts/technical-writer.txt}",
806+
"permission": {
807+
"bash": {
808+
"short*": "allow",
809+
"head*": "allow",
810+
"tail*": "allow",
811+
"wc*": "allow",
812+
"sort*": "allow",
813+
"uniq*": "allow",
750814
"git add*": "deny",
751815
"git commit*": "deny",
752816
"git push*": "deny",
@@ -798,14 +862,19 @@
798862
"perplexity-ask_deep_research": true
799863
}
800864
},
801-
"go-tdd-architect": {
802-
"description": "Elite Go architect - idiomatic simplicity, stdlib-first, ABSOLUTE MINIMUM code using TDD, following Go proverbs and 2025 best practices",
803-
"mode": "subagent",
804-
"model": "{env:SUBAGENT_MODEL}",
805-
"prompt": "{file:prompts/go-tdd-architect.txt}",
806-
"permission": {
807-
"bash": {
808-
"short*": "allow",
865+
"go-tdd-architect": {
866+
"description": "Elite Go architect - idiomatic simplicity, stdlib-first, ABSOLUTE MINIMUM code using TDD, following Go proverbs and 2025 best practices",
867+
"mode": "subagent",
868+
"model": "{env:SUBAGENT_MODEL}",
869+
"prompt": "{file:prompts/go-tdd-architect.txt}",
870+
"permission": {
871+
"bash": {
872+
"short*": "allow",
873+
"head*": "allow",
874+
"tail*": "allow",
875+
"wc*": "allow",
876+
"sort*": "allow",
877+
"uniq*": "allow",
809878
"git add*": "deny",
810879
"git commit*": "deny",
811880
"git push*": "deny",

0 commit comments

Comments
 (0)