Skip to content

Ryan-Guo123/ThinkFirst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 ThinkFirst

Turn AI into your sparring partner, not your ghostwriter.

License Visitor Count GitHub stars GitHub forks Vercel

Repo Size Last Commit Top Language React Gemini Tailwind

Philosophy β€’ Features β€’ Tech Stack β€’ Quick Start β€’ Contributing

🚨 IMPORTANT NOTE

This repository represents the original concept of ThinkFirst.

We are actively developing a new commercial platform that offers a distinct set of features and capabilities separate from this open-source version.

πŸ‘‰ Want early access to the new ThinkFirst? Join the Waitlist here

ThinkFirst Interface

🌟 Core Philosophy

The Problem: Most AI tools create a "Copy-Paste Trap" β€” outsourcing the struggle of thinking to a machine. The Solution: ThinkFirst flips the interaction using the "Brain First -> AI -> Brain Last" methodology:

  1. πŸ›‘ My Brain First: You formulate your own thesis or rough ideas before touching the AI.
  2. πŸ€– AI's Turn: The AI acts as a Socratic Coach. It critiques, structures, and offers counter-arguments, but refuses to generate the final text.
  3. πŸ“ My Brain Last: You synthesize the feedback and write the final work yourself.

"Don't let AI steal your 'Aha!' moment."

✨ Features

πŸ›‘οΈ The Persona System

Switch between specialized coaching modes tailored to your cognitive needs:

Persona Function Best For
🧠 General Coach Balanced guidance & feedback. General inquiry.
πŸ›‘οΈ Devil's Advocate Ruthlessly logical critique. Strengthening weak arguments.
πŸ—οΈ The Architect Structures scattered thoughts. Outlining essays or projects.
❓ Socratic Expander Pushes for deeper "Why" & "How". Breaking through writer's block.
πŸ”— Analogy Maker Explains via metaphors. Understanding complex abstract concepts.

πŸš€ Modern Capabilities

  • Powered by Gemini 2.5 Flash: Leveraging Google's model for high-speed, low-latency reasoning.
  • Multi-Modal Playground: Upload diagrams or notes; the AI "sees" and critiques them.
  • Dual Modes:
    • Search: Grounds answers with real-time Google Search data.
    • Think: Enhanced reasoning depth for complex logic puzzles.
  • Privacy First: API keys are stored locally in your browser (localStorage). No backend tracking.

πŸ›  Tech Stack

This project is engineered with a focus on performance and modern web standards.

⚑ Quick Start

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/Ryan-Guo123/ThinkFirst
    cd ThinkFirst
  2. Install dependencies

    yarn install
  3. Run the development server

    npm run dev
  4. Configure API Key

    • Open the app in your browser (usually http://localhost:3000/).
    • Click Start Thinking
    • Click the Key Icon in the sidebar.
    • Paste your Gemini API Key.

πŸ“‚ Key Structure

ThinkFirst/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ Playground.tsx      # Main chat interface & Markdown rendering
β”‚   β”œβ”€β”€ Header.tsx          # Navigation header
β”‚   β”œβ”€β”€ Hero.tsx            # Landing page hero section
β”‚   β”œβ”€β”€ Section.tsx         # Reusable section layout
β”‚   β”œβ”€β”€ CodeBlock.tsx       # Code display component
β”‚   β”œβ”€β”€ Button.tsx          # Button component
β”‚   └── ui/                 # Animated UI components
β”œβ”€β”€ services/
β”‚   └── geminiService.ts    # Gemini SDK implementation & stream handling
β”œβ”€β”€ lib/
β”‚   └── utils.ts            # Utility functions
β”œβ”€β”€ constants.ts            # System Instructions (Prompts) & Persona definitions
β”œβ”€β”€ types.ts                # TypeScript type definitions
β”œβ”€β”€ App.tsx                 # Main app component & routing
β”œβ”€β”€ index.tsx               # Application entry point
β”œβ”€β”€ index.html              # HTML template
β”œβ”€β”€ vite.config.ts          # Vite configuration
└── package.json            # Dependencies & scripts

🀝 Contributing

We are looking for contributions to expand the "Thinking" capabilities:

  • Prompt Engineering: Refine existing personas in constants.ts.
  • UI/UX: Improve the thinking flow visualization.
  • Integrations: Connect with Notion or Obsidian.

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.


Star History

Star History Chart

About

A Socratic AI coach that critiques your logic instead of doing your work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors