Survival LLM
A free AI assistant and survival library (1.5 million offline articles) that runs on your own computer, with no internet. Shows the source of every answer. Mac and Windows.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Which rental-housing rules apply at this address on this date, and what is about to change?
Built for Hack-Nation × RealPage, Challenge 02.
Live demo: https://ruletwin.vercel.app (read-only) · Method note: docs/METHOD_NOTE.md · Submission: submission/ (rules.json, lookups.json, changes.json, audit_log.json)
Legal information, not legal advice. Machine-extracted from the supplied corpus; not reviewed by counsel.查看完整 README ↗Which rental-housing rules apply at this address on this date, and what is about to change? Built for Hack-Nation × RealPage, Challenge 02.
Live demo: https://ruletwin.vercel.app (read-only) · Method note: docs/METHOD_NOTE.md · Submission: submission/ (rules.json, lookups.json, changes.json, audit_log.json)
Legal information, not legal advice. Machine-extracted from the supplied corpus; not reviewed by counsel.
src/lib/engine) tests coverage with true/false/unknown logic, effective dates, pending/failed status and local-vs-state precedence.Requirements: Node.js 24+ (node --version), Git. Verification used Node 25.9.0; the declared Node 24 minimum has not been exercised. For re-running extraction you also need one of these:
.env.local (ANTHROPIC_API_KEY=...), orclaude once interactively, then claude -p "say hi" should reply).cd C:\Users\ritay\Desktop\Ruletwin
npm install
Put the v5 participant pack folder MIT-hackathon-PARTICIPANT-PACK-CLEAN-NO-HOUR16 next to this README (the earlier, byte-identical participant-final-no-hour16 3… download is also detected).
If it lives somewhere else, set STARTER_DIR in .env.local.
npm run build
npm run start
Open http://localhost:3000. The public demo works without an account. Saving properties and reports needs a local account: use "Sign in" → "Create one". Accounts live in data\local\ruletwin.db on this computer only.
| Step | Command | Notes |
|---|---|---|
| Geocode addresses | npm run geocode | Cached in data/geocode.json; re-runs only fetch missing rows |
| Extract rules | node scripts/extract.ts | Resumable; LLM responses cached in .cache/llm |
| Extract a few docs | node scripts/extract.ts --only D048,D069 | |
| Pre-enrich evidence | node scripts/enrich.ts | Needs Python + pypdf (San Diego code PDFs); public sources only, cached; writes data/evidence/ |
| Publish snapshot + exports | npm run publish | Validates, evaluates all 500 properties, writes submission/ and switches data/snapshots/active.json |
| Measure vs reference set | node scripts/measure.ts | Writes data/reference/results.json and docs/EVALUATION.md; small AI-authored set, not an organizer score |
| Check without publishing | npm run publish -- --dry-run | Runs validation and population evaluation without changing exports or the active pointer |
| Unit/semantic tests | npm test | Engine logic, quotes, account isolation |
| Browser journey | npm run e2e | Needs the site running; uses your installed Edge/Chrome |
Outputs: submission/rules.json, submission/lookups.json, submission/changes.json (also downloadable from the site).
$env:STRICT_EXEMPTIONS='1' before npm run publish to keep untestable exemptions unknown. The default treats them as disclosed presumptions. This switch only changes exemption handling; CO and affordability presumptions still remain.Every property report starts with an "In plain words" summary for renters; Ver en español switches it to Spanish (?lang=es). Each rule card shows a confidence level derived from the evidence path (high = observed facts and an official source; medium = presumption, constraint proof, secondary source or modest extraction confidence; low = open or disputed), with the reasons on hover.
The v5 brief has no hour-16 release; the five change tests T1–T5 are fixed at kickoff. The same pipeline can still take one new ordinance or jurisdiction with a single command (PowerShell, repo root):
node scripts/ingest.ts --file C:\path\to\ordinance.txt --jurisdiction "City, ST" --url "<official URL>"
It runs automated extraction on the new text (same prompt, schema and exact-quote validation), builds an extension change case ("2026-10-01 vs the day after the new rule's effective date", or a supplied test JSON via --test), and publishes through the normal gates. Extension cases appear on the website's Changes page only; the official submission/changes.json always contains exactly T1–T5. This is also the live "automated extraction" demonstration.
HOSTED_DEMO=1 disables local accounts (serverless disks are not persistent); lookups, evidence, changes, the rule library and the Spanish view all work. On Vercel: import the GitHub repo, set the environment variable HOSTED_DEMO = 1, deploy. The committed snapshot under data/snapshots/ and submission/ is bundled (see next.config.ts).
CO_LAG_YEARS in src/lib/engine/facts.ts makes the assumption more conservative.supplementary/, labelled secondary, and used only for the jurisdictions listed in their manifest rows.The corpus and manifest were searched (file names, URLs, link-only rows, alternate spellings). No rule is produced for these, and no citation is invented:
| Law | What the corpus contains |
|---|---|
| Santa Ana algorithmic rent-setting ban, Ord. NS-3090 (Apr 2026) | Only link-only news rows D086 (OCBJ) and D087 (PublicCEO). The official Santa Ana texts D084/D085 cover rent stabilization and just cause only. |
| Hoboken rent control (rent leveling) | Only link-only ecode360 rows D032–D034 (publisher terms under review). |
| Newark rent control | Only link-only ecode360 rows D070–D072. |
Also: the Berkeley ch. 13.63 March 1, 2026 effective date mentioned in the participant guide does not appear in the corpus copy of D001, so the date dispute it describes cannot be detected (reference case C35).
score.py or the answer key (v5 participant release). Validation shown here is our own: unit and browser tests, exact-quote and schema gates, T1–T5 outputs and an AI-reviewed reference set (docs/EVALUATION.md), which is not an official score.source_in_supplied_corpus: false. Older snapshots without verified metadata show an unverified citation warning. Exact headline support does not prove every compiled field.See AGENTS.md (instructions and invariants), HANDOFF.md (status) and docs/DECISIONS.md (decisions).
The isolated repair passed 55 tests, typecheck, lint, a production Webpack build and 16 browser journeys. Its snapshot is snap-3e8d479e4ac6; the reviewed main-checkout baseline was snap-96c4ceacda7b. Check the active pointer after integration. Default-bundler verification and a public live deployment remain release steps. Missing source clauses, unsupported presumptions and independent legal verification remain open.