You chose R for a reason
You already know what good work looks like.
Bring agents into that work.
Something I wanted for myself
Help me catch up.
Build a habit & get better as I use it.
What should I focus on? What should I keep for later? Where else might I use this?
Thank you, shinychat.
Carson Sievert · Garrick Aden-Buie · Joe Cheng · Barret Schloerke
and everyone who contributes to shinychat
Conversation history
Search for an old chat. Fork your session. Manage state in your shiny app.
Enjoy the perks of persistence out of the box.
shinychat · real UI, scripted sample
Add it to your Shiny app

# In the UI
chat_ui("reader")
# In the server
handle <- chat_server("reader", client = chat)
I can get on with building the reading assistant.
shinychat development · 0.5.0.9000
Deputy gives the agent a job to do

agent <- Agent$new(
chat = chat,
tools = list(read_article),
permissions = Permissions(
mode = "readonly", tool_allowlist = "read_article"
),
usage_limits = UsageLimits(max_requests = 6)
)
result <- agent$run_sync(question)
“What does this article demonstrate, and what is still unresolved?”
Improving the Orientation program

candidate <- compile(
orient,
GEPA(metric = score_orientation),
trainset = examples,
valset = validation,
.llm = chat
)
Compare with the original on unread sets kept out of optimization.
This is what
coherent
looks like.
The agent reads the article.
I can inspect exactly what it read.
CRAN reinforces shared habits:
documentation, dependencies,
and package checks.