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.1.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.1.1
File Size Uploaded
deputy_cli-0.1.1.tar.gz 98.6 kB Details

Built distribution (wheel)

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

Total release size: 138.7 kB

Release files / deputy_cli-0.1.1.tar.gz

Download URL deputy_cli-0.1.1.tar.gz
Size 98.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e762a60d90ef10198e2e071c0486ab8bf859fd60f30e81f4db44605b4844e7de
BLAKE2b-256 checksum
How to use checksums
085126884dab47d97bdce72445c43a278b02eb8bb9bf4db3e661eeb08762bb50
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 Aug 19, 2026.

Transparency log

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

Download URL deputy_cli-0.1.1-py3-none-any.whl
Size 40.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb9c77e76b5c9ea1f363caf6124a3abdb5bfc02681199987fceaa5e39cda9782
BLAKE2b-256 checksum
How to use checksums
e0424cb2f252f3297057bea5e0aaf5f64e88ec66a8c5054bf2f17ad1dc407fd9
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 Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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