Package as pip-installable distribution (agentic-bug-hunter) - #148
Merged
Merged
Conversation
Make the tool installable with `pip install agentic-bug-hunter`, exposing `bughunter` and `bughunter-agent` console scripts, alongside the existing clone + install.sh workflow. - Relocate the runtime into a `bughunter/` package: agent, brain, engine, serve, tools/, agents/, memory/, mcp/, wordlists/. Launchers in __main__ put the package dir on sys.path so the existing flat imports keep working. - Keep Claude Code / OpenCode plugin assets (commands/, skills/, rules/, hooks/) at repo root; point the plugin manifest's `agents` at the packaged copy so both the CLI and the plugin resolve it. - Redirect writable output (recon/findings/reports/targets) to a user data home via BUGHUNTER_HOME, falling back to the install dir when writable (clone) else ~/.bughunter, so read-only pip installs work unchanged. - Add pyproject.toml, MANIFEST.in; ship package data in the wheel. - Update install.sh engine path, pytest pythonpath, and test path anchors for the new layout. Full suite: 767 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the tool installable with
pip install agentic-bug-hunter, givingbughunterandbughunter-agentconsole scripts — in addition to the existinggit clone+./install.shworkflow, which still works.Why
Enables PyPI distribution (and download tracking via pepy/pypistats).
Changes
bughunter/package: relocated the runtime (agent, brain, engine, serve,tools/,agents/,memory/,mcp/,wordlists/). Console-script launchers in__main__.pyput the package dir onsys.pathso the existing flat imports (from brain import,from tools...) keep resolving.commands/,skills/,rules/,hooks/stay where the Claude Code / OpenCode plugin manifest expects them. The manifest'sagentsnow points at the packaged copy (./bughunter/agents), shared by both the CLI and the plugin.recon/,findings/,reports/,targets/) now honorsBUGHUNTER_HOME, falling back to the install dir when writable (a clone) else~/.bughunter. Clone behavior is unchanged.pyproject.toml+MANIFEST.in; all data ships in the wheel.install.shengine path,pytestpythonpath, and test path anchors updated.Verification
twine checkpasses both.bughunter --help,bughunter status,bughunter-agent --helpall run; no writes leak intosite-packages.Not included