Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

cli: garbled usage text, omitted help flags, zero token reporting in do --json, and workspace defaulting

オープン
#1,558 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go

調査の方向性

Start with cmd/codeaf/main.go and inspect the help text and usage templates around line 479, then review cmd/codeaf/do.go for token aggregation and cmd/codeaf/engine.go for workspace defaults. Run the listed help, JSON, and engine commands from a repository to reproduce the issues. Done means corrected help coverage and wording, accurate token values in do --json, and repository-aware workspace defaults.

索引モデルが issue の本文から書いたものです。

説明

area:headless bug sev:papercut
Summary

CLI help text contains syntax errors and missing flag documentation, codeaf do --json omits token counts, and engine workspace flags default to user home instead of current directory.

Items & Observed Behavior
  1. Garbled CLI help sentence: Line 479 of cmd/codeaf/main.go contains a malformed sentence: "None takes --yolo, and What do and run can still refuse is a plan whose price crosses".
  2. Omitted CLI flags in --help: codeaf --help omits documentation for do --slots, --best, --cheap, --pin, --check-model, chat --max-cost, --max-hours, and the engine subcommand.
  3. Zero token count in do --json: Running codeaf do --json outputs "tokens": {"in": 0, "out": 0} despite reporting non-zero "spend_usd".
  4. Engine workspace defaults to home: Running codeaf engine --status or codeaf engine --stop from within a repository defaults --workspace to ~ instead of the current working directory.
Expected Behavior
  • Help and usage strings must be grammatically correct and list all supported flags.
  • do --json output must accurately aggregate and report token usage.
  • Subcommands should detect and use the active git root / working directory by default.
Root Cause / Location
  • cmd/codeaf/main.go: CLI help documentation and string templates.
  • cmd/codeaf/do.go: Token counter aggregation into the JSON envelope.
  • cmd/codeaf/engine.go: Default workspace resolution logic.

—
Drafted with CodeAF · reviewed and owned by the author

主要言語
Go
スター
115
フォーク
14
平均マージ
9時間 37分
マージ済み PR(30日)
755

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Agent-Field/CodeAF のほかの issue

Agent-Field/CodeAF の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。