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.1

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.1
File Size Uploaded Provenance Actions
deputy_cli-0.4.1.tar.gz 162.9 kB With provenance Details for deputy_cli-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 214.4 kB

Release files / deputy_cli-0.4.1.tar.gz

Download URL deputy_cli-0.4.1.tar.gz
Size 162.9 kB
Tags Source
SHA-256 checksum
How to use checksums
31cb2869bb68b33ff3341ceb2b485198fff26801388b764ace1516f948cc48c4
BLAKE2b-256 checksum
How to use checksums
f66206baac70f55bd852c345adab1b6784950122cbf33a7ba44c27ab4701bf05
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 26, 2026.

Transparency log

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

Download URL deputy_cli-0.4.1-py3-none-any.whl
Size 51.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
805d636315700ea26b59779210811a81a9a8bcc0064069b6351dee909196d4f5
BLAKE2b-256 checksum
How to use checksums
bece8361a35a263778a312d949a15505680b4b1476512dfac2a84ea45a563d9a
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 26, 2026.

Transparency log

Security for deputy-cli 0.4.1

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.1.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 26, 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