oh-my-opencode model structure for v3.x

This commit is contained in:
m3tm3re
2026-01-24 18:09:42 +01:00
parent 2449532b30
commit b6fa6c1bcf
3 changed files with 40 additions and 156 deletions

30
flake.lock generated
View File

@@ -24,17 +24,14 @@
"agents": { "agents": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1768756367, "lastModified": 1769242935,
"narHash": "sha256-s6AVS1NHXtfc9m4ccSM1+VzC2pjE6dfx9RT7JmELZpo=", "narHash": "sha256-3Ey1NAm4EKBA14AvUvq6Hv6KQvbSvWxB4gha0LBkqpo=",
"ref": "refs/heads/master", "path": "/home/m3tam3re/p/MISC/AGENTS",
"rev": "8ebb30fb2b50026034ba87e8c0aca63b09a993b3", "type": "path"
"revCount": 10,
"type": "git",
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
}, },
"original": { "original": {
"type": "git", "path": "/home/m3tam3re/p/MISC/AGENTS",
"url": "https://code.m3ta.dev/m3tam3re/AGENTS" "type": "path"
} }
}, },
"base16-schemes": { "base16-schemes": {
@@ -244,14 +241,17 @@
"opencode": "opencode" "opencode": "opencode"
}, },
"locked": { "locked": {
"lastModified": 1769186400, "lastModified": 1769220120,
"narHash": "sha256-9e9yvKJPufg0mTroH+vUUzxp+eX1tvy5QLSzKSw6uLI=", "narHash": "sha256-XpGKzBkWK+yCTUiXDB6Pg5mzbrf75QS1k505rz7TxCU=",
"path": "/home/m3tam3re/p/NIX/nixpkgs", "ref": "refs/heads/master",
"type": "path" "rev": "ec315e05343a260bbf99f0acc9a8157aef440c75",
"revCount": 69,
"type": "git",
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
}, },
"original": { "original": {
"path": "/home/m3tam3re/p/NIX/nixpkgs", "type": "git",
"type": "path" "url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
} }
}, },
"nix-colors": { "nix-colors": {

View File

@@ -45,8 +45,8 @@
nix-colors.url = "github:misterio77/nix-colors"; nix-colors.url = "github:misterio77/nix-colors";
agents = { agents = {
# url = "path:/home/m3tam3re/p/MISC/AGENTS"; url = "path:/home/m3tam3re/p/MISC/AGENTS";
url = "git+https://code.m3ta.dev/m3tam3re/AGENTS"; # url = "git+https://code.m3ta.dev/m3tam3re/AGENTS";
flake = false; flake = false;
}; };
}; };

View File

@@ -204,171 +204,55 @@
"$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"; "$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
google_auth = false; google_auth = false;
agents = { agents = {
Sisyphus = { sisyphus = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "allow";
bash = {
"*" = "allow";
"rm *" = "ask";
"rmdir *" = "ask";
"mv *" = "ask";
"chmod *" = "ask";
"chown *" = "ask";
"git *" = "ask";
"git status*" = "allow";
"git log*" = "allow";
"git diff*" = "allow";
"git branch*" = "allow";
"git show*" = "allow";
"git stash list*" = "allow";
"git remote -v" = "allow";
"git add *" = "allow";
"git commit *" = "allow";
"jj *" = "ask";
"jj status" = "allow";
"jj log*" = "allow";
"jj diff*" = "allow";
"jj show*" = "allow";
"npm *" = "ask";
"npx *" = "ask";
"bun *" = "ask";
"bunx *" = "ask";
"uv *" = "ask";
"pip *" = "ask";
"pip3 *" = "ask";
"yarn *" = "ask";
"pnpm *" = "ask";
"cargo *" = "ask";
"go *" = "ask";
"make *" = "ask";
"dd *" = "deny";
"mkfs*" = "deny";
"fdisk *" = "deny";
"parted *" = "deny";
"eval *" = "deny";
"source *" = "deny";
"curl *|*sh" = "deny";
"wget *|*sh" = "deny";
"sudo *" = "deny";
"su *" = "deny";
"systemctl *" = "deny";
"service *" = "deny";
"shutdown *" = "deny";
"reboot*" = "deny";
"init *" = "deny";
"> /dev/*" = "deny";
"cat * > /dev/*" = "deny";
};
external_directory = "ask";
doom_loop = "ask";
};
};
librarian = {
model = "opencode/glm-4.7-free";
permission = {
edit = "deny";
bash = "deny";
};
};
explore = {
model = "zai-coding-plan/glm-4.5-air";
permission = {
edit = "deny";
bash = "deny";
};
}; };
oracle = { oracle = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "deny";
bash = "deny";
};
}; };
frontend-ui-ux-engineer = { librarian = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "allow";
bash = {
"*" = "ask";
"npm *" = "ask";
"npx *" = "ask";
"bun *" = "ask";
"bunx *" = "ask";
"rm *" = "ask";
"mv *" = "ask";
"dd *" = "deny";
"mkfs*" = "deny";
"sudo *" = "deny";
"curl *|*sh" = "deny";
"wget *|*sh" = "deny";
};
};
}; };
document-writer = { explore = {
model = "zai-coding-plan/glm-4.5-air"; model = "zai-coding-plan/glm-4.5-air";
permission = {
edit = "allow";
bash = "deny";
};
}; };
multimodal-looker = { multimodal-looker = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.6v";
permission = {
edit = "deny";
bash = "deny";
};
}; };
"Prometheus (Planner)" = { prometheus = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "deny";
bash = "allow";
};
}; };
"Metis (Plan Consultant)" = { metis = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "deny";
bash = "allow";
};
}; };
"Momus (Plan Reviewer)" = { momus = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "deny";
bash = "allow";
};
}; };
"Atlas" = { atlas = {
model = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
permission = {
edit = "deny";
bash = "allow";
};
}; };
}; };
"categories" = { categories = {
"visual-engineering" = { visual-engineering = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
"ultrabrain" = { ultrabrain = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
"artistry" = { artistry = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
"quick" = { quick = {
"model" = "zai-coding-plan/glm-4.5-ai"; model = "zai-coding-plan/glm-4.7";
}; };
"unspecified-low" = { unspecified-low = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
"unspecified-high" = { unspecified-high = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
"writing" = { writing = {
"model" = "zai-coding-plan/glm-4.7"; model = "zai-coding-plan/glm-4.7";
}; };
}; };
disabled_mcps = ["context7" "websearch"]; disabled_mcps = ["context7" "websearch"];