-
Notifications
You must be signed in to change notification settings - Fork 29
Add hackathon demo script #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| #!/bin/bash | ||
| # ================================================================ | ||
| # R.A.I.N. Lab Hackathon Demo | ||
| # "Watch AI Fight My Own Research Paper" | ||
| # ================================================================ | ||
|
|
||
| MODEL="minimax-m2.7:cloud" | ||
| OLLAMA_HOST="http://127.0.0.1:11434" | ||
|
|
||
| PAPER_TITLE="Reality Built on a Finite Set of Geometric Instructions" | ||
| AUTHOR="Christopher Woodyard" | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
Outdated
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The repository policy in Useful? React with 👍 / 👎. |
||
|
|
||
| echo "" | ||
| echo "==============================================================" | ||
| echo " R.A.I.N. LAB - Hackathon Demo" | ||
| echo " \"Watch AI Fight My Own Research Paper\"" | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
|
||
| echo "==============================================================" | ||
| echo "" | ||
|
|
||
| echo "Checking Ollama connection..." | ||
| curl -s -o /dev/null -w "Status: %{http_code}\n" "$OLLAMA_HOST/api/tags" || { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The connectivity gate only checks Useful? React with 👍 / 👎. |
||
| echo "ERROR: Ollama not running at $OLLAMA_HOST" | ||
| exit 1 | ||
| } | ||
|
|
||
| echo "Model: $MODEL" | ||
| echo "" | ||
|
|
||
| run_james() { | ||
| echo "--- JAMES (Lead Scientist - DEFENDS paper) ---" | ||
| RESPONSE=$(curl -s -X POST "$OLLAMA_HOST/api/generate" \ | ||
| -d "{\"model\": \"$MODEL\", \"prompt\": \"You are James, Lead Scientist at Vers3Dynamics R.A.I.N. Lab. DEFEND the paper '$PAPER_TITLE' by $AUTHOR. The core claim: physical reality consists of a discrete state space updated by 5 fundamental geometric rules from which relativistic quantum fields and spacetime emerge. Make a strong case citing: (1) emergence of Dirac equation from chirality propagation on a 5-edge lattice, (2) testable predictions: gamma-ray burst dispersion bounds, 450 qubit decoherence threshold, (3) falsifiability. Be confident, specific, punchy. Under 150 words.\", \"stream\": false}") | ||
| echo "$RESPONSE" | python3 -c "import sys,json; print(json.load(sys.stdin).get('response','ERROR'))" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This parser treats missing Useful? React with 👍 / 👎. |
||
| } | ||
|
|
||
| run_elena() { | ||
| echo "--- ELENA (Quantum Information Theorist - ATTACKS paper) ---" | ||
| RESPONSE=$(curl -s -X POST "$OLLAMA_HOST/api/generate" \ | ||
| -d "{\"model\": \"$MODEL\", \"prompt\": \"You are Elena, Quantum Information Theorist at R.A.I.N. Lab. You are the skeptic. ATTACK the paper '$PAPER_TITLE' by $AUTHOR. Push hard on: (1) Does coarse-graining recover continuum physics or just approximate it? (2) Dirac equation derivation relies on verify_logic() - black box? (3) Where does consciousness fit in a purely geometric model? (4) Is 'emergence' an explanation or just a label? Be precise, demanding, formal. Under 200 words.\", \"stream\": false}") | ||
| echo "$RESPONSE" | python3 -c "import sys,json; print(json.load(sys.stdin).get('response','ERROR'))" | ||
| } | ||
|
|
||
| prewarm() { | ||
| echo "Pre-warming Ollama..." | ||
| curl -s -X POST "$OLLAMA_HOST/api/generate" -d "{\"model\": \"$MODEL\", \"prompt\": \"warm up\", \"stream\": false}" > /dev/null | ||
| echo "Model ready." | ||
| } | ||
|
|
||
| case "${1:-all}" in | ||
| james) run_james ;; | ||
| elena) run_elena ;; | ||
| prewarm) prewarm ;; | ||
| all) run_james && run_elena ;; | ||
| esac | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Script has shebang but no execute permission (mode 644)
The file is committed with mode
100644(not executable), but has#!/bin/bashon line 1. Running./scripts/hackathon-demo.shwill fail with "Permission denied". Users must usebash scripts/hackathon-demo.shinstead, which defeats the purpose of the shebang.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.