chore: gofmt codebase#97
Merged
Merged
Conversation
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Apply gofmt formatting fixes across 62 existing Go files. No logic changes — whitespace, alignment, and import ordering only.
df14b00 to
a4bc275
Compare
Code Coverage ReportTotal Coverage: 53.5% Generated from commit: b54eb21 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apply gofmt formatting fixes across 62 existing Go files.
pkg/cli/andpkg/config/This PR applies
gofmtformatting across the entire codebase, standardizing struct field alignment, import ordering, indentation, and removing extraneous blank lines. The formatting changes are purely cosmetic and do not alter any runtime behavior.In addition to the formatting cleanup, the PR introduces two functional additions:
Agent mode flag: A new global
--agentflag is added that, when enabled, automatically activates JSON output formatting. This makes the CLI more suitable for programmatic callers and AI agents by ensuring structured, machine-readable responses.MCP server adapter: A new internal package (
pkg/internal/mcp) is added that adapts the urfave/cli command tree into a Model Context Protocol (MCP) server. This exposes CLI subcommands as MCP tools discoverable and invokable by AI agents. The adapter supports all common flag types (String, Bool, numeric types, Float, Duration, StringSlice) and forks the current process to execute commands. It is based on the upstreamurfave-cli-mcpproject with extensions for additional flag types.