Skip to content

Commit ac70240

Browse files
authored
fix(#142): sync personal config - add git-agent, remove short perms, add which* (#143)
1 parent 64a5950 commit ac70240

1 file changed

Lines changed: 117 additions & 19 deletions

File tree

‎opencode.personal.json‎

Lines changed: 117 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@
77
"instructions/agent-output-protocol.md",
88
"instructions/quality-standards.md",
99
"instructions/tool-preferences.md",
10-
"instructions/context7-library-documentation.md",
11-
"instructions/shortcut-cli-awareness.md",
12-
"instructions/postgres-mcp-databases.md",
13-
"instructions/rollbar-mcp-integration.md"
10+
"instructions/context7-library-documentation.md"
1411
],
1512
"agent": {
1613
"project-manager": {
1714
"description": "Pure orchestrator that coordinates specialists but never executes code - read-only tools and delegation only",
1815
"mode": "primary",
1916
"prompt": "{file:prompts/project-manager.txt}",
2017
"permission": {
21-
"bash": {
22-
"remory *": "allow",
18+
"bash": {
19+
"which*": "allow",
20+
"remory *": "allow",
2321
"export PROJECT_ID=*": "allow",
2422
"cat *": "allow",
2523
"uuidgen*": "allow",
@@ -56,14 +54,114 @@
5654
"todowrite": true
5755
}
5856
},
57+
"git-agent": {
58+
"description": "Git and GitHub workflow expert for version control and PR management",
59+
"mode": "subagent",
60+
"model": "{env:SUBAGENT_MODEL}",
61+
"prompt": "{file:prompts/git-agent.txt}",
62+
"permission": {
63+
"bash": {
64+
"which*": "allow",
65+
"head*": "allow",
66+
"tail*": "allow",
67+
"wc*": "allow",
68+
"sort*": "allow",
69+
"uniq*": "allow",
70+
"remory *": "allow",
71+
"export *": "allow",
72+
"cat *": "allow",
73+
"echo *": "allow",
74+
"tee *": "allow",
75+
"grep *": "allow",
76+
"rg *": "allow",
77+
"wc *": "allow",
78+
"ls *": "allow",
79+
"find *": "allow",
80+
"git status*": "allow",
81+
"git log*": "allow",
82+
"git show*": "allow",
83+
"git diff*": "allow",
84+
"git branch*": "allow",
85+
"git remote*": "allow",
86+
"git add*": "allow",
87+
"git commit*": "allow",
88+
"git push*": "allow",
89+
"git fetch*": "allow",
90+
"git pull*": "allow",
91+
"git merge*": "allow",
92+
"git rebase*": "allow",
93+
"git reset*": "allow",
94+
"git revert*": "allow",
95+
"git checkout*": "allow",
96+
"git stash*": "allow",
97+
"git tag*": "allow",
98+
"git cherry-pick*": "allow",
99+
"gh*": "allow",
100+
"npm test*": "deny",
101+
"npm run lint*": "deny",
102+
"npm run type-check*": "deny",
103+
"npm run format*": "deny",
104+
"npm run build*": "deny",
105+
"npm run dev*": "deny",
106+
"npm install*": "deny",
107+
"npm ci*": "deny",
108+
"yarn test*": "deny",
109+
"yarn install*": "deny",
110+
"yarn add*": "deny",
111+
"pnpm test*": "deny",
112+
"pnpm install*": "deny",
113+
"pnpm add*": "deny",
114+
"bun test*": "deny",
115+
"bun install*": "deny",
116+
"jest*": "deny",
117+
"npx jest*": "deny",
118+
"pytest*": "deny",
119+
"cargo test*": "deny",
120+
"cargo clippy*": "deny",
121+
"cargo build*": "deny",
122+
"go test*": "deny",
123+
"bundle exec*": "deny",
124+
"npx tsc*": "deny",
125+
"npx eslint*": "deny",
126+
"npx prettier*": "deny",
127+
"eslint*": "deny",
128+
"prettier*": "deny",
129+
"ruff check*": "deny",
130+
"mypy*": "deny",
131+
"rubocop*": "deny",
132+
"sed *": "deny",
133+
"awk *": "deny",
134+
"perl *": "deny",
135+
"pulumi *": "deny",
136+
"psql*": "deny",
137+
"mysql*": "deny",
138+
"mongosh*": "deny",
139+
"redis-cli*": "deny",
140+
"sqlite3*": "deny",
141+
"*": "deny"
142+
}
143+
},
144+
"tools": {
145+
"bash": true,
146+
"glob": true,
147+
"grep": true,
148+
"list": true,
149+
"read": true,
150+
"webfetch": true,
151+
"todowrite": true,
152+
"perplexity-ask_search": true,
153+
"perplexity-ask_reason": true,
154+
"perplexity-ask_deep_research": true
155+
}
156+
},
59157
"python-best-practices-architect": {
60158
"description": "Minimalist Python architect enforcing TDD, 80%+ coverage, and quality gates",
61159
"mode": "subagent",
62160
"model": "{env:SUBAGENT_MODEL}",
63161
"prompt": "{file:prompts/python-best-practices.txt}",
64162
"permission": {
65163
"bash": {
66-
"short *": "allow",
164+
67165
"which*": "allow",
68166
"remory *": "allow",
69167
"export *": "allow",
@@ -159,7 +257,7 @@
159257
"prompt": "{file:prompts/rails-architect.txt}",
160258
"permission": {
161259
"bash": {
162-
"short *": "allow",
260+
163261
"git add*": "deny",
164262
"git commit*": "deny",
165263
"git push*": "deny",
@@ -217,7 +315,7 @@
217315
"prompt": "{file:prompts/react-native-mobile-specialist.txt}",
218316
"permission": {
219317
"bash": {
220-
"short *": "allow",
318+
221319
"git add*": "deny",
222320
"git commit*": "deny",
223321
"git push*": "deny",
@@ -275,7 +373,7 @@
275373
"prompt": "{file:prompts/react-web-specialist.txt}",
276374
"permission": {
277375
"bash": {
278-
"short *": "allow",
376+
279377
"git add*": "deny",
280378
"git commit*": "deny",
281379
"git push*": "deny",
@@ -333,7 +431,7 @@
333431
"prompt": "{file:prompts/postgres-specialist.txt}",
334432
"permission": {
335433
"bash": {
336-
"short *": "allow",
434+
337435
"git add*": "deny",
338436
"git commit*": "deny",
339437
"git push*": "deny",
@@ -389,7 +487,7 @@
389487
"prompt": "{file:prompts/api-design.txt}",
390488
"permission": {
391489
"bash": {
392-
"short *": "allow",
490+
393491
"git add*": "deny",
394492
"git commit*": "deny",
395493
"git push*": "deny",
@@ -448,7 +546,7 @@
448546
"prompt": "{file:prompts/devops-infrastructure.txt}",
449547
"permission": {
450548
"bash": {
451-
"short *": "allow",
549+
452550
"git add*": "deny",
453551
"git commit*": "deny",
454552
"git push*": "deny",
@@ -507,7 +605,7 @@
507605
"permission": {
508606
"edit": "deny",
509607
"bash": {
510-
"short *": "allow",
608+
511609
"gh *": "allow",
512610
"echo*": "allow",
513611
"grep*": "allow",
@@ -586,7 +684,7 @@
586684
"prompt": "{file:prompts/rust-tdd-architect.txt}",
587685
"permission": {
588686
"bash": {
589-
"short *": "allow",
687+
590688
"git add*": "deny",
591689
"git commit*": "deny",
592690
"git push*": "deny",
@@ -644,7 +742,7 @@
644742
"prompt": "{file:prompts/shell-script-architect.txt}",
645743
"permission": {
646744
"bash": {
647-
"short *": "allow",
745+
648746
"git add*": "deny",
649747
"git commit*": "deny",
650748
"git push*": "deny",
@@ -702,7 +800,7 @@
702800
"prompt": "{file:prompts/technical-writer.txt}",
703801
"permission": {
704802
"bash": {
705-
"short *": "allow",
803+
706804
"git add*": "deny",
707805
"git commit*": "deny",
708806
"git push*": "deny",
@@ -761,7 +859,7 @@
761859
"prompt": "{file:prompts/go-tdd-architect.txt}",
762860
"permission": {
763861
"bash": {
764-
"short *": "allow",
862+
765863
"git add*": "deny",
766864
"git commit*": "deny",
767865
"git push*": "deny",
@@ -819,7 +917,7 @@
819917
"prompt": "{file:prompts/research-specialist.txt}",
820918
"permission": {
821919
"bash": {
822-
"short *": "allow",
920+
"which*": "allow",
823921
"remory *": "allow",
824922
"export PROJECT_ID=*": "allow",
825923
"uuidgen*": "allow",

0 commit comments

Comments
 (0)