MCPcopy Index your code
hub / github.com/JimLiu/agent-translator

github.com/JimLiu/agent-translator @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
31 symbols 58 edges 10 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Translator Agent

An AI-powered intelligent translation CLI tool with an interactive chat interface.

Version

Current version: 0.1.0

Features

  • 🌍 Interactive Chat Interface: Beautiful terminal UI built with React + Ink
  • 💬 Message History: View all your messages with timestamps
  • 🎯 Simple Commands: Type 'exit' or 'quit' to leave
  • 🔧 Modern Stack: Built with TypeScript and ESM modules

Requirements

  • Node.js v20 or higher

Installation

npm install

Usage

Development Mode

npm run dev

Build

npm run build

Production

npm start

How to Use

  1. Run the CLI using npm run dev
  2. Type your messages in the input box at the bottom
  3. Press Enter to submit
  4. View your message history in the main area
  5. Type 'exit' or 'quit' to close the application

Development

This project uses: - TypeScript for type safety - React + Ink for terminal UI - ESM modules for modern JavaScript

License

MIT

Extension points exported contracts — how you extend this code

Tool (Interface)
(no doc) [2 implementers]
src/tools/types.ts
StatusLineProps (Interface)
(no doc)
src/components/StatusLine.tsx
ChatMessage (Interface)
(no doc)
src/utils/ai-client.ts
FileReaderInput (Interface)
(no doc)
src/tools/file-reader.ts
InputBoxProps (Interface)
(no doc)
src/components/InputBox.tsx
ToolCallbacks (Interface)
(no doc)
src/utils/ai-client.ts
FileReaderResult (Interface)
(no doc)
src/tools/file-reader.ts
Message (Interface)
(no doc)
src/components/App.tsx

Core symbols most depended-on inside this repo

call
called by 2
src/tools/types.ts
getLanguageModel
called by 1
src/utils/ai-client.ts
generateChatResponse
called by 1
src/utils/ai-client.ts
prompt
called by 0
src/tools/file-reader.ts
call
called by 0
src/tools/file-reader.ts
constructor
called by 0
src/tools/url-fetcher.ts
prompt
called by 0
src/tools/url-fetcher.ts
call
called by 0
src/tools/url-fetcher.ts

Shape

Interface 12
Function 8
Method 7
Class 4

Languages

TypeScript100%

Modules by API surface

src/tools/url-fetcher.ts7 symbols
src/tools/file-reader.ts6 symbols
src/utils/ai-client.ts4 symbols
src/tools/types.ts4 symbols
src/components/InputBox.tsx3 symbols
src/components/App.tsx3 symbols
src/components/StatusLine.tsx2 symbols
src/components/MessageHistory.tsx2 symbols

For agents

$ claude mcp add agent-translator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact