Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Chat Server — Agent Guide
# Agent Guide

Before answering any question that involves facts about ANYTHING, you MUST output at least one Read, WebFetch, or WebSearch tool call.
If your first output is text instead of a tool call, you have failed.

- [index.ts](src/index.ts) — Single source Express.js ai-sdk server with single route `/`

## Commands

ALWAYS use the `npm run *` command

| Command | What it does |
| ------------------ | ------------------------------------- |
| `npm run dev` | Hot-reload dev server (nodemon + tsx) |
| `npm start` | Run compiled `dist/index.js` |
| `npm run build` | `npx tsc` — compiles `src/` → `dist/` |
| `npm run lint` | ESLint on `src/` |
| `npm run tsc` | TypeScript Check Only `tsc --noEmit` |
| `npm run prettier` | ALWAYS RUN AFTER EDITING FILES |
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Built with the [AI SDK](https://ai-sdk.dev/).
With Docker.

```shell
docker run --rm cssnr/chat-server:latest
docker run -p 3000:3000 cssnr/chat-server:latest
```

With Docker Compose.
Expand All @@ -78,6 +78,8 @@ services:
environment:
MODEL: 'gemini-2.5-flash'
GOOGLE_GENERATIVE_AI_API_KEY: 'xxx'
ports:
- '3000:3000'
```

With Node.
Expand Down
Loading