Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Geschlossen
#1,558 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Go
Sterne
115
Forks
14
Ø Merge
11 Std. 32 Min.
Gemergte PRs (30 T.)
747

Entwicklungsumgebung

Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Agent-Field/CodeAF

Alle Issues in Agent-Field/CodeAF

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.