Skip to content

Playbook

Using raia Agents in the AI Development Lifecycle

Use this team playbook to bring current product and code knowledge into your coding tasks, then review and refresh that knowledge when behavior changes. It is an operating model you set up, not a Raia runtime or an autonomous delivery system.

Who this is for: engineering leaders evaluating the approach, developers and product managers adopting it, and support and documentation owners who complete the loop.

PDF

Archived playbook (PDF)

This earlier presentation includes outdated merge-refresh and Orchestrator guidance. Use the maintained Markdown playbook and current MCP setup below for implementation.

Download archived PDF

Open source

AI-DLC Playbook repository

Start with the maintained README and Markdown guides. They explain roles, local practice, and the approvals needed for live integrations; the rendered HTML and earlier presentation are archived.

Open the repository
01

Why faster coding alone doesn't deliver

It's tempting to treat AI adoption as a coding-speed problem. Software delivery is a system, not a coding task. Requirements → design → build → test → release → operate: value depends on the whole chain, and end-to-end throughput is governed by the slowest constraint. Speeding up the "build" box alone just moves the queue — bigger review loads, more test pressure, less stable releases.

The hidden tax in most delivery systems is waiting caused by fragmented context:

HandoffWhat creates delay
Product → EngineeringAmbiguous stories, missing acceptance criteria, unresolved decisions
Engineering → QALarge changes, thin test evidence
QA → OperationsEnvironment differences, release coordination
Production → ProductLogs, incidents, and user signals trapped in separate tools

A developer implementing refund logic today has three options: read a possibly stale wiki, interrupt a human expert, or guess. All three are failure modes we've normalized. The fix isn't faster typing — it's connected knowledge.

02

The gap: two AI adoptions that don't talk

Look at where the knowledge actually lives. What the PM knows lives in vector stores. What the codebase knows lives in git. Neither learns from the other automatically, and the cost shows up every week: interrupt-driven experts, support that lags releases, documentation that's perpetually behind, and new hires taking months to absorb tribal knowledge.

Coding agents transformed the IDE

Your coding tool can inspect the repository and propose changes. Give it the relevant product policies and customer context, then review its plan and diff before merging.

Knowledge agents transformed the business

A raia agent can help answer questions from the documents you make available to it. Include current product and code documentation, and check its answers against those sources.

The thesis: one closed loop

Use a knowledge agent to brief the coding task, then update its sources when the reviewed code changes. Keep one owner per knowledge domain. A merge does not itself retrain an agent: your team must plan, approve, apply and verify each knowledge refresh.
03

The dual-model approach: two models, two jobs

Don't ask one model to be both the engineer and the librarian. The coding agent is the execution model: its context is the repo, the diff, and the session. raia agents are the knowledge model: each searches a knowledge base built from thousands of your documents, and its fixed instructions aim for grounded, cited, consistent answers; check them.

  • More knowledge than a session can hold — The agent searches the knowledge available to it and returns an answer for your coding session. Ask for the source and check the relevant passage; a reply does not prove every document was searched.
  • Predictable by design — The agent's instructions don't vary by session or developer, which helps consistency. Answers can still vary, so check the cited sources.
  • Each side does what it's best at — Code truth stays in git with the coding agent. Business truth stays managed in raia. Neither crowds out the other.

Delegation fails at both extremes. Too big — "build an e-commerce platform" — produces thousands of unreviewed lines. Too small — "write this one function" — barely saves time. The right size is a clear goal with clear limits: a small, well-defined task with a written spec, the right knowledge on tap via raia, automated checks, and a human sign-off.

04

How the two sides connect

Choose the connections your team needs, then configure and check each one. MCP lets compatible coding tools call an agent; knowledge refresh, status lookups and event workflows require their own setup.

  1. 01

    During a coding session

    Connect an approved test agent through the current MCP guide. Discover its available tools, ask a known-answer question and check the cited source before using its replies to plan code changes.

  2. 02

    After a reviewed merge

    Have CI produce an immutable refresh plan from approved changed Markdown. The reference makes no remote writes. Apply a plan only through an approved, contract-tested adapter, retain its receipt, and verify the agent can retrieve the new source.

  3. 03

    For current status questions

    If you need GitHub or Jira status, configure an approved read-only connection on the intended agent. Check its available tools and compare an answer with a known issue or release; access is not enabled by adopting the playbook.

  4. 04

    For event-driven work

    Your team can design a workflow that turns a support escalation into an issue. Start with a preview for human review, limit its permissions and destinations, and approve any live write separately.

