da99301210
Three filters to stop machine-generated prompts polluting the mined task pool (they dominated ~80% of tasks on this machine): - _is_meta_prompt: drop expanded slash-command bodies (<command-message> tags or '# /' headers) — plugin self-invocations are not user intents - _AGENT_SESSION_MARKERS + _is_agent_session: skip sessions whose first prompt is another tool's agent brief (claude-mem observers, CLAUDE.md critic sub-agents, SkillOpt-Sleep's own command body) - load walk: skip <session>/subagents/ dirs and agent-*.jsonl files — Agent-tool sidechain transcripts are Claude-authored, not user tasks Verified: harvest went from 120 sessions / mostly-noise tasks to 55 sessions / 38 real user tasks. Co-authored-by: codeL1985 <l@cypherlab.tech> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>