Skip to content

Conversation

@marius-kilocode
Copy link
Collaborator

@marius-kilocode marius-kilocode commented Dec 30, 2025

Summary

Adds a new /condense command to the CLI that allows users to manually trigger context condensation for the current task.

Changes

  • Add /condense command that triggers context condensation for the active task
  • Add currentTask to CommandContext to access the current task's ID
  • Handle condenseTaskContextResponse message in CLI effects

Usage

/condense

When executed, this command will condense the conversation context to reduce token usage, which is useful when approaching context limits.

image image

@changeset-bot
Copy link

changeset-bot bot commented Dec 30, 2025

🦋 Changeset detected

Latest commit: 4d503c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kilocode/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Dec 30, 2025

✅ Previous Issues Addressed

The following issues from my previous review have been resolved:

  • Test setup now includes currentTask with proper mock data
  • Test assertion for sendWebviewMessage now correctly expects text: "test-task-123"
  • Test assertion for message type now correctly expects "system" instead of "info"
  • Error message assertion now correctly checks for "No active task"

No new issues found in the latest changes.

Review Details (8 files)

Files: condense.ts, condense.test.ts, mockContext.ts, types.ts, index.ts, effects.ts, useCommandContext.ts, cli-condense-command.md

Checked: Security, bugs, error handling, type safety, test coverage

Confidence: 95%

Recommendation: Merge

@marius-kilocode marius-kilocode enabled auto-merge (squash) January 5, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants