Skip to main content

deputy

Code intelligence CLI for Python and Java. Parses source files with deproc, stores entities (classes, functions, imports, etc.) in a local SQLite database, and provides commands to search, inspect, and resolve symbols.

Full documentation →

Installation

pip install deputy-cli
# or: uv tool install deputy-cli

Quick start

deputy init                                    # create database
deputy sync                                    # scan & index project (.py/.pyi/.java)
deputy search "Model"                          # find entities matching regex
deputy search "Controller" --language java     # Java-only search
deputy info deputy.core.create_context          # inspect an entity
deputy info com.example.Main --columns full_path,type,superclass,implements
deputy resolve deputy.utils.storage.FileMetadata  # resolve through imports
deputy subclasses myapp.models.BaseModel       # find direct subclasses
deputy pin-inheritance myapp.models.Model Base models.py:10  # pin ambiguous base

Configuration

Deputy uses a key-value config file (.deputyconfig) in the project root:

deputy config enable_cache true       # cache resolution results
deputy config auto_sync true          # auto-sync before queries
deputy config display_mode tree       # tree view for search results
deputy config sync_deps true          # index .venv dependencies

Logging

deputy config log_level DEBUG         # most verbose
deputy config log_level WARNING       # default
deputy -v sync                        # one-off debug mode
deputy --quiet search "Model"         # errors only

Development

git clone https://github.com/gurveervirk/deputy
cd deputy
uv sync
uv run pytest

Agent Skills

deputy ships an Agent Skills definition at .agents/skills/deputy/SKILL.md. This teaches AI coding agents how to use deputy for code intelligence tasks.

Supported agents: Claude Code, OpenCode, Cursor, GitHub Copilot, VS Code, Codex, Gemini CLI, Junie, and 20+ others.

Auto-discovery: When an agent works in this repository, the skill is discovered automatically.

Install in other projects:

npx skills add gurveervirk/deputy

License

See LICENSE.

Metadata

Release files for deputy-cli 0.3.0

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

Source distribution (sdist)

Source distribution for deputy-cli 0.3.0
File Size Uploaded Provenance Actions
deputy_cli-0.3.0.tar.gz 148.2 kB With provenance Details for deputy_cli-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deputy-cli 0.3.0
File Interpreter ABI Platform Actions
deputy_cli-0.3.0-py3-none-any.whl Python 3 none any Details for deputy_cli-0.3.0-py3-none-any.whl

Total release size: 198.9 kB

Release files / deputy_cli-0.3.0.tar.gz

Download URL deputy_cli-0.3.0.tar.gz
Size 148.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5ba61ae3c98e5b4b4aaeb69941b5ee71f08680e45c46b1576f0e0c25bf8dc23e
BLAKE2b-256 checksum
How to use checksums
dca568399b2574f79360dff0f6222e092308fd285eca580d5c3d59f18a0de06d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / deputy_cli-0.3.0-py3-none-any.whl

Download URL deputy_cli-0.3.0-py3-none-any.whl
Size 50.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ddeaff879143cfe4ceed6c31296126e046e62f6e31be55d5833c53d6acd89f7
BLAKE2b-256 checksum
How to use checksums
52188f9ee8321c5220d459eac46454304101f8a54a7fd319fecebb893b16dbfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for deputy-cli 0.3.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deputy_cli-0.3.0.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 Nov 3, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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