Manuscript Offprint
arXiv:2610.28929Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
A Technical Report
ABBAS PIRMORADI, University of Regina, Canada
ORLAND HOEBER, University of Regina, Canada
MILAD MOMENI, University of Regina, Canada
ANNA CHU, University of Regina, Canada
This technical report documents the design and implementation of Scriptorium, a digital library search interface designed to support multi-human, multi-AI collaboration: full cross-user transparency of search activity combined with a Manager–Worker architecture of seven role-specialized generative AI agents. A companion short demonstration paper describes Scriptorium’s interaction design [27]; because a demonstration format is constrained to a few pages, it necessarily omits most implementation detail. This report documents Scriptorium’s complete system architecture, data model, collaborative-interaction design rationale, and AI orchestration mechanism, including verbatim agent prompts, the deterministic guardrails that constrain them, the language model and retrieval configuration, and the steps needed to run the system, so that the design can be inspected, critiqued, reproduced, and reused by other researchers. We also discuss the system’s current limitations and the user study we are planning to evaluate its central hypothesis: that combining collaborative transparency with scoped multi-agent AI assistance increases serendipitous cross-pollination between collaborators’ research threads.
CCS Concepts: • Information systems → Search interfaces; Digital libraries and archives; • Human-centered computing → Collaborative and social computing; • Computing methodologies → Multi-agent systems.
Additional Key Words and Phrases: Collaborative search, digital libraries, exploratory search, multi-agent systems, generative AI, transactive memory, sensemaking, system architecture
1 Introduction
Interactive information retrieval research has, over the last two decades, separately established that (1) complex academic search tasks benefit from collaborative support, awareness of collaborators' activity, mechanisms for dividing labour, and persistence of shared state [22]; and, more recently, that (2) such tasks benefit from generative-AI-augmented workspaces that scaffold an individual searcher's metacognitive planning, monitoring, and evaluation [6, 7, 25]. No existing system we are aware of combines both: a workspace in which several people can see and build on one another's activity, and in which several, differently scoped AI agents, rather than one general-purpose assistant, can be invoked to reason over that shared activity.
We built Scriptorium to explore this combination directly. A companion short demonstration paper describes Scriptorium’s interaction design and its planned interactive demonstration [27]; that paper necessarily omits most implementation detail in order to fit a demonstration track’s page limit. This report is the companion technical document referenced there. It is intended for readers who want to understand, reproduce, critique, or extend Scriptorium’s architecture, rather than to argue for the research contribution itself, which is the demonstration paper’s purpose.
Authors' Contact Information: Abbas Pirmoradi, Department of Computer Science, University of Regina, Regina, Canada, abbaspirmorady@uregina.ca; Orland Hoeber, Department of Computer Science, University of Regina, Regina, Canada, orland.hoeber@uregina.ca; Milad Momeni, Department of Computer Science, University of Regina, Regina, Canada, miladmomeni@uregina.ca; Anna Chu, Department of Computer Science, University of Regina, Regina, Canada, annachu@uregina.ca.
Pirmoradi et al.
The remainder of this report is organized as follows. Section 2 situates Scriptorium's two design axes, collaborative transparency and multi-agent AI, within prior work, and traces each of the seven agents to its precedents. Section 3 describes the research framing and design goals behind the system. Section 4 documents the software architecture, technology stack, and data model. Section 5 explains the design rationale behind Scriptorium's collaborative-interaction features. Section 6 documents the multi-agent AI orchestrator in detail, including verbatim agent prompts, routing logic, and deterministic guardrails. Section 7 gives the language model, retrieval, and runtime configuration, the REST interface, and the steps needed to run the system. Section 8 states the system's known limitations plainly. Section 9 discusses the system's relationship to retrieval-augmented generation and outlines our planned evaluation.
2.1 Collaborative Search
SearchTogether [22] is the foundational system in this space, establishing that a collaborative Web search interface should provide awareness (per-user query histories, page-visitation metadata, ratings and comments visible to teammates), division of labour (integrated messaging, a recommendation mechanism, and automatic query-splitting across a group), and persistence (an automatically generated shared summary of a session). Its evaluation is particularly instructive for Scriptorium's design: awareness features were rated the most valuable part of the system, while the automatic division-of-labour features (split search, multi-engine search) saw little use, in part because they implicitly required one group member to act as a leader pushing work onto others, a role that did not suit the peer collaborators in that study. Scriptorium's transparency-by-default workspace model can be read as pushing SearchTogether's awareness principle to its logical extreme: rather than requiring an explicit "recommend" or "split search" action to share information, all activity within a workspace is visible to all members continuously, without requiring anyone to take on a coordinating role.
2.2 AI-Augmented Exploratory and Workspace-Based Search
A separate line of work has embedded structured workspaces and, more recently, generative AI into exploratory search interfaces to support metacognition, the planning, monitoring, and evaluation of one's own search progress [6, 7]. Cross-session search, resuming a complex task after a gap of hours, days, or weeks, has been studied both as a behavioural phenomenon [19] and as a design target, with visualized search-history timelines shown to support task reacquaintance [10, 12]. WESearch [25] extends this line with generative-AI-produced summaries at both a nested-workspace and whole-workspace level, explicitly framing this as workspace-augmented generation (WAG) rather than retrieval-augmented generation (RAG), since the summarized content is exactly what a searcher has deliberately chosen to save, not what a retrieval ranker judged relevant to a query. We adopt this WAG framing in Scriptorium's own design (Section 6) and extend it to a setting where the workspace being summarized, critiqued, or bridged is the product of multiple searchers' saved and discarded resources, not one person's. Accessibility-focused work such as SearchPath [29] demonstrates a related but distinct use of a persistent timeline, as a working-memory aid for students with dyslexia, reinforcing a broader point in this literature that exploratory search interfaces should not assume uniform reading, memory, or attention capacity among their users [20]. Hoeber's design principles for exploratory search interfaces [11] synthesize much of this body of work and directly informed several of Scriptorium's interaction choices, in particular the preference for lightweight, persistent, and interactive additions to a familiar search-engine-results-page paradigm over novel, complex visualizations. Prior work from our own group on dynamic tagging, highlighting, and filtering of
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
3
saved search results [1] and on keyword-linked exploratory browsing [13] similarly motivated specific Scriptorium mechanisms (tag-based saving, filterable saved-result views), though, again, all of this prior work is single-user. The rise of AI agents as active participants in the search process, rather than as a single conversational answer engine, is a recent framing [39] that Scriptorium operationalizes concretely through its seven-agent Manager–Worker architecture (Section 6), and which relates to, but is architecturally distinct from, retrieval-augmented generation approaches [9] more broadly. Self-regulated learning during search, an individual’s process of goal-setting, monitoring, and adapting strategy [34], becomes, in a multi-user workspace, a process that a group must additionally negotiate and reconcile, a phenomenon Scriptorium’s transparency mechanisms are designed to surface rather than hide. Finally, motivating the underlying complexity Scriptorium is designed for, graduate student searchers report specific, persistent difficulty tracking what has already been searched and by whom, even when working entirely alone [14], and idea-generation tools such as SearchIdea [3] demonstrate that AI-generated prompts, when properly scoped, can support creativity rather than merely convenience during academic search, a design lesson reflected in several of Scriptorium’s individual agents.
2.3 Precedents for the Seven Agents
Each of Scriptorium’s seven agents operationalizes a form of search support with an established research record. We summarize that record agent by agent, and then state what Scriptorium adds to it.
HERMES (Navigator). Query suggestion is among the longest-studied aids in interactive search. Kelly et al. [16] compared query and term suggestion features and found that searchers preferred suggested queries to suggested terms. In exploratory literature search, Medlar et al. [21] showed that alternative queries can also act as keyword summaries of the results page: with them, participants opened about half as many documents per query yet were exposed to over 40% more results. Large language models can now write such queries; Wang et al. [37] found that ChatGPT generates high-precision Boolean queries for systematic review search, at a cost in recall. Closest to HERMES, Khakshoor and Hoeber [17] use generative AI to suggest broader and narrower queries grounded in a searcher's recent exploratory search activity. HERMES shares this grounding in search history but differs in whose history it reads: its suggestions are conditioned on the whole group's queries and on the titles of documents the group has saved and discarded, so that a proposed query avoids ground any collaborator has already covered or rejected.
JANUS (Bridge). Two precedents frame JANUS. Literature-based discovery began with Swanson's observation that two literatures that had never cited one another, one linking dietary fish oil to reduced blood viscosity and one linking Raynaud's syndrome to high viscosity, jointly implied a hypothesis that neither contained [32]. In collaborative search, Pickens et al. [26] introduced algorithmic mediation, in which a system combines the activity of two or more people searching together, simultaneously, so that one can survey for promising documents while the other judges them in depth. We return to how JANUS differs from both below.
ARIA (Synthesizer). Tombros and Sanderson [33] showed that summaries tailored to the query let searchers judge relevance more accurately and more quickly than static summaries built from a document's leading sentences. Orin and Hoeber [25] carried summarization into the workspace, generating summaries of what a searcher has saved rather than of what a ranker retrieved. ARIA narrows this further, summarizing only the documents a collaborator attaches to the current message.
MINERVA (Methods). Structured extraction from research abstracts has a long history in evidence-based medicine, where Nye et al. [23] annotated 5,000 abstracts of randomized controlled trials with their populations, interventions, and outcomes to support automated extraction. With large language models, Khraisha et al. [18] found that GPT-4
Pirmoradi et al.
could rival humans on some systematic-review tasks under specific conditions, but that its data extraction was only moderate once chance agreement was accounted for. MINERVA is accordingly bounded to what an abstract states, and reports a missing element as not stated rather than inferring it.
CLIO (Citations). Walters and Wilder [36] found that 55% of the citations GPT-3.5 produced in short literature reviews, and 18% of those produced by GPT-4, were fabricated, and that many citations to real works contained errors. CLIO therefore formats references from catalogue metadata rather than generating them, and marks a missing field instead of supplying one.
SOCRATES (Critic). Crescenzi et al. [7] designed a workspace tool to support the metacognitive planning and monitoring of exploratory search, and Danry et al. [8] showed that AI explanations framed as questions improved people's logical discernment compared with explanations that simply asserted a conclusion. SOCRATES combines the two: it critiques the group's evidence base for gaps, and ends with a question rather than a verdict.
MOMUS (Counterpoint). Devil's advocacy is an established structure for group decisions: Schweiger et al. [28] found that groups using devil's advocacy or dialectical inquiry produced higher-quality recommendations than groups seeking consensus. Chiang et al. [4] gave the role to a large language model and found that an LLM devil's advocate arguing against an AI recommendation can promote a group's appropriate reliance on AI without substantially increasing workload. The need is acute in search. White [38] showed that searchers favour positive information over negative, that search engines strongly favour one, usually positive, perspective irrespective of the truth, and that around half of the answers searchers settled on were incorrect; Sharma et al. [30] found that LLM-powered conversational search led participants to more biased querying than conventional search, especially when the model reinforced their views. MOMUS applies devil's advocacy to the corpus a group has assembled rather than to a single decision.
What is new. None of these capabilities is new on its own, and we do not claim otherwise. What is new is the setting in which all seven operate: one multi-author evidence base that includes what the group discarded, which HERMES, SOCRATES, and MOMUS read as negative relevance judgements. JANUS goes further: to our knowledge, it is a new kind of search support, and it differs from algorithmic mediation [26] on four counts.
(1) Synchronous versus asynchronous. Algorithmic mediation supports people searching at the same time. JANUS works over persistent activity accumulated across sessions, and is useful precisely when collaborators are not searching together.
(2) Retrieval versus interpretation. Algorithmic mediation acts on retrieval, deciding which documents each partner is shown. JANUS acts on interpretation: it produces a natural-language account of what each collaborator's thread is about and where the threads connect, together with one bridging query to pursue that connection.
(3) Assigned roles versus peers. Algorithmic mediation divides the work between complementary roles. JANUS assumes peers without roles, consistent with SearchTogether's finding that division-of-labour features which presume a leader went largely unused [22].
(4) Inside the retrieval loop versus in the open. Algorithmic mediation operates within the system’s retrieval of results. JANUS is invoked on demand and posts its account into the shared chat, where any collaborator can read and contest it.
Its input, the difference between collaborators' activity, has no single-user counterpart, which is why its preflight guard (Listing 2) refuses a request until at least two people have activity. Swanson's literature-based discovery [32] is the closer analogy in spirit, joining bodies of work that do not reference each other; JANUS applies that idea to the live, partial threads of a research group rather than to published literatures.
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
5
3 Research Framing and Design Goals
Scriptorium is a research prototype, not a production system. It deliberately makes search activity transparent across all users rather than siloed per account: any logged-in user can see and resume any workspace, view the full, colour-coded activity timeline of every collaborator, and read the shared chat thread, including the AI's responses within it. This is a design choice made in direct service of a research question, whether full transparency increases serendipitous cross-pollination between collaborators' independent research threads, rather than a default that a production multi-tenant SaaS product would responsibly make. Four concrete design goals follow from this framing:
(1) Ambient awareness over explicit sharing. Following the SearchTogether finding discussed in Section 2, information about a collaborator's activity should be visible by default, not only when someone explicitly recommends or pushes it.
(2) Auditable, not monolithic, AI assistance. A group working together should be able to trust not only that an AI agent produced an answer, but see what evidence, specifically, it was allowed to see when producing it.
(3) Genuine, not synthesized, activity records. Every event surfaced in the collaborative timeline corresponds to a real, tracked system event (a query issued, a document saved, a document's removal flag flipped, a document opened); no event type is fabricated purely to make the timeline appear more complete, since the timeline itself may become a data source for studying the group's actual behaviour.
(4) Lightweight extension of a familiar paradigm. Consistent with Hoeber’s design principles for exploratory search interfaces [11], collaborative and AI features are layered onto a conventional search-engine-results-page interaction model rather than replacing it with an unfamiliar paradigm.
4 System Architecture
4.1 Technology Stack
Scriptorium is built on the MERN stack (MongoDB, Express, React, Node.js) [31]. The frontend is a React single-page application [15] using Redux Toolkit for state management (one slice per data domain) and a combination of Tailwind CSS and hand-written CSS modules for an archival visual design system. The backend is an Express REST API running on Node.js [2], with MongoDB object-document mapping onto a MongoDB database [5] (Atlas-hosted or local, depending on deployment). Figure 1 summarizes the high-level architecture. The agent orchestrator (backend/ai/AIOrchestrator.js) runs on the server: the chat interface sends each agent request to POST /api/ai/chat, and the backend assembles the request's context from the database, applies the orchestrator's scoping and guards, and calls the OpenAI API (Section 7). The model API key is therefore held only by the server and never reaches the browser. Document-search results shown on the search engine results page (SERP) are retrieved live from Ex Libris Primo [35], an institutional library discovery and metadata API; Scriptorium is a collaborative layer over an existing discovery system, not a replacement for one, which is what makes its mechanisms portable across any institution using a compatible discovery service.
4.2 Data Model
Table 1 summarizes the core MongoDB models. Two distinctions in this model are deliberate and worth stating explicitly. First, Document records distinguish saved (doc_isRemoved: false) from deleted (doc_isRemoved: true) resources via a soft-delete flag rather than a hard delete: a discarded resource remains visible in the collaborative timeline, dimmed and struck through, as a record of a direction the group considered and abandoned, which is itself a research-relevant
Pirmoradi et al.

Fig. 1. Scriptorium architecture. The Manager–Worker orchestrator runs in the backend, which builds each agent's context from the database and calls the OpenAI API; the browser never contacts the model directly.
Table 1. Core data model.
| Model | Purpose | Key fields |
|---|---|---|
| User | Account | username, password (bcrypt) |
| Workspace | A named research project, owned but visible to all users | name, userId (owner), archive flag |
| Query | One search-topic instance within a workspace | query text, userId, username, workspaceId, workspaceName |
| Document | A saved (or since-removed) search result | documentId (catalogue record id), queryId, workspaceId, userId, username, queryKey, title, doc_type, doc_authors, doc_date, doc_abstract, doc_url, doc_isRemoved |
| ChatMessage | One human or AI chat message | workspaceId, queryText, queryId, username, userIndex, text, agentKey, docRefs, suggestedQueries |
| ViewLog | A genuine “document opened” event | workspaceId, queryId, documentId, username |
signal distinct from a resource never having been found at all. Second, ViewLog records a genuine “a user opened this document” event, kept separate from Document, so that the activity timeline’s four event facets (search, save, delete, view) each correspond to an actual tracked action rather than a synthesized one (see design goal 3, Section 3).
4.3 Live-Update Mechanism
The collaborative timeline and chat refresh via a three-second polling interval rather than WebSockets or server-sent events: the chat panel refetches the workspace's messages, and the results page refetches the workspace detail (every query with its saved and removed documents) and the view log, each every three seconds. A separate, slower poll (sixty seconds) refreshes the current topic's cross-user document list, which supplements the workspace detail when agent context is built (Section 7). This was a deliberate simplicity choice: at the scale of a research prototype's target cohort (at most approximately nine concurrent testers in our planned study), a three-second poll is imperceptibly different from a push-based update, and avoids the operational complexity of running and maintaining a WebSocket server for a system that will not be deployed at production scale.
5 Collaborative Interaction Design
Figures 2 and 3 show the three interface surfaces discussed in this section: the workspace dashboard, the workspace details page used for cross-session review, and the search results page with its collaborative dock.
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
7
Scriptorium
M
Search
Start a new search task to create a workspace
WORKSPACE
SEARCHES
DOCS
Data Mining Information Retrieval
by Orland
Q 2
1
View
Resume task
Complex Networks Graph Theory
by Orland
Q 2
2
View
Resume task
Human Computer Interaction UX Design
by Abas
Q 1
0
View
Resume task
Misinformation And Search Literacy
by Abas
Q 6
7
View
Resume task
(a) Dashboard
Scriptorium
A
Search
Workspace: Misinformation and Search Literacy
Total Queries: 6
Total Documents: 7
All Topics
Source Evaluation Heuristics
Students
Oct 13, 2026, 12:17 AM
Information Literacy Instruction
Undergraduates
Oct 13, 2026, 12:08 AM
Q Lateral Reading Fact Checking
Oct 13, 2026, 12:06 AM
Filter Bubble Algorithmic
Search Timeline
all
queries
views
saves
deletes
DELETED
Oct 13, 2026, 12:19 AM
Teaching information literacy skills to social sciences students and practitioners: a casebook of applications
by Orland
VIEWED
Oct 13, 2026, 12:18 AM
Putting 'filter bubble' effects to the test: evidence on the polarizing impact of ideology-based news recommendation from two experiments in Germany and the U.S
by Orland
SAVED
Oct 13, 2026, 12:18 AM
Echo Chamber and Polarization in Social Media : An Agent-Based Modeling Approach
by Abas
VIEWED
Oct 13, 2026, 12:17 AM
Echo Chamber and Polarization in Social Media : An Agent-Based Modeling Approach
by Abas
source evaluation heuristics students
Oct 13, 2026, 12:17 AM
Chat
-
Barbera, P. (2015). Exposure to ideologically diverse content on Twitter. (to verify)
-
Gentzkow, M., Shapiro, J. M. (2010). What Drives Media Slant? (to verify)
Orland:
@janus where do our threads
connect?
Oct 13, 2026, 12:16 AM
JANUS Bridge
00:16
Abas: Misinformation, search
literacy, echo chambers, and filter
bubble effects in social media.
Orland: Information literacy, fact-
checking, lateral reading for
undergraduates.
Strongest connection: Both threads
center on information-literacy
approaches to counter
misinformation and understand
platform-driven echo-
chamber/n polarization dynamics
Type your message
(type @ to ask an agent)
Send
(b) Workspace details
Fig. 2. The dashboard lists every workspace to every collaborator (a), and the workspace details page reviews a project's topics, timeline, and chat across sessions (b).
Pirmoradi et al.
Scriptorium
A
< Dashboard / Workspace: source evaluation heuristics students / Search results
SEARCH RESULTS: 1,089
source evaluation heuristics students


Save
ARTICLE 2022 Communication education, 2022-04, Vol.71 (2), p.108-124
Exploring students' perceptions of identity and helper heuristics in the online classroom discussion board Lin Xialing, Kaufmann Renee, Spates Stephen A, Lachlan Kenneth A, Spence Patric R
Although applied to numerous communication contexts, affordance approaches have yet to receive sustained attention in the instructional literature. The ongoing migration to online pedagogy suggests a need to examine the impact of technological afford... Read more
PEER REVIEWED
FULL TEXT AVAILABLE >

Save
E-BOOK 2014
Recommendation Systems in Software Engineering
Robillard Martin P, Maalej Walid, Walker Robert J, Zimmermann Thomas
With the growth of public and private data stores and the emergence of off-the-shelf data-mining technology, recommendation systems have emerged that specifically address the unique challenges of navigating and interpreting software engineering data.... Read more

Save
ARTICLE 2019 British journal of educational psychology, 2019-09, Vol.89 (3), p.485-500
Improving university students' web savvy: An intervention study
McGrew Sarah, Smith Mark, Breakstone Joel, Ortega Teresa, Wineburg Sam
Background Young people increasingly turn to the Internet for information about social and political issues. However, they struggle to evaluate the trustworthiness of the information they encounter online. Aims This pilot study investigated whether a... Read more
PEER REVIEWED
FULL TEXT AVAILABLE >

Save
EBOOK 2017
Computational thinking : a beginner's guide to problem-solving and programming
Beecher Karl
Computational thinking (CT) is a timeless, transferable skill that enables you to think more clearly and
Timeline
Chat
Search Timeline
all
queries
views
saves
deletes
TODAY
DELETED
Oct 13, 2026, 12:19 AM
Teaching information literacy skills to social sciences students and practitioners: a casebook of applications
by Orland
VIEWED
Oct 13, 2026, 12:18 AM
Putting 'filter bubble' effects to the test: evidence on the polarizing impact of ideology-based news recommendation from two experiments in Germany and the U.S
by Orland
SAVED
Oct 13, 2026, 12:18 AM
Echo Chamber and Polarization in Social Media : An
Chat
Agents
@aria what do these two agree on?
Oct 13, 2026, 12:13 AM
ARIA Synthesizer
00:13
Document 1
- Summary: Assesses whether an echo-chamber exists in educational policy debates using bibliometric methods and social-media activity of intermediary actors; finds preliminary
Drop here
@aria
Ask ARIA
Exploring students' percept...
Lin, Xialing, Kaufmann, Ren...
ARIA
CLIO
HERMES
SOCRATES
MINERVA
NOMUS
JANUS
Fig. 3. The SERP provides the library's search results alongside a dock that holds the group's activity timeline and shared chat.
5.1 Transparent Workspaces
Any logged-in user sees every workspace on the dashboard, a flat list sorted most-recent-first, not only workspaces they created or were invited to. Each card shows the creator's username, search and document counts, and two actions: View (open the workspace's activity overview) and Resume task (jump directly into the SERP for that workspace's most recent search). Edit, archive, and rename actions remain restricted to the workspace's creator, enforced in both the UI and, for the create/update path, server-side, so that "everyone can view or resume" is deliberately decoupled from "everyone can modify." This is the system's central methodological choice: full cross-user visibility is what makes serendipitous discovery, a collaborator stumbling onto a teammate's search thread without being explicitly invited into it, observable and possible at all.
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
9
5.2 The Search Timeline
A single chronological stream merges the four genuinely tracked event types described in Section 4 (search, save, delete, view), filterable by type, grouped by day, and live-updating via the polling mechanism above. Two independent colour channels are used, deliberately kept visually disjoint so that a reader's eye never confuses what happened with who did it. The first channel encodes event type: the left border, icon, and type label of each timeline entry share one colour per event type (blue for search, emerald for save, red for delete, violet for view). These specific hues were not chosen arbitrarily: green and red for save and delete mirror the near-universal version-control diff convention (additions in green, removals in red), and violet for "viewed" mirrors the browser :visited-link convention dating to the earliest CSS specifications. The second channel encodes the acting user: a small coloured avatar-initial chip next to "by {username}" draws from a separate 15-colour palette (ColorBrewer "Set3"), assigned first-come-first-served per session via a session-scoped username-to-colour map. This first-come-first-served assignment was chosen deliberately over a hash-based scheme, which was tried first and rejected, because hash collisions could silently assign two different users the same colour; the first-come-first-served map guarantees no two users share a colour for cohorts of up to fifteen concurrent participants.
5.3 Persistent Chat
A shared chat thread is scoped to a workspace by default, persisting across however many distinct searches happen inside that workspace over its lifetime. An earlier version of the system scoped chat per search-topic instead; this caused chat history to visibly disappear the moment a new search was issued within the same workspace, a usability problem that was identified during internal testing and corrected by re-scoping chat to the workspace level. On the workspace-details page specifically (a page for reviewing past search topics one at a time via a sidebar), chat can optionally be re-scoped to whichever topic is currently selected in that sidebar, since that page's entire interaction model, unlike the active-search SERP, is built around browsing discrete past topics rather than a single continuous session.
5.4 Adapting Interface Complexity to Task Context
The same Timeline-and-Chat dock component renders two different ways depending on context. On the active-search SERP, it is collapsible to an icon strip, offers a combined mode with a resizable drag-divider between Timeline and Chat, and persists its configuration across sessions, on the premise that a researcher actively working a search benefits from maximum layout flexibility. On the workspace-details page, the same underlying component is instead always expanded and fills the space beside the topic sidebar. When that space is at least 690 pixels wide, Timeline and Chat sit side by side, keeping activity and conversation in view together as the SERP's combined mode does; narrower than that, the panel falls back to a two-way tab switch that opens on Timeline, and the hidden chat keeps polling so that its tab can show an unread count. The SERP's collapse and resize controls are omitted there, since that page already provides its own primary navigation (a sidebar of past topics) and the SERP's extra chrome would add complexity without benefit to a "review what happened" task rather than an "actively searching" one. Search-result pagination follows the same task-sensitive philosophy in a smaller way: rather than rendering every page number for result sets that can exceed 200 pages, or a sliding window that recenters on every click, results pages are shown in fixed blocks of up to ten page numbers, jumping to the next block of ten once a user pages past the current window, matching how large result sets are conventionally paginated.
Pirmoradi et al.
Table 2. The seven agents in Scriptorium's AI orchestrator.
| Agent | Role | Scoped input / behaviour |
|---|---|---|
| ARIA | Synthesizer | Documents attached to the current message only; summarizes each independently without cross-document comparison. |
| CLIO | Citations | Attached documents' metadata, or saved documents if none attached; formats a reference list, marking missing metadata explicitly rather than inventing it. |
| HERMES | Navigator | Query history plus saved/deleted titles; returns five clickable, -word query suggestions as structured JSON. |
| SOCRATES | Critic | Whole workspace: all queries, saved and deleted documents, recent chat; identifies evidence gaps and asks one sharpening question. |
| MINERVA | Methods | Attached (or saved) documents' abstracts; extracts study design, data source, sample, and analysis method where stated. |
| MOMUS | Devil's Advocate | Saved/deleted corpus, query history, recent chat; states the corpus's dominant lean and surfaces contradictions and counter-evidence. |
| JANUS | Bridge | Per-collaborator activity across the whole workspace; connects two or more collaborators' separate research threads and proposes a bridging query. |
6 The Multi-Agent AI Orchestrator
6.1 Design Rationale
Rather than a single general-purpose assistant, Scriptorium implements seven named, specialized agents behind a Manager–Worker routing layer. The underlying design hypothesis is that giving each capability a distinct persona, a strictly scoped input, and a hard output-length limit produces responses that are more predictable, more citable, and more trustworthy to a group of collaborators than a single do-everything chatbot would, and additionally lets the interaction log itself become research data: which agent a group invoked, and at what point in their research process, is a meaningful behavioural signal that a single undifferentiated assistant would not expose.
The orchestrator runs on the server behind POST /api/ai/chat and reaches the model through a pluggable provider interface (BaseLLMProvider, a single call(systemPrompt, userPrompt) method), implemented for the OpenAI API. Earlier in development a second, hand-maintained copy ran in the browser against a free model proxy, and the two copies drifted: the browser copy at one point lacked two of the seven agents and passed every agent the same broad context rather than its scoped slice. Moving orchestration entirely to the server removed that copy, so that every listing in this section and in Appendix A describes the only code that runs. Each request is first built into six context slices (Section 7), from which the scoping function below selects.
6.2 Agent Roster
Table 2 lists all seven agents together with their strictly scoped inputs. The scoping is enforced in code, via a buildScopedInput(agentKey, context) function implemented as a switch statement that returns a different, minimal object per agent key (Listing 1), not by asking the underlying language model to self-restrict its attention to part of a larger context. For example, ARIA (the Synthesizer) receives only documents the user explicitly attached to the current chat message and never has access to the workspace's full saved-document corpus, while SOCRATES (the Critic) and MOMUS (the Devil's Advocate) receive the whole workspace's saved-and-discarded history because their purpose is specifically to critique or challenge the group's collective evidence base.
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
11
Listing 1. Per-agent input scoping, condensed from AIOrchestrator .js. Each branch constructs a fresh object; fields not named here are never sent to that agent's model call.
buildScopedInput(agentKey, context) { const titlesOnly = (docs) => docs.map((d) => ({ title: d.title })); const metaOnly = (docs) => docs.map((d) => ({ title: d.title, authors: d.authors || "", date: d.date || "" })); const withAbstract = (docs) => docs.map((d) => ({ title: d.title, abstract: d.abstract || "" })); const conversation = (context.conversation || []).slice(-8);
switch (agentKey) { case "aria": return { attachedDocs: withAbstract(attachedDocs), conversation }; case "clio": return { docs: metaOnly(attachedDocs.length > 0 ? attachedDocs : savedDocs), conversation }; case "hermes": return { queryHistory, savedDocs: titlesOnly(savedDocs), deletedDocs: titlesOnly(deletedDocs) }; case "socrates": return { queryHistory, savedDocs: withAbstract(savedDocs), deletedDocs: withAbstract(deletedDocs), conversation }; case "minerva": return { docs: withAbstract(attachedDocs.length > 0 ? attachedDocs : savedDocs), conversation }; case "momus": return { savedDocs: withAbstract(savedDocs), deletedDocs: withAbstract(deletedDocs), queryHistory, conversation }; case "janus": return { activityByUser, conversation }; default: return { conversation }; } }
Three properties of Listing 1 are worth drawing out. First, the three projection helpers in that listing mean that scoping operates at field granularity, not only at document granularity: HERMES is given the titles of saved and deleted documents so that it can avoid re-suggesting ground the group has already covered, but is never given their abstracts, because query reformulation does not require them. Second, the chat transcript is truncated to the last eight turns for every agent that receives it, and HERMES receives none at all. Third, CLIO and MINERVA implement a documented fallback (attached documents if any, otherwise the workspace's saved corpus), which is the only place where an agent's input set is state-dependent rather than fixed; both agents' preflight guards refuse the request when both sets are empty.
6.3 Deterministic Preflight Guards
Before any language-model call is made, each agent request passes through a deterministic preflight check that can refuse the request outright based on the state of the workspace, rather than relying on the model itself to recognize and report that it lacks sufficient input. Listing 2 reproduces this guard verbatim from the running system.
Listing 2. Deterministic preflight guards (verbatim, AIOrchestrator .js).
Pirmoradi et al.
preflight(agentKey, context) { const attached = context.attachedDocs || []; const saved = context.savedDocs || []; const activity = context.activityByUser || {};
if (agentKey === "aria" && attached.length === 0) {
return "ARIA summarizes exactly what you attach. Drag one or more documents into the chat, then ask again.";
}
if ((agentKey === "clio" || agentKey === "minerva")
&& attached.length === 0 && saved.length === 0) {
return ${this.agents[agentKey].name} needs documents. Attach some, or save documents to this topic first."; } if ((agentKey === "socrates" || agentKey === "momus") && saved.length === 0 && (context.deletedDocs || []).length === 0) { return ${this.agents[agentKey].name} works on this workspace's saved documents - there are none yet. Save a few papers first.";
}
if (agentKey === "janus"
&& Object.keys(activity).length < 2) {
return "JANUS bridges collaborators - it needs search/save activity from at least two people in this workspace.";
}
return null;
}
6.4 Routing
Routing is hybrid. An explicit @agentname mention in a chat message bypasses the manager entirely and delegates directly. Otherwise, a manager persona classifies the free-text request, calling an LLM with a short, rule-based routing prompt (Listing 3) whose user content is the message alone ({ "userMessage": ...}), so that no workspace content is exposed at the routing step; the call returns structured JSON indicating either a delegation target and a confidence score, or a request to clarify. Below a confidence threshold (0.7 in the current implementation), the manager asks a clarifying question listing all active agents rather than guessing, so that a low-confidence routing decision never masquerades as a confident one. If the LLM routing call itself fails, the system falls back to a keyword-based heuristic classifier rather than crashing or silently guessing.
Listing 3. Manager routing prompt (verbatim excerpt).
You are the Research Manager. Route the user's request to EXACTLY ONE worker, or clarify. Routing rules:
- summarize/compare attached docs -> aria
- citations/references/bibliography -> clio
- better/new search queries, keywords -> hermes
- gaps, what's missing, critique evidence -> socrates
- methodology, study design, how studies were done -> minerva
- contradictions, counter-evidence, challenge our assumption, devil's advocate -> momus
- connect/bridge collaborators' work, who is researching what -> janus
- If confidence < 0.7, return clarify. Return ONLY JSON:
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
13
{"action":"delegate","agent":"<key","conf":0.9} or {"action":"clarify","conf":0.4}
6.5 Prompt Design and Hard Output Limits
Every agent’s instruction string states its exact expected input object (e.g., input.attachedDocs, input.queryHistory) and a hard output-length limit, either a word count or a per-item line limit, stated directly in the prompt. Six of the seven agents rely on the language model to respect this stated limit; HERMES is the exception; because its structured JSON output feeds a UI control (individually clickable query-suggestion chips) that would break on malformed input, its output is additionally clamped in code (a clampQueryWords function enforcing a maximum of seven words per query and five queries total) rather than trusted entirely to the model. This asymmetry, prompt-only limits for free-text agents, code-enforced limits for the one agent with a machine-consumed output, reflects a general principle in Scriptorium’s AI integration: constraints that affect only a human reader’s experience are prompted; constraints that would break a downstream UI component if violated are additionally enforced in code.
7 Reproducibility
This section collects the configuration a reader needs to run Scriptorium and to interpret its agents' behaviour.
7.1 Language Model
Every model call, routing and worker alike, is made by the backend through the OpenAI Chat Completions API, using the official openai Node.js library, in the provider backend/ai/OpenAILLMProvider.js. The model is gpt-5 [24], configurable through the OPENAI_MODEL environment variable, and the provider sets no sampling or reasoning parameters, so the API's defaults apply. Each call sends two messages:
system: <agent instruction, Appendix A> user: <JSON: {"userRequest": ..., "input": <scoped slice>}>
For routing calls the user message is { "userMessage": ... } instead (Section 6). A request therefore costs one model call when addressed to an agent by name, and two (routing, then the worker) when delegated with @ai; refusals by a preflight guard cost none. When no API key is configured, the backend falls back to MockLLMProvider, a deterministic stub for development and testing. Substituting another model or vendor requires implementing only call(systemPrompt, userPrompt).
7.2 Context Construction
Before scoping, each agent request is assembled into six slices by buildWorkspaceContext in backend/controllers/aiController.js, which reads the workspace's queries and documents directly from the database rather than trusting the client's copy:
- attachedDocs: documents the user dragged into the current message, flattened from the catalogue record to title, abstract, authors, date, and type;
• queryHistory: every query issued in the workspace by any collaborator, oldest first, with its author;
-
savedDocs and deletedDocs: every document saved in the workspace, split on the soft-delete flag and deduplicated by catalogue record identifier, so that a paper saved by two collaborators appears once;
-
activityByUser: for each collaborator, the queries they issued and the titles of the documents they currently keep saved;
Pirmoradi et al.
Table 3. REST endpoints used by the interface.
| Endpoint | Purpose |
|---|---|
| POST /auth/register, /auth/login | Create an account; sign in |
| GET /workspaces | List every workspace (dashboard) |
| GET /workspaces/:workspaceId | Workspace detail: queries with saved and removed documents |
| POST /workspaces, PUT|DELETE /workspaces/:id | Create; rename or archive, delete (creator only) |
| POST /workspaces/query | Record a search query |
| POST /workspaces/document | Save a result to a query |
| PATCH /workspaces/document/toggle/:documentId | Flip the soft-delete flag |
| GET /workspaces/document/query/:queryId | Cross-user documents for a topic |
| POST /workspaces/document/view | Log a document-opened event |
| GET /workspaces/document/views/:workspaceId | View events for the timeline |
| GET|POST /chat, DELETE /chat/:messageId | Read, post, remove chat messages |
| GET /ai/agents, POST /ai/chat | Agent registry; server-side orchestration |
• conversation: the last twelve chat turns, each with speaker, an AI flag, and text, of which the scoping function retains the last eight.
The scope of these slices is the whole workspace rather than the current search topic, so that an agent invoked during one search can reason over the group's work on every other topic in the same project.
7.3 Retrieval
Search results are requested from the Ex Libris Primo Search REST API (GET /primo/v1/search) with the query string passed as q=any, contains, <query>, the institution's inst and vid parameters, tab=Everything, scope=MyInst_and_CI (local holdings plus the Central Discovery Index), and offset/limit for pagination. Records are consumed in Primo's PNX format; the fields Scriptorium uses are pnx.display.title, pnx.display.type, pnx.display.creationdate, pnx.addata.au/addau (authors), and pnx.addata.abstract. Cover images are resolved by DOI through the Third Iron (BrowZine) public API and by ISBN through Syndetics. Retrieval is therefore not reproducible bit-for-bit across institutions: a deployment at another institution needs its own Primo API key and view identifiers, and will return that institution's licensed collection.
7.4 REST Interface
Table 3 lists the endpoints the interface uses. All are served by the Express backend under /api.
7.5 Running the System
The repository contains the backend (backend/, Node.js with Express 4 and MongoDB 8) and the frontend (frontend/, React 18 created with Create React App 5, Redux Toolkit 1.9, Tailwind CSS 3, and Material UI 7). MongoDB 8 requires Node.js 16 or later. The backend reads MONGO_URI, OPENAI_API_KEY, and, optionally, OPENAI_MODEL (default gpt-5) and PORT (default 5006) from backend/.env; the frontend reads the institution's Primo API key from REACT_APP_PRIMO_API_KEY in frontend/.env.local, and the backend address and the remaining Primo parameters from frontend/src/config/env.js. Template files backend/.env.example and frontend/.env.example list the required variables. After npm install in the repository root, in backend/, and in frontend/, npm run dev in the root starts both processes; with NODE_ENV=production the backend also serves the built frontend (npm run build in
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
15
frontend/). Running the agents requires an OpenAI API key with access to the configured model; usage is billed to that key's account.
7.6 Code Availability
The source code is available at https://github.com/abbaspirmoradi/Scriptorium-DL-Interface under the MIT licence.
8 Known Limitations
We state these plainly, consistent with the goal of this report as a companion technical document rather than a promotional one.
No production-grade authentication. There is no signed session token (no JWT); the client stores a plain {_id, username} object in localStorage, and every backend endpoint trusts whatever identifier the client sends. This is acceptable for a controlled study among cooperative, consenting participants, to whom the property is disclosed, but would require real authentication before any adversarial or production deployment.
Dependence on a hosted model. The agents depend on a commercial model served by OpenAI: the snapshot behind the gpt-5 alias, its defaults, its pricing, and its availability are outside our control and may change over time. A reader reproducing agent behaviour at a later date should pin a dated model snapshot through OPENAI_MODEL, and should expect outputs to differ for this reason as well as the next. Workspace content sent to agents, including titles, abstracts, queries, and recent chat, is transmitted to OpenAI, which participants in a study must be told.
Polling, not push. Chat and the activity timeline refresh via a three-second setInterval poll rather than Web-Sockets or server-sent events, simple and reliable at the intended small scale, but not the mechanism a production-scale version of this system would use.
Model non-determinism. Because agent responses are generated by a language model, two invocations of the same agent on the same workspace state may produce different, though similarly scoped, output. Hard output-length limits and precise, narrowly scoped prompts (Section 6) reduce, but do not eliminate, the practical impact of this non-determinism.
9 Discussion and Planned Evaluation
Scriptorium’s AI orchestrator is, in the terms proposed by Orin and Hoeber [25], a workspace-augmented generation (WAG) system rather than a retrieval-augmented generation (RAG) one: every agent’s output is grounded only in resources that one or more human collaborators have explicitly saved (or, for SOCRATES and MOMUS, explicitly discarded), not in documents a retrieval ranker judged relevant to a query. We extend their single-user framing of WAG to a multi-user one: the workspace an agent reasons over in Scriptorium is the joint product of a group’s saved and discarded resources, and at least one agent, JANUS, is defined specifically in terms of the difference between two or more collaborators’ individual activity within that shared workspace, a construct that has no single-user analogue.
We are in the process of designing a controlled user study, structured similarly in spirit to the SearchTogether evaluation [22], in which pairs or small groups of participants complete a realistic, multi-session academic search task using Scriptorium. Beyond standard search-interface metrics, we intend to specifically examine (1) transactive memory, whether and how quickly a collaborator becomes aware of a teammate's relevant prior activity without being explicitly told about it, comparing workspaces where the collaborative timeline is available against a condition where it is not; (2) which of the seven AI agents groups invoke, and at what point in the exploratory-to-focused search transition [40] they invoke it; and (3) whether the auditable, per-agent input scoping described in Section 6 measurably increases
Pirmoradi et al.
participants' stated trust in AI-generated content relative to a single undifferentiated assistant baseline, an axis of comparison the companion demonstration's interactive session is also designed to probe informally with conference attendees.
10 Conclusion
We have documented the complete system architecture, data model, collaborative-interaction design rationale, and multi-agent AI orchestration mechanism behind Scriptorium, a digital library search interface built to support multi-human, multi-AI collaboration. This report is intended to make the system's design inspectable and reusable independent of the page constraints of its companion demonstration paper [27], and we welcome scrutiny of, and extensions to, the mechanisms described here, particularly the deterministic preflight guards and per-agent input scoping approach, which we believe generalize beyond the specific context of digital library search to other collaborative sensemaking tools that incorporate generative AI.
Acknowledgments
The authors acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC), through the Alliance Grant held by the second author (ALLRP 558319-20).
This research was conducted at the University of Regina, which is situated on Treaty 4 and Treaty 6 territories, the homelands of the nēhiyawak, Anihšinapēk, Dakota, Lakota, Nakoda peoples, and Michif/Métis nation.
References
[1] Abbas Pirmoradi Bezanjani and Orland Hoeber. 2024. Enabling exploratory browsing using dynamic search result tagging, highlighting, and filtering. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 334–339. doi:10.1145/3627508.3638295
[2] Mike Cantelon, Marc Harter, T. J. Holowaychuk, and Nathan Rajlich. 2014. Node.js in Action. Manning, Greenwich, CT, USA.
[3] Catherine Chavula, Yujin Choi, and Soo Young Rieh. 2023. SearchIdea: An idea generation tool to support creativity in academic search. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 161–171. doi:10.1145/3576840.3578294
[4] Chun-Wei Chiang, Zhuoran Lu, Zhuoyan Li, and Ming Yin. 2024. Enhancing AI-assisted group decision making through LLM-powered devil's advocate. In Proceedings of the International Conference on Intelligent User Interfaces. Association for Computing Machinery, New York, NY, USA, 103–119. doi:10.1145/3640543.3645199
[5] Kristina Chodorow. 2013. MongoDB: The Definitive Guide. O'Reilly Media, Sebastopol, CA, USA.
[6] Bogeum Choi, Jaime Arguello, Robert Capra, and Austin R. Ward. 2021. OrgBox: A knowledge representation tool to support complex search tasks. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 219–228. doi:10.1145/3406522.3446029
[7] Anita Crescenzi, Austin R. Ward, Yuan Li, and Rob Capra. 2021. Supporting metacognition during exploratory search with the OrgBox. In Proceedings of the ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 1197–1207. doi:10.1145/3404835.3462955
[8] Valdemar Danry, Pat Pataranutaporn, Yaoli Mao, and Pattie Maes. 2023. Don't just tell me, ask me: AI systems that intelligently frame explanations as questions improve human logical discernment accuracy over causal AI explanations. In Proceedings of the CHI Conference on Human Factors in Computing Systems. Association for Computing Machinery, New York, NY, USA, 352:1–352:13. doi:10.1145/3544548.3580672
[9] Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Meng Wang, and Haofen Wang. 2024. Retrieval-augmented generation for large language models: A survey. arXiv:2312.10997 [cs.CL]
[10] Sebastian Gomes, Miriam Boon, and Orland Hoeber. 2022. A study of cross-session cross-device search within an academic digital library. In Proceedings of the ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 384–394. doi:10.1145/3477495.3531929
[11] Orland Hoeber. 2025. Design principles for exploratory search interfaces. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 12–22. doi:10.1145/3698204.3716443
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
17
[12] Orland Hoeber, Md Nazmul Islam, Miriam Boon, Dale Storie, and Veronica Ramshaw. 2026. Search timelines: Visualizing search history to enable cross-session exploratory search. International Journal on Digital Libraries 27, 1 (2026), 4. doi:10.1007/s00799-026-00439-x
[13] Orland Hoeber and Soumya Shukla. 2022. A study of visually linked keywords to support exploratory browsing in academic search. Journal of the Association for Information Science and Technology 73, 8 (2022), 1171–1191. doi:10.1002/asi.24623
[14] Orland Hoeber and Dale Storie. 2024. Graduate student search strategies within academic digital libraries. International Journal on Digital Libraries 25, 2 (2024), 303–316. doi:10.1007/s00799-023-00378-x
[15] Shama Hoque. 2020. Full-Stack React Projects: Learn MERN Stack Development by Building Modern Web Apps Using MongoDB, Express, React, and Node.js (2nd ed.). Packt Publishing, Birmingham, UK.
[16] Diane Kelly, Karl Gyllstrom, and Earl W. Bailey. 2009. A comparison of query and term suggestion features for interactive searching. In Proceedings of the International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 371–378. doi:10.1145/1571941.1572006
[17] Hanieh Khakshoor and Orland Hoeber. 2025. A GenAI approach to suggesting broad and narrow queries for exploratory search. Proceedings of the Association for Information Science and Technology 62, 1 (2025), 1511–1513. doi:10.1002/pra2.1451
[18] Qusai Khraisha, Sophie Put, Johanna Kappenberg, Azza Warraitch, and Kristin Hadfield. 2024. Can large language models replace humans in systematic reviews? Evaluating GPT-4's efficacy in screening and extracting data from peer-reviewed and grey literature in multiple languages. Research Synthesis Methods 15, 4 (2024), 616–626. doi:10.1002/jrsm.1715
[19] Yuan Li, Rob Capra, and Yinglong Zhang. 2020. Everyday cross-session search: How and why do people search across multiple sessions?. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 163–172. doi:10.1145/3343413.3377970
[20] Stephann Makri, Dana McKay, George Buchanan, Shanton Chang, Dirk Lewandowski, Andy MacFarlane, Lynne Cole, Sanne Vrijenhoek, and Andrés Ferraro. 2021. Search a great leveler? Ensuring more equitable information acquisition. Proceedings of the Association for Information Science and Technology 58, 1 (2021), 613–618. doi:10.1002/pra2.511
[21] Alan Medlar, Jing Li, and Dorota Glowacka. 2021. Query suggestions as summarization in exploratory search. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 119–128. doi:10.1145/3406522.3446020
[22] Meredith Ringel Morris and Eric Horvitz. 2007. SearchTogether: An interface for collaborative Web search. In Proceedings of the ACM Symposium on User Interface Software and Technology. Association for Computing Machinery, New York, NY, USA, 3–12. doi:10.1145/1294211.1294215
[23] Benjamin Nye, Junyi Jessy Li, Roma Patel, Yinfei Yang, Iain Marshall, Ani Nenkova, and Byron Wallace. 2018. A corpus with multi-level annotations of patients, interventions and outcomes to support language processing for medical literature. In Proceedings of the Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, 197–207. doi:10.18653/v1/P18-1019
[24] OpenAI. 2025. OpenAI GPT-5 System Card. arXiv:2601.03267 [cs.CL] doi:10.48550/arXiv.2601.03267
[25] Kimeya Orin and Orland Hoeber. 2025. Organizing found information in public digital library search. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 358–366. doi:10.1145/3698204.3716471
[26] Jeremy Pickens, Gene Golovchinsky, Chirag Shah, Pernilla Qvarfordt, and Maribeth Back. 2008. Algorithmic mediation for collaborative exploratory search. In Proceedings of the International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 315–322. doi:10.1145/1390334.1390389
[27] Abbas Pirmoradi, Orland Hoeber, Milad Momeni, and Anna Chu. 2026. Scriptorium: Supporting Multi-Human, Multi-AI Collaboration in Digital Library Search. (2026). Demonstration paper, in submission.
[28] David M. Schweiger, William R. Sandberg, and James W. Ragan. 1986. Group approaches for improving strategic decision making: A comparative analysis of dialectical inquiry, devil's advocacy, and consensus. Academy of Management Journal 29, 1 (1986), 51–71.
[29] Anita Seihoon, Lynne Beveridge, and Orland Hoeber. 2026. SearchPath: A visual reminder of past search activity to support students with dyslexia when undertaking exploratory searches. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 311–315. doi:10.1145/3786304.3787926
[30] Nikhil Sharma, Q. Vera Liao, and Ziang Xiao. 2024. Generative echo chamber? Effects of LLM-powered search systems on diverse information seeking. In Proceedings of the CHI Conference on Human Factors in Computing Systems. Association for Computing Machinery, New York, NY, USA. doi:10.1145/3613904.3642459
[31] Vasan Subramanian. 2019. Pro MERN Stack. Apress, Berkeley, CA, USA. doi:10.1007/978-1-4842-4391-6
[32] Don R. Swanson. 1986. Fish oil, Raynaud's syndrome, and undiscovered public knowledge. Perspectives in Biology and Medicine 30, 1 (1986), 7–18. doi:10.1353/pbm.1986.0087
[33] Anastasios Tombros and Mark Sanderson. 1998. Advantages of query biased summaries in information retrieval. In Proceedings of the International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 2–10. doi:10.1145/290941.290947
[34] Kelsey Urgo and Jaime Arguello. 2024. The effects of goal-setting on learning outcomes and self-regulated learning processes. In Proceedings of the ACM SIGIR Conference on Human Information Interaction and Retrieval. Association for Computing Machinery, New York, NY, USA, 278–290. doi:10.1145/3627508.3638348
[35] Jason Vaughan. 2011. Ex Libris Primo Central. Library Technology Reports 47, 1 (2011), 39–47.
Pirmoradi et al.
[36] William H. Walters and Esther Isabelle Wilder. 2023. Fabrication and errors in the bibliographic citations generated by ChatGPT. Scientific Reports 13 (2023), 14045. doi:10.1038/s41598-023-41032-5
[37] Shuai Wang, Harrisen Scells, Bevan Koopman, and Guido Zuccon. 2023. Can ChatGPT write a good Boolean query for systematic review literature search?. In Proceedings of the International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 1426–1436. doi:10.1145/3539618.3591703
[38] Ryen W. White. 2013. Beliefs and biases in web search. In Proceedings of the International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, New York, NY, USA, 3–12. doi:10.1145/2484028.2484053
[39] Ryen W. White. 2024. Advancing the search frontier with AI agents. Commun. ACM 67, 9 (2024), 54–65. doi:10.1145/3655615
[40] Ryen W. White and Resa A. Roth. 2009. Exploratory Search: Beyond the Query-Response Paradigm. Morgan & Claypool Publishers, San Rafael, CA. doi:10.2200/S00174ED1V01Y200901ICR003
A Verbatim Agent Instruction Strings
This appendix reproduces the instruction string of all seven workers, supplementing Section 6. Each is the complete system prompt passed as the first argument to llm.call(agent.instruction, JSON.stringify(workerInput)), where workerInput carries the user's message under userRequest and the scoped object of Listing 1 under input. The prompts are reproduced unmodified from the running system's source (backend/ai/AIOrchestrator.js), except that lines are re-wrapped to the column width, and em dashes, arrows, and the ≤ symbol are rendered as -, ->, and <= for typesetting. Each is stored in source as a concatenation of \n-terminated string literals; the line breaks shown are therefore the ones the model actually receives, apart from re-wrapping.
Three conventions recur across all seven and are the substance of the design described in Section 6: a named persona and role in the opening line; an explicit INPUT: declaration naming the exact fields the agent will receive, closed by the sentence Nothing else exists; and a closing HARD LIMIT: stating a word count or a per-item line budget. Six agents, all but HERMES, receive input.conversation; ARIA, SOCRATES, MOMUS, and JANUS additionally carry a rule constraining what the transcript may be used for, so that recent chat serves as referent resolution rather than as an unbounded second corpus. CLIO's and MINERVA's prompts carry no such rule and do not mention the transcript, so for those two agents its use is left to the model.
Listing 4. ARIA (Synthesizer). Its INPUT is the narrowest of the seven, and its preflight guard refuses outright when attachedDocs is empty.
You are ARIA, the Synthesizer. INPUT: input.attachedDocs - the documents the user attached to this message. Nothing else exists. TASK: Summarize EXACTLY these documents - one short summary per document plus a one-line takeaway. Do NOT compare or contrast them against each other. RULES:
- Never reference documents outside input.attachedDocs.
- Use input.conversation only to resolve follow-up phrases like 'the second one'.
- No preamble. Start with the substance. HARD LIMIT: 120 words.
Listing 5. CLIO (Citations). The prohibition on inventing a DOI, page range, or publisher is the agent-level counterpart to the field-level restriction that CLIO receives metadata only, never abstracts.
You are CLIO, the Citations specialist. INPUT: input.docs - document metadata (title, authors, date). Nothing else exists. TASK: Produce a formatted reference list (APA 7th unless the user names another style). RULES:
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
19
- Mark missing metadata as [n.d.] / [publisher unknown]. NEVER invent a DOI, page range, or publisher.
- One citation per line. No commentary between citations. HARD LIMIT: the reference list plus at most one closing sentence.
Listing 6. HERMES (Navigator). The only agent with a machine-consumed output contract; both the five-query count and the seven-word cap are re-enforced in code after the call (Section 6).
You are HERMES, the Navigator. INPUT: input.queryHistory (past searches), input.savedDocs and input.deletedDocs (titles only). Nothing else exists. TASK: Propose EXACTLY 5 new search queries that extend or sharpen this workspace's search direction. Avoid repeating past queries. Each query MUST be 7 words or fewer. OUTPUT: Return ONLY this JSON, no other text: {"note":"<one sentence, max 15 words>", "queries":"[q1","q2","q3","q4","q5"]}
Listing 7. SOCRATES (Critic). Deleted documents are supplied with abstracts rather than titles alone, so that a direction the group considered and dropped remains available for critique.
You are SOCRATES, the Critic. INPUT: input.queryHistory, input.savedDocs, input.deletedDocs (titles + abstracts), input.conversation (recent chat turns). Nothing else exists. TASK: If the user is asking you to judge a specific claim (their own or a named collaborator's, e.g. 'is X right?'), find that claim in input.conversation, state directly whether the evidence base supports it, and cite what's missing that would change your answer. Otherwise, list the most important gaps in this evidence base - missing themes, methods, populations, or perspectives. Treat deleted documents as directions the group considered and dropped; flag if a dropped direction left a gap. RULES:
- Use input.conversation only to resolve who said what and what they claimed - never invent a claim that isn't there.
- Numbered list, max 4 gaps, one line each.
- End with ONE pointed question that would sharpen the research direction. HARD LIMIT: 100 words.
Listing 8. MINERVA (Methods). The qualifier only where stated or clearly inferable from the abstract bounds the agent to the evidence actually supplied, since full texts are not retrieved.
You are MINERVA, the Methods specialist. INPUT: input.docs - titles + abstracts. Nothing else exists. TASK: For each document, extract: design, data source, sample, analysis method - only where stated or clearly inferable from the abstract. RULES:
- One compact line per document: 'Title - design; data; sample; analysis'. Write 'not stated' for missing parts. NEVER invent details.
- If asked to compare, add one closing line grouping by methodology family. HARD LIMIT: one line per document + one closing line.
Pirmoradi et al.
Listing 9. MOMUS (Counterpoint). Step 4 is the one place in the roster where an agent is licensed to draw on knowledge outside the workspace, and it is paired with a mandatory 'to verify' label.
You are MOMUS, the Counterpoint. Your job is to counter confirmation bias. INPUT: input.savedDocs and input.deletedDocs (the group's consensus corpus, titles + abstracts), input.queryHistory, input.conversation (recent chat turns). Nothing else exists. TASK:
- If the user is asking you to judge a specific person's claim (e.g. 'is X right?'), find that claim in input.conversation and open with a direct verdict - supported, contradicted, or unsupported by this corpus - before anything else.
- State in ONE sentence the dominant claim/assumption this corpus leans toward.
- List any contradictions BETWEEN the provided documents (cite their titles).
- Name up to 3 well-known opposing works, authors, or counter-arguments from scholarly knowledge that challenge the dominant claim - clearly label these 'to verify' since you cannot fetch them. RULES:
- Use input.conversation only to resolve who said what - never invent a claim that isn't there.
- Be adversarial but factual. Never soften into agreement.
- If the corpus is too small or balanced to show a lean, say so in one sentence and stop. HARD LIMIT: 120 words.
Listing 10. JANUS (Bridge). The only agent whose input is organized by collaborator rather than by document, and the only one gated on a property of the group rather than of the corpus.
You are JANUS, the Bridge. You connect collaborators' separate research threads (transactive memory: who is looking at what). INPUT: input.activityByUser - each collaborator's queries and saved-document titles, grouped by username - and input.conversation (recent chat turns). Nothing else exists. TASK:
- If the user is asking you to judge a specific person's claim (e.g. 'is X right?'), find that claim in input.conversation and check it against that person's activityByUser entry before anything else.
- In one line each, name what each collaborator's thread is about.
- Identify the strongest connection point between two (or more) threads.
- Propose ONE bridging search query (7 words max) and, if scholarly knowledge suggests one, ONE known survey/bridging work - labeled 'to verify'. RULES:
- Use input.conversation only to resolve who said what - never invent a claim that isn't there.
- If only one user has activity, say a bridge needs at least two active collaborators and stop. HARD LIMIT: 100 words.
Scriptorium: System Design and Implementation of a Multi-Human, Multi-AI Collaborative Digital Library Search Platform
21
B Agent Resolution and Manager Fallback
An explicit mention is resolved before any model call, and each agent accepts a set of role aliases in addition to its name, so that a collaborator who remembers a function but not a persona still reaches the right worker: @aria also answers to synthesizer, summarizer, summary, sum; @clio to citations, cite, citation; @hermes to navigator, reformulator, reformulate, queryhelper; @socrates to critic, gapdetector, gap, gaps; @minerva to methods, methodology; @momus to devil, devilsadvocate, contradict, counter; and @janus to bridge, connect, synthesisbridge. The mentions @ai and @manager address the manager and therefore trigger routing rather than direct delegation.
Should the manager’s routing call fail, a keyword classifier substitutes for it, tested in a fixed order so that the more specific collaborative intents are matched before the general ones. Terms including contradict, refute, devil, and bias route to MOMUS; bridge, overlap, teammate, collaborator, and who is looking route to JANUS; gap and missing to SOCRATES; citation and method terms to CLIO and MINERVA respectively; summar, overview, and compare to ARIA; and query-reformulation terms such as keyword, boolean, broaden, and narrow to HERMES. Every branch is additionally conditioned on the agent being enabled in the workspace’s agent roster, and an unmatched request returns the clarification response listing the active agents rather than a guess. The heuristic is a degraded mode, not a design goal; we report it because a reader reproducing the system will otherwise observe routing behaviour that the manager prompt alone does not explain.