Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add basic planner mode UI branching
Different welcome messages for planner vs default mode.
TODO: Need to implement task panel and enhanced streaming.
  • Loading branch information
arjunteotiadq committed Sep 12, 2025
commit 1071529a8d6af057494ae851c053cee01401dca2
14 changes: 12 additions & 2 deletions packages/cli/src/commands/agent/chat.cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,18 @@ export default async function runChat(args: any, flags: any) {
const mode = flags.mode === 'planner' ? TAgentMode.PLANNER : TAgentMode.DEFAULT;

const agent = Agent.import(agentPath, { model, mode });
console.log(chalk.white('\nYou are now chatting with agent : ') + chalk.bold.green(agent.data?.name));
console.log(chalk.white('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));

// TODO: Implement different UI for planner mode
const isPlanner = mode === TAgentMode.PLANNER;

if (isPlanner) {
console.log(chalk.green('πŸš€ Smyth Agent is ready in Planner mode!'));
console.log(chalk.gray('Type "exit" or "quit" to end the conversation.'));
} else {
console.log(chalk.white('\nYou are now chatting with agent : ') + chalk.bold.green(agent.data?.name));
console.log(chalk.white('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));
}

const chat = agent.chat();

// Create readline interface for user input
Expand Down