Commit bb010cd
committed
fix(opencode): allow aft_outline + aft_zoom for all hidden subagents
Adds the read-only AFT navigation tools to historian, dreamer, and
sidekick allow-lists. These are exactly the right shape for hidden
subagents that need to inspect code structure without dragging in
whole files: aft_outline returns a symbol-level outline, aft_zoom
returns the source of a single named symbol.
Per-agent rationale:
- historian / historian-editor / compressor: can now verify a
referenced symbol or skim file structure when writing accurate
compartment summaries, without falling back to whole-file reads.
- dreamer: the key-files identification prompt at
features/magic-context/key-files/identify-key-files.ts:257-258
already tells the model to use aft_outline / aft_zoom. Without
them in the allow-list those calls would have been denied,
which would silently regress the key-files identification task.
- sidekick: can pull lightweight symbol-scoped context when the
user's prompt references a specific file or symbol. Sidekick's
read still stays denied — it should pull symbol-scoped views
via aft_zoom, not arbitrary file contents.
Allow-lists now:
HISTORIAN_ALLOWED_TOOLS = read, aft_outline, aft_zoom
DREAMER_ALLOWED_TOOLS = read, grep, glob, bash, aft_outline,
aft_zoom, ctx_memory, ctx_search, ctx_note
SIDEKICK_ALLOWED_TOOLS = ctx_search, ctx_memory, aft_outline,
aft_zoom
Tests updated and expanded: 1479 pass / 0 fail (+3 new aft assertions
across the three agents). Permission integration shape tests now
verify the exact final ruleset for each agent.1 parent a480af1 commit bb010cd
2 files changed
Lines changed: 87 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
| |||
111 | 126 | | |
112 | 127 | | |
113 | 128 | | |
114 | | - | |
| 129 | + | |
115 | 130 | | |
116 | | - | |
117 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
118 | 142 | | |
119 | 143 | | |
120 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
121 | 148 | | |
122 | 149 | | |
123 | 150 | | |
| |||
129 | 156 | | |
130 | 157 | | |
131 | 158 | | |
132 | | - | |
| 159 | + | |
133 | 160 | | |
134 | 161 | | |
135 | 162 | | |
136 | 163 | | |
| 164 | + | |
| 165 | + | |
137 | 166 | | |
138 | 167 | | |
139 | 168 | | |
140 | | - | |
| 169 | + | |
141 | 170 | | |
142 | 171 | | |
143 | 172 | | |
144 | 173 | | |
145 | 174 | | |
146 | 175 | | |
147 | 176 | | |
| 177 | + | |
| 178 | + | |
148 | 179 | | |
149 | 180 | | |
150 | 181 | | |
151 | 182 | | |
152 | 183 | | |
153 | 184 | | |
154 | | - | |
| 185 | + | |
155 | 186 | | |
156 | 187 | | |
157 | 188 | | |
158 | 189 | | |
159 | 190 | | |
| 191 | + | |
| 192 | + | |
160 | 193 | | |
161 | 194 | | |
162 | 195 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| 95 | + | |
89 | 96 | | |
90 | | - | |
91 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
92 | 107 | | |
93 | | - | |
| 108 | + | |
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
| |||
125 | 140 | | |
126 | 141 | | |
127 | 142 | | |
| 143 | + | |
| 144 | + | |
128 | 145 | | |
129 | 146 | | |
130 | 147 | | |
| |||
134 | 151 | | |
135 | 152 | | |
136 | 153 | | |
137 | | - | |
138 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
139 | 162 | | |
140 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
0 commit comments