feat(skills): open-threads — sweep recent sessions, propose a consolidated spawn plan - #648
Draft
aarontrowbridge wants to merge 1 commit into
Draft
feat(skills): open-threads — sweep recent sessions, propose a consolidated spawn plan#648aarontrowbridge wants to merge 1 commit into
aarontrowbridge wants to merge 1 commit into
Conversation
…dated spawn plan (#646) The fleet's aggregated chat DB holds weeks of unclosed threads; nothing surfaces them. This skill codifies the sweep-and-resume pass: a read-only SQLite recipe (top-level sessions in a window, last assistant text per session, pending todos), a five-bucket classification (BLOCKED-ON-USER / INTERRUPTED / PARKED / AWAITING-REVIEW / STALE), consolidation of spawnable threads into at most 3-4 THEME-scoped sessions with self-contained seed prompts, and — only on explicit confirmation — one amicode_session call per theme (#641's spawn tool; graceful inline fallback when it isn't deployed). The DB recipe is verified verbatim against the live fleet server DB (97 sessions in a 14-day window → 60 after the noise filter; todo and last-text extraction working). Blocked-on-user and awaiting-review threads are deliberately never spawn candidates — a fresh session cannot press the button only the human can press.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #646
What
A public skill that turns the fleet's chat history into a resumption plan: sweep recent sessions, classify open threads, consolidate the spawnable ones into a few theme-scoped fresh sessions, and — on confirmation — spool them via
amicode_session(#641).The doctrine, in one line: one session per THEME, never one per thread; BLOCKED-ON-USER and AWAITING-REVIEW threads are reported, never spawned; seed prompts are self-contained (paths, PR numbers, parked next-steps verbatim) because the child session starts with zero memory of the sweep.
Contents
packages/extension/skills/open-threads/SKILL.md— frontmatter per convention (surface: public, agents[researcher, director]), usage block, and the full procedure: DB resolution (OPENCODE_DB→ default path, read-only URI, run-on-the-server rule), the tested SQLite recipe, classification buckets, consolidation rules (cap 3–4, tab-label titles,freshvs the rarefork), thequestion-tool confirm gate, and the honest degradation path when the spawn tool isn't deployed.Evidence
Sequencing
Depends on nothing at runtime — the skill degrades honestly when
amicode_session(#641) isn't deployed yet (report + inline-continuation offer). Once #641 lands and ships, the spawn step activates.