Skip to content

magrathean-uk/hostmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostmap

hostmap creates a safe, read-only architecture map of a Linux host. It is for reviewers, operators, and AI agents that need evidence about how a machine is put together without collecting secrets or changing the system.

It generates Markdown plus JSON, then optionally zips the result.

What It Maps

  • OS, kernel, package, and language/runtime versions
  • systemd services, timers, sockets, listeners, processes, cron, filesystems
  • Docker, Docker Compose, Podman, Kubernetes, k3s
  • nginx, Apache, Caddy, Traefik, HAProxy, Cloudflare Tunnel, VPN tools
  • Git repositories, GitHub/GitLab/Gitea/Forgejo CI files, deploy files
  • databases, queues, monitoring, logging, and backup tool presence
  • directory-only filesystem maps with heavy and secret paths pruned

Safety Model

hostmap is read-only. It does not restart services, edit files, install packages, change firewall rules, or make network API calls.

It is an architecture/documentation tool, not a vulnerability scanner.

By default it excludes secret paths, private keys, token files, databases, browser profiles, caches, Docker/containerd stores, build outputs, and large files. Small included config files are redacted line by line.

Install And Run

From a checkout:

python3 -m hostmap --output hostmap-output --mode safe

Or install locally:

python3 -m pip install .
hostmap --output hostmap-output --mode safe

Modes:

  • safe: default; includes redacted small config/deploy/CI files
  • paranoid: versions, runtime snapshots, and directory maps only
  • local: safe mode plus extra local VPN config roots with redaction

The generated archive is named like:

hostmap-output/2026-05-20-120000.zip

AI Reviewer Prompt

See docs/prompts.md for prompts users can give to GPT-5.5 Pro, Codex, or another reviewer agent.

Codex Skill

The reusable skill lives at skills/hostmap/SKILL.md. Users can copy skills/hostmap into their Codex skills directory and ask:

Use the hostmap skill to map this Linux machine safely for review.

Development

python3 -m pytest -q
python3 -m hostmap --mode paranoid --output /tmp/hostmap-smoke

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages