Skip to content

feat: Add conversations list command#331

Merged
edenreich merged 1 commit intomainfrom
feat/conversations-list-command
Dec 10, 2025
Merged

feat: Add conversations list command#331
edenreich merged 1 commit intomainfrom
feat/conversations-list-command

Conversation

@edenreich
Copy link
Contributor

@edenreich edenreich commented Dec 10, 2025

Adds a new infer conversations list command to view saved conversation history with pagination support. Includes text and JSON output formats, cost formatting, and improved gateway startup handling. The command shows conversation metadata including token usage and costs.

Key Changes:

  1. New command: infer conversations list with --limit, --offset, and --format flags
  2. Documentation: Updated CLAUDE.md and README.md with command usage
  3. Gateway improvements: Added EnsureStarted() method for consistent gateway startup
  4. Cost formatting: New FormatCost() helper with adaptive precision
  5. Tests: Comprehensive unit tests for the new functionality

Usage Examples:

# List conversations with default settings
infer conversations list

# List with pagination
infer conversations list --limit 10 --offset 20

# Output in JSON format
infer conversations list --format json

# Show only 5 most recent conversations
infer conversations list --limit 5

Technical Details:

  • Uses the existing conversation storage system
  • Supports both text (table) and JSON output formats
  • Includes proper error handling and validation
  • Follows existing code patterns and conventions

This feature enables users to easily browse and manage their conversation history, which is particularly useful for tracking usage and costs over time.

Closes #330

@edenreich edenreich merged commit e30eede into main Dec 10, 2025
5 checks passed
@edenreich edenreich deleted the feat/conversations-list-command branch December 10, 2025 22:31
ig-semantic-release-bot bot pushed a commit that referenced this pull request Dec 10, 2025
## [0.87.0](v0.86.3...v0.87.0) (2025-12-10)

### 🚀 Features

* Add conversations list command ([#331](#331)) ([e30eede](e30eede)), closes [#330](#330)
* Add max retries configuration for MCP servers ([171444e](171444e))

### ♻️ Code Refactoring

* Format CLI listings as markdown tables ([#327](#327)) ([4418122](4418122)), closes [#311](#311)
* Rename GitHub App to Github Action ([fcfdc98](fcfdc98))
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.87.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] CLI command to list conversations from the database

1 participant

Comments