Scope decision: minimal CLI for one-off scripted prompts?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず chatlas/_chat.py、chatlas/_auto.py、pyproject.toml を読み、次に提案されているコマンドと列挙された代替案を確認します。完了条件は、メンテナーが CLI に価値があるかどうかを判断し、最小限の v1 のスコープを記録するか、提案をクローズすることです。実装はその判断を待つ必要があります。
索引モデルが issue の本文から書いたものです。
説明
Motivation
Simon Willison's llm is CLI-first — cat file.py | llm "explain this" — and that shell-scriptability is a large part of its ~500k monthly downloads; it owns the "one-off scripted prompt" niche. chatlas has Chat.console() (chatlas/_chat.py, an interactive REPL loop over input()/chat()), but no non-interactive shell entry point, and no console-script registered in pyproject.toml. ellmer, the R sibling, has no CLI at all — R isn't typically invoked as a Unix filter the way Python scripts are, so this isn't something we can just "align with ellmer" on. This is filed as an open question, not a commitment.
Proposed approach (sketch, for discussion)
A minimal chatlas console-script, thin enough to not become a second product:
echo "def f(x): return x*2" | chatlas -m anthropic/claude-sonnet-4-6 "review this"
chatlas "what is 2+2" # default provider/model via ChatAuto()
chatlas -m google "summarize" --schema mymod:Answer < notes.txt
Built directly on ChatAuto (chatlas/_auto.py), which already resolves "provider/model" strings and the CHATLAS_CHAT_PROVIDER_MODEL env var — the CLI would just be an argparse shim over it:
- Positional prompt argument, or read from stdin if piped (mirroring
cat file | llm "..."). -m/--modelmaps straight toChatAuto'sprovider_modelpositional arg.--schema module:ClassNameimportable Pydantic model, feedingchat_structured(data_model=...).- No history/session persistence, no fragments/templates system, no plugin ecosystem — those are exactly the things that make
llma bigger maintenance surface, and are explicitly out of scope for a v1.
Alternatives / prior art
- Status quo: users write a 5-line Python script themselves (
ChatAuto().chat(sys.stdin.read())). Arguably that's already "minimal enough" and keeps chatlas a library, not an app. - Point people at
llm: it already does this well, is provider-pluggable, and is actively maintained — a chatlas CLI could just be redundant surface area with a different provider list to keep in sync. - ellmer has no CLI; there's no cross-project precedent to inherit here either way.
Arguments for
- Trivial surface area if scoped to "single prompt in, text out."
- Adoption funnel — a
pip install chatlasshell one-liner is a low-friction discovery path for Python + posit users. ChatAutoalready does the heavy lifting; this is largely an argparse wrapper.
Arguments against
llmalready owns this niche well; differentiation is unclear.- Any CLI, once shipped, accrues feature requests (session history, output formats, piping semantics) that pull toward
llm-scope. - Not ellmer-aligned (no R precedent), and chatlas has generally stayed close to ellmer's API surface philosophy.
Open questions
Is this worth doing at all, and if so, how minimal can v1 stay? Maintainer input requested before any implementation work starts.
Drafted from a competitive review of llm / Pydantic AI / LangChain / LiteLLM (July 2026); filed via Claude Code on behalf of @cpsievert.
- 主要言語
- Python
- スター
- 179
- フォーク
- 32
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
posit-dev/chatlas のほかの issue
-
A streaming text delta that repeats everything streamed so far is missing from the recorded turn対応中かも @cpsievert が 81 日前に担当しました。 オープンai-triage:done Priority: Medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
ai-triage:needs-review documentation
難易度 2/5 1〜2日 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
ai-triage:done Priority: Low
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
posit-dev/chatlas の issue をすべて見る
似ている issue
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
country:US rating:6 request-theme type:TV SHOW
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
LizardByte/ThemerrDB#10501 · コメント 1 件 ·
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
agentscope-ai/agentscope#4563 ·
メンテナーはふだん 2 日以内に返信
-
comp/desktop desktop/chat P3 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
NousResearch/hermes-agent#164451 ·
メンテナーはふだん 1 日以内に返信
-
external integration integration-submission
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/docs#8426 ·
メンテナーはふだん 1 日以内に返信