{"id":33907259,"url":"https://github.com/semantic-infrastructure-lab/reveal","last_synced_at":"2026-05-23T06:06:51.614Z","repository":{"id":325526690,"uuid":"1101528706","full_name":"Semantic-Infrastructure-Lab/reveal","owner":"Semantic-Infrastructure-Lab","description":"Progressive file disclosure for agentic AI - explore files hierarchically with plugin-based analyzers","archived":false,"fork":false,"pushed_at":"2026-04-18T05:07:38.000Z","size":53802,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-18T07:03:05.216Z","etag":null,"topics":["agentic","ai","cli","code-analysis","developer-tools","file-explorer","progressive-disclosure","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Semantic-Infrastructure-Lab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-21T20:03:34.000Z","updated_at":"2026-04-18T05:07:43.000Z","dependencies_parsed_at":"2026-03-08T15:03:29.769Z","dependency_job_id":"2d87d8ff-d8c3-49e6-9817-d5ed04a7a22a","html_url":"https://github.com/Semantic-Infrastructure-Lab/reveal","commit_stats":null,"previous_names":["scottsen/reveal","semantic-infrastructure-lab/reveal"],"tags_count":118,"template":false,"template_full_name":null,"purl":"pkg:github/Semantic-Infrastructure-Lab/reveal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Semantic-Infrastructure-Lab%2Freveal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Semantic-Infrastructure-Lab%2Freveal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Semantic-Infrastructure-Lab%2Freveal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Semantic-Infrastructure-Lab%2Freveal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Semantic-Infrastructure-Lab","download_url":"https://codeload.github.com/Semantic-Infrastructure-Lab/reveal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Semantic-Infrastructure-Lab%2Freveal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32292958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic","ai","cli","code-analysis","developer-tools","file-explorer","progressive-disclosure","python"],"created_at":"2025-12-12T02:35:19.933Z","updated_at":"2026-05-23T06:06:51.592Z","avatar_url":"https://github.com/Semantic-Infrastructure-Lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reveal\n\n**Reveal is how AI agents understand codebases without wasting tokens.**\n\nA local-first, adapter-driven semantic inspection layer — progressive disclosure enforced by design. One CLI, 24 URI adapters, 185+ languages. Structure before content, always. Engineers and AI systems use the same tool, the same syntax, the same progressive drill-down.\n\n```bash\nreveal src/auth.py validate_token           # What does this function do?\nreveal 'calls://src/?target=validate_token' # Who calls it? (cross-file)\nreveal overview .                           # one-glance dashboard: quality, activity, deps\nreveal 'ast://src/?complexity\u003e10'           # What's too complex?\nreveal health ssl://api.example.com domain://example.com ./src  # One-shot health check\nreveal pack src/ --since main --budget 8000 # PR context snapshot for AI agents\n```\n\n## Installation\n\n```bash\npip install reveal-cli\n```\n\n## What Makes It Different\n\n**Progressive disclosure — the only way in.** `dir → file → element` isn't optional; it's the architecture. You cannot accidentally dump 7,000 tokens of raw code.\n\n```bash\nreveal src/                          # tree structure (~50-200 tokens)\nreveal src/auth.py                   # imports, functions, classes (~200-500 tokens)\nreveal src/auth.py validate_token    # exact code (~100-300 tokens)\n```\n\n**Local-first.** No backend, no API keys, no data leaving the machine. Runs in CI/CD pipelines, air-gapped environments, and anywhere you'd use a Unix tool.\n\n**Everything is a URI.** `ast://`, `calls://`, `ssl://`, `mysql://`, `markdown://`, `claude://` — same query operators, same output format, same piping model across all of them.\n\n**Cross-file call graph analysis:**\n```bash\nreveal 'calls://src/?target=fn\u0026depth=3'    # full impact radius before a refactor\nreveal 'calls://src/?rank=callers\u0026top=20'  # most architecturally coupled functions\nreveal 'calls://src/?uncalled'             # functions with no callers — rough check, verify results\n```\n\n**Deep-dive code navigation (works on Python, PHP, and 35+ tree-sitter languages):**\n```bash\nreveal app.py process_batch --boundary       # inputs read, outputs/effects produced\nreveal app.py process_batch --sideeffects    # DB / HTTP / FS / logging calls, classified\nreveal app.py process_batch --deps           # what this range depends on (params, externals)\nreveal app.py process_batch --mutations      # values written here, where they're next read\nreveal app.py :123 --around                  # nearby context from a line number / stack trace\nreveal app.py process_batch --ifmap          # control-flow skeleton (branches + early exits)\nreveal legacy.php :120-340 --boundary        # same flags work on flat PHP, not just OO\n```\nPinpoint inspection inside a single function or line range — built for triaging giant handlers, legacy files, and stack traces without reading top-to-bottom. See [`AGENT_HELP.md`](reveal/docs/AGENT_HELP.md) for the full nav-flag family.\n\n**PR-aware context snapshots for AI agents:**\n```bash\nreveal pack src/ --since main --budget 8000   # changed files first, then key dependencies\nreveal pack src/ --focus \"auth\" --budget 6000 # topic-focused snapshot\n```\n\n**Composable pipelines:**\n```bash\n# nginx config → extract all domains → check each SSL cert\nreveal nginx.conf --extract domains | sed 's/^/ssl:\\/\\//' | reveal --stdin --check\n\n# Find functions that got more complex in this PR\nreveal diff://git://main/.:git://HEAD/. --format json | \\\n  jq '.diff.functions[] | select(.complexity_delta \u003e 5)'\n\n# Batch SSL check from a file of domains\nreveal @domains.txt --check\n```\n\n**Native MCP server (`reveal-mcp`) for AI agent integration:**\n```bash\n# Install once, works in Claude Code, Cursor, Windsurf, any MCP-compatible agent\npip install reveal-cli\nreveal-mcp  # starts the server\n# Six tools: reveal_structure, reveal_element, reveal_nav, reveal_query, reveal_pack, reveal_check\n# Agents get progressive disclosure, deep-dive nav, and call-graph analysis — no subprocess overhead\n```\n\n**Unified health checks across categories:**\n```bash\nreveal health ./src ssl://api.example.com domain://example.com mysql://prod\n# → code quality + cert expiry + DNS health + DB replication, one exit code\n```\n\n**Documentation as a queryable graph:**\n```bash\nreveal 'markdown://docs/?aggregate=type'         # taxonomy frequency table\nreveal 'markdown://docs/?link-graph'             # bidirectional link analysis + orphan detection\nreveal 'markdown://docs/?body-contains=retry\u0026type=procedure'  # full-text + metadata\n```\n\n**AI session history as structured data** *(useful for workflows built on Claude Code)*:\n```bash\nreveal claude://sessions/                          # list all sessions\nreveal 'claude://sessions/?search=validate_token' # cross-session search\n```\n\n## What Reveal Does (and Doesn't)\n\n| Reveal does | Reveal does not |\n|-------------|-----------------|\n| Inspect / read | Modify / write |\n| Evaluate quality | Auto-fix issues |\n| Package for LLMs | Run LLM inference |\n| Compose workflows | Orchestrate pipelines |\n| Describe itself | Require external config |\n\n## Subcommands\n\n```bash\nreveal check src/              # quality check (complexity, maintainability, links)\nreveal review main..HEAD       # PR review: diff + check + hotspots, one pass\nreveal health ssl://site.com   # health check with exit codes 0/1/2\nreveal pack src/ --budget 8000 # token-budgeted snapshot for LLM context\nreveal pack src/ --architecture # pack + entry points + core abstractions brief\nreveal hotspots src/           # top complexity hotspots (✅/⚪ test-coverage per fn)\nreveal overview .              # one-glance dashboard: stats, quality, git activity\nreveal deps .                  # dependency health: circular imports, unused, packages\nreveal architecture src/       # architectural brief: entry points, abstractions, risks\nreveal trace src/ --from main  # execution narrative from an entry point\nreveal contracts src/          # ABC/Protocol/TypedDict/Pydantic inventory\nreveal surface src/            # external boundary map: CLI args, routes, env vars, I/O\nreveal dev new-adapter \u003cname\u003e  # scaffold new adapters/rules\n```\n\n## Adapters (24 built-in)\n\n| Adapter | What it queries |\n|---------|-----------------|\n| `ast://` | Functions, classes, complexity, decorators — 185+ languages |\n| `calls://` | Cross-file call graph: callers, callees, coupling metrics, dead code |\n| `depends://` | Inverse module dependency graph: who imports this module |\n| `diff://` | Structural diff between branches or commits (with per-function complexity delta) |\n| `imports://` | Dependency graph, circular imports, unused imports |\n| `stats://` | Codebase quality scores, hotspots, duplication |\n| `git://` | Commits, blame, branches, tags, function-level history |\n| `ssl://` | Certificate expiry, chain validation, hostname match |\n| `autossl://` | cPanel AutoSSL run logs — per-domain TLS outcomes, DCV failures |\n| `letsencrypt://` | Let's Encrypt certbot live certificates — expiry, multi-domain, renewal status |\n| `domain://` | DNS, WHOIS, registrar, HTTP redirect chain, email DNS |\n| `nginx://` | Config parsing, ACL rules, upstream routing, ACME validation |\n| `cpanel://` | User environment, domains, SSL health, ACL audit |\n| `mysql://` | Schema, replication status, table analysis |\n| `sqlite://` | Schema, query analysis |\n| `markdown://` | Frontmatter, headings, link graphs, full-text search |\n| `json://` | JMESPath queries, nested navigation, flatten |\n| `env://` | Environment variable analysis, `.env` validation |\n| `python://` | Runtime introspection of live Python modules |\n| `patches://` | Test patch pressure: repeated mocks, private patches, patch-heavy tests |\n| `xlsx://` | Excel data extraction and analysis |\n| `claude://` | AI session history, tool usage, file access patterns |\n| `reveal://` | Reveal introspects itself: adapters, rules, config |\n| `help://` | Built-in documentation, searchable from the CLI |\n\n## Documentation\n\n- **[Why Reveal](reveal/docs/WHY_REVEAL.md)** — what makes it powerful\n- **[Quick Start](reveal/docs/QUICK_START.md)** — 5-minute introduction\n- **[What Reveal Is Good For](reveal/docs/guides/WHAT_IS_REVEAL_GOOD_FOR.md)** — organized use cases and best-fit workflows\n- **[MCP Server](reveal/docs/guides/MCP_SETUP.md)** — native integration with Claude Code, Cursor, Windsurf\n- **[CI/CD Recipes](reveal/docs/guides/CI_RECIPES.md)** — GitHub Actions and GitLab CI ready-to-paste YAML\n- **[Benchmarks](reveal/docs/BENCHMARKS.md)** — measured 3.9–15x token reduction on real scenarios\n- **[Recipes](reveal/docs/guides/RECIPES.md)** — task-based workflows\n- **[All Docs](reveal/docs/INDEX.md)** — complete documentation index\n- **AI Agents**: `reveal --agent-help`\n\n## License\n\nSee [LICENSE](LICENSE) for details.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemantic-infrastructure-lab%2Freveal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemantic-infrastructure-lab%2Freveal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemantic-infrastructure-lab%2Freveal/lists"}