Repository navigation
Expand file tree
/
Copy pathlocalcode.config.example.yaml
More file actions
132 lines (119 loc) · 3.3 KB
/
Copy pathlocalcode.config.example.yaml
File metadata and controls
132 lines (119 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# LocalCode Studio configuration.
#
# Copy this to `localcode.config.yaml` next to your project (or in
# `~/.config/localcode/config.yaml` for user-global defaults) and adjust.
# The app also lets you edit these values from Settings.
app:
name: LocalCode Studio
telemetry: false # never sends anything anywhere; kept explicit
offline_first: true # warn before selecting remote providers
require_approval_for_writes: true # every patch needs your click before applying
require_approval_for_commands: true # every terminal command needs approval
max_parallel_agent_steps: 2
providers:
ollama:
type: ollama
base_url: http://localhost:11434
enabled: true
local_openai:
type: openai_compatible
base_url: http://localhost:8080/v1 # llama.cpp / LM Studio / vLLM
api_key_env: LOCAL_OPENAI_API_KEY
enabled: false
# Opt-in only. If enabled AND allow_code_upload = true, code snippets/repo
# context may be sent to this remote endpoint. The UI shows a red badge when
# a remote provider is active.
remote_openai_compatible:
type: openai_compatible
base_url: https://api.example.com/v1
api_key_env: REMOTE_API_KEY
enabled: false
allow_code_upload: false
# Model roles. Pointing every role at the same model is fine for a single-model
# setup; splitting lets you use a fast small model for edits and a bigger one
# for planning/review.
models:
planner:
provider: ollama
name: qwen3-coder:latest
context_tokens: 32768
temperature: 0.1
coder:
provider: ollama
name: qwen3-coder:latest
context_tokens: 32768
temperature: 0.05
editor:
provider: ollama
name: qwen3-coder:latest
context_tokens: 16384
temperature: 0.0
reviewer:
provider: ollama
name: qwen3-coder:latest
context_tokens: 32768
temperature: 0.0
explainer:
provider: ollama
name: qwen3:latest
context_tokens: 16384
temperature: 0.2
embedding:
provider: ollama
name: qwen3-embedding:latest
workspace:
ignore:
- node_modules/**
- .git/**
- dist/**
- build/**
- target/**
- .venv/**
- __pycache__/**
- .next/**
- coverage/**
- .pnpm-store/**
max_file_size_mb_for_full_read: 1
max_file_size_mb_for_chunking: 20
large_file_strategy: symbol_and_windowed_chunks
binary_detection: true
secret_redaction: true
agent:
default_mode: edit # ask | edit | agent | review | test | refactor
patch_strategy: unified_diff
apply_patch_only_after_validation: true
reviewer_required_for_multi_file_changes: true
auto_run_tests_after_edit: ask # ask | always | never
max_tool_iterations: 20
max_files_touched_without_confirmation: 8
security:
allowed_roots:
- .
blocked_paths:
- ~/.ssh/**
- ~/.aws/**
- ~/.gcp/**
- ~/.config/**
- ~/.kube/**
- /etc/**
# These never run, ever.
blocked_commands:
- rm -rf /
- sudo rm
- mkfs
- dd if=
- chmod -R 777 /
- :(){:|:&};:
# These prompt for extra confirmation ("this touches shared state").
require_confirmation_for:
- git push
- git reset --hard
- npm publish
- pnpm publish
- pip publish
- twine upload
- docker system prune
- kubectl apply
- terraform apply
- gcloud
- aws