How To Build CLI Agent in Few Steps

posted 1 min read

Built a tiny CLI agent on Mozaik with 3 small TypeScript classes:

· TerminalAgent - the brain: talks to the model and runs tools in a loop.
· UIUpdater - the ears: listens for replies & tool calls and pings the UI.
· Terminal Tool - runs shell commands safely and returns output.

The chat runs in Ink as a full TUI; Mozaik connects the pieces.

CLI agent repo:
https://github.com/jigjoy-ai/mozaik-cli

Mozaik framework repo:
https://github.com/jigjoy-ai/mozaik

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelskiverified - Apr 9

Merancang Backend Bisnis ISP: API Pelanggan, Paket Internet, Invoice, dan Tiket Support

Masbadar - Mar 13

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9
chevron_left

Related Jobs

Commenters (This Week)

2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!