05

A walkthrough: one feature, start to finish

Try this proposed workflow with one small feature. Agree on the source documents, reviewers and stop conditions before connecting live systems.

  1. 01

    Pick up the task

    Open the ticket in your coding tool. Confirm the intended agents have the current specs, architecture decisions and help docs by asking questions with known answers.

  2. 02

    Plan it

    Ask the Product Agent what the feature should do and the Codebase Agent how it works today. Have your coding tool cite those sources in its plan, and resolve conflicts with the actual code before approving it.

  3. 03

    Build it

    For an edge case such as the refund window for annual plans, ask the Product Agent and read its cited policy. If the source is missing or stale, ask the policy owner rather than guessing.

  4. 04

    Check it

    Review the behavior changes against the agreed spec. You can configure a repeatable spec-review prompt or workflow to suggest mismatches; a reviewer checks them before they become PR comments or block a merge.

  5. 05

    Merge, refresh and verify

    After human approval, merge the code and reviewed docs. Produce a knowledge-refresh plan, have the owner approve any live apply, and retain the adapter receipt. Ask known-answer questions about the new behavior and check Sources before telling support the knowledge is current.

06

The three core raia agents

Assign owners to three useful knowledge domains: Codebase, Product, and Support & Docs. Create the agents in raia CX, add their reviewed sources, check conversion and training, then use Copilot to compare replies with those sources. Enable MCP only for the agents your coding tools need.

AgentTrained onAnswers
Codebase AgentArchitecture docs, ADRs, generated references, API contracts, migration guides"Why is the code like this?" — for coding sessions, IDE chats, and new-hire onboarding
Product AgentPRDs, strategy docs, acceptance-criteria history, release notes, pricing and policy rules"What should it do, and why?" — for PMs drafting specs, plan mode, and spec review
Support & Docs AgentHelp-center articles, docs site, release notes, resolved tickets, known issuesCustomers in Live Chat, support staff in Copilot, and the weekly triage

Begin with documents you already maintain and keep an owner responsible for updates. Orchestrator is a separate optional skill for delegation, not a guarantee of one endpoint, one key or automatic routing. Check each agent connection and its permissions separately.

07

Setting up: four foundation steps

Use the maintained playbook templates as starting points. Your team still needs to configure the agents, check client compatibility, and approve integrations before live use.

F1

Stand up the agent roster

Create the Codebase, Product, and Support & Docs Agents in raia CX. Add their instructions and approved documents, check training status, and ask known-answer questions. Configure each incoming MCP connection through Skills → MCP → RAIA MCP.

F2

Connect the coding agent (per repository)

Use the configuration format your coding tool supports. Keep secrets outside version control; commit only configuration that refers to private environment values. Add instructions in CLAUDE.md, AGENTS.md, .cursorrules or your tool’s equivalent telling it when to consult each agent. Verify tool discovery and an actual answer in that client.

Choose the right MCP connection

Use the current incoming-MCP guide for endpoint, authentication and client-specific setup. The playbook’s older header examples are not the setup authority. Keep public docs search separate from connections to your own agents. Set up incoming MCP
  • Query raia-product before planning behavior changes; query raia-codebase when the code doesn't explain why a constraint exists.
  • Treat agent answers as evidence, not authority — ask for the supporting source and verify claims against the current code.
  • Never send secrets, tokens, or raw customer data to an agent.
  • If an agent is unavailable or its answer looks stale, stop and report the gap — don't invent an answer.

F3

Connect the IDE

For IDE-based work, follow your IDE’s MCP configuration format and the current incoming-MCP guide. A connection status alone is not enough: discover tools, ask a known-answer question and compare the reply with its source.

F4

Give PM agents eyes on the toolchain

If the Product Agent needs GitHub or Jira status, configure outgoing servers under Skills → MCP → Integrations in raia CX. Inspect their available tools, allow only the read tools needed, and check a known status question against the original system.

Key hygiene

For your agent’s incoming MCP connection, follow the current guide linked above: the header endpoint is https://api.raia2.com/mcp and uses Authorization: Bearer <Secret Key>. OAuth instead uses that agent’s separate OAuth Registration URL in RAIA MCP. REST API requests use Agent-Secret-Key, not the MCP header. Keep keys private in environment variables or your secret store, never committed files; after a suspected leak, rotate the affected credential and check access.

Practice locally before connecting live systems

