{"id":17176288,"url":"https://github.com/evhub/claude-here","last_synced_at":"2025-04-11T01:04:01.432Z","repository":{"id":249713444,"uuid":"832299662","full_name":"evhub/claude-here","owner":"evhub","description":"debug Python with claude.ai","archived":false,"fork":false,"pushed_at":"2024-08-18T22:16:46.000Z","size":136,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:03:56.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-22T18:25:53.000Z","updated_at":"2024-08-21T16:09:12.000Z","dependencies_parsed_at":"2024-07-22T23:12:03.468Z","dependency_job_id":"5e364707-13b8-468b-b56b-1012f5dfe33a","html_url":"https://github.com/evhub/claude-here","commit_stats":null,"previous_names":["evhub/claude-here"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fclaude-here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fclaude-here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fclaude-here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fclaude-here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evhub","download_url":"https://codeload.github.com/evhub/claude-here/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322597,"owners_count":21084336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:59:49.214Z","updated_at":"2025-04-11T01:04:01.413Z","avatar_url":"https://github.com/evhub.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-here\n\n_debug Python with [claude.ai](https://claude.ai/new)_\n\n## usage\n\nJust\n```bash\npip install claude-here\n```\nthen\n```python\nimport claude_here\n```\nand any uncaught exceptions will automatically launch a new conversation in [claude.ai](https://claude.ai/new) pre-filled with information for Claude to help you debug the error.\n\nTo debug something that isn't causing an exception, just add\n```python\nbreakpoint()\n```\nwhere you want to debug and it will automatically launch Claude with info about the current locals to help you debug.\n\n### nice things\n\nSome extra features to note:\n* If a `breakpoint` is hit multiple times, or an uncaught exception is raised after hitting a `breakpoint`, the information sent to Claude will be cumulative.\n* If `claude_here` detects that [`webbrowser`](https://docs.python.org/3/library/webbrowser.html) will use a text-based browser by default, it will instead print an [OSC-8-compliant](https://github.com/Alhadis/OSC8-Adoption/) hyperlink to the terminal for you to open using a graphical browser. This is especially useful if you are debugging a remote machine.\n\n### `breakpoint`\n\n`breakpoint` additionally supports some optional arguments:\n- `msg` can be set to a string that will be included in the information sent to Claude.\n- `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`.\n- `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`](https://docs.python.org/3/library/pdb.html).\n\n### environment variables\n\n`claude_here` supports some additional configuration via environment variables:\n- `CLAUDE_HERE_PROJECT_ID` can be set to a [Claude Projects](https://claude.ai/projects) UUID (`https://claude.ai/project/\u003cthis-part-here-is-the-uuid\u003e`) to launch your debugging conversations in.\n- `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`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fclaude-here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevhub%2Fclaude-here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fclaude-here/lists"}