Skip to main content

tawjih — توجيه أوامر الآلة

A personal, file-based way to direct a language model. Knowledge is kept in trees of small files; each file has a human side (the concept, for people), a machine side (instructions for a model and optional Python code), a reading side (passages from books, with their source) and optional worked examples. A path strings files from any trees into a workflow; when it runs, only the machine side is sent.

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 init
tawjih new "Mathematics"
tawjih new "Algebra" --parent 1
tawjih tree
  • A path language in English and Arabic: TO, AND, IF … ELSE (also IF key = value), AMONG … BY key, THROUGH, LINK, CALL, with per-step EACH, 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.
  • A home screen in the terminal (tawjih alone): the project at a glance, the commands as cards, and tawjih home TOPIC explanations.
  • 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: https://github.com/AlmodinyMk/LLM-tawjih-Model-building (العربية).

How Tawjih is built

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.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tawjih 0.14.0
File Size Uploaded Provenance Actions
tawjih-0.14.0.tar.gz 236.8 kB With provenance Details for tawjih-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tawjih 0.14.0
File Interpreter ABI Platform Actions
tawjih-0.14.0-py3-none-any.whl Python 3 none any Details for tawjih-0.14.0-py3-none-any.whl

Total release size: 412.7 kB

Release files / tawjih-0.14.0.tar.gz

Download URL tawjih-0.14.0.tar.gz
Size 236.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c752c2965b2fccad5298e72a7ca8eb6d21b9be7b5daeeece131e6e88428aca9b
BLAKE2b-256 checksum
How to use checksums
f34fbe5cdd4f4f29fff4e1ddf473ce76eff22fadb3f669aa51b15fa7bd918a8d
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 21, 2026.

Transparency log

Release files / tawjih-0.14.0-py3-none-any.whl

Download URL tawjih-0.14.0-py3-none-any.whl
Size 176.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fd7517456bbde6016f34503c2924a1e38b5f1fd69977a582c846629b84c2018
BLAKE2b-256 checksum
How to use checksums
29731981b890fea4ecd9c83faa89a580f18ec33069144ddfd21a2c09c2e715a1
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 21, 2026.

Transparency log

Security for tawjih 0.14.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.

Select from 2 files

Attestation for tawjih-0.14.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 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page