Skip to main content

bbi-bucky 1.3.9

Bucky adds an application assistant to supported FastAPI projects with a web frontend. The package generates the integration through init and scan; it does not require hand editing the host application for supported layouts.

Install and run

python -m pip install 'bbi-bucky[api,agent,scan,chromadb,yaml,bedrock,attachments]'
bbi-bucky init --project-dir /path/to/application
bbi-bucky scan --project-dir /path/to/application --setup-deps
bbi-bucky doctor --project-dir /path/to/application

Set the LLM provider and model in config/bucky.yaml after init. Use --smart on scan to refine wording from screened documentation with the configured LLM. Both scan modes generate the same route integration, tool manifest, and widget. If the application does not keep an openapi.json file, the scanner infers simple routes and payloads from AST. For complex operations, start the app locally and pass --openapi-url http://127.0.0.1:8000/openapi.json to scan. This URL is restricted to localhost. doctor is read only and reports which operations were verified or skipped. scan --dry-run previews file changes.

Bedrock smart scans allow 180 seconds per model response by default. Set BBI_BUCKY_BEDROCK_READ_TIMEOUT to a value from 10 to 600 seconds if your model needs a different limit. A smart scan failure reports the stage and leaves the deterministic scan available; it does not silently publish partial model output.

init creates:

  • bucky.yaml: LLM provider, mode settings, prompt, and retrieval config.
  • bucky_policy.yaml: editable excluded paths, masked fields, and denied rows. Credential and environment-file exclusions are mandatory.
  • bucky_knowledge.md: editable application guidance.
  • A Bucky FastAPI route when a supported routes directory exists.

scan updates the generated route and configuration, writes bucky_manifest.json, indexes screened guidance in .bucky_chromadb, adds the packaged widget asset, and mounts the route and widget in supported FastAPI/Next.js or shared HTML entrypoints. It refreshes the manifest and widget on later scans. When the host has an application role map, the CLI shows proposed Bucky route grants and asks for Y/N before applying them; --yes accepts these grants for automated installations. Existing non-generated application code is patched only at recognized entrypoints; doctor reports unresolved operations. Keep generated files under review when upgrading an older installation.

The widget now keeps its open state during page navigation, shows navigation as a simple page result, and puts Agent, Plan, and file attachment controls in the composer + menu. The planner asks one application-specific question at a time and offers numbered choices when it can derive them from verified application data. Every question also has Enter manually. The + menu closes on outside click or Escape. Attachments are limited to three files of 2 MB each (.txt, .md, .csv, .json, .pdf, .docx); PDF and DOCX parsing require the attachments extra. The server extracts and masks content locally, stores screened text for one hour under the current user session, and never stores uploaded bytes. Review config/bucky_policy.yaml for your application's sensitive fields and rows before accepting attachments.

For a supported FastAPI host that commits an OpenAPI snapshot and typed TypeScript client, scan recognizes its existing api.openapi_dump and openapi-typescript generators and synchronizes those files after mounting Bucky. --setup-deps offers to install declared Python requirements and npm lockfile dependencies before scanning; use --yes for an approved noninteractive installation. Unknown generators are left unchanged and reported for adapter work. No application source file needs hand editing.

Governance and discovery

GitIngest inventories a temporary local copy of screened files. Environment files, credential paths, private keys, secrets, dependency folders, and generated assets are excluded before GitIngest reads them. AST analysis checks FastAPI route decorators locally. An OpenAPI contract supplies path, query, and JSON body schemas when available; otherwise a conservative AST adapter infers simple primitive and Pydantic payloads. A tool is enabled only when its route and payload are verified. Unsupported bodies, custom required headers, duplicate operation IDs, and uncertain routes are skipped and reported. The manifest records frontend screens, tool schemas, and declared OpenAPI permission schemes. Actual authorization remains with the host API under the current user session.

Only screened user guides and generated application guidance go into ChromaDB. Repository source is neither placed in the chat index nor sent to an external model. The default local_hash embedding runs offline. --smart sends screened documentation summaries to the configured LLM; it does not change the verified tool contract. The policy masks data before model input, model output, MCP results, and widget display. Keep sensitive application-specific fields and row rules current in bucky_policy.yaml.

Agent and Plan

  • Agent is the default mode for both conversation and action. The LLM chooses whether to answer from approved guidance, request a live read for additional context, or use verified application tools. Reads and navigation can run automatically. A proposed write displays its exact plan and waits for Implement. The LLM writes conversational replies; the package validates tool schemas, permissions, and action boundaries in code.
  • Plan handles complex requests by asking the LLM to choose from verified tools. It inspects up to three permitted live reads, preserves the original objective and confirmed answers, and displays up to twenty ordered actions with inputs, reasons, and expected results without acting. Implement switches to Agent and authorizes only that displayed plan. Schema validation and policy checks run before a plan is saved.

A digest binds approval to the displayed actions. Bucky calls the generated MCP server over stdio; its wrappers invoke existing host API endpoints with the current session credentials. The host API enforces user and row permissions. Responses are masked, recorded in a metadata-only audit log, streamed as result cards, and linked to existing application screens. If a write was interrupted after starting, Bucky reports an uncertain outcome and never retries it automatically.