Check out the maintained playbook repository, then run these commands from its root. The golden path writes a local sync preview by default and needs no Raia credentials. Read the output to trace the change from its source through the proposed refresh and verification; it does not update an agent.

bash
cd examples/golden-path
npm test
npm run dry-run
08

Designing agents that complement the coding tool

The raia agents work best when they behave like a reliable answer service, not a chat partner. The instructions control how the agent answers; the knowledge base controls what it knows. Both are versioned, reviewed, and owned.

Fixed instructions — how it answers

  • Answer only from retrieved sources — cite the document and section.
  • If it isn't in the knowledge base, say so. Never improvise an answer.
  • Stay in scope — one domain per agent; route other questions onward.
  • Return synthesized answers — never raw transcripts or customer data.

The knowledge base — what it knows

  • One corpus per audience. Route content by explicit policy, never by guesswork.
  • Author knowledge as Markdown near the code; reviewed pipelines route approved sources onward.
  • Keep the last known-good source until the replacement has been uploaded and retrieval checked. Any removal needs the owner’s approved refresh and recovery procedure.
  • Verify freshness after every refresh. A successful upload without retrieval verification is not a pass.
09

Where to engage the agents, phase by phase

Use these seven steps to agree who asks questions, reviews changes, approves a refresh and checks the result. The roles are team responsibilities, not built-in delivery automations.

PhaseWho / whereHow to engage
1 · GroundPM · CopilotAsk the Support & Docs Agent for top friction points related to X, with example conversations. The evidence note links from the spec.
2 · Specify — the PRDPM · Copilot / ChatDraft the PRD with the Product Agent — it flags overlap with existing features and reuses acceptance-criteria patterns. Commit the finished spec as Markdown in docs/specs/.
3 · PlanDeveloper · plan modeThe coding agent queries raia-product (spec and constraints) and raia-codebase (prior art and rationale) before proposing an approach.
4 · BuildDeveloper · in-sessionRoute mid-task questions: business rule → Product Agent · legacy intent → Codebase Agent · real-world usage → Support & Docs Agent.
5 · ReviewDeveloper + reviewer · PR reviewRun your configured spec-review prompt or skill on the behavior summary. Review suggested mismatches against the agreed spec before posting comments or approving the PR.
6 · Refresh — the docsCoding agent + documentation/platform ownerReview the docs and changelog with the code. After merge, produce an immutable refresh plan; an approved, contract-tested adapter may apply it to explicitly chosen destinations. Keep a receipt and verify freshness.
7 · VerifySupport lead · CopilotAsk fictional test questions in Copilot about the newly shipped behavior and open Sources on each reply to see which files it cited. Gaps become docs tickets, not chat threads.
The pilot is successful only when one real change completes all seven steps. Start with one repository, one product area, and one small group before widening.
10

The playbook: twelve plays across three tracks

These twelve plays are practices your team can adopt, not installed Raia automations. Start with planning (A2), spec review (A4), plan-first refresh (C1), and support checks (B1) in one repository. Give each proposed automation an owner and an approval gate.

Track A · Build

A1 — Evidence-backed specs

PMs draft PRDs in conversation with the Product Agent, grounded in customer evidence from the Support & Docs Agent. Every spec cites at least one piece of real usage evidence.

A2 — Agent-briefed planning (starting four)

Never plan from ticket text alone. Plan mode interrogates the Product and Codebase Agents before proposing an approach.

A3 — Domain questions stay in-session

Use the Product, Codebase or Support & Docs Agent for the question’s domain. Check its source, and route missing or incorrect answers to the responsible owner for correction.

A4 — Spec-aware review gate (starting four)

Configure a prompt or skill to compare each PR with its spec. A human reviewer checks the suggested deviations alongside the code and tests.

A5 — Weekly agent-assisted triage

If useful, configure a scheduled read-only review of support patterns and recent releases. Have a person check the proposed issues before allowing the workflow to file them.

Track B · Support

B1 — Day-one support readiness (starting four)

After an approved refresh, the support lead asks realistic known-answer questions about the release and checks Sources. Fix missing or stale docs and retest before relying on the agent for that feature.

B2 — Escalation-to-issue pipeline

Design an escalation workflow that drafts an issue with reproduction steps for review. Approve a narrow destination and write contract before live issue creation; any optional draft PR still requires human review and merge.

B3 — Feedback as structured QA

Operators flag answers for review. The owner checks low-rated examples and chooses a document correction, instruction change or product ticket, then retests; a rating alone does not train the agent.

B4 — Internal answer desk

Offer the agents through the channels your team has configured, such as Copilot or Teams. Check access and sources so people can use the answer desk without guessing whether its information is current.

Track C · Documentation

C1 — Plan a knowledge refresh after merge

Produce an immutable plan from approved changed Markdown; the reference performs no remote writes by default. Before live apply, approve destination routing and a contract-tested adapter with a protected write environment and recovery procedure. Retain the receipt, check retrieval freshness and keep the last known-good source until replacement is verified.

C2 — Docs written by the diff

The coding agent drafts documentation and the changelog entry from the diff, in the same PR — reviewed as one unit with the code.

C3 — Gap-driven docs backlog

Weekly, pull the questions the agent failed to answer, have the coding agent draft the missing pages from the codebase, and merge. Track whether the same question keeps failing.

11

Governance and safety

Agree on these four safeguards before connecting tools or enabling writes. Owners must configure and check them; the playbook does not enforce them for you.

  1. 01

    Scoped keys, rotated

    Per-agent keys live in environment variables and CI secrets, never in committed files. Rotate a key promptly if it may have leaked, and do not assume a leak is limited to one agent.

  2. 02

    Read-only by default

    Conversational agents get read tools only. Keep write access in reviewed automations, and prove each write path in dry-run mode before enabling it.

  3. 03

    Customer data stays governed

    Proposed rule: keep customer data in governed stores under your retention settings, and give coding sessions synthesized answers, not raw transcripts. Check your own configuration; this is not a platform guarantee.

  4. 04

    Humans gate every merge

    Proposed rule: automation drafts pull requests and humans merge them. The allowlisted class of auto-drafted fixes grows only as its human-approved merge rate proves out.

Fail closed

Proposed rule: ambiguous routing, stale state, missing review, or failed verification should stop the workflow, and no AI should get unattended write access to production code or customer data. Build these gates yourself; they are not automatic.
12

Measuring success

Measure outcomes, not generated output. Retire "lines of code generated" as a KPI and adopt the question: are we delivering better software faster, with less risk and less friction?

SignalWhat it measuresDesired direction
Time-to-contextMinutes from "assigned" to a credible, evidence-backed planFalls sharply
Knowledge lagTime from merge to agents answering correctly about itSame day
Escalation qualitySupport bugs arriving with usable repro steps≥ 80%
Retrieval failuresAgent queries with no relevant retrievalDeclines monthly
Interrupt loadAd-hoc pings landing on engineersMigrates to agents
Mismatch catch pointWhere spec deviations surfacePR review, not UAT

Capture a baseline before setting targets, and commit to a day-90 review: widen the plays that moved their metric, and kill the ones that didn't.

13

The 30 / 60 / 90 rollout

These are review horizons, not permission deadlines — a team advances only when the current stage's evidence is complete.

Days 1–30

Foundation

Name the owners and prepare the agents’ documents. Set up one coding tool with secret-free configuration and repository instructions. Run local practice, record your baseline, and plan one small change. Keep knowledge writes in dry-run mode until approved.

Days 31–60

Habits

Agent-briefed planning and docs-in-the-PR become convention. Enable the approved knowledge-refresh path behind a protected environment. Start the weekly failure review and the docs-gap review.

Days 61–90

Evidence-based expansion

Review which configured plays are useful and safe enough to expand. Pilot any escalation-to-issue or draft-PR workflow with narrow permissions and human review. At day 90, decide which plays to widen, change, narrow or stop using your measured results.

Start small: one repository, clear source owners and local practice. A calendar date, configured connection or successful merge is not proof that a live refresh is ready.
14

Resources

Use the maintained Markdown playbook for the operating model and templates. Use the current Raia MCP guide for authentication; archived HTML and the earlier PDF are not current setup instructions.

  • templates/ — configuration and repository-instruction starting points, pilot brief and scorecard; keep secrets out of committed files and use current MCP authentication
  • skills/spec-review/ — the spec-aware review gate for Claude Code
  • workflows/knowledge-refresh.yml — the fail-closed, plan-first knowledge-refresh reference
  • examples/golden-path/ — the credential-free, executable end-to-end reference
  • docs/quick-starts.md — first-session actions and stop conditions for each role
  • docs/governance.md — the full control, metric, and maturity frameworks

Keep the loop useful: ask, check, review the change, approve the refresh, and verify the new answer.