Turn a repository into bounded, queryable context that people and AI agents can trust.
Languages: English · Português · Español · Français · Italiano · Polski · Русский · 中文 · 日本語 · 한국어 · हिन्दी · العربية · עברית · Bahasa Indonesia · Bahasa Melayu
simplicio-mapper is the mapping engine in the Simplicio ecosystem. It reads a codebase once, produces versioned artifacts under .simplicio/, and gives a human or an agent a small, explainable context pack instead of an unbounded dump of files. The result is useful for orientation, implementation planning, review, impact analysis, onboarding, and handoffs.
| Need | Mapper output |
|---|---|
| Understand a new repository | Project map, architecture inventory, symbols, routes, flows, business rules, and onboarding survey |
| Find the smallest useful context | Task-aware handoff and orient packs with relevance, coverage, token budget, and fidelity diagnostics |
| Keep context current | Incremental map/sync, history snapshots, semantic diffs, and deterministic graph deltas |
| Verify a claim before relying on it | Versioned JSON contracts, artifact validation, confidence tags, behavioral receipts, and evidence certificates |
The Mapper does not replace tests, code review, or judgment. It makes the evidence those practices need easier to locate, bounded enough to inspect, and explicit when the available context is not sufficient.
Requires Python 3.10 or newer.
pip install -U simplicio-mapper
# Create or refresh machine-readable artifacts in ./.simplicio
simplicio-mapper index . --json
# Produce architecture docs from the artifacts
simplicio-mapper docs . --json
# Build a compact, task-aware context handoff
simplicio-mapper handoff . \
--goal "trace the authentication flow and its tests" \
--token-budget 1200 \
--jsonFor a fast shallow skeleton before the deep pass, use simplicio-mapper macro . --json. For a repository whose files changed, use simplicio-mapper sync . --check --json to see whether artifacts are stale, then simplicio-mapper sync . --json to refresh only what the diff affects.
flowchart LR
A[Repository] --> B[Map / index]
B --> C[.simplicio versioned artifacts]
C --> D[ContextSnapshot and ContextGraph]
D --> E[Task-aware retrieval]
E --> F[Human or AI agent]
F --> G[Tests, review, evidence, release]
G -. feedback .-> C
The diagram is deliberately a loop: mapping gives an agent a bounded starting point, while verified work returns new facts to the next map instead of turning an old prompt into assumed truth.
handoff ranks artifacts against an explicit goal or task file. Its output reports the selected context, coverage, token budget, penalties, and fidelity state. If the map cannot support the requested claim, the contract can abstain or mark the context as partial instead of manufacturing confidence.
sequenceDiagram
participant Operator as Human or agent
participant CLI as simplicio-mapper handoff
participant Artifacts as .simplicio artifacts
participant Ranker as Task-aware retrieval
Operator->>CLI: goal + token budget
CLI->>Artifacts: load map, graph, docs and evidence
CLI->>Ranker: rank relevant files and symbols
Ranker-->>CLI: bounded context + diagnostics
alt context is sufficient
CLI-->>Operator: ContextSnapshot with evidence
else coverage or fidelity is insufficient
CLI-->>Operator: partial result or explicit abstention
end
# Inspect the mapped repository as structured data
simplicio-mapper inspect . --json
# Ask graph questions without loading the whole repository into a prompt
simplicio-mapper ask . impact "UserService" --json
simplicio-mapper ask . tests-for "authentication" --jsonThe artifacts are designed for change: snapshots keep history, diff compares two snapshot IDs semantically, and delta emits a deterministic update for downstream consumers. This lets separate agents or sessions share a stable view of a repository without repeatedly rediscovering the same files.
flowchart LR
A[Changed files] --> B[simplicio-mapper sync]
B --> C[Refresh affected artifacts]
C --> D[Versioned history snapshot]
D --> E[simplicio-mapper diff]
C --> F[simplicio-mapper delta]
E --> G[Human review or agent session]
F --> G
G --> H[Next task-aware handoff]
simplicio-mapper history . --json
simplicio-mapper diff . --from <snapshot-id> --to <snapshot-id> --json
simplicio-mapper delta . --changed-paths src/auth.py,tests/test_auth.py --jsonArtifacts are not just prompts. They have versioned schemas under contracts/, validation commands, compatibility fixtures, and evidence records. This makes it possible to distinguish a measured result from an operator assertion and to audit the path from repository facts to a release decision.
stateDiagram-v2
[*] --> Collect: map repository and task
Collect --> Sufficient: coverage and fidelity pass
Collect --> Partial: some evidence is relevant
Collect --> Abstain: evidence cannot support the claim
Sufficient --> Verify: run contracts and tests
Partial --> Broaden: request more context or a narrower task
Abstain --> Broaden
Broaden --> Collect
Verify --> ReleaseEvidence: publish an auditable receipt
ReleaseEvidence --> [*]
# Validate generated mapper artifacts against the public schemas
simplicio-mapper contract validate .simplicio
# Validate the repository contract fixtures
simplicio-mapper doctor --contracts- Python package —
simplicio-mapper: the canonical, installable mapping engine and contract surface. - npm package —
@wesleysimplicio/llm-project-mapper: a project starter/scaffolder that can include Mapper in a new workflow.
If you already have a repository, install the Python package. If you are bootstrapping a project, the npm starter is the convenient entry point; it is not a substitute for a fresh mapper index after the project evolves.
mapper provides grounded repository context to the rest of Simplicio:
simplicio-mapper → simplicio-runtime → simplicio-dev-cli → simplicio-loop
facts execution delivery sustained work
simplicio-runtimeexecutes governed agent work.simplicio-dev-cliturns plans and checks into a developer workflow.simplicio-loopkeeps a bounded body of work moving with receipts and stop conditions.
- Documentation site
- Integration guide
- Artifact contracts
- Architecture and evidence docs
- Changelog
- PyPI publishing notes
- v0.23.1 release
MIT. See LICENSE.



