Skip to content

docs: add btw.md and custom agents vignettes - #227

Merged
gadenbuie merged 4 commits into
mainfrom
docs/agents-vignette
Oct 1, 2026
Merged

gadenbuie merged 4 commits into
mainfrom
docs/agents-vignette

Conversation

@gadenbuie

Copy link
Copy Markdown
Collaborator

Summary

  • New vignette vignette("btw-md") walks through configuring chats with a btw.md file: the YAML front matter (model, tools, options), project instructions, and how btw resolves and combines user-level and project files (including AGENTS.md/CLAUDE.md fallback).
  • New vignette vignette("custom-agents") builds on it: writing agent files that describe one job (instructions, tools, model) and delegating tasks to subagents from a btw_app()/btw_client() chat.
  • ?use_btw_md now correctly documents how a user-level btw.md is combined with a project's file (client/tools fall back to user-level values, options are merged, both sets of instructions are included).
  • The use_btw_md() template now uses the current cran and sessioninfo tool group names instead of the deprecated search and session aliases.
  • Enables vignette building (VignetteBuilder: knitr, knitr in Suggests).

Verification

Render the vignettes locally: pkgdown::build_reference() isn't needed — just run devtools::build_vignettes() or open vignettes/btw-md.Rmd / vignettes/custom-agents.Rmd in RStudio and knit. On the pkgdown site, both vignettes should appear under Articles.

…ined

The Project or User Scope section said the user-level btw.md was only used when no project file was found. read_btw_file() always combines them: project client/tools win, options are merged, and both sets of instructions are included. Also mention CLAUDE.md in the lookup order and update the example's model and deprecated tool group names.
Replace the deprecated search and session aliases with cran and sessioninfo so new btw.md files don't trigger deprecation warnings.
The chunk demonstrating client selection in btw.md front matter was not
marked eval = FALSE, so R CMD check launched the Shiny app and hung.
@gadenbuie
gadenbuie marked this pull request as ready for review October 1, 2026 21:18
@gadenbuie
gadenbuie merged commit 5865c12 into main Oct 1, 2026
9 checks passed
@gadenbuie
gadenbuie deleted the docs/agents-vignette branch October 1, 2026 21:44
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