@@ -25,7 +25,7 @@ apt-get install \
2525 libatomic1 \
2626 -y
2727
28- apt-get install make gpg -y --no-install-recommends
28+ apt-get install make gpg gpg-agent procps -y --no-install-recommends
2929
3030rm -rf /var/lib/apt/lists/* /var/cache/apt
3131
@@ -86,6 +86,7 @@ ARG OPENCODE_BUILD_DIR=/usr/local/share/opencode-build
8686ENV OPENCODE_CONFIG_DIR=/etc/opencode
8787ENV OPENCODE_EXPERIMENTAL=1
8888ENV ENGRAM_DATA_DIR=/home/bun/.local/share/opencode/engram
89+ ENV RTK_TELEMETRY_DISABLED=1
8990
9091ENV AGENT_BROWSER_ENGINE=lightpanda
9192
@@ -157,7 +158,7 @@ engram_url="https://github.com/Gentleman-Programming/engram/releases/download/${
157158(
158159 curl -fsSL "${engram_url}" | tar -C /usr/local/bin -xvzf - engram \
159160 && curl -fsSL "https://raw.githubusercontent.com/Gentleman-Programming/engram/refs/tags/${engram_resolved_version}/plugin/opencode/engram.ts" -o "${OPENCODE_PLUGINS_DIR}/engram.ts"
160- )
161+ ) || exit 1
161162
162163# ##
163164# UV
@@ -170,6 +171,16 @@ curl -fsSL "${uv_url}" | tar -C /usr/local/bin -xvzf - --strip-components=1 --wi
170171# jcodemunch-mcp
171172uv pip install --system jcodemunch-mcp || exit 1
172173
174+ # #
175+ # rtk
176+ (
177+ curl -fsSL "https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh" \
178+ | RTK_INSTALL_DIR=/usr/local/bin sh
179+ ) || exit 1
180+
181+ curl -fsSL "https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/hooks/opencode/rtk.ts" -o "${OPENCODE_PLUGINS_DIR}/rtk.ts" \
182+ || exit 1
183+
173184# ##
174185# cleanup
175186rm -rf /root/.bun
@@ -194,8 +205,7 @@ cat >"${OPENCODE_CONFIG_DIR}/opencode.json" <<-'EOF'
194205{
195206 "$schema" : "https://opencode.ai/config.json" ,
196207 "plugin" : [
197- "engram" ,
198- "file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth"
208+ "file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth" ,
199209 ],
200210 "mcp" : {
201211 "engram" : {
0 commit comments