tawjih — توجيه أوامر الآلة
Direct a language model through small text files that you write and review yourself, join them into paths, and know where every answer came from. Knowledge is kept in trees of small files; each file has a human side, a machine side (instructions for a model and optional Python code), a reading side with its sources, and optional worked examples. When a path runs, only the machine side is sent; every run is saved and can be traced.
Python 3.11 or later, standard library only, Linux and Windows. Experimental: the test suite passes, but no real AI provider has been used with it yet.
pip install tawjih
tawjih # the home screen
tawjih home start # your first project, step by step
tawjih init
tawjih new "Mathematics"
tawjih new "Algebra" --parent 1
tawjih tree
- A path language in English and Arabic:
TO,AND,IF … ELSE(alsoIF key = value),AMONG … BY key,THROUGH,LINK,CALL, with per-stepEACH,APPROVE,USING,RETRY … UNTIL,PICK. - Contracts between steps (keys or a JSON Schema), staleness when sources change, a cache to resume.
- Named providers (
providers.json): Ollama, any OpenAI-compatible server, Anthropic, with retries, backoff and fallback chains; keys stay in environment variables. - Each file is a folder of three faces under one code, number and title:
human, machine and science (
show REF --type machine). - Steps at the same time (
--max-workers), going on past a failed branch, andITERATEto run a whole path again on its result. - An architecture lab (
tawjih arch): model architectures as files, exact parameter counts, variants, a Hugging Face configuration, and a build check with transformers; runtimes (tawjih runtime) for long jobs here, over ssh, or on a service you drive. - A home screen in the terminal (
tawjihalone): the project at a glance, the commands as cards, andtawjih home TOPICexplanations. tawjih top: a live board like btop, the runs of paths and the files of the trees beside the computer's CPU, memory, disk, network and GPU.run --trace: each run as a trace in Langfuse or any OpenTelemetry collector (OTLP/JSON, no extra library), texts after redaction.- A project policy that can only restrict: no code, local providers only, always sandboxed, a least level of human approval.
- Evaluation: cases from the examples, a path compared with the model asked
directly, baselines, datasets with SHA-256 manifests, lineage with
trace. - Governance: locks, review, staged proposals, sealed releases, schedules.
tawjih mcp: an MCP server for AI assistants, where a person approves every write and every run.tawjih do: management statements in English or Arabic.
Full documentation, the example project, the Linux windows and the optional
training bridge are in the repository. The bridge (plugins/neural_bridge.py:
SFT and DPO with LoRA, QLoRA, DoRA, PiSSA, LoHa, IA3, VeRA, OFT, prompt
tuning and other PEFT methods, here or on a rented GPU over ssh) is one
file that works beside this package:
https://github.com/AlmodinyMk/LLM-tawjih-Model-building
(العربية).
Licensed CC BY-NC-SA 4.0: noncommercial use with credit and the same license for adaptations; commercial use needs permission from the author.
Metadata
Release files for tawjih 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tawjih-0.15.0.tar.gz | 305.7 kB | With provenance | Details for tawjih-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tawjih-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for tawjih-0.15.0-py3-none-any.whl |
Total release size: 529.0 kB
Release files / tawjih-0.15.0.tar.gz
| Download URL | tawjih-0.15.0.tar.gz |
|---|---|
| Size | 305.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdecbe91ba9bf98db17f57bf5220d68c6ff853e12f93869fcc23bd789a27acd3
|
|
BLAKE2b-256 checksum How to use checksums |
896e3c176ec7f00bd8a7399633d3eb692d997ac9fd064941b13abad878a4cc2d
|
| 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 22, 2026.
Transparency logRelease files / tawjih-0.15.0-py3-none-any.whl
| Download URL | tawjih-0.15.0-py3-none-any.whl |
|---|---|
| Size | 223.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c92b02b620b252f13c959eeba8bfbcfbd08478895341d9d1cb39f4017ee5f526
|
|
BLAKE2b-256 checksum How to use checksums |
06c3d56db31514dabeda7cf89654e92f5e7c20f7fbcd2e412b70ce35375d0190
|
| 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 22, 2026.
Transparency logSecurity for tawjih 0.15.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.
Attestation for tawjih-0.15.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 22, 2026.
Transparency logA 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.