Skip to content

feat(examples): add docs grep agent - #1640

Merged
chaliy merged 1 commit into
mainfrom
2026-05-21-docs-grep-agent
May 21, 2026
Merged

chaliy merged 1 commit into
mainfrom
2026-05-21-docs-grep-agent

Conversation

@chaliy

@chaliy chaliy commented May 21, 2026

Copy link
Copy Markdown
Contributor

What

Add a minimal examples/docs-grep-agent/ console app that answers Bashkit docs questions with LangChain 1.0 create_agent, uv, Python, streaming output, optional one-line tool-call logging, and gpt-5.5-low by default.

Add readonly filesystem support to Bashkit and expose it through the Python bindings and LangChain create_bash_tool helpers, so the example can mount docs/examples while blocking filesystem mutation and copy-out.

Why

We want a public-chat-style example that answers Bashkit questions from mounted docs using the builtin Bash tool directly, without custom corpus/tool plumbing.

How

  • Add ReadOnlyFs wrapper and BashBuilder::readonly_filesystem.
  • Thread readonly mode, files, mounts, and allowed mount paths through Python and LangChain bindings.
  • Build the docs agent around native create_agent and bash scripts produced by the model.
  • Mount public docs, rustdoc guides, and curated examples under /docs, with a system prompt entrypoint index.
  • Add self-tests, binding tests, docs, and spec updates.

Risk

  • Medium
  • Changes filesystem layering and Python constructor surface; regressions could affect mounted filesystem behavior or binding argument compatibility.

Checklist

  • Tests added or updated
  • Backward compatibility considered

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit e674f7e Commit Preview URL May 21 2026, 10:19 PM

@chaliy
chaliy merged commit ac7f82e into main May 21, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-21-docs-grep-agent branch May 21, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant