Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

feat: display execution time in CLI output footer

Zaid Bin Mushtaq72c00e25e2e1
diff --git a/src/channels/cli.ts b/src/channels/cli.ts
index 20918bed..bb382200 100644
--- a/src/channels/cli.ts
+++ b/src/channels/cli.ts
@@ -209,6 +209,7 @@ export class CLIChannel extends BaseChannel {
return full;
}
+ const startTime = Date.now();
const headerLines = ['', chalk.cyan(` ${this.agentName}:`), ''];
for (const line of headerLines) {
console.log(line);
@@ -257,7 +258,8 @@ export class CLIChannel extends BaseChannel {
for (const line of block) {
console.log(line);
}
- console.log(chalk.dim(' ' + '─'.repeat(50)));
+ const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
+ console.log(chalk.dim(' ' + '─'.repeat(50 - elapsed.length - 4) + ' ' + elapsed + 's'));
}
this.endOutput();