This page is the exact lookup entry. Plain coden enters the CLI/REPL; --tui explicitly requests the full-screen interface and falls back when capabilities are missing; -p/--print exits after one turn. Flag conflicts and slash-command side effects follow the current command definitions.
With no interface flag, CodeN always enters CLI/REPL regardless of terminal type. The startup banner shows version, workspace hash, model, approval mode, thinking level, and the current session ID.
Model answers and tool activity render as a continuous stream: tool start/completion with duration, provider retries, thought duration, token summaries.
--verbose shows more runtime detail (including skill discovery failure reasons).
--tui requires stdin and stdout to both be TTYs, raw mode to be available, and TERM != dumb. If any condition fails it falls back to the CLI with a warning (not an error); TUI initialization failures fall back the same way. --tui cannot be combined with --cli or --print.
The content area keeps the CLI style: transient thinking and tool activity enter the transcript stream at the current conversation position.
The input area is enclosed by two full-width horizontal rules; below it the status row shows provider/model, workspace, authorization mode, phase, and context occupancy.
While an interaction is pending (authorization, trust, plugin confirmation) the input area stays visible but disabled, and the request renders inline in the transcript instead of a dialog.
Requests, available choices, and the final selection remain permanently in the current transcript.
lists active skills (name, description, project/user scope) without calling the model
/session
prints the current session ID
/sessions
lists all sessions of the current workspace (newest activity first)
/compact
asks the current model to compact older history immediately; preserves the latest two relevant interactions, persists only a validated summary, and reports failure explicitly
/reload
reloads local TypeScript plugins and the npm plugin registry; prints loaded/failed/tool summary
/new
starts a new conversation in the current session (keeps system messages; clears summary and history)
/lang
lists zh, en, and the current language
/lang <zh|en>
switches language; atomically writes the user config with mode 0600 and takes effect immediately
/thinking
lists thinking levels, the current value, and the effective mapping
/thinking <level>
switches level and persists it to the current session
--web is mutually exclusive with --tui, --cli, and --print; --web-host, --web-port, and --no-open require --web. --tui remains incompatible with CLI/print, while CLI plus print is allowed and print wins.
--smart-approve and --auto are mutually exclusive (configuration error, exit code 2).
--allow-outside-workspace requires --auto.
--provider accepts only openai/anthropic; --max-steps must be a positive integer; --thinking accepts only the six levels.
--resume combines with approval flags (resume keeps the current command-line settings).
Invalid environment variables (such as CODEN_THINKING_LEVEL=bad) fail config loading with exit code 2.