Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
debug Python with claude.ai
Just
pip install claude-here
then
import claude_here
and any uncaught exceptions will automatically launch a new conversation in claude.ai pre-filled with information for Claude to help you debug the error.
To debug something that isn't causing an exception, just add
breakpoint()
where you want to debug and it will automatically launch Claude with info about the current locals to help you debug.
Some extra features to note:
breakpoint
is hit multiple times, or an uncaught exception is raised after hitting a breakpoint
, the information sent to Claude will be cumulative.claude_here
detects that webbrowser
will use a text-based browser by default, it will instead print an OSC-8-compliant hyperlink to the terminal for you to open using a graphical browser. This is especially useful if you are debugging a remote machine.breakpoint
breakpoint
additionally supports some optional arguments:
msg
can be set to a string that will be included in the information sent to Claude.just_gather_info=True
will gather information to send to Claude later (on an uncaught exception or breakpoint
without just_gather_info=True
) without actually launching Claude or the base_debugger
.base_debugger
determines the debugger to call in addition to launching Claude. Defaults to the previous breakpoint
handler, which by default is pdb.set_trace
.claude_here
supports some additional configuration via environment variables:
CLAUDE_HERE_PROJECT_ID
can be set to a Claude Projects UUID (https://claude.ai/project/<this-part-here-is-the-uuid>
) to launch your debugging conversations in.CLAUDE_HERE_VERBOSITY
can be set to a positive integer that will determine how much information to send to Claude; the larger the value the more info is sent to Claude. Defaults to 10
.FAQs
debug Python with claude.ai
We found that claude-here demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.