Go to file
Hongming Wang bf19d45434 feat(template): own cli_executor locally (universal-runtime refactor)
Mirrors molecule-ai-workspace-template-claude-code's PR #13: move the
adapter-specific executor file out of molecule-runtime into the template
that consumes it (molecule-core task #87 / #122).

Adds:
  - cli_executor.py (465 LOC) — copied verbatim from
    molecule-core/workspace/cli_executor.py @ commit 66b9c040.
  - Dockerfile: COPY cli_executor.py . alongside adapter.py.

The adapter at adapter.py:118 already does
`from cli_executor import CLIAgentExecutor` — once this file lands at
/app/, Python's import order picks the local copy over the same-named
module that older molecule-runtime versions ship under site-packages.

Pure additive at this stage — molecule-runtime still ships the file too,
so any image built from this template just has two copies on disk
(local /app shadows the site-packages one). No behavior change.

Note on the file's RUNTIME_PRESETS dict: it contains entries for
codex / ollama / gemini-cli, but neither codex nor ollama has a
template repo today (verified 2026-04-27 against the
Molecule-AI/molecule-ai-workspace-template-* repo list). They're
unreachable in production. The presets travel with the file here only
because trimming them would diverge from the molecule-core source —
when the molecule-core deletion lands they'll vanish naturally.

Sequencing (the molecule-core PR follows AFTER this image rebuilds):
  1. THIS PR — template gets local copy, image rebuilds with it
     (current PR; safe because no removal yet)
  2. molecule-core PR — drop workspace/cli_executor.py, bump runtime
     PyPI version. Templates that haven't pulled the new runtime
     version still work because their local copy is unchanged.

Reverse order (drop from runtime first) would break any template
image build pulling the latest runtime mid-sequence.

Source: molecule-core/workspace/cli_executor.py @ 66b9c040 (commit
hash pinned for traceability of any future divergence).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 00:57:52 -07:00
.github/workflows ci(publish-image): accept repository_dispatch from monorepo runtime publish (#7) 2026-04-26 12:42:52 -07:00
.molecule-ci/scripts fix(config): add models[] array for canvas model dropdown (#4) 2026-04-22 19:00:47 +00:00
runbooks docs: add CLAUDE.md, known-issues.md, and runbooks/local-dev-setup.md 2026-04-21 10:55:10 +00:00
__init__.py feat: add adapter code + Dockerfile for standalone deployment 2026-04-16 04:27:22 -07:00
.gitattributes chore: enforce LF line endings on .sh/.py/.yaml/Dockerfile 2026-04-24 00:36:40 -07:00
.gitignore chore: gitignore credentials for molecule-ai-workspace-template-gemini-cli 2026-04-16 09:15:56 -07:00
adapter.py feat: add adapter code + Dockerfile for standalone deployment 2026-04-16 04:27:22 -07:00
CLAUDE.md docs: add CLAUDE.md, known-issues.md, and runbooks/local-dev-setup.md 2026-04-21 10:55:10 +00:00
cli_executor.py feat(template): own cli_executor locally (universal-runtime refactor) 2026-04-27 00:57:52 -07:00
config.yaml fix(config): add models[] array for canvas model dropdown (#4) 2026-04-22 19:00:47 +00:00
Dockerfile feat(template): own cli_executor locally (universal-runtime refactor) 2026-04-27 00:57:52 -07:00
known-issues.md docs: add CLAUDE.md, known-issues.md, and runbooks/local-dev-setup.md 2026-04-21 10:55:10 +00:00
README.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:46 -07:00
requirements.txt feat: add adapter code + Dockerfile for standalone deployment 2026-04-16 04:27:22 -07:00
system-prompt.md feat: initial template content (extracted from molecule-monorepo) 2026-04-16 03:05:46 -07:00

template-gemini-cli

Molecule AI workspace template for the gemini-cli runtime.

Usage

In Molecule AI canvas

Select this template when creating a new workspace — it appears in the template picker automatically.

From a URL (community install)

Paste this URL when creating a workspace:

github://Molecule-AI/template-gemini-cli

Files

  • config.yaml — workspace configuration (runtime, model, skills, etc.)
  • system-prompt.md — agent system prompt (if present)

Schema version

template_schema_version: 1 — compatible with Molecule AI platform v1.x.

License

Business Source License 1.1 — © Molecule AI.