This commit is contained in:
2026-09-19 20:56:43 +01:00
parent 19e49e90f5
commit 84bd80f82a
7 changed files with 237 additions and 106 deletions
+57 -14
View File
@@ -16,23 +16,20 @@
# pkgs.lean-lsp-mcp
];
settings = {
"defaultProvider" = "opencode-go";
"defaultModel" = "mimo-v2.5";
"defaultThinkingLevel" = "medium";
"litellm" = {
"providers" = {
"litellm" = {
"displayName" = "scuggo";
"baseUrl" = "https://ai-proxy.fwds.scug.io";
"apiKey" = "$SCUG_IO_API_KEY";
"compat" = {
"sendSessionAffinityHeaders" = true;
};
};
};
"skills" = {
"enabled" = true;
};
"compat" = {
"sendSessionAffinityHeaders" = true;
};
};
"mcp" = {
"enabled" = true;
@@ -66,7 +63,8 @@
"npm:pi-opencode-go-cache"
"npm:@pi-vault/pi-dcp"
"git:github.com/DietrichGebert/ponytail"
"npm:pi-commandcode-provider"
"npm:pi-open-tui"
# "npm:pi-commandcode-provider"
];
};
context = ''
@@ -173,20 +171,26 @@
"type" = "api_key";
"key" = "$OPENCODE_GO_API_KEY";
};
"command-code" = {
"type" = "api_key";
"key" = "$COMMANDCODE_API_KEY";
};
# "command-code" = {
# "type" = "api_key";
# "key" = "$COMMANDCODE_API_KEY";
# };
};
};
# Cache/routing compat overrides (provider-level minimal)
home.file.".pi/agent/models.json" = {
text = builtins.toJSON {
providers = {
"providers" = {
"opencode" = {
"compat" = {
"sendSessionAffinityHeaders" = true;
};
};
"opencode-go" = {
compat = {
supportsLongCacheRetention = true;
"compat" = {
"supportsLongCacheRetention" = true;
"sendSessionAffinityHeaders" = true;
};
};
};
@@ -223,6 +227,45 @@
};
};
# open-tui.json config
home.file.".pi/agent/open-tui.json" = {
text = builtins.toJSON {
enabled = true;
settingsLanguage = "en";
cursorStyle = "block";
fullscreen = {
wheelScrollLines = 4;
};
icons = {
mode = "auto";
};
footerSegments = {
cwd = true;
sessionName = false;
gitBranch = true;
gitStatus = true;
gitCommit = false;
runtime = true;
context = true;
tokens = true;
cost = true;
extensionStatuses = false;
};
telemetry = {
enabled = true;
tps = false;
ttft = false;
duration = true;
tokens = true;
stalls = true;
cost = true;
};
thinkingPeek = {
lines = 1;
};
};
};
# pi-spark config
home.file.".pi/agent/spark.json" = {
text = builtins.toJSON {