Skip to content

feat: Add /compact command for exporting chat conversations - #4

Merged
edenreich merged 5 commits into
mainfrom
claude/issue-2-20250810-0859
Aug 10, 2025
Merged

edenreich merged 5 commits into
mainfrom
claude/issue-2-20250810-0859

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Closes #2

Adds a new /compact command to chat sessions that exports conversation history to markdown files.

Changes

  • Add CompactConfig to configuration system with configurable output directory
  • Implement /compact command in chat sessions to export conversation history
  • Support rich markdown formatting with role indicators and timestamps
  • Include tool calls and arguments with proper JSON syntax highlighting
  • Handle all message types (User, Assistant, System, Tool)
  • Provide user feedback with file paths and message counts
  • Update documentation in README.md and CLAUDE.md

Usage

In any chat session, simply type /compact to export the current conversation to a timestamped markdown file in the configured output directory (default: .infer/).

Generated with Claude Code

claude Bot and others added 5 commits August 10, 2025 09:04
- Add CompactConfig to configuration system with configurable output directory
- Implement /compact command in chat sessions to export conversation history
- Support rich markdown formatting with role indicators and timestamps
- Include tool calls and arguments with proper JSON syntax highlighting
- Handle all message types (User, Assistant, System, Tool)
- Provide user feedback with file paths and message counts
- Update documentation in README.md and CLAUDE.md

Co-authored-by: Eden Reich <[email protected]>
@edenreich
edenreich merged commit f5380e8 into main Aug 10, 2025
@edenreich
edenreich deleted the claude/issue-2-20250810-0859 branch August 10, 2025 14:35
inference-gateway-releaser Bot pushed a commit that referenced this pull request Aug 10, 2025
## [0.2.0](v0.1.15...v0.2.0) (2025-08-10)

### 🚀 Features

* Add /compact command for exporting chat conversations ([#4](#4)) ([f5380e8](f5380e8)), closes [#2](#2)
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add /compact command

1 participant