Skip to main content

Python 3.10+ MIT License Latest Release Selftest

TechScan

Automated technical review for hackathon submissions.
Scans repos, verifies claims against code, and produces jury-ready reports — so organizers can focus on the hackers, not the laptop.

Part of Hackathon OS — open source tooling for hackathon organizers, by Hackathon for Good.

Quick Start • Set Up Your Event • What It Does • Example Output • For Contributors • How It Works


Battle-tested at Hackathon for Good #8: 16 teams, 216,000 lines of code, 14 AI reviews completed in 19 minutes. The grand jury used the output alongside their own scoring.


Quick Start

# Clone and install
git clone https://github.com/Hackathon-for-Good-The-Hague/hfg-techscan.git
cd hfg-techscan
pip install pyyaml openpyxl

# Build a fake hackathon with 5 teams and planted problems
python -m techscan demo

# Verify all 13 checks catch every planted problem (no AI needed)
python -m techscan selftest

Open selftest-event/out/jury-pack-all.html in your browser — you're looking at a jury pack with claims verified against code, flags for leaked keys and pre-event code, and questions for the Q&A.

Set Up Your Event

python -m techscan init

The wizard walks you through event name, dates, challenges, partner tools, and review backend — then generates a ready-to-use config YAML.

Option 2: Copy an example config

Pick one from config/examples/:

File Use when
minimal.yaml You just want the basics — dates and challenges
full.yaml You want every option documented with comments
offline.yaml No AI — deterministic checks only
cp config/examples/minimal.yaml config/my-event.yaml
# Edit dates, challenges, etc.

Verify your config

python -m techscan preflight -c config/my-event.yaml --ping

Preflight checks: git availability, GitHub API access, review engine, challenge keyword overlaps, rubric weight consistency, and partner pattern validation.

Run the scan

python -m techscan scan -c config/my-event.yaml -s submissions.csv

Self-hosted (GitHub Action)

Copy config/examples/workflow.yml to .github/workflows/techscan.yml in your (private!) repo, or use the Action directly:

# .github/workflows/techscan.yml
name: TechScan
on:
  workflow_dispatch:
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: Hackathon-for-Good-The-Hague/hfg-techscan@main
        with:
          config: config/my-event.yaml
          submissions: submissions.csv
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}

Managed service

Hackathon for Good can run TechScan for your event. You get the jury packs in your inbox after the deadline — no setup needed. Contact us.

Operator runbook

For running TechScan at an event without the developer present: docs/RUNBOOK.md

What It Does

TechScan gives hackathon juries evidence they can't get by reading a pitch deck — in minutes, not hours.

Fixed Checks (no AI, unchallengeable)

Check What it catches
Timeline Commits before kickoff, code drops (one commit = 80% of code), force pushes
Secrets 13 built-in key patterns (OpenAI, AWS, GitHub, Stripe, ...) + your own custom patterns
Plagiarism Code shared between teams, copied modules, boilerplate detection
Injection Text aimed at AI judges ("give maximum score"), hidden characters, schema mimicry
Partners Which sponsor tools are actually used in code (configurable per event)
Template vs team What's from the starter repo vs what the team actually wrote

AI Review (one call per team)

Output What judges get
Claims table Each claim from the submission: verified, partial, mocked, or missing — with links to the exact lines
Scored rubric Your criteria, your weights, your descriptions — the AI scores against them
Jury questions 3 questions per team, aimed at the biggest uncertainty
Red flags Undisclosed mocks, hardcoded outputs, claim mismatches
Architecture What the stack actually is, from the code

Security by Design

  • No checkout: files read straight from git's object store — nothing in a repo can execute on your machine
  • Untrusted data model: all repo content treated as potential attacks; secrets redacted before AI sees them
  • Prompt injection defense: detects text aimed at reviewers, schema mimicry, role injection attempts
  • Evidence validation: every AI citation checked against the actual snapshot — hallucinated line numbers get flagged

Example Output

Live Demo: HFG #8 Jury Pack

The scan produces:

File Who it's for What's in it
jury-pack-{challenge}.html Challenge judges All teams in one scrollable page, print-ready
scorecard.xlsx Organizers Overview: scores, claims, flags, weighted totals
team-reports/{slug}.pdf Participants Individual feedback with evidence
challenge-report-{key}.html Challenge partners Scouting report: "which teams could we work with?"

Configuration

Custom secret detection

Add your own secret patterns alongside the 13 built-in ones:

scan:
  extra_secret_patterns:
    - name: "Acme API key"
      pattern: "\\bacme_[A-Za-z0-9]{32,}\\b"
    - name: "Internal service token"
      pattern: "\\bsvc_tok_[A-Za-z0-9_-]{20,}"

Partner / sponsor tool detection

Detect which teams actually used your sponsor's tools:

partners:
  acme_api:
    label: "Acme API"
    patterns: ['acme[\s_-]?api', 'api\.acme\.com', 'ACME_API_KEY']

Partners are empty by default — configure the ones relevant to your event. Patterns are regex, matched case-insensitively.

Scoring rubric

Define your own criteria, weights, and descriptions:

