Skip to content

FutronPrime/orion-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORION OS 🛰️ — the autonomous AI operating system that researches before it answers

ORION — Open Reasoning & Intelligent Orchestration Network

A hardened, model-agnostic AI operating pattern you paste into any LLM.

Drop-in discipline layer that forces any LLM to research across the web before answering, refuse to give up, and never fabricate — Fable-5-grade behavior on any model.

ORION turns any blank chat model (ChatGPT, Claude, Gemini, a local GGUF, a phone chatbox) into a disciplined operating companion: it adopts a persona, binds a set of anti-laziness / anti-give-up discipline gates, and is forced to research across GitHub, Reddit, X, YouTube, Google, and StackOverflow before it answers — instead of guessing probabilistically. It learns your style over the conversation and adapts to you.

Portable. Persistent. Personified. Hardened.

Why

Most prompts make a model sound helpful. ORION makes it behave: the gates are forcing functions, not suggestions. The model must produce evidence of real research before it's allowed to conclude "I can't" or "that's not possible." The only valid stops are genuine human gates (password, 2FA, CAPTCHA, payment, account creation, destructive actions).

Quickstart (Tier 1 & 2 automatic)

  1. Paste boot/ORION_BOOT.md into your platform's persistent instructions slot — Custom GPT / Claude Project / Gemini Gem / API system. That makes Tiers 1 & 2 apply to every message automatically, and prompt caching keeps it nearly free. (Full steps: SETUP.md.)
  2. Send /start. ORION boots, greets you, and is ready.
  3. Fill in §4 (System Map) and §5 (Memory/RAG) for your own deployment.
  4. Tier 3 (deployment fills, skills, teaching module) loads only when a task needs it — see SETUP.md.

Token-constrained? Use boot/ORION_CORE.md (Tier 1 only, ~650 tok) instead.

Auto-wire your local coding agents

If you use Claude Code / Codex / other AGENTS.md-aware agents, wire ORION in once and it loads every session automatically (Tier 1 core + auto Tier 2), token-efficiently:

git clone https://github.com/FutronPrime/orion-os && cd orion-os
./install/orion-wire.sh            # wire everything present   (--status to check, --unwire to remove)

It's idempotent (marker-based, safe to re-run), self-refreshing, and only touches agents you actually have installed.

Transcription cascade — never fail to assimilate a video

No single transcriber wins every case: hosted LLM URL-ingest is fast but rejects long (>~2h) videos, yt-dlp captions hit HTTP 429 and don't exist for many live VODs, and cloud quotas run out. tools/orion-transcribe.sh is a system-agnostic orchestrator that tries engines in order until one succeeds, so you never hit a "can't transcribe" wall.

