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.
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deputy_cli-0.2.0.tar.gz | 107.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deputy_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 152.4 kB
Release files / deputy_cli-0.2.0.tar.gz
| Download URL | deputy_cli-0.2.0.tar.gz |
|---|---|
| Size | 107.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa6fee36ab45426f0c970ed595c26f5319bd0844ba969894641a60e0bfa03a0c
|
|
BLAKE2b-256 checksum How to use checksums |
8901309c44bc8fdde6aa9fdfec90a6076edc9747d7984f0880c640ba13020707
|
| 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 10, 2026.
Transparency logRelease files / deputy_cli-0.2.0-py3-none-any.whl
| Download URL | deputy_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 44.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12901520307a9c9757ddb0704633d018003221f96daf26cc8f8f7933eb419353
|
|
BLAKE2b-256 checksum How to use checksums |
79f51365aa10902c3bf823273e41ea2ad3c71850e7d0cfc06c7a43ba5d60ab3f
|
| 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 10, 2026.
Transparency log