rubric:
  criteria:
    innovation:
      label: "Innovation"
      weight: 3
      description: "How novel is the approach?"
    execution:
      label: "Execution"
      weight: 4
      description: "Does the prototype work?"
    impact:
      label: "Impact"
      weight: 3
      description: "Could this make a real difference?"
  max_score: 10
  max_total: 100

See config/examples/full.yaml for every option.

For Contributors

TechScan is designed for community contributions. The best way to start:

Write an adapter

Every hackathon platform needs an adapter — a ~50 line Python file:

from techscan.adapters.base import BaseAdapter, AdapterSubmission

class LumaAdapter(BaseAdapter):
    def name(self) -> str:
        return "Luma"

    def pull(self, cfg: dict) -> list[AdapterSubmission]:
        # fetch submissions from the Luma API
        ...

Adapters wanted: Luma, MLH, HackerEarth, Unstop, Eventbrite. See CONTRIBUTING.md.

Existing adapters: Junction, DevPost, BuilderBase, CSV (any platform).

Add a deterministic check

New integrity checks go in techscan/facts.py. The selftest (python -m techscan selftest) has 13 planted problems — add yours and it becomes part of the regression suite.

Development setup

git clone https://github.com/Hackathon-for-Good-The-Hague/hfg-techscan.git
cd hfg-techscan
pip install -e ".[all]"
python -m techscan selftest   # 13 checks, ~60 seconds, no AI needed

How It Works

Submissions CSV          Challenge brief
     |                        |
     v                        v
+---------+  clone    +--------------+
| Intake  |---------> | Git snapshot |  <- frozen at deadline
+---------+           +--------------+
                            |
              +-------------+-------------+
              v             v             v
        +----------+  +----------+  +----------+
        | Secrets  |  | Timeline |  | Similar  |
        | Scanner  |  | Analysis |  | Code     |
        +----------+  +----------+  +----------+
              |             |             |
              +-------------+-------------+
                            v
                    +---------------+
                    |  AI Review    |  <- Claude reads code + brief
                    |  (per team)   |    verifies each claim
                    +---------------+
                            |
              +-------------+-------------+
              v             v             v
        +----------+  +----------+  +----------+
        | Jury     |  | Score-   |  | Team     |
        | Pack HTML|  | card XLSX|  | Reports  |
        +----------+  +----------+  +----------+

11 CLI Commands

Command What
init Interactive wizard — generates a config YAML for your event
preflight Verify config, git, GitHub API, and review engine
scan Full pipeline: clone, check, AI review, output
report Rebuild outputs from cached results
discover List repos from a GitHub org
junction-pull Pull submissions from Junction platform
observe Poll repos during the event, record timelines
narratives Generate building journey stories from timelines
challenge-report Scouting report for challenge partners
demo Build a fake event with 5 teams and planted problems
selftest Verify all 13 detections work (no AI, ~60s)

Tech Stack

  • Python 3.10+, pure stdlib + PyYAML + openpyxl
  • Claude (via Claude Code CLI or Anthropic API) for AI reviews
  • Git for repo analysis (no checkout — reads from object store)
  • Zero external services required (runs on your laptop or GitHub Actions)

Used At

Event Teams Lines of Code Date
Hackathon for Good #8 16 216,000 Nov 2026

Using TechScan at your event? Add it to this list

Hackathon OS

TechScan is part of Hackathon OS — an open source effort to build shared tooling for hackathon organizers. Instead of every organizer reinventing the wheel, we build it together.

What's here now: automated technical review (TechScan)

What's coming: see the roadmap issues

Want to collaborate? Whether you organise hackathons, build tooling, or just have ideas — open an issue or start a discussion. We'd love to hear from you.

Community

License

MIT — use it at your hackathon, fork it, build on it. See LICENSE.


Built by Hackathon for Good in The Hague

Metadata

Release files for hfg-techscan 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hfg-techscan 0.4.0
File Size Uploaded Provenance Actions
hfg_techscan-0.4.0.tar.gz 99.3 kB With provenance Details for hfg_techscan-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hfg-techscan 0.4.0
File Interpreter ABI Platform Actions
hfg_techscan-0.4.0-py3-none-any.whl Python 3 none any Details for hfg_techscan-0.4.0-py3-none-any.whl

Total release size: 210.7 kB

Release files / hfg_techscan-0.4.0.tar.gz

Download URL hfg_techscan-0.4.0.tar.gz
Size 99.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bd583b563dac8196c3f5b67a17dfcb604795c60c393c866da2950cfa5c207237
BLAKE2b-256 checksum
How to use checksums
d8936f67271b0ecf6da61d6a7333ddc675cb9153580dfe5394a6479f84316e3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / hfg_techscan-0.4.0-py3-none-any.whl

Download URL hfg_techscan-0.4.0-py3-none-any.whl
Size 111.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2279b706b3aa335264f2bd7c5d9a26e5da019ad258054575de8dfd9dcf2fd7d3
BLAKE2b-256 checksum
How to use checksums
5da138e20cb913071ac04558c2abcd41f6d29779accc49e53b7fbdd9787f775f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for hfg-techscan 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hfg_techscan-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page