Add mia
This commit is contained in:
parent
6007651e0a
commit
8ae17f0ef0
7 changed files with 370 additions and 5 deletions
|
|
@ -21,25 +21,60 @@ in
|
|||
enable = true;
|
||||
package = inputs.llm-agents.packages.${pkgs.system}.opencode;
|
||||
settings = {
|
||||
model = "glm_4_5_air";
|
||||
model = "minimax_m2_1";
|
||||
permission = {
|
||||
bash = "ask";
|
||||
bash = {
|
||||
"*" = "ask";
|
||||
|
||||
pwd = "allow";
|
||||
whoami = "allow";
|
||||
id = "allow";
|
||||
"uname*" = "allow";
|
||||
"date*" = "allow";
|
||||
|
||||
"ls*" = "allow";
|
||||
|
||||
"git status*" = "allow";
|
||||
"git diff*" = "allow";
|
||||
"git log*" = "allow";
|
||||
"git branch*" = "allow";
|
||||
"git rev-parse*" = "allow";
|
||||
"git remote -v" = "allow";
|
||||
|
||||
"node -v" = "allow";
|
||||
"npm -v" = "allow";
|
||||
"python --version" = "allow";
|
||||
"pip --version" = "allow";
|
||||
};
|
||||
|
||||
edit = "ask";
|
||||
|
||||
skill = {
|
||||
"*" = "allow";
|
||||
};
|
||||
};
|
||||
provider = {
|
||||
vllm = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
name = "vLLM";
|
||||
|
||||
options = {
|
||||
baseURL = "http://model1.lefoyer.lu:8030/v1";
|
||||
apiKey = "dummy";
|
||||
};
|
||||
|
||||
models = {
|
||||
glm_4_5_air = {
|
||||
name = "GLM 4.5 Air (local)";
|
||||
temperature = true;
|
||||
default = true;
|
||||
};
|
||||
|
||||
minimax_m2_1 = {
|
||||
name = "MiniMax M2.1 (local)";
|
||||
temperature = true;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
openai = {
|
||||
|
|
@ -65,12 +100,19 @@ in
|
|||
agent = {
|
||||
build = {
|
||||
mode = "primary";
|
||||
temperature = 0.4;
|
||||
temperature = 0.1;
|
||||
prompt = "{file:${./prompts/basic-rules.txt}}";
|
||||
};
|
||||
plan = {
|
||||
mode = "primary";
|
||||
temperature = 0.4;
|
||||
};
|
||||
debug = {
|
||||
disable = false;
|
||||
};
|
||||
review = {
|
||||
disable = false;
|
||||
};
|
||||
};
|
||||
lsp = {
|
||||
metals = {
|
||||
|
|
|
|||
13
modules/ai/prompts/basic-rules.txt
Normal file
13
modules/ai/prompts/basic-rules.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- No artifacts
|
||||
- Less code is better than more code
|
||||
- No fallback mechanisms — they hide real failures
|
||||
- Rewrite existing components over adding new ones
|
||||
- Flag obsolete files to keep the codebase lightweight
|
||||
- Avoid race conditions at all costs
|
||||
- Take your time to ultrathink when on extended thinking mode — thinking is cheaper than fixing bugs
|
||||
- Add comments only when necessary — the code should speak for itself
|
||||
- Always add meaningful logs — but only where it brings value
|
||||
- Always do production ready code
|
||||
- Code in a modular way to promote collaboration between agents - Adding features must not break the rest of the system
|
||||
|
||||
These rules aim to maintain a clean, modular and maintainable codebase while promoting effective collaboration between different agents and developers. Don't write/change any code until you're very confident (95% or more) in what needs to be done. If unclear, ask for more info.
|
||||
|
|
@ -27,7 +27,6 @@ in
|
|||
};
|
||||
|
||||
security.pki.certificateFiles = [
|
||||
"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
./certs/Foyer-Group-Root-CA.crt
|
||||
./certs/Foyer-Sub-CA.crt
|
||||
];
|
||||
|
|
@ -55,6 +54,7 @@ in
|
|||
(sbt.override { jre = jdk17; })
|
||||
mongodb-compass
|
||||
chisel
|
||||
mia
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue