# Aiter

A terminal agent in TypeScript where agents are folders, MCP servers plug in and every session is a JSON file you can edit and resume.

- Web page: https://pranavsastry.com/projects/aiter
- Kind: Project
- Headline: A terminal agent whose **loop** I can open and change.
- Stack: TypeScript, React, Bun
- Status: Experimental
- Year: 2025

## How it is built

A Bun monorepo with a core runtime and a command-line tool that scaffolds apps and agents. The terminal interface is React on OpenTUI, and models come through the Vercel AI SDK, so any provider it supports can run an agent.

**Figure 1. What Aiter is made of.** The three layers of Aiter, built from the bottom up.

What the animated figure shows: Three layers: MCP servers at the bottom, saved sessions in the middle, pluggable agents on top; sessions are files, so work resumes from the terminal.

## Agents as folders

Each agent is a directory with its own commands, tools, MCP servers and system prompt, after the file conventions of Next.js. MCP servers connect over stdio, SSE or HTTP, and an agent loads their tools dynamically.

## Sessions you can read

Every conversation is saved as a JSON file. It can be resumed with a flag, edited by hand, or started from a prompt piped in from the shell, so the agent can be scripted.

## Links

- GitHub: [https://github.com/pranftw/aiter](https://github.com/pranftw/aiter)

## More projects

- [AutoPilot](https://pranavsastry.com/projects/autopilot.md) optimizes prompts, rules and agents the way PyTorch trains a model, and **rolls back** a change that does not hold up.
- [RecLLM](https://pranavsastry.com/projects/recllm.md) is a prototype for **shopping by conversation**: an index of a store’s catalog, and a memory of what each shopper likes.
- [Neograd](https://pranavsastry.com/projects/neograd.md) is a deep-learning framework I wrote from scratch in Python and NumPy, to see **how autograd works**.
- [OpenReview Scraper](https://pranavsastry.com/projects/openreview-scraper.md) turns conference submissions into a **reading list** by searching their titles, abstracts and keywords.
- [ODDGen](https://pranavsastry.com/projects/oddgen.md) builds object-detection datasets from cut-out objects, with **the bounding boxes written for you**.
- [rapidx](https://pranavsastry.com/projects/rapidx.md) runs experiments from many research codebases through one entry point, each in its **own environment**.
- [All projects](https://pranavsastry.com/projects.md)
- [Home and directory](https://pranavsastry.com/index.md)
