Skip to content

feat(slash): /compact slash command with custom instruction #545

Open
zlb22 wants to merge 2 commits intoMoonshotAI:mainfrom
zlb22:feat/compact-instruction
Open

feat(slash): /compact slash command with custom instruction #545
zlb22 wants to merge 2 commits intoMoonshotAI:mainfrom
zlb22:feat/compact-instruction

Conversation

@zlb22
Copy link

@zlb22 zlb22 commented Dec 29, 2025

Related Issue

Resolve #544

Description

  • Fix [tool.uv.build-backend].module-name (root, kosong, kaos) to use strings so uv and hooks parse correctly.
  • Let /compact accept an optional hint /compact <summary hint> and pass it through to the compaction pipeline.
  • SimpleCompaction appends User instruction: <hint> after the default prompts.COMPACT; defaults unchanged when
    no hint is provided.
  • Update slash help text and add a unit test covering custom instruction injection.

Testing

  • uv run pytest tests/test_simple_compaction.py -q

@stdrc stdrc changed the title Feat/compact instruction feat(slash): /compact slash command with custom instruction Jan 30, 2026
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.

[Feature Request] Allow /compact to accept custom summarization instructions

1 participant