Skip to main content

WIA — Workspace Intelligence Agent

AI-powered Workspace Intelligence and Codebase Reasoning Engine.

Python Version PyPI Distribution CLI Tool Test Suite

WIA (Workspace Intelligence Agent) is a CLI-first codebase reasoning engine and workspace intelligence platform. It parses source structures, analyzes abstract syntax trees (AST), constructs rich entity relationship graphs, processes Jupyter notebooks, and grounds AI reasoning in verified codebase evidence.

Repository
    ↓
Files & Notebooks
    ↓
Source Structure & AST
    ↓
Symbols & Base Classes
    ↓
Dependencies & Call Graphs
    ↓
Architecture & Boundaries
    ↓
WorkspaceRetriever & Context Budgeting
    ↓
AI Reasoning Engine (NVIDIA NIM / Provider Abstraction)
    ↓
Evidence-Grounded Answer with Line Citations

⚡ Core Principles & Capabilities

  1. Evidence-Grounded Reasoning (Zero-Hallucination Principle): Every explanation and reasoning response is derived strictly from verified workspace source files, AST symbols, imports, call graphs, tests, and configurations. Missing evidence is explicitly stated rather than replaced with generic template statements.
  2. Provider-Independent AI Architecture: Modular AI provider abstraction (AIProvider) supporting NVIDIA NIM (NvidiaNimProvider), OpenAI (OpenAIProvider), and deterministic offline local reasoning (LocalReasoningProvider).
  3. Strict Credential Security: The PyPI package contains no bundled credentials. Users supply their own API keys via environment variables (e.g. NVIDIA_API_KEY) or wia config. Secrets are 100% masked in logs and CLI outputs.
  4. Jupyter Notebook Understanding (.ipynb): Full cell-level parsing (markdown sections, code cells, imports, functions/classes, execution flow, output summaries) rather than classifying notebooks as "Unknown".
  5. Parallel & Incremental Indexing Engine: High-speed multi-worker indexing (ThreadPoolExecutor) with SHA-256 hash delta matching, failure isolation on malformed files, and measurable performance duration metrics.
  6. Multi-Tier Impact Analysis: Inspects direct dependents, indirect (transitive) dependents, symbol callers, importers, affected tests, affected examples/notebooks, and dependency paths.
  7. Granular File & Tech Stack Classification: 14 functional file categories (Source Code, Notebook, Test, CI/CD, Build, Dependency Lock, Documentation, Configuration, Data, Asset, Script, Binary, Generated, Unsupported).

💻 Installation & Quickstart

1. Installation

Install wia-agent from PyPI:

pip install wia-agent

Verify the installation:

wia --version
wia doctor

2. Configure AI Provider (Optional)

Deterministic features (index, summary, search, explain, impact) run completely offline without an API key. To enable LLM reasoning for wia ask:

# Option A: Set via Environment Variable
export NVIDIA_API_KEY="nvapi-..."

# Option B: Set via WIA Configuration CLI
wia config --set-key "nvapi-..."
wia config --set-provider nvidia
wia config --set-model meta/llama-3.1-70b-instruct

View active configuration:

wia config --show

🛠️ CLI Command Reference

1. wia index — Parallel & Incremental Workspace Indexing

Crawls the workspace, respects .gitignore, detects languages & file types, computes SHA-256 hashes, parses AST symbols, builds the WorkspaceGraph, and scans for security leaks.

# Standard indexing
wia index

# Index with 8 parallel worker threads
wia index --workers 8

# Force complete re-indexing
wia index --force-reindex

2. wia summary — Structured Repository Intelligence

Generates a comprehensive summary separating factual statistics from architectural intelligence.

wia summary
  • Repository Facts: Discovered vs indexed files, languages breakdown, file types (Source, Notebooks, Tests, CI/CD, Manifests), total classes and functions.
  • Repository Intelligence: Project purpose, categorized technology stack, entry points, and subsystem architecture.

Queries file paths, exact symbols, functions, classes, and docstrings, providing exact line numbers and relevance explanations.

wia search Application
wia search "state persistence"
wia search --type class --language Python

4. wia explain — Code & Notebook Explanation

Produces 13-section technical breakdowns for source files, Jupyter notebooks, or individual symbols.

# Explain a source file
wia explain wia/core/retrieval.py

# Explain a Jupyter notebook
wia explain notebooks/analysis.ipynb

# Explain a specific function or class
wia explain WorkspaceRetriever

5. wia impact — Multi-Tier Refactoring Impact Analysis

Analyzes blast radius, direct callers, indirect transitive dependents, affected unit tests, and affected example workflows.

wia impact wia/core/index_model.py
wia impact WorkspaceIndex

6. wia ask — Evidence-Grounded AI Reasoning

Asks natural-language questions about codebase architecture, execution flow, component relationships, or debugging.

wia ask "Explain the project"
wia ask "How does application execution work?"
wia ask "What depends on WorkspaceRetriever?"
wia ask "Where are unit tests located and how is indexing tested?"

🏗️ Architecture

               WIA CLI (Click)
                      │
           Intent Classification & Routing
                      │
       ┌──────────────┴──────────────┐
       │                             │
Deterministic Engine           Reasoning Engine
       │                             │
 ┌─────┴──────────────┐       ┌──────┴──────────────┐
 │ IndexingService    │       │ WorkspaceRetriever  │
 │ ASTParser          │       │ Context Budgeting   │
 │ NotebookParser     │       │ Evidence Assembly   │
 │ WorkspaceGraph     │       │ AIProvider Layer    │
 │ ImpactAnalyzer     │       │  ├─ NvidiaNim       │
 │ SearchEngine       │       │  ├─ OpenAI          │
 └────────────────────┘       │  └─ LocalReasoning  │
                              └─────────────────────┘

🔒 Security & Privacy

  • Zero Hardcoded Secrets: No credentials or private tokens are packaged or committed.
  • 100% Secret Masking: Any API keys in environment or configuration files are masked (nvapi-...***).
  • Offline Determinism: Indexing, searching, impact analysis, and graph building run 100% locally on your machine.

🧪 Testing

Run the full automated test suite (174+ unit, integration, and CLI tests):

python -m pytest -v

📄 License

Apache License 2.0. Distributed as wia-agent on PyPI.

Metadata

Release files for wia-agent 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wia-agent 0.1.2
File Size Uploaded Provenance
wia_agent-0.1.2.tar.gz 89.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wia-agent 0.1.2
File Interpreter ABI Platform
wia_agent-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 204.9 kB

Release files / wia_agent-0.1.2.tar.gz

Download URL wia_agent-0.1.2.tar.gz
Size 89.9 kB
Tags Source
SHA-256 checksum
How to use checksums
00156e6d7c26eaaedc8a7531506325195448999668a923c9347daa115b810d58
BLAKE2b-256 checksum
How to use checksums
93297c4b5f5f8e1adb6319357134d76e1521145cb2f2d15756b2f575e65c08ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / wia_agent-0.1.2-py3-none-any.whl

Download URL wia_agent-0.1.2-py3-none-any.whl
Size 115.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab376bc1a72d41f7dfb6cfb9702e8f3c53180249bcb55167e6064ea9913e3c25
BLAKE2b-256 checksum
How to use checksums
8621d55513710cd48b4c6331ec634dbcfa427ddaf44a823ddf69d17abb812ef1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Security for wia-agent 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wia_agent-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page