Skip to content

gthgomez/Babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babel

Babel is the prompt operating system for the wider Project_SaaS workspace.

It provides:

  • routing
  • behavioral rules
  • domain expertise layers
  • model adapters
  • project overlays
  • optional task overlays

Start Here

For humans and LLMs, the primary entrypoint is BABEL_BIBLE.md.

If you want a model to use Babel before doing a task, tell it:

Read BABEL_BIBLE.md and use Babel before planning or completing this task.

If the shorthand is just use Babel, the intended repo root is:

<YOUR_PROJECT_ROOT>/Babel

Minimum first-read chain:

  1. BABEL_BIBLE.md
  2. PROJECT_CONTEXT.md
  3. README.md
  4. prompt_catalog.yaml

Invocation Snippets

Use short language that points the model at the Bible doc first.

Codex

Read BABEL_BIBLE.md, use Babel for this task, then plan and execute using the selected instruction stack.

GPT

Read BABEL_BIBLE.md first. Use the Babel system to choose the right instructions before answering or doing the task.

Claude

Read BABEL_BIBLE.md and follow Babel before planning. Load the relevant Babel layers for this task, then proceed.

Gemini

Read BABEL_BIBLE.md first and use Babel to assemble the correct instruction stack before analyzing or completing the task.

Repository Structure

  • BABEL_BIBLE.md Human-facing entrypoint for invoking Babel.
  • PROJECT_CONTEXT.md Repo context for Babel itself.
  • prompt_catalog.yaml Source of truth for prompt file registration and load order metadata.
  • 00_System_Router/ Orchestrator and routing logic.
  • 01_Behavioral_OS/ Universal execution behavior.
  • 02_Domain_Architects/ Primary expertise layers.
  • 02_Skills/ Reusable technical skills selected independently of thin domains.
  • 03_Model_Adapters/ Model-specific tuning.
  • 04_Meta_Tools/ Prompt authoring and governance support.
  • 05_Project_Overlays/ Thin project context layers.
  • 06_Task_Overlays/ Optional reusable task-specific overlays.
  • runs/ Generated runtime output. Ignored in Git.

Recommended Load Shape

Standard stack:

  1. 01_Behavioral_OS
  2. one 02_Domain_Architects file
  3. zero or more 02_Skills files when applicable
  4. one 03_Model_Adapters file
  5. one 05_Project_Overlays file when applicable
  6. zero or more 06_Task_Overlays
  7. optional pipeline stages

Current Usage Pattern

Repo Hygiene

Before changing Babel itself:

  • preserve layering boundaries
  • prefer overlays over new domain roles when possible
  • update the catalog when adding routable files
  • validate that all catalog paths resolve

Validation

Run the catalog validator from the Babel root:

powershell -ExecutionPolicy Bypass -File .\tools\validate-catalog.ps1

Run the local stack resolver regression tests:

powershell -ExecutionPolicy Bypass -File .\tools\test-resolve-local-stack.ps1

Run the local session analyzer regression tests:

powershell -ExecutionPolicy Bypass -File .\tools\test-analyze-local-sessions.ps1

Run compiled-memory manifest regression tests:

powershell -ExecutionPolicy Bypass -File .\tools\test-sync-model-manifests.ps1

Run control-plane resolver semantic regression tests:

powershell -ExecutionPolicy Bypass -File .\tools\test-resolve-control-plane.ps1

Run local hooks and scripts regression tests:

powershell -ExecutionPolicy Bypass -File .\tools\test-local-hooks-and-scripts.ps1

Run Phase 4 eval fixture grading checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-eval-quality-fixtures.ps1

Run Phase 4 JSON output contract regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-eval-quality-fixtures-json-output.ps1

Run Phase 5 comparison workflow regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-comparison-workflow.ps1

Run Local evidence normalization regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-normalize-local-evidence.ps1

Run Local policy candidate generation regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-generate-local-policy-candidates.ps1

Run Local policy activation regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-activate-local-policies.ps1

Run Phase 4 global comparison validation regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-validate-global-policy-comparison.ps1

Run Phase 5 local-learning prompt evolution staging regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-stage-local-learning-prompt-evolutions.ps1

Run Phase 6 launch-helper regression checks:

powershell -ExecutionPolicy Bypass -File .\tools\test-launch-babel-local.ps1

Preview a recommended local stack:

powershell -ExecutionPolicy Bypass -File .\tools\resolve-local-stack.ps1 -Project GPCGuard -TaskCategory frontend -Model codex

Log a completed Babel Local session:

powershell -ExecutionPolicy Bypass -File .\tools\log-local-session.ps1 -Project GPCGuard -TaskCategory frontend -Model codex -ClientSurface codex_extension -Result success

Start a deterministic Babel Local session lifecycle record:

powershell -ExecutionPolicy Bypass -File .\tools\start-local-session.ps1 -TaskCategory devops -Project global -Model claude -ClientSurface claude_code

Launch Babel Local in one command (plan/act startup helper):

powershell -ExecutionPolicy Bypass -File .\tools\launch-babel-local.ps1 -TaskCategory backend -Model codex -WorkMode plan -TaskPrompt "Implement only the requested backend fix."

End a deterministic Babel Local session lifecycle record:

powershell -ExecutionPolicy Bypass -File .\tools\end-local-session.ps1 -SessionId <session-id> -Result success

Analyze logged Babel Local sessions:

powershell -ExecutionPolicy Bypass -File .\tools\analyze-local-sessions.ps1 -Format text

Normalize Local Mode evidence into canonical JSONL:

powershell -ExecutionPolicy Bypass -File .\tools\normalize-local-evidence.ps1

Generate Phase 2 Local policy candidates and audit output from normalized evidence:

powershell -ExecutionPolicy Bypass -File .\tools\generate-local-policy-candidates.ps1

Activate eligible Phase 3 Local policies from candidate and normalized evidence artifacts:

powershell -ExecutionPolicy Bypass -File .\tools\activate-local-policies.ps1

Run the legacy compiled-memory pipeline if you need historical compatibility reports:

powershell -ExecutionPolicy Bypass -File .\tools\sync-model-manifests.ps1

Check that generated model memory files are up to date:

powershell -ExecutionPolicy Bypass -File .\tools\sync-model-manifests.ps1 -Check

Git Workflow

Recommended:

  1. Keep Babel in its own Git repo.
  2. Treat prompt changes like code changes.
  3. Commit router, catalog, overlay, and adapter updates with clear intent.
  4. Run the validator before commits that touch the catalog or load order.

License

Babel is licensed under the MIT License — one of the most permissive open-source licenses.

You are free to use, modify, fork, and even sell products built on top of Babel with almost no restrictions.

License FAQ

Can I use this commercially? Yes. Commercial use, SaaS products, and internal company tools are explicitly encouraged.

Can I fork it and build my own product? Yes. You may modify, extend, or even close-source derivative work if desired (though we strongly prefer open contributions).

Do I have to open-source my changes? No. MIT has no copyleft requirements.

What about the prompt files and catalog? All prompt layers, prompt_catalog.yaml, and the CLI runtime are under the same MIT license.

Future plans Babel follows an open-core model: the full CLI, prompt library, and Local v1.1 learning system will always remain free and open source. Paid offerings (Babel Cloud, enterprise features, premium skills) may be added later.

Full license text: LICENSE

Collaboration Docs

Portability Note

Babel currently uses Windows-first absolute paths inside some routing contracts by design.

That is intentional for the local orchestrator/runtime. Public-facing repo docs should use relative links where possible.

About

Babel Prompt Operating System — multi-model prompt stack, layer routing, and control-plane orchestration

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors