@@ -120,15 +120,18 @@ type TUIOptions struct {
120 // Here we can add themes later or any TUI related options
120 // Here we can add themes later or any TUI related options
123+type Permissions struct {
124+ AllowedTools []string `json:"allowed_tools,omitempty"` // Tools that don't require permission prompts
123type Options struct {
127type Options struct {
124 ContextPaths []string `json:"context_paths,omitempty"`
128 ContextPaths []string `json:"context_paths,omitempty"`
125 TUI *TUIOptions `json:"tui,omitempty"`
129 TUI *TUIOptions `json:"tui,omitempty"`
126 Debug bool `json:"debug,omitempty"`
130 Debug bool `json:"debug,omitempty"`
127 DebugLSP bool `json:"debug_lsp,omitempty"`
131 DebugLSP bool `json:"debug_lsp,omitempty"`
128 DisableAutoSummarize bool `json:"disable_auto_summarize,omitempty"`
132 DisableAutoSummarize bool `json:"disable_auto_summarize,omitempty"`
129− DataDirectory string `json:"data_directory,omitempty"` // Relative to the cwd
133+ DataDirectory string `json:"data_directory,omitempty"` // Relative to the cwd
130− SkipPermissionsRequests bool `json:"-"` // Automatically accept all permissions (YOLO mode)
134+ SkipPermissionsRequests bool `json:"-"` // Automatically accept all permissions (YOLO mode)
131− AllowedCommands []string `json:"allowed_commands,omitempty"` // Commands that don't require permission prompts
134type MCPs map[string]MCPConfig
137type MCPs map[string]MCPConfig
@@ -245,6 +248,8 @@ type Config struct {
246 Options *Options `json:"options,omitempty"`
249 Options *Options `json:"options,omitempty"`
251+ Permissions *Permissions `json:"permissions,omitempty"`
248 // Internal
253 // Internal
249 workingDir string `json:"-"`
254 workingDir string `json:"-"`
250 // TODO: most likely remove this concept when I come back to it
255 // TODO: most likely remove this concept when I come back to it