docs(behavior-parity): audit slash-command + CLI-flag tables against code#154
Merged
Conversation
…code Reconcile docs/BEHAVIOR_PARITY.md with the actual source. Verified every row in the Slash-commands, CLI-flags, and Tools tables by grepping the code rather than trusting the doc. Slash commands (apps/cli/src/commands.ts BUILTIN_COMMANDS): - /init 🔄 → ✅ — runInitFlow is a real 3-phase REPL flow (scan → draft → approve-write AGENTS.md), wired in repl.ts; no longer a stub. - /bug ✗ → ✅ and /release-notes ✗ → ✅ — both registered since PR #150. - /upgrade ✓/🟡 → ✗/🔄 — there is no /upgrade slash command; it is the `deepcode upgrade` CLI subcommand (cli.ts) that prints an upgrade hint. - add missing rows: /diff (✅, PR #150) and /keybindings (🆕, DeepCode-only). - /effort wording: CLI prints the EFFORT_PARAMS-derived tier table (PR #147). - header count ~20 → ~28 shipped. - genuinely-missing commands kept 🔄 (/btw /recap /voice /teleport /desktop /background /batch /tasks /plan /login /logout /pr_comments /terminal-setup /privacy-settings /migrate-installer); skill-backed kept 🟡 (/review, /security-review, /schedule, /loop — skills confirmed under packages/core/skills). CLI flags (apps/cli/src/parse-args.ts + cli.ts): - split `--mode` / `--permission-mode`: the latter is parsed + validated but never consumed (cli.ts forwards only args.mode) → 🔄 not wired. - add `-C` / `--cd <dir>` (✅, wired via process.chdir in cli.ts, PR #148). Tools table (de-staled by PR #151) re-verified row-by-row — all markers hold: TaskTool + ctx.runSubAgent (agent.ts), all 7 TASK_TOOLS, NotebookEdit, AskUserQuestion, Enter/ExitPlanMode, Enter/ExitWorktree, ToolSearch, Cron*; ScheduleWakeup correctly⚠️ (not a tool — use CronCreate). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Owner
Author
|
Heads-up: #157 implements /recap, /login, /logout, /pr_comments and flips those rows to ✅ in BEHAVIOR_PARITY. This audit PR currently marks them 🔄 (correct when it was opened). Whichever of us merges second should keep those four rows ✅ — they're now implemented + tested. |
oratis
added a commit
that referenced
this pull request
Jun 4, 2026
…157) * feat(cli): add /recap, /login, /logout, /pr_comments parity commands Four Claude-Code slash commands that were missing (🔄 in BEHAVIOR_PARITY): - /recap — provider-summarized recap of the session so far (ctx.provider + ctx.history → runTurn; honest empty/no-provider states) - /login [key] — show auth status, or store a new DeepSeek API key (applies on next launch); /logout — clear stored creds + exit - /pr_comments — `gh pr view` comments for the current branch's PR (graceful no-gh / no-PR handling); pure formatPrComments renderer Adds credsStore to SessionContext (REPL-injected) for /login + /logout. Tests (parity-commands.test.ts, 9 cases): /recap via a mock provider + empty/ no-provider; /login + /logout against a forceFile CredentialsStore under a temp HOME (never the keychain, never real creds); formatPrComments rendering + the no-PR/no-gh fallback. Full CLI suite: 133 pass. Verified the real `gh pr view` JSON shape matches the parser. Flips the /recap, /login//logout, /pr_comments rows in BEHAVIOR_PARITY → ✅. (Overlaps the open #154 audit on those rows — see PR note.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * chore(cli): prettier-format parity-commands.test.ts Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: t <t@t> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…, not DeepCode-only
Verified against Claude Code's built-in command set: /keybindings ships in
Claude Code ("open or create your keybindings config file"). DeepCode's
/keybindings only lists bindings (read-only; edit ~/.deepcode/keybindings.json
by hand), so mark it ✓ / ✓ (read-only) / 🟡 — same shape as /config and
/permissions — rather than 🆕 DeepCode-only.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…argulis-24c654 # Conflicts: # docs/BEHAVIOR_PARITY.md
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.
What
Full audit of
docs/BEHAVIOR_PARITY.mdagainst the actual code. The doc tracksDeepCode-vs-Claude-Code parity but the Slash-commands and CLI-flags tables
had drifted behind
main(PR #151 already de-staled the Tools table). Every row inall three tables was re-verified by grepping the source — not by trusting the doc.
Slash commands
/init✓ (stub)🔄✓✅runInitFlowis a real 3-phase REPL flow (scan → draft → approve-writeAGENTS.md), wired inrepl.ts:435/bug✗🔄✓✅commands.ts(BugCommand, alias/feedback) since PR #150/release-notes✗🔄✓✅ReleaseNotesCommand) since PR #150/upgrade✓ (hint only)🟡✗🔄/upgradeslash command — it's thedeepcode upgradeCLI subcommand (cli.ts)/diff✓✅DiffCommand) in PR #150 — row added/keybindings✓🆕KeybindingsCommand), DeepCode-only — row added/effortEFFORT_PARAMS-derived tier table (PR #147); clarified caveat/btw /recap /voice /teleport /desktop /background /batch /tasks /plan /login /logout /pr_comments /terminal-setup /privacy-settings /migrate-installer) — confirmed absent fromBUILTIN_COMMANDS./review /security-review /schedule /loop) — skills confirmed shipping underpackages/core/skills/.CLI flags
--mode/--permission-mode--mode✅;--permission-mode🔄 — it's parsed + validated but never consumed (cli.tsforwards onlyargs.mode)-C/--cd <dir>process.chdirincli.ts:44(PR #148) — row addedThe remaining flag rows (
--bare,--settings/--agents/--mcp-config/--plugin-dir/--plugin-url,--no-plugins/--strictas 🔄 parsed-only;--resume/--continue/--fork-session,-p,--output-format/--json-schema/--include-partial-messagesas ✅) were each re-checked and confirmed accurate.Tools table
De-staled by PR #151 — re-verified row-by-row, all markers hold:
⚠️ (not a tool — use
TaskTool+ctx.runSubAgent(agent.ts), all 7TASK_TOOLS,NotebookEdit,AskUserQuestion,Enter/ExitPlanMode,Enter/ExitWorktree,ToolSearch,Cron*;ScheduleWakeupcorrectly
CronCreate). No changes needed.Notes
npx prettier --checkpasses (tables reformatted to canonical widths — most of the line-count delta is whitespace;git diff -wshows only the semantic rows above).git commit --no-verifyper the repo's husky pre-commit corruption gotcha.🤖 Generated with Claude Code