@@ -18,6 +18,8 @@ export interface CommandContext {
1818 planMode: boolean;
1919 setPlanMode: (enabled: boolean) => void;
2020 undoLastTurn: () => boolean;
21+ startNewSession: () => void;
22+
2123 connectMcpServer: (name: string) => Promise<void>;
2224 runSubagent: (
2325 prompt: string,
@@ -292,8 +294,16 @@ async function handleReview(ctx: CommandContext, args: string): Promise<void> {
292294 }
293295 }
294296
297+function handleNew(ctx: CommandContext): void {
298+ ctx.startNewSession();
299+ writeln(
300+ `${PREFIX.success} ${c.dim("new session started — context cleared")}`,
301+ );
302+}
303+
295304 function handleHelp(): void {
296305 writeln();
306+
297307 const cmds: [string, string][] = [
298308 ["/model [id]", "list or switch models (fetches live list)"],
299309 ["/undo", "remove the last turn from conversation history"],
@@ -302,6 +312,7 @@ function handleHelp(): void {
302312 ["/mcp list", "list MCP servers"],
303313 ["/mcp add <n> <t> [u]", "add an MCP server"],
304314 ["/mcp remove <name>", "remove an MCP server"],
315+ ["/new", "start a new session with clean context"],
305316 ["/help", "this message"],
306317 ["/exit", "quit"],
307318 ];
@@ -347,6 +358,10 @@ export async function handleCommand(
347358 await handleMcp(ctx, args);
348359 return { type: "handled" };
349360
361+ case "new":
362+ handleNew(ctx);
363+ return { type: "handled" };
364+
350365 case "review":
351366 await handleReview(ctx, args);
352367 return { type: "handled" };