Skip to main content

Workspace summary generator for AI-assisted development workflows.

Project description

IntelScan

IntelScan

IntelScan is a lightweight workspace-summary tool for AI-assisted development workflows. https://pypi.org/project/intelscan

It scans a repository, writes a structured manifest for tools, and generates a human-readable memory file so future agent passes can understand the project without rescanning everything from scratch.

By default, scans skip common large/generated folders such as .git, node_modules, .venv, and __pycache__. IntelScan also loads .intelscanignore and respects .gitignore when present.

What it generates

  • workspace.json - machine-readable workspace metadata
  • workspacememory.md - human-readable workspace summary

These files are generated at the workspace root and are intended to be refreshed as the project changes.

Why it helps

  • Gives agents a fast starting point before broad repo scans
  • Captures file inventory, package metadata, project structure, and Git status when available
  • Keeps a stable handoff artifact for repeated AI-assisted workflows
  • Supports both one-off scans and automated refresh flows

Installation

Prerequisites:

  • Python 3.8+
  • Git on PATH if you want Git metadata included in the generated summary

Install from PyPI:

pip install intelscan

Install a specific release:

pip install intelscan==0.1.1

Install from source:

git clone https://github.com/Debanshu2005/IntelScan
cd IntelScan
python -m pip install .

Quick Start

Run a one-time scan:

intelscan --root .

Run in watch mode:

intelscan --root . --watch

Create a project-local agent guide plus companion agent instruction files when they do not already exist:

intelscan --root . --init-agents

Run an agent command with automatic manifest refresh before and after the pass:

intelscan-agent --root . --agent-cmd "python your_agent_task.py"

The coordinator also exports INTELSCAN_WORKSPACE_ROOT, INTELSCAN_WORKSPACE_JSON, and INTELSCAN_WORKSPACE_MD for agent wrappers that want to consume the generated context automatically.

For source-tree development without installing globally:

python workspace_scanner.py --root .
python workspace_scanner.py --root . --watch
python agent_coordinator.py --root . --agent-cmd "python your_agent_task.py"

Agent Guide Bootstrap

--init-agents creates AGENTS.md as the canonical shared guide and also bootstraps companion files for common agent ecosystems when missing:

  • CLAUDE.md
  • GEMINI.md
  • .github/copilot-instructions.md

Existing files are preserved and are never overwritten.

Main Commands

Scanner CLI:

intelscan --root .
intelscan --root . --watch
intelscan --root . --output-json workspace.json --output-md workspacememory.md
intelscan --root . --exclude-dir .cache
intelscan --root . --max-depth 4 --progress

Coordinator CLI:

intelscan-agent --root . --agent-cmd "python your_agent_task.py"
intelscan-agent --root . --agent-cmd "python your_agent_task.py" --always-refresh
intelscan-agent --root . --agent-cmd "python your_agent_task.py" --skip-initial-scan

Repository Layout

  • src/intelscan/workspace_scanner.py - scanner implementation and CLI entry point
  • src/intelscan/agent_coordinator.py - agent wrapper that refreshes workspace context around a command
  • workspace_scanner.py - thin source-tree launcher for local development
  • agent_coordinator.py - thin source-tree launcher for local development
  • WORKSPACE_SCANNER.md - focused scanner behavior and usage notes
  • tests/test_workspace_scanner.py - coverage for manifest and safety behavior

The project uses a src/intelscan/ package layout. The root Python files are intentionally thin launchers so local development commands still work directly from the repository.

Development

Run tests:

python -m unittest -q

Compile-check the main scripts:

python -m py_compile workspace_scanner.py agent_coordinator.py src/intelscan/workspace_scanner.py src/intelscan/agent_coordinator.py

Build a wheel locally when verifying packaging behavior:

python -m pip wheel --no-build-isolation --no-deps --wheel-dir .tmp_wheelhouse .

Notes

  • Output writes are constrained to the workspace root.
  • Symlinked files and directories are not followed during scans.
  • Git metadata is collected with safe non-interactive commands when Git is available.
  • Use .intelscanignore for scanner-specific exclusions, or --no-gitignore if you need to ignore .gitignore during a scan.
  • Use --max-depth and --progress when scanning very large repositories or monorepos.

Publishing

Release guidance lives in RELEASING.md. The repository also includes a GitHub Actions workflow for PyPI Trusted Publishing at .github/workflows/publish.yml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intelscan-0.1.2.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intelscan-0.1.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file intelscan-0.1.2.tar.gz.

File metadata

  • Download URL: intelscan-0.1.2.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for intelscan-0.1.2.tar.gz
Algorithm Hash digest
SHA256 57c14f61942cbb8605e8ed00792d0bd19914e32c446dc8f002826cc964cb9be4
MD5 a88fb8e574538fd27ec67741731cb0c4
BLAKE2b-256 2301acb1a3308a5c05a2a47508fb8930f3e4fa64489a09e2df4feec2c4727865

See more details on using hashes here.

File details

Details for the file intelscan-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: intelscan-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for intelscan-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77bb78506a89b6d18be0425bd9056f71c0fa94bd2a9538e39e4d665bb56f50e1
MD5 8da8b13e49865f9b1039027b1e5e4ce5
BLAKE2b-256 cb8208e96884b576e166d727b9369d59e920c6545a7c89c9435c8a057ad846dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page