Skip to content

ChatGPT CLI v1.10.8

Choose a tag to compare

@kardolus kardolus released this 21 Jan 23:58
· 23 commits to main since this release

New Features

  • Enhanced ReAct Agent Logic:
    • Implemented improved iterative reasoning and action mechanisms.
    • The agent now recovers more gracefully from models producing invalid JSON in response.
    • Enhanced in-band recovery and error messaging for better user interaction.
    • Code reference: agent/react/react_agent.go

Improvements

  • Code Refactoring:

    • The codebase has been reorganized for greater modularity, splitting different logical parts into dedicated packages (such as core, planexec, react, and tools).
    • Clear separation of concerns, improving both readability and maintainability.
    • Code reference: Multiple files under agent/, tools/, and core/ directories.
  • Policy Enforcement Updates:

    • Improved safety checks within the agent policy model.
    • Enhanced context-specific guidance to prevent undesired actions.
    • Code reference: agent/core/policy.go
  • Improved Budget Handling:

    • Better error handling when budget constraints are exceeded, providing clearer feedback to users.
    • More robust handling of LLM token budgets, making iterative tasks more predictable.
    • Code reference: agent/core/budget.go

Bug Fixes

  • Tool Integration:

    • Fixed issues where file operations might not respect path constraints properly.
    • Addressed shell tool command handling errors, particularly with variadic arguments.
    • Code reference: Various files within tools/
  • Template Processing:

    • Resolved issues with Go template rendering within agent steps, reducing the occurrence of template syntax errors.
    • Code reference: agent/planexec/template_step.go
  • Compatibility and Resilience:

    • Corrected JSON parsing logic to handle output wrapped in markdown code fences correctly.
    • Enhanced compatibility with different JSON action types generated by the model.
    • Code reference: agent/react/react_agent.go

Other Changes

  • Testing Enhancements:
    • Expanded unit test coverage to validate new behaviors and ensure system robustness against unexpected input.
    • Increased resilience against external dependencies changes.
    • Code reference: Various test files under agent/planexec/ and agent/react/

Upgrade Notes

To upgrade to the latest version of chatgpt-cli, you may use the following methods:

  • Using Homebrew:
    brew upgrade chatgpt-cli
  • Direct Download:
    • Download the appropriate binaries for your operating system from the releases page of the project.

Ensure to back up any configuration files or essential data before you upgrade, especially if you have custom configurations in place.