mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 04:44:19 +01:00
Three verifications before the push read opencode 1.19.4's own code and replayed it. The notes claimed more than it does: its patterns tell case apart, so a host in capitals is not refused, and what opencode reads after the rules can allow what they deny: a project's own config, an agent's own permission, a key added after the block in a global config that holds it, and an "Always" given to a command, which the approval mode below now says to answer "Once". Under AGENT_AUTO=1 a user's own rules give way to its "*" only when the config has no "*" of its own. The proxy reads no tool arguments past a streamed request's first MiB. A config of the user's never gets the rules, though install.sh has long merged autoupdate and compaction into it. The two Agent tab claims were measured with opencode run under its permission, and say so. Cohere's post names 169.254.169.254 alone: 100.100.100.200 is Alibaba Cloud's own metadata address, and the title, the banner and the docs say an Alibaba Cloud host or a cloud metadata address. The four publishers are those whose builds write the hosts, not the PUT. aliyuncs.com is Alibaba Cloud's whole domain, DashScope and its registry included. The unit template, docs/cockpit.md and the install note of the Agent tab said deny rules still held under AGENT_AUTO=1. install.sh's memory comment says GiB and cudaMalloc, as the memory pages do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
2.1 KiB
Plaintext
44 lines
2.1 KiB
Plaintext
[Unit]
|
|
Description=opencode web server for the Spark Cockpit Agent tab (loopback :__OPENCODE_PORT__)
|
|
Documentation=https://github.com/hasso5703/dgx-spark-qwen38
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__USER__
|
|
Group=__GROUP__
|
|
WorkingDirectory=__HOME__
|
|
Environment=HOME=__HOME__
|
|
# Your PATH at install time, so the agent's tools (git, node, uvx for the MCP
|
|
# servers, opencode itself) resolve the way they do in your terminal.
|
|
Environment=PATH=__PATH__
|
|
# The Basic credentials the cockpit relay presents (OPENCODE_SERVER_USERNAME and
|
|
# OPENCODE_SERVER_PASSWORD), generated once by install-agent.sh, mode 0600.
|
|
EnvironmentFile=__HOME__/.config/qwen38/opencode-web.env
|
|
# Same cap as the oc launcher: without it long thinking is cut at 32000 tokens
|
|
# and the turn ends silently.
|
|
Environment=OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX=__OUTPUT_TOKEN_MAX__
|
|
# The box's own providers and default model, whatever your global opencode config
|
|
# says: opencode loads this file over it (a missing file is ignored). Without it a
|
|
# fresh box's Agent tab had only opencode's hosted provider and answered with its free
|
|
# cloud model, big-pickle, instead of the model this box serves (2026-09-23).
|
|
Environment=OPENCODE_CONFIG=__HOME__/.config/qwen38/opencode.json
|
|
# Tool permissions. opencode's own defaults ask before a tool touches a path outside
|
|
# the session's project and on a repeated identical call; AGENT_AUTO=1 at install
|
|
# approves every tool call instead, the same autonomy as the oc launcher's --yolo.
|
|
# Its "*" comes after the rules of your opencode config, deny included, unless your
|
|
# config has a "*" of its own. This repo's shell rules for Alibaba Cloud's hosts
|
|
# and the cloud metadata addresses come again after it (SECURITY.md).
|
|
__AUTO_LINE__
|
|
# Loopback only: the cockpit relay is the one thing that reaches this server.
|
|
ExecStart=__OPENCODE_BIN__ serve --hostname 127.0.0.1 --port __OPENCODE_PORT__ --print-logs --log-level INFO
|
|
Restart=always
|
|
RestartSec=3
|
|
# A stop takes the MCP servers and any tool the agent still runs down with it.
|
|
KillMode=control-group
|
|
TimeoutStopSec=20
|
|
LimitNOFILE=65536
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|