Reduce reserved compaction tokens, add instructions for AGENTS.md

This commit is contained in:
Samuel Aubertin
2026-05-08 15:47:19 +02:00
parent 9bc3a55fc4
commit 650782f503

View File

@@ -1346,7 +1346,7 @@ ensure_opencode_config() {
compaction: { compaction: {
auto: true, auto: true,
prune: true, prune: true,
reserved: 16000 reserved: 12000
}, },
watcher: { watcher: {
ignore: [ ignore: [
@@ -1371,6 +1371,9 @@ ensure_opencode_config() {
external_directory: "allow", external_directory: "allow",
doom_loop: "ask" doom_loop: "ask"
} }
"instructions": [
"AGENTS.md"
]
}' >"$OPENCODE_CONFIG_HOST"; then }' >"$OPENCODE_CONFIG_HOST"; then
error "failed to write opencode config '$OPENCODE_CONFIG_HOST'" error "failed to write opencode config '$OPENCODE_CONFIG_HOST'"
fi fi