{
  "manifest_version": "1.0.0",
  "template": {
    "id": "049a92c8-a76f-4bad-955d-b2c44bc3b6dd",
    "slug": "nolock-llamacpp-ai-coding-harness-local-",
    "name": "nolock + llama.cpp: ai coding harness + local slms (micro-agents)",
    "description": "ai coding harness + local slms (micro-agents) - unlimited free tokens",
    "url": "https://railway.com/deploy/nolock-llamacpp-ai-coding-harness-local-",
    "upstream": {
      "repo_url": "https://github.com/impacte-tech/nolock"
    }
  },
  "services": [
    {
      "name": "nolock",
      "source": {
        "repo": "https://github.com/impacte-tech/nolock"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "llamacpp",
      "source": {
        "image": "ghcr.io/ggml-org/llama.cpp:server"
      },
      "needs_volume": true,
      "volume_mount_path": "/models",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LLAMACPP_URL",
      "service": "nolock",
      "description": "internal llamacpp dns",
      "secret": false,
      "strategy": "default",
      "default": "http://llamacpp.railway.internal:8080"
    },
    {
      "key": "NOLOCK_DATA_DIR",
      "service": "nolock",
      "description": "points at the Railway volume (already set on the service)",
      "secret": false,
      "strategy": "default",
      "default": "/data/nolock"
    },
    {
      "key": "NOLOCK_WEB_TOKEN",
      "service": "nolock",
      "description": "your token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MODEL_HF",
      "service": "llamacpp",
      "description": "choose your own HF model",
      "secret": false,
      "strategy": "default",
      "default": "impacte/ullr:Q4_K_M"
    },
    {
      "key": "LLAMA_CACHE",
      "service": "llamacpp",
      "description": "model cache directory",
      "secret": false,
      "strategy": "default",
      "default": "/models"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nolock-llamacpp-ai-coding-harness-local-"
      }
    },
    "cli": "railway deploy --template nolock-llamacpp-ai-coding-harness-local-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "049a92c8-a76f-4bad-955d-b2c44bc3b6dd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5deefddb-371e-4d4d-b3c3-5fa3ac2efd97": {
                  "icon": null,
                  "name": "nolock",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/impacte-tech/nolock",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LLAMACPP_URL": {
                      "isOptional": false,
                      "description": "internal llamacpp dns",
                      "defaultValue": "http://llamacpp.railway.internal:8080"
                    },
                    "NOLOCK_DATA_DIR": {
                      "isOptional": false,
                      "description": "points at the Railway volume (already set on the service)",
                      "defaultValue": "/data/nolock"
                    },
                    "NOLOCK_WEB_TOKEN": {
                      "isOptional": false,
                      "description": "your token",
                      "defaultValue": "{{NOLOCK_WEB_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "f46a4334-513b-4e29-a44d-b85e6e7b52ae": {
                  "icon": null,
                  "name": "llamacpp",
                  "deploy": {
                    "startCommand": "sh -c 'echo MODEL_HF=[$MODEL_HF]; exec /app/llama-server -hf \"$MODEL_HF\" --host 0.0.0.0 --port 8080 --threads 4 --ctx-size 4096'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/ggml-org/llama.cpp:server"
                  },
                  "variables": {
                    "MODEL_HF": {
                      "isOptional": false,
                      "description": "choose your own HF model",
                      "defaultValue": "impacte/ullr:Q4_K_M"
                    },
                    "LLAMA_CACHE": {
                      "isOptional": false,
                      "description": "model cache directory",
                      "defaultValue": "/models"
                    }
                  },
                  "volumeMounts": {
                    "f46a4334-513b-4e29-a44d-b85e6e7b52ae": {
                      "mountPath": "/models"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T04:14:34.944Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T02:22:20.519Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9513060236774f2a9b04",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 181,
    "typical_build_seconds": 152,
    "typical_start_seconds": 10,
    "slowest_service": "nolock"
  }
}
