{
  den.aspects.opencode = {
    homeManager = {
      programs.opencode = {
        enable = true;

        settings = {
          plugin = [ "opencode-plugin-llama.cpp@latest" "opencode-goal-plugin" ];

          provider = {
            "llama.cpp" = {
              npm = "@ai-sdk/openai-compatible";
              name = "llama.cpp";
              options = {
                baseURL = "https://llama.bug.tools/v1";
              };
              models = {
                "qwen3.6-35b-a3b" = {
                  name = "qwen3.6-35b-a3b";
                };
              };
            };
          };

          command = {
            goal = {
              description = "Set a session-scoped goal and auto-continue until complete.";
              template = "$ARGUMENTS";
              agent = "build";
            };
          };
        };
      };
    };
  };
}
