https://github.com/sifatulrabbi/cli-agent
My personal CLI Agent for coding assistant and custom workflows
https://github.com/sifatulrabbi/cli-agent
agent cli-agent coding-assistant tui
Last synced: about 2 months ago
JSON representation
My personal CLI Agent for coding assistant and custom workflows
- Host: GitHub
- URL: https://github.com/sifatulrabbi/cli-agent
- Owner: sifatulrabbi
- License: mit
- Created: 2025-08-13T08:47:50.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-18T10:33:23.000Z (5 months ago)
- Last Synced: 2025-10-19T05:37:20.397Z (5 months ago)
- Topics: agent, cli-agent, coding-assistant, tui
- Language: Go
- Homepage:
- Size: 475 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
### cli-agent
An interactive CLI AI agent built with LangChain, LangGraph, and Ink. It streams model responses, invokes structured tools to read/modify files in a target project, and persists conversational history for iterative workflows.

### Build & Run
- Requirements: Go 1.25+; macOS/Linux/WSL2
- Env: export `OPENAI_API_KEY` with your key
Build:
```bash
make local-build # installs 'cli-agent'
# or
go build -o cli-agent .
```
Run:
```bash
go run .
# or, after build
./cli-agent
```
Dev loop:
```bash
make dev # sets GOENV=dev, builds, runs
```
### Testing & Formatting
```bash
go test ./...
go vet ./...
gofmt -s -w .
go build
```
### Optional Python Server
If you want to use the FastAPI server with LangChain tools:
```bash
cd server
pip install -r requirements.txt
# Run with reload in dev:
ENV=dev python main.py
# Or via uvicorn:
ENV=local uvicorn agent:app --host 127.0.0.1 --port 8080
```
The server reads `OPENAI_API_KEY` from env or a `.env` in `server/`.
### Roadmap / TODOs
- [ ] Smooth hand over between non-reasoning and reasoning agents.
- [ ] Proper planning step to create todo list that is not too bloated.
### License
MIT