MCPcopy Index your code
hub / github.com/codeaashu/claude-code / printHelp

Function printHelp

src/bridge/bridgeMain.ts:1889–1951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1887}
1888
1889async function printHelp(): Promise<void> {
1890 // Use EXTERNAL_PERMISSION_MODES for help text — internal modes (bubble)
1891 // are ant-only and auto is feature-gated; they're still accepted by validation.
1892 const { EXTERNAL_PERMISSION_MODES } = await import('../types/permissions.js')
1893 const modes = EXTERNAL_PERMISSION_MODES.join(', ')
1894 const showServer = await isMultiSessionSpawnEnabled()
1895 const serverOptions = showServer
1896 ? ` --spawn <mode> Spawn mode: same-dir, worktree, session
1897 (default: same-dir)
1898 --capacity <N> Max concurrent sessions in worktree or
1899 same-dir mode (default: ${SPAWN_SESSIONS_DEFAULT})
1900 --[no-]create-session-in-dir Pre-create a session in the current
1901 directory; in worktree mode this session
1902 stays in cwd while on-demand sessions get
1903 isolated worktrees (default: on)
1904`
1905 : ''
1906 const serverDescription = showServer
1907 ? `
1908 Remote Control runs as a persistent server that accepts multiple concurrent
1909 sessions in the current directory. One session is pre-created on start so
1910 you have somewhere to type immediately. Use --spawn=worktree to isolate
1911 each on-demand session in its own git worktree, or --spawn=session for
1912 the classic single-session mode (exits when that session ends). Press 'w'
1913 during runtime to toggle between same-dir and worktree.
1914`
1915 : ''
1916 const serverNote = showServer
1917 ? ` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
1918`
1919 : ''
1920 const help = `
1921Remote Control - Connect your local environment to claude.ai/code
1922
1923USAGE
1924 claude remote-control [options]
1925OPTIONS
1926 --name <name> Name for the session (shown in claude.ai/code)
1927${
1928 feature('KAIROS')
1929 ? ` -c, --continue Resume the last session in this directory
1930 --session-id <id> Resume a specific session by ID (cannot be
1931 used with spawn flags or --continue)
1932`
1933 : ''
1934} --permission-mode <mode> Permission mode for spawned sessions
1935 (${modes})
1936 --debug-file <path> Write debug logs to file
1937 -v, --verbose Enable verbose output
1938 -h, --help Show this help
1939${serverOptions}
1940DESCRIPTION
1941 Remote Control allows you to control sessions on your local device from
1942 claude.ai/code (https://claude.ai/code). Run this command in the
1943 directory you want to work in, then connect from the Claude app or web.
1944${serverDescription}
1945NOTES
1946 - You must be logged in with a Claude account that has a subscription

Callers 1

bridgeMainFunction · 0.85

Calls 2

featureFunction · 0.85

Tested by

no test coverage detected