Repository navigation
feat(ccc): realtime hints, shell completions, omp feature scan - #43
Merged
Merged
Conversation
… mod 8sync-hints), shell completions `8sync ccc hint [--complete <token>] [--json]` (crates/cli/src/verbs/ccc/hint.rs) computes, from local files only, a ghost-text suggestion for the next prompt (open /ship-loop, own urgent flag, bigram over ~/.claude/history.jsonl filtered by project, then git state), a <= 2-line band (loop · branch ↑ahead ✎dirty · urgent · watchdog alert) and typeahead rows for `/skill`, `8sync <cmd>` and `ccc <verb>` tokens. One `git status --porcelain=v2` with a 50 ms budget; no network, no gh, no model. Mod `8sync-hints` (assets/claude/skills/8sync-hints, Claude Code function hooks) draws it: session.start + main-loop turn.complete + every 20 s while idle → `$.prompt.suggest`; prompt.autocomplete → `--complete` (skill-name tokens only, not at the box start where the engine's own menu lists skills); AbovePrompt band with an "Ẩn" button. `8sync` is never awaited on the prompt/turn path and is silent on any failure; the session id reaches it as CLAUDE_CODE_SESSION_ID so the own-urgency hint works. The bigram never repeats a prompt that carries a secret-looking token (secret_mask) or a collapsed paste placeholder, reads only the last 512 KiB of history (lossy UTF-8, partial first line skipped), and untracked files count as dirty. Installed by `8sync ccc kit` (KIT_FILES 29 → 34) into ~/.claude/skills/8sync-hints, which the engine auto-loads. `8sync completions <bash|zsh|fish|powershell|elvish>` (clap_complete over `crate::command()`). research/omp-features.md: omp 18.11.1 feature scan (MIT, ideas only) — ported this batch: ghost text/predict, typeahead with descriptions, context-aware suggestion, shell completion. Tests: hint_* (14, latency < 50 ms on a real git repo + 41 skills + 512 KiB history), completions_* (3), kit_installs_the_hints_mod, `claude plugin validate|test` (8), scripts/uat/hints-load.sh (claude -p --plugin-dir, haiku). Reviewer + QA UAT findings folded in (su-code/ship/ccc-hints/LOOP.md). Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI run 38837734481: on windows-latest `git status` did not answer within 50 ms, so the hint band had no branch and two hint tests failed. The git call runs beside the prompt (the mod never awaits it), so a 300 ms budget costs nothing; our own work still stays under 50 ms (latency test now measures both). The real-repo test reads git with a generous test-only budget so a loaded runner cannot flake it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 tasks done
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.
Summary
8sync ccc hint: realtime ghost text, typeahead rows and an above-prompt band inside Claude Code (mod8sync-hints, installed by8sync ccc kit).8sync completions <shell>: shell tab-completion.research/omp-features.md: omp feature scan (ideas only, MIT).Test plan
cargo test -p su-code hint_(14),completions_,kit_claude plugin validate+claude plugin test(8) for the modscripts/uat/hints-load.sh(mod loads inclaude -p)🤖 Generated with Claude Code