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

To index more than the project directory, add roots. Lists use : as the separator (; on Windows), and relative paths resolve against the directory where deputy init ran:

deputy config source_roots ../shared/src:vendor/tools
deputy config generated_roots build/generated
deputy config analysis_languages python

See the configuration reference for all keys, how overlapping roots are resolved, and how files are identified.

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.4.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.4.0
File Size Uploaded Provenance Actions
deputy_cli-0.4.0.tar.gz 161.0 kB With provenance Details for deputy_cli-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 212.3 kB

Release files / deputy_cli-0.4.0.tar.gz

Download URL deputy_cli-0.4.0.tar.gz
Size 161.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ce73f4613e2aebced4dbdc887a1c70118ae7344305c2157da90ad685ef1fec61
BLAKE2b-256 checksum
How to use checksums
cce72e57ddae8cf4cfa48bbd98d948243e2dc476f8695cc3c121673bea8a7ad0
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 17, 2026.

Transparency log

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

Download URL deputy_cli-0.4.0-py3-none-any.whl
Size 51.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb4b3b556e50e6c1cbd648fb4016ac5ee7ade019290b998b0ea9a7b63bb70903
BLAKE2b-256 checksum
How to use checksums
ef47d7c39bd9547ac219349b0f11e2e67f58df34fca1c7018e31ddbc6f2d4df7
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 17, 2026.

Transparency log

Security for deputy-cli 0.4.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.4.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 17, 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