Split the oversized files — pure file moves, no behavior change
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 18/100
調査の方向性
Start with one bounded target, such as core/plugins/inferenceparser/plugin.go and its existing anthropic.go and responses.go siblings, and move the OpenAI dialect into openai.go without changing signatures. Run the existing package tests before and after each move to confirm no behavior change. Scope covers nine large files, so the issue is better split into one PR per file; done means the original file shrinks and the same tests pass unchanged.
索引モデルが issue の本文から書いたものです。
説明
What
Several files have outgrown their packages' own discipline. In each case the seams are already clean function boundaries, so these are pure same-package file moves — no signature changes, tests untouched:
core/listener/forwardproxy/server.go(2954 lines) — five jobs: relay core, CONNECT tunneling, bridged-tunnel TLS (+CA/handshake helpers), session identity/attribution (~430 lines, the densest cluster), SSE relay. Split intotunnel.go,bridging.go,identity.go,record.go,stream.go; server.go lands ~600. The package already proved this style withprocess.go/sniff.go/transparent.go.cmd/agentop/tui/app.go(3089) — model state, a ~900-lineupdate()type switch (~55 case types), view dispatch, yank file I/O, subprocess plumbing. Move yank I/O and exec wrappers out; splitupdate()by message family to match the per-pane files.core/observe/claude/harvest.go(2040) — orchestration, filesystem scan, transcript parsing, and ~800 lines of pure text scrubbing (scrubRunes,stripANSI,stripHarnessSpans, …). Extractscrub.go+prompt.go.core/session/store.go(1472) — append/trim engine, pub/sub, views, summary/money (~365 lines), lifecycle. Extractsummary.go+subscribe.go.core/cost/usage/usage.go(1846) +snapshot.go(1584) — extractwindow.go(pure time math, ~500 lines),labels.go,series.go.core/plugins/cpex/cmf_body.go(1128) — three separable jobs: JSON-presentability heuristics, extension→CMF part mapping, MCP body mutation. Extract three files.core/plugins/inferenceparser/plugin.go(1075) — the entire OpenAI dialect lives inline (~450 lines: parse, frame fold, SSE, wire types) thoughanthropic.goandresponses.goexist as the per-dialect pattern. Extractopenai.go.cmd/agentop/cmd_bob.go(2159) — contains a hidden ~400-line byte-level JSON editor (bobSetKey/bobFindMember/bobSpliceOut/…,:620-1028) with nothing to do with Bob semantics. Extractbob_settings_json.gowith its own test surface.cmd/cortex/main.go—main()is ~900 lines of assembly (:322-1220): session store + ledger + archive wiring, TLS-bridge assembly (~130 lines), shutdown choreography. The package already haslocal.go,archive.go,listeners.go,supervise.go— drain the three blocks into them.
Lower priority, same pattern: cmd/agentop/tui/keys.go (1549 — layout() and handleEditKey have nothing to do with keys) and tui/sessions_pane.go (1769 — the ~500-line title/grapheme block is self-contained and owns a 3,322-line test file).
Found in the 2026-10-29 structural audit of code organization.
- 主要言語
- Go
- スター
- 21
- フォーク
- 43
- 平均マージ
- 13時間 8分
- マージ済み PR(30日)
- 267
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rossoctl/cortex のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
UI shows costs for all sessions even when drilled into a session対応中かも @esnible が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rossoctl/cortex#1116 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
CodeQL flags r.Host reaching slog in the forward proxy's debug/warn lines対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 半日 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
rossoctl/cortex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
microcks/microcks-cli#608 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug from-studio
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
esengine/DeepSeek-Reasonix#14868 ·
メンテナーはふだん 1 日以内に返信
-
Install notes print "Camunda REST API: https://" without a host when global.host is set対応中かも @irisfield が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
camunda/camunda-platform-helm#7790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
wso2/agent-manager#2220 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: zot exits with code 0 when it can't start対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
project-zot/zot#4636 ·
メンテナーはふだん 1 日以内に返信