From c1e910dc75480d6b4236b1c6c4c849712846d2af Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Tue, 24 Nov 2026 15:30:09 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20web=20research=20?= =?UTF-8?q?tools=20via=20moli=20browser=20to=20the=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install moli and include its webfetch and websearch skills for live website research. --- Dockerfile | 35 +++++++++++++++++++++++++++++------ skills.yaml | 12 ++++++++++++ 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0acf7c..2960bf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,16 +33,23 @@ ln -s /usr/local/bin/bun /usr/local/bin/node ln -s /usr/local/bin/bun /usr/local/bin/npx apt-get update -apt-get install \ +apt-get install -y --no-install-recommends \ sudo \ curl \ git \ jq \ libatomic1 \ libicu76 \ - -y - -apt-get install make gpg gpg-agent procps -y --no-install-recommends + make \ + gpg \ + gpg-agent \ + procps \ + ca-certificates \ + libfontconfig1 \ + libfreetype6 \ + libpng16-16t64 \ + fontconfig \ + fonts-dejavu-core rm -rf /var/lib/apt/lists/* /var/cache/apt @@ -95,6 +102,7 @@ EOF FOE +ARG MOLI_VERSION=latest ARG OPENCODE_VERSION=latest ARG CAVEMAN_VERSION=latest ARG AZURE_FOUNDRY_PROVIDER_REF=latest @@ -108,8 +116,6 @@ ENV OPENCODE_EXPERIMENTAL=1 ENV ENGRAM_DATA_DIR="${BUN_HOME}/.local/share/opencode/engram" ENV RTK_TELEMETRY_DISABLED=1 -ENV AGENT_BROWSER_ENGINE=lightpanda - # hadolint ignore=DL3003,SC2164,SC2102 RUN <<'FOE' @@ -296,6 +302,23 @@ curl -fsSL "${PONYTAIL_RAW_BASE}/skills/ponytail-help/SKILL.md" \ -o "${OPENCODE_CONFIG_DIR}/skills/ponytail-help/SKILL.md" \ || exit 1 +### +# moli +# +moli_resolved_version=$(resolve_github_latest_version "lexmount/moli" "${MOLI_VERSION}") || exit 1 +moli_url="https://github.com/lexmount/moli/releases/download/${moli_resolved_version}/moli-x86_64-unknown-linux-gnu.tar.gz" +curl -fsSL "${moli_url}" | tar -C /usr/local/bin -xvzf - || exit 1 +chmod +x /usr/local/bin/moli || exit 1 +moli --version || exit 1 + +# Append moli always-on section to AGENTS.md +cat >> "${OPENCODE_CONFIG_DIR}/AGENTS.md" <<-'AGENTS_MOLI' + +## moli + +For live websites or web research, use the installed moli skills: `moli-webfetch` for fetching/capturing JS-rendered pages, `moli-websearch` for keyword/image search. Prefer `moli fetch` over raw curl for JS-rendered content. +AGENTS_MOLI + ### # graphify # diff --git a/skills.yaml b/skills.yaml index 821b2a6..586b9fb 100644 --- a/skills.yaml +++ b/skills.yaml @@ -50,3 +50,15 @@ skills: - type: git-export repo: JuliusBrussee/caveman path: skills/cavecrew + + - name: moli-webfetch + steps: + - type: git-export + repo: lexmount/moli + path: skills/moli-webfetch + + - name: moli-websearch + steps: + - type: git-export + repo: lexmount/moli + path: skills/moli-websearch From c3c475044114fd249767e6edfcad975fe9db8b6b Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Tue, 24 Nov 2026 15:55:32 +0000 Subject: [PATCH 2/2] fix(docker): extract moli binary from nested archive paths --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2960bf7..3bce245 100644 --- a/Dockerfile +++ b/Dockerfile @@ -307,7 +307,7 @@ curl -fsSL "${PONYTAIL_RAW_BASE}/skills/ponytail-help/SKILL.md" \ # moli_resolved_version=$(resolve_github_latest_version "lexmount/moli" "${MOLI_VERSION}") || exit 1 moli_url="https://github.com/lexmount/moli/releases/download/${moli_resolved_version}/moli-x86_64-unknown-linux-gnu.tar.gz" -curl -fsSL "${moli_url}" | tar -C /usr/local/bin -xvzf - || exit 1 +curl -fsSL "${moli_url}" | tar -xz -C /usr/local/bin --strip-components=1 --wildcards '*/moli' || exit 1 chmod +x /usr/local/bin/moli || exit 1 moli --version || exit 1