Status: early alpha / research preview. This demo script describes a workflow that works today on the included synthetic fixture. It does not claim production readiness, benchmark proof, or universal applicability.
This document explains the basic LynkMesh demo story for a new user, reviewer, or AI-agent developer. It covers what problem LynkMesh solves, what it produces, and how to walk through a complete first experience.
After reading this, you should be able to:
- Explain what LynkMesh does and why it exists
- Run the core LynkMesh commands on the included fixture
- Inspect the outputs and understand what each artifact contains
- Understand which claims are supported and which are not
AI coding agents are powerful, but they often reason from incomplete or noisy context:
- They see isolated files without understanding how they connect.
- They repeat expensive repository scans for every task.
- They lack deterministic awareness of dependencies, architecture, and impact boundaries.
- They cannot easily distinguish structural facts from their own inferences.
LynkMesh provides a graph-backed, deterministic evidence layer so that AI agents can ground their reasoning in structured project context before modifying, reviewing, or explaining software changes.
LynkMesh turns a codebase into three types of deterministic, inspectable artifacts:
| Artifact | Command | Description |
|---|---|---|
| MeshContext Report | report |
Deterministic project graph facts and conservative architecture context. |
| AI Context Pack | pack |
Compact, balanced, or expanded context package designed for AI consumption. |
| Token Benchmark | benchmark |
Deterministic token estimate / calibration across profiles. |
All artifacts are:
- Local-first — no network access, no source code uploaded.
- Deterministic — same inputs produce same outputs (
PYTHONHASHSEED=0). - Inference-free —
contains_llm_inferenceis alwaysfalse. - Valid JSON — stdout is machine-readable; stderr carries diagnostics.
- Python 3.11+
- Git
PYTHONHASHSEED=0set in your environment
git clone https://github.com/ommukhlis-spec/lynkmesh-open.git
cd lynkmesh-openSet the deterministic hash seed:
Linux / macOS:
export PYTHONHASHSEED=0Windows (PowerShell):
$env:PYTHONHASHSEED = "0"python -m lynkmesh doctorExpected: Result: ready.
This command checks your local environment without building a graph or writing any files.
python -m pytest test/semantic/contracts test/unit/cli -qExpected: 139+ passed.
This confirms that the semantic contract tests and CLI unit tests pass in your environment.
The included synthetic fixture is evals/before_after/fixtures/mini_auth_shop_php —
a minimal PHP project with auth, products, routing, and middleware.
python -m lynkmesh report evals/before_after/fixtures/mini_auth_shop_php --pretty > report.jsonInspect the report:
python -m json.tool report.json | head -80Key fields to look for:
status: should be"ok"node_countandedge_count: graph structure summaryprovenance.contains_llm_inference: must befalsearchitecture_profile: summary of architectural findings
python -m lynkmesh pack evals/before_after/fixtures/mini_auth_shop_php --profile compact --pretty > ai-pack.jsonTry other profiles:
python -m lynkmesh pack evals/before_after/fixtures/mini_auth_shop_php --profile balanced --pretty > ai-pack-balanced.json
python -m lynkmesh pack evals/before_after/fixtures/mini_auth_shop_php --profile expanded --pretty > ai-pack-expanded.jsonProfiles:
compact— minimal token footprint (default)balanced— moderate detailexpanded— full available context
Key fields to inspect:
statusguardrails.contains_llm_inference: must befalseguardrails.privacy_safe: should betruecontext_sections: the structured sections provided to an AI agent
python -m lynkmesh benchmark evals/before_after/fixtures/mini_auth_shop_php --profiles compact,balanced,expanded --pretty > benchmark.jsonNote: benchmark uses --profiles (plural, comma-separated).
Key fields to inspect:
statussource_baselines: should include bothmesh_context_reportandserialized_graph_payloadguardrails.contains_llm_inference: must befalse- Per-profile token estimates
The public evidence pack at evals/before_after/ provides:
- Scenario definitions for reproducible evaluations
- Before/after run templates
- Metric schemas
- The first committed fixture-level run (
mini_auth_shop_php_001) - Screenshots and comparison summaries
Read evals/before_after/README.md for details on how to run your own
evaluation.
- Read the MeshContext Report for a deterministic summary of the project structure, architecture profile, and known limitations.
- Use the AI Context Pack as a structured reference when reviewing AI agent outputs or code changes — it provides the same context the agent received.
- Check the Token Benchmark to understand the size and scope of context being provided.
- Request the MeshContext Report to understand the project's structure before reasoning.
- Use the AI Context Pack as grounding evidence for analysis tasks.
- Reference specific graph facts (nodes, edges, architecture findings) in your explanations instead of making unsupported claims.
- Always distinguish between deterministic facts from LynkMesh and your own inferences.
The following claims are consistent with the current evidence and documentation:
- LynkMesh provides deterministic, static-analysis-derived project evidence for AI-assisted code understanding workflows.
- LynkMesh artifacts are inspectable, reproducible, and free of embedded LLM inference.
- LynkMesh may reduce manual context preparation in selected workflows.
- LynkMesh operates local-first — no source code is uploaded.
- LynkMesh is at an early alpha / research preview stage.
Do not claim or imply:
- LynkMesh makes an AI model smarter.
- LynkMesh provides benchmark proof of AI improvement.
- LynkMesh is production-ready.
- LynkMesh fully understands all languages, frameworks, or runtime behavior.
- LynkMesh replaces Sourcegraph, vector databases, IDEs, or coding agents.
- LynkMesh guarantees correct AI analysis.
- LynkMesh is enterprise-ready.
- Results from the included fixture generalize to all projects.
Suggested next steps for the audience:
- Read the positioning note —
docs/positioning.md - Review the support matrix —
docs/support_matrix.md - Explore the agent review workflow —
docs/agent_review_workflow.md - Read the public FAQ —
docs/public_faq.md - Check the public alpha criteria —
docs/public_alpha_criteria.md - Run your own evaluation using the evidence pack templates
-
python -m lynkmesh doctorreturnsready - Tests pass:
python -m pytest test/semantic/contracts test/unit/cli -q -
reportproduces valid JSON withstatus: "ok" -
packproduces valid JSON withstatus: "ok"for each profile -
benchmarkproduces valid JSON withstatus: "ok"and dual baselines - All artifacts have
contains_llm_inference: false - Presenter states: "This is an early alpha research preview"
- Presenter does not overclaim
- Presenter can point to the evidence pack for further exploration