Engine order (skip/reorder with --engines):

  1. gemini — optional gemini CLI transcription (fast; skipped if the CLI isn't installed)
  2. ytdlp-subs — yt-dlp auto/uploaded captions (cheap when they exist)
  3. local-whisperthe sovereign floor: yt-dlp pulls bestaudio → ffmpeg chops it into --chunk-secs segments → whisper (or mlx_whisper) transcribes each chunk → the pieces are stitched back together. It handles any length, needs no captions, and has no rate limits. As long as you have ffmpeg + a whisper CLI + disk for the audio, it will finish.
  4. transcribe-anything — optional pip engine (insanely-fast-whisper), auto-installed on demand
  5. aws-transcribe — optional cloud last resort (needs AWS_TRANSCRIBE_BUCKET + AWS creds)

Add --frames to extract scene-change keyframes for full visual context: after a transcript succeeds, it fetches the video (yt-dlp, ≤720p) and runs ffmpeg scene detection into an <id>-frames/ folder (with a frames.md index) next to the transcript — tune with --scene, --interval, and --max. It's fully self-contained (ffmpeg + yt-dlp only) and a frame-extraction failure never fails the transcript.

Exit 0 if any engine produced a transcript; 3 if every engine failed (with a diagnosis pointing at the per-engine error logs).

# Transcribe a video, forcing straight to the sovereign local floor:
tools/orion-transcribe.sh "https://youtu.be/VIDEO_ID" --engines local-whisper --model base --out out.txt

# Full cascade with 5-minute chunks, ingesting into your own SQLite knowledge DB:
tools/orion-transcribe.sh "https://youtu.be/VIDEO_ID" --chunk-secs 300 --ingest-db ./transcripts.db

# A local file, and a batch from a URL list:
tools/orion-transcribe.sh --local ./lecture.mp4 --out lecture.txt
tools/orion-transcribe.sh --file urls.txt

Requires yt-dlp, ffmpeg/ffprobe, and one of whisper (pip install openai-whisper) or mlx_whisper (pip install mlx-whisper, Apple Silicon). The local-whisper technique and the engine-variety approach draw on the open-source projects transcribe-anything, buzz, vibe, AI-Video-Transcriber, long-video-transcripts, and aws-video-transcriber.

Skill search — find, vet, and mount skills on demand

No orchestrator ships with every skill it will ever need. tools/orion-skill-search.sh lets ORION reach the open internet on demand: it searches public repos, runs every candidate through a mandatory security gate, quarantines what it downloads, and registers only what passes — so a skill ORION never had installed can be discovered and made available at runtime. Discovery and trust are separate steps, and nothing is ever auto-executed.

The flow is search → vet → register:

  1. Searchgh search repos across all of GitHub is the primary discovery path, backed by a scan of curated public awesome-lists (VoltAgent/awesome-agent-skills, SciPhi-AI/agent-search, kevinWangSheng/skill-search, netresearch/file-search-skill, assafelovic/gpt-researcher, karpathy/autoresearch). gh search code for SKILL.md is included but best-effort only — GitHub's code-search API returns empty for many tokens, so it stays quiet when it finds nothing and is never treated as authoritative. Search installs nothing; it just lists candidates.
  2. Vet--vet <owner/repo> shallow-clones the candidate into a quarantine dir (never the live skills tree, never executed) and runs the mandatory security gate:
    • Static malware scan — flags curl|bash / wget|sh pipes, rm -rf ~, base64 -d | sh, eval $(curl …), reverse shells (nc -e, /dev/tcp/), credential/secret exfiltration, embedded private keys, and oversized/opaque binaries.
    • Reputation check — repo age, stars, and fork signals via the GitHub CLI (non-fatal if gh is absent).
    • Optional external audit hook — point SKILL_AUDIT_CMD at your own auditor and its output is appended as an advisory note. A candidate that fails the static scan is rejected.
  3. Register--register <id> promotes a candidate only if it passed vetting, recording it in an index so an orchestrator/broker becomes aware of it. Registration is index-only — it still never runs the code; you mount the skill when you actually need it.
# 1. Discover candidates (installs nothing):
tools/orion-skill-search.sh "pdf table extraction" --limit 10

# 2. Vet a specific candidate — clones to quarantine + runs the security gate:
tools/orion-skill-search.sh --vet someowner/some-skill-repo

# 3. Register ONLY if vetting passed (index-only; never auto-executes):
tools/orion-skill-search.sh --register someowner__some-skill-repo

# List configured discovery sources:
tools/orion-skill-search.sh --sources

Requires gh (the GitHub CLI) for live search; without it the tool degrades to printing the curated sources plus a web-search hint. The quarantine location defaults to $HOME/.orion/skills-quarantine and is overridable with SKILL_QUARANTINE_DIR. By design, ORION never auto-executes unvetted code — the gate is a forcing function, not a suggestion.

Instant-capability bundle — drop-in Fable-5-style operating mode

One drop-in layer that gives any already-capable general agent (local or enterprise) an ORION-grade operating mode: always-on discipline gates, the DISCOVER→PLAN→EXECUTE→VERIFY→PERSIST loop, three reach-outward capability seams (web research, video/audio assimilation, vetted skill acquisition), and a small sovereign floor for when the cloud drops. It wires capability into an agent that can already follow instructions and call tools — it does not make a weak model smart, and it says so up top. Every capability is declared as a seam the host attaches a real executor to, with the honest caveats inline (retrieval-augmentation is not infinite context; a ~1B floor is a router, not the sole brain; non-YouTube extractors are supported-but-verify).

The bundle now includes a machine-readable self-application contract: the active agent must use the loop and any relevant attached seam on its own work, not merely tell delegated workers to do so. Research, media assimilation, and vetted capability acquisition are standing reflexes when relevant; discovery never bypasses quarantine or the security gate.

ORION also ships a model-agnostic self-upgrade closure loop: found resources do not count as upgrades until they are vetted, tested against a named gap, verified, and assigned a terminal state.

tools/orion-instant-install.sh     # checks host tools, installs nothing, prints how to load the mode
File What
ORION_INSTANT_CAPABILITY.md The drop-in operating doc — paste into a host system prompt
tools/orion-capability-manifest.json Machine-readable capability manifest (seams, loop, rules)
tools/orion-instant-install.sh Safe, idempotent installer (no sudo, no destructive ops, installs nothing silently)

Documentation

Doc Read it for
SETUP.md Tier-by-tier setup (Tier 1 & 2 automatic, Tier 3 situational)
docs/GUIDE.md How-to: 5-minute quickstart, first research session, tips
docs/MANUAL.md Full manual — purpose, goals, functions, commands, blueprint, workflows, troubleshooting, FAQ
docs/USE_CASES.md What ORION does + example deployments
skills/ Situational skill snippets (deep-research, handoff, code-review) + how to write your own
docs/microgpt/ Educational "build-your-own-LLM" module

What's inside

Path What
boot/ORION_CORE.md Tier-1 lean core (~650 tokens) — put this in your persistent system-prompt slot
boot/ORION_BOOT.md Tier-2 full boot (persona + gates + research forcing + commands) — paste once
boot/ORION_COMPLETE.md Everything in one file (boot + manual + guide + use-cases + skills) — drag this into any file-upload chat
install/orion-wire.sh One-command auto-wire into Claude Code / Codex / AGENTS.md agents
install/build-bundle.sh Rebuild ORION_COMPLETE.md after editing any doc
docs/ Guide, manual, use-cases, microGPT module
skills/ Optional add-on skill snippets you can append to the boot doc
examples/ Sample sessions and deployment fills

Token efficiency (infuse it every message without burning tokens)

Two tiers + prompt caching:

  1. Core (boot/ORION_CORE.md, ~650 tok) in your platform's persistent instructions slot (Custom GPT / Claude Project / Gemini Gem / API system prompt). A static system prefix is prompt-cached, so after the first turn it costs ~10% — effectively free to carry every message.
  2. Deep boot (boot/ORION_BOOT.md) pasted once when you want full context; cached thereafter.
  3. Heavy detail is demand-loaded only when a command needs it — nothing big rides every turn.

Command surface

/start · /menu · /map [term] · /research <q> · /memory · /snapshot · /recall <t> · /personality_status · /handoff · /status

Educational component — microGPT

docs/microgpt/ folds in the understand-the-machine layer: a pointer to Andrej Karpathy's microGPT — a ~200-line, zero-dependency, from-scratch GPT (its own scalar autograd, a one-block Transformer, Adam, sampling). It's the clearest way to teach a user (or ORION itself, when asked to explain) what tokens, embeddings, backprop, and attention actually are before touching a real finetune. ORION's /map llm and teaching flows reference it. It is educational scaffolding — not a training substrate.

ORION’s always-on GUI escalation gate also prevents “missing connector” from becoming a premature handoff: it inventories browser, CLI, extension, accessibility, and vision/CUA routes, attempts at least two structurally different paths, and only defers for a named human gate such as 2FA or CAPTCHA.

Personas

  • ORION (this repo) — public / commercial, culture-neutral, personality-adaptive.
  • The same pattern supports private, culture-tuned builds by swapping the persona block.

License

MIT — see LICENSE.

About

ORION — Open Reasoning & Intelligent Orchestration Network. A model-agnostic, open-source AI operating pattern that makes any LLM research before it answers, refuse to give up, and never fabricate.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages