Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,558 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 37 phút
Pull request đã merge (30 ngày)
755

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.