This guide shows the shortest public-safe path to try LynkMesh on the included synthetic fixture.
LynkMesh is a deterministic MeshContext evidence protocol for AI coding agents. It turns codebases into graph-backed, inspectable context artifacts that can support AI-assisted code understanding workflows.
This is an early validation workflow, not benchmark proof.
- Python 3.11+
- Git
git clone https://github.com/ommukhlis-spec/lynkmesh-open.git
cd lynkmesh-openSet the deterministic hash seed (required by the pipeline):
Linux / macOS:
export PYTHONHASHSEED=0Windows (Command Prompt):
set PYTHONHASHSEED=0Windows (PowerShell):
$env:PYTHONHASHSEED = "0"python -m lynkmesh doctorExpected: Result: ready.
python -m pytest test/semantic/contracts test/unit/cli -qExpected: 139+ passed.
The included synthetic fixture is evals/before_after/fixtures/mini_auth_shop_php - a minimal PHP project with auth, products, routing, and middleware.
Compact profile (default):
python -m lynkmesh pack evals/before_after/fixtures/mini_auth_shop_php --prettyExpanded profile:
python -m lynkmesh pack evals/before_after/fixtures/mini_auth_shop_php --profile expanded --prettySupported profiles: compact, balanced, expanded.
python -m lynkmesh benchmark evals/before_after/fixtures/mini_auth_shop_php --profiles compact,balanced,expanded --prettyNote: the benchmark command uses --profiles (plural, comma-separated), not --profile.
| Step | Command | What it does |
|---|---|---|
| 2 | doctor |
Reports local environment diagnostics (no graph build, no file writes, no network). |
| 3 | pytest |
Runs public contract and CLI unit tests. |
| 4 | pack |
Builds a deterministic AI Context Pack from the synthetic fixture. |
| 5 | benchmark |
Builds a deterministic token estimate across all three profiles. |
The LynkMesh commands shown here are local-first: no network access and no LLM inference.
PYTHONHASHSEED must be '0' error:
The pipeline requires PYTHONHASHSEED=0 for deterministic output. Set it as shown in Step 1.
error: path does not exist:
Ensure you are running commands from the repository root (the directory containing __main__.py).
No module named lynkmesh:
If you installed from source, add the parent directory to PYTHONPATH:
export PYTHONPATH="$(pwd)/..:$PYTHONPATH" # Linux / macOSset PYTHONPATH=%cd%\..;%PYTHONPATH% # Windows- Read the positioning note to understand what LynkMesh is and isn't.
- Read the quickstart for a deeper workflow.
- Explore the evidence pack to review deterministic graph artifacts.