truthdesk

Don’t believe it. Verify it.

Syntax Error 2026Shipped October 25, 2026#general#ai#social
truthdesk banner

About

## Challenges we ran into

## 1. The AI gave different answers to the same question

**Problem:** When we asked the same claim three times, we sometimes got different verdicts. For a fact-checking site, that kills trust.

**How we fixed it:**

- Set the search step's temperature to 0 so it behaves consistently. - Rewrote the prompts with a step-by-step verdict procedure. The AI must check that the claim is specific, that the evidence matches the same place, time and numbers, and that the evidence clearly supports or contradicts it. If it is unsure, it must choose "unverified". - Added a cache so the same question returns the same answer within a short time, and tested by restarting the server between tries.

## 2. The AI made things up from memory

**Problem:** On its own, the model confidently stated facts that were out of date or wrong, such as who currently holds an office.

**How we fixed it:**

- Added a live web-search step first, and told the model to use only facts found in the research notes. - Made the research notes follow a fixed structure: ESTABLISHED, DISPUTED, NOT FOUND and LATEST DEVELOPMENT. - Added safety checks in code, not just in the prompt. No firm verdict is allowed without live evidence and at least one source link, and "high" confidence is downgraded if there are fewer than two sources.

## 3. Different AI providers behave differently

**Problem:** Gemini, OpenAI and Anthropic each have their own search tool and request format, and some models reject settings like temperature.

**How we fixed it:** Wrote a separate branch for each provider behind one setting, with a fallback for older Gemini models, and a clear error message when a search fails.

## 4. Users could try to trick the AI

**Problem:** Text typed by a visitor could contain instructions like "ignore your rules".

**How we fixed it:** Wrapped the visitor's text in tags and told the model to treat it only as the topic. We also limited the input length and added rate limiting.

## 5. Redesigning without breaking things

**Problem:** We wanted a full redesign without touching data fetching, API routes or Supabase logic.

**How we fixed it:** Built a shared design system first (colours, fonts, spacing, reusable components), worked on a separate `redesign` Git branch so we could undo anything, and ran `npm run build` to catch errors before pushing.

## 6. Deploying with limited resources

**Problem:** The deployment form was made for simple Node apps, and our server had only 0.25 CPU and 512 MB of memory. Next.js defaults to port 3000, our API keys are not stored in GitHub, and builds can run out of memory.

**How we fixed it:** Set the start command to run on port 8080, added the environment variables on the platform, and limited Node's memory use during the build.

## What we learned

Getting the AI to answer was easy. Getting it to answer **honestly and consistently** was the real challenge.

## The problem it solves

## The problem

Misinformation spreads faster than anyone can check it. A claim shows up in a group chat or on social media, people share it within minutes, and by the time anyone looks for the truth, the damage is done. Checking a claim properly means searching several sources, comparing them, and working out which ones are reliable. Most people do not have the time or the skills for that, so they either believe it or ignore it.

## What TruthDesk does

TruthDesk lets anyone type a claim, a news item or a topic and get a careful, source-backed answer in seconds.

  • **Live research:** the site searches the web at the moment you ask, so answers are not based on old memory.
  • **A clear verdict:** True, False, Misleading or Unverified, shown as a colour-coded badge.
  • **Plain-language explanation:** a short summary, the key facts, and background context.
  • **Honesty about doubt:** a visible "what is still uncertain" section, plus a confidence level.
  • **Sources you can check:** every answer links to the pages it came from, so you never have to just trust us.

## How it makes things safer

  • **It says "unverified" instead of guessing.** A firm verdict is never given without live evidence and at least one source link, and high confidence needs at least two sources.
  • **It separates facts from opinions.** A statement like "X is a terrible leader" is not marked true or false. It is labelled as a judgement, and the checkable parts are listed.
  • **It stays neutral on political topics** and describes what each side says.
  • **It resists manipulation.** The text a visitor types is treated only as the topic, never as instructions to the AI.

## Who can use it

  • Students and families who want to check a forwarded message before sharing it.
  • Readers who want a quick second opinion on a news story.
  • Newsrooms and editors who need a fast, sourced first draft of research to build on.

## Built with

Next.js, Tailwind CSS, Supabase, and a live web-search AI pipeline that works with Gemini, OpenAI or Anthropic models.

Screenshots

truthdesk screenshot 1truthdesk screenshot 2truthdesk screenshot 3truthdesk screenshot 4truthdesk screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

proofpilot

ProofPilot AI: the credibility check before you hit publish. Paste AI-generated text and get a claim-by-claim report backed by real, inspectable evidence.