# Distill Pending

> Distill Pending is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Process pending transcript distillation

- Skill name: `distill-pending`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/workflow/distill-pending/SKILL.md
- Repository: majiayu000/claude-skill-registry (498 GitHub stars when collected)

## SKILL.md

# Distill Pending Sessions

Trigger distillation of pending transcripts and check distillation status.

## How Distillation Works

1. **Automatic**: The daemon distills transcripts every 5 minutes (configurable)
2. **On Compaction**: PreCompact hook triggers immediate distillation before context is lost
3. **On Session Start**: SessionStart hook triggers distillation of any pending work

## Manual Trigger

If you need to manually trigger distillation for the current session:

```bash
# Add to queue for daemon processing
echo '{"tool":"distill_trigger","args":{"session_id":"CURRENT_SESSION_ID"},"ts":'$(date +%s)'}' >> /tmp/chitta-queue.jsonl
```

## Check Distillation Status

View registered transcripts and their distillation state:

```bash
chitta transcript_list
```

This shows:
- `session_id`: Transcript identifier
- `last_processed_line`: How many lines have been distilled
- `distilled`: Whether any distillation has occurred
- `realm`: Project context

## Distillation Output

Distilled learnings are stored as memories with:
- `[learn]` prefix for extracted insights
- SSL format for efficient storage
- Connected via triplets for graph navigation

## Configuration

Daemon distillation settings (in `chittad --help`):
- `--distill-interval MINS`: Check interval (default: 5)
- `--distill-min-turns N`: Min turns before distilling (default: 4)
- `--distill-model MODEL`: LLM model for extraction
- `--no-distill`: Disable automatic distillation

## Troubleshooting

If distillation isn't running:
1. Check daemon is running: `chitta health_check`
2. Check opencode is available: `which opencode`
3. Check transcript is registered: `chitta transcript_list`
4. Check queue is being processed: `ls -la /tmp/chitta-queue.jsonl*`

---

Source: https://www.openparable.com/skill/documents/distill-pending (OpenParable). Cite the canonical URL above.
