Skip to content

feat: Agent session resources, dual send/stop, build-mode rubric - #4890

Merged
forestileao merged 6 commits into
mainfrom
agents-flow-v2
May 19, 2026
Merged

feat: Agent session resources, dual send/stop, build-mode rubric#4890
forestileao merged 6 commits into
mainfrom
agents-flow-v2

Conversation

@bender-rodriguez-unit1

@bender-rodriguez-unit1 bender-rodriguez-unit1 commented May 19, 2026

Copy link
Copy Markdown
Contributor

Agent gets reference docs + UX improvements

Mounted reference files

Agent sessions now mount 52 reference files (workflow guides + vendor component docs). The agent reads them on demand instead of relying on skills or web fetches.

Configured via ANTHROPIC_SESSION_RESOURCES_FILE env var pointing to a JSON file mapping Anthropic file IDs to mount paths.

Send while streaming

Users can send messages while the agent is working (e.g. while sub-agents research). Both Send and Stop buttons appear during streaming.

Build mode spec confirmation

In Build mode, clicking "Start Building" on a rubric sends a short confirmation instead of echoing the full spec back. The agent already has context — no need to repeat it.

Plan mode behavior unchanged (outcome + grading loop).

Clean branch from main with today's changes:

Backend:
- Mount 52 reference files in agent sessions (6 workflow + 46 vendor docs)
- FileResource type + session resource loading from JSON config
- files-api-2025-04-14 beta header for file mounting

Frontend:
- Show Send and Stop buttons simultaneously during streaming
- Ctrl+Enter works while streaming (removed !sending guard)
- Build mode rubric sends short 'Specs approved' instead of full text
- Plan mode rubric triggers outcome/grading loop (unchanged)

No MCP server, no vault manager — CLI + mounted files only.

Signed-off-by: Bender Rodriguez <bender@superplanehq.com>
@superplanehq-integration

Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Bender Rodriguez added 4 commits May 19, 2026 11:03
Shows a friendly greeting with the user's first name while the session
is being created. Once ready, auto-sends a boot message telling the
agent to read canvas state and check integrations.

Signed-off-by: Bender Rodriguez <bender@superplanehq.com>
- Loading greeting uses same bg-slate-100 style as agent messages
- Synthetic greeting prepended to conversation — never disappears
- Boot message uses @@System: prefix (centered grey, not user bubble)
- Greeting shows user's first name from AccountContext

Signed-off-by: Bender Rodriguez <bender@superplanehq.com>
Listens for agent:view-version CustomEvent and sets the matching
version as active, switching the editor to show the draft.

Signed-off-by: Bender Rodriguez <bender@superplanehq.com>
Signed-off-by: Bender Rodriguez <bender@superplanehq.com>
Comment thread pkg/config/config.go Outdated
Comment thread pkg/agents/anthropic/session_resources.json Outdated
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
@forestileao

Copy link
Copy Markdown
Collaborator

👍

@forestileao
forestileao merged commit 1113205 into main May 19, 2026
4 checks passed
@forestileao
forestileao deleted the agents-flow-v2 branch May 19, 2026 15:12
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.

2 participants