Skip to content

wesleysimplicio/simplicio-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

310 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplicio-mapper

Turn a repository into bounded, queryable context that people and AI agents can trust.

PyPI Python Release License

Languages: English · Português · Español · Français · Italiano · Polski · Русский · 中文 · 日本語 · 한국어 · हिन्दी · العربية · עברית · Bahasa Indonesia · Bahasa Melayu

A repository becoming a bounded, evidence-backed context snapshot

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.

What it delivers

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.

Quick start

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 \
  --json

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

A map is more than a file list

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
Loading

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.

Retrieval with an actual budget

Only the code and evidence needed for a task entering a compact context pack

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
Loading
# 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" --json

ContextGraph that stays current

A versioned context graph showing a local change and its causal neighborhood

The 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]
Loading
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 --json

Evidence that survives the handoff

Repository evidence flowing through a context pack to verification and a release receipt

Artifacts 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 --> [*]
Loading
# Validate generated mapper artifacts against the public schemas
simplicio-mapper contract validate .simplicio

# Validate the repository contract fixtures
simplicio-mapper doctor --contracts

Two complementary surfaces

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

Ecosystem

mapper provides grounded repository context to the rest of Simplicio:

simplicio-mapper → simplicio-runtime → simplicio-dev-cli → simplicio-loop
      facts            execution          delivery           sustained work

Documentation and release notes

License

MIT. See LICENSE.

Star history chart for simplicio-mapper

About

Agentic stack-neutral starter pack with instant project auto-mapping. Perfect bootstrap for Claude Code, Cursor, Hermes and multi-agents — full context from minute one.

Topics

Resources

License

Stars

7 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors