Skip to content

balasiddarthan22/tinyfish-hackerchat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUS Intro to AI Agents — Hacker School Week 8

Intro to AI Agents

This is the chatbot starter repo for the Intro to AI Agents workshop. You'll be building an AI-powered investigation assistant that can call tools, fetch data from APIs, and solve challenges autonomously.

What is this?

This is a Next.js chatbot built with the Vercel AI SDK. It comes pre-configured with:

  • A chat interface powered by OpenRouter (Claude, GPT, etc.)
  • Guest authentication (no sign-up needed)
  • A tool system where you define functions the AI can call
  • A multi-round challenge system connected to the NEXUS Arena

What you'll be doing

During the workshop, you'll learn how to give an AI agent capabilities by creating tools — functions the AI can decide to call on its own. Each tool connects to an API endpoint on the Arena, letting the AI search access logs, look up employees, read communications, and more.

The challenges are structured across 5 rounds, each requiring new tools and increasingly complex reasoning from the AI.

Getting started

  1. Clone this repo
  2. Copy .env.example to .env.local and fill in your keys (see the Docs for details)
  3. Install dependencies: npm install
  4. Run the dev server: npm run dev
  5. Open http://localhost:3000

Key files

File What it does
lib/ai/tools/ Where you create your tool files
app/(chat)/api/chat/route.ts Where you register tools with the AI
lib/types.ts Where you register tool types for the UI
components/message.tsx Where tool call results render in the chat
lib/ai/prompts.ts The system prompt that guides the AI

Resources

About

tiny fish AI agents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 97.0%
  • JavaScript 1.9%
  • CSS 1.1%