Plan state and LangGraph checkpoints are stored in permission-restricted SQLite files next to the Bucky config. The generated FastAPI integration exposes plan, implement, and resume routes. Changes to action inputs require a new plan. No shell or repository-write tool is exposed. The first agent stage acts through verified APIs and navigates existing pages; it does not click arbitrary browser controls or generate new screens.

When an action is underspecified, planning asks for the missing details and stores confirmed answers in the authenticated planning session. It rejects unverified IDs and values before offering Implement. A plan can bind a later action's argument to an earlier tool response with {"$from_step":0,"path":"/data/id"}. Bucky validates the resulting concrete payload before execution and authorizes only that exact MCP call. Completed result cards are restored from the authenticated principal's plan store after navigation; the browser keeps no tool result data in session storage. Hosts with a shared preview token do not have distinct user identities and must provide real host authentication for per-user isolation. Root-level Vite/CRA HTML shells and literal React Router paths are recognized as frontend entrypoints. Backend route generation remains FastAPI-specific.

For a separate MCP client, run bbi-bucky mcp-serve --project-dir /path/to/application --base-url http://127.0.0.1:8000. This stdio server exposes discovered tools; writes remain blocked unless invoked through an exact approved Bucky plan.

The embedded MCP client starts a local stdio server process for tool calls. The wrapper calls the application's existing HTTP API at BBI_BUCKY_HOST_API_URL when set, otherwise at the current FastAPI server address. This works in a local process, Docker container, or EKS pod when Bucky can reach that API URL and the current user's authentication reaches the Bucky route. The package does not launch the host application, provision containers, or deploy Kubernetes services. It does not currently expose a remotely hosted MCP endpoint; keep the stdio server within the Bucky runtime.

Frontend

The embedded widget uses the BBI Config palette: navy #003d59, orange #fe6625, and white surfaces. Its default size is 620 × 720 pixels. It renders Markdown tables in chat, readable plan steps, structured tool result cards, and existing-screen navigation. Endpoint paths and raw JSON stay out of result cards; verified action labels appear in progress. The widget sends the current page title, path, and headings with questions. Applications can publish additional selected-record state through BbiBucky.publishPageContext() or contextExtractor; this state is masked before it reaches the model.

Development and release gates

From packages/core, run python -m pytest tests. From packages/widget, run npm run typecheck && npm run build:all, then copy dist/bucky-embed.min.js to packages/core/bbi_bucky/assets/ before building the Python wheel. Validate both deterministic and --smart scans from the built wheel against a clean host app, including masking, role and row restrictions, exact payloads, interrupted writes, and navigation. Publish a stage only after its end-to-end package test passes without host hand edits.

The optional Laya decision adapter is included for offline evaluation and remains disabled in production routing. Install bbi-bucky[laya] only to benchmark it. A labeled JSONL file contains query, app_name, tools, scope, retrieve, and tool fields; run bbi-bucky benchmark-routing --dataset labels.jsonl --adapter deterministic and repeat with --adapter laya. Enable Laya for tool shortlisting and retrieval routing only after its labeled accuracy and latency beat deterministic routing on the target application. Permissions, masking, and plan authorization stay in code. Hosted Jev will require explicit opt-in and screened input. Deep-agent delegation and parallel execution remain gated behind production single-agent tests.

Requirements

Python 3.11 or newer. FastAPI plus a web frontend is the automatic backend target. Next.js and shared HTML shells, including Vite/CRA at the repository root, are recognized frontend targets. Other backend stacks still require stack-specific integration work before automatic installation can be claimed.

License

MIT

Metadata

Release files for bbi-bucky 1.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bbi-bucky 1.3.9
File Size Uploaded Provenance Actions
bbi_bucky-1.3.9.tar.gz 184.5 kB Without provenance Details for bbi_bucky-1.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bbi-bucky 1.3.9
File Interpreter ABI Platform Actions
bbi_bucky-1.3.9-py3-none-any.whl Python 3 none any Details for bbi_bucky-1.3.9-py3-none-any.whl

Total release size: 372.1 kB

Release files / bbi_bucky-1.3.9.tar.gz

Download URL bbi_bucky-1.3.9.tar.gz
Size 184.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fa5dd7fd91cb7ab82855bb821c70b1f678940c376409d02e7af707605c41e85e
BLAKE2b-256 checksum
How to use checksums
99383b3b9b4d0a075bc96ee2bdfbe32f4eb81984372bda4e067425f4ddff7dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Release files / bbi_bucky-1.3.9-py3-none-any.whl

Download URL bbi_bucky-1.3.9-py3-none-any.whl
Size 187.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ebf571542b4cac312352c413d52ddb8b2b27902ae7ab92554e0cd2498e81311
BLAKE2b-256 checksum
How to use checksums
886b7190022f00f015b400ca88fe9f3d508656ab8541d173494118e553f068e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Security for bbi-bucky 1.3.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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