Docs
Sign in
Browse the docs

Using Alara Code

Talk to the agent

Shape your idea in the project chat, watch replies stream in, and turn the conversation into an RFP.

14 min read10 sections

Every project has a chat with its agent, built into SDLC Pipeline. Before there is an RFP, the agent helps you shape your idea into one; afterwards it answers questions about the project. Its replies stream in as it writes them, and when the idea is complete it offers to draft the RFP.

alara-code · Harbor Bank Portal

0:00 / 0:48

Start with your idea. Before there is an RFP, the agent helps you shape your idea into one. It asks focused questions, at most three per reply, the most important first.

Where the chat lives

Open a project and choose SDLC Pipeline. The middle of the page is one conversation, oldest first: your messages on the right, the agent's replies across the column, and the runs of every step in between, in the order they happened. The message box is at the bottom, in the composer; the steps are in the rail on the left.

The placeholder tells you which mode you are in:

  • "Describe your idea to the agent, who it is for, what it must do, any deadline or budget…" while the project has no RFP yet;
  • "Ask the agent about this project…" once it has one.

On a new project with no RFP the empty conversation reads Start with your idea.

Send a message

Type in the box and press Enter, or press the round button. Shift+Enter starts a new line.

  • A message can be up to 8000 characters. Longer ones are refused with "Messages are limited to 8000 characters."
  • One reply at a time. While the agent is answering, you cannot send another message, the box shows "The agent is still answering." Wait for the reply, then continue.
  • The chat needs the Projects › Run permission and a bound agent. Without an agent, the composer shows No Alara agent bound instead of the message box, with a link to Project Settings.

Choose the model (Native projects)

On a Native project the message box has a model button at its right edge, showing the model the project runs on, for example glm-5.2. Press it to see the models your organization allows, grouped by provider, with a tick on the current one.

alara-code · SDLC Pipeline

The model button in the message box open, listing the allowed models under their provider with a tick on the one in use.
The model button in the message box, on a Native project.
  • A choice is saved on the project, so it is the same model in Project Settings › Engine. The fallback model stays as it was.
  • It takes effect from the next step. While a step is running the button is off, and so it is without the Projects › Binding permission, each with the reason.
  • Alara Agents projects have no model button, because their steps run on the bound agent rather than on your organization's provider key.

When your organization has set a monthly budget, a small meter sits beside the message box. Hover or focus it to see Spent this month, Budget and Left. It is hidden when there is no budget.

See AI providers for how the allowed models and the fallback are set.

What the agent can and cannot do

The agent behind the chat is a pre-sales consultant and business analyst for your project.

It can:

  • ask focused questions about your idea, at most three per reply, the most important first, covering the problem, users, goals, must-have features, integrations, constraints (budget, timeline, technology, regulation) and what "done" looks like;
  • summarise what it has understood so far;
  • tell you when there is enough to draft the RFP;
  • once the RFP is approved, answer questions about the project and explain what each step produces and what comes next;
  • answer in Markdown: lists, bold text, a short table, or a Mermaid diagram.

It cannot:

  • run, approve or change a step. If you ask it to, it tells you which button to press. Steps are started only from the step rail, the composer's round button, or a /step typed or picked from the / menu.
  • edit a document. To change a draft, use Request changes on the document's turn, see Review, approve, request changes.
  • write the RFP in the chat. The RFP is drafted by Generate RFP.
  • see documents it is not given. It knows the project's name, client and stage, the RFP text and the recent conversation. For anything else it tells you which step produces it.

Replies stream in

After you send a message, the agent's side shows Thinking…. As soon as it starts writing, its reply appears word by word with Writing… underneath. When it finishes, the reply settles into place with a Copy button (visible on hover) that copies the reply's Markdown text.

On a project with an indexed repository, the model may look things up in it before it answers. On a Native project it does this itself; on an Alara Agents project it does it once an organization admin has connected the agent to the repository tools (Settings › Alara Agents). The bubble then reads Researching the repository…, and muted lines show each lookup as it happens: "Looking up <name>…", then "Looked up: <name>" with how long it took. If a lookup finds nothing, the line says so and the model carries on with what it has.

If the agent's first answer does not match what Alara Code expects, it is asked once more with the problem as a correction. The streamed text may then start again from the beginning, that is the second attempt, not a glitch.

Streaming is a live preview. The reply is saved only when it is complete, and the view also checks every two seconds while a reply is pending, so a reply always arrives even if the live stream is interrupted.

What the agent knows

The agent does not remember earlier calls. Each message it receives carries:

ContextDetail
The projectName, client, and the type, timeline and description if set
The stageWhich steps are complete, which are awaiting review, which can run next, and whether an RFP exists and is approved
The RFP textThe current RFP, up to 20 000 characters (longer RFPs are cut)
The repositoryOn a project with an indexed repository, a summary of it and a map of its services. The model can also look files and symbols up as it answers, on Native projects and on Alara Agents projects whose agent is connected to the repository tools
The conversationThe last 30 completed messages, failed or unfinished replies are left out
Your new messageThe one it answers

The chat view itself keeps the newest 200 messages.

Generate RFP

When the conversation covers the problem, who uses the system, the main goals and the core features, the agent ends its reply by saying you can generate the RFP, and a banner appears below the conversation:

The agent has enough to draft your RFP. It comes back for your review before /scope unlocks.

Press Generate RFP. This runs the /rfp step, which drafts the RFP from the last 60 messages of the chat. Anything still missing is listed as open questions in the draft. The draft finishes as Awaiting your review; approve it to unlock /scope.

The banner appears only when all of these hold:

  • the agent's newest completed reply suggested it;
  • the RFP step can still run, there is no RFP yet (a draft under review is changed with Request changes instead);
  • no step is running, and you have the permission to run steps with an agent bound.

Once the RFP is approved the chat becomes question-and-answer and the banner no longer appears. You can also run /rfp from its row in the step rail without waiting for the suggestion; if the chat has nothing to draft from yet, the run fails with "There is nothing to draft an RFP from yet, describe the idea in the project chat first, or upload an RFP."

Already have an RFP? Press Upload RFP in the step rail instead. See Projects.

Slash commands in the message box

Type / in the message box to see the steps. A menu opens above the box with every step of the pipeline, in order. Each step shows:

  • its command and the document it writes, for example /srs Requirements Spec;
  • whether it can run now: Next (the next step in the pipeline), Ready, Run again (done, and can be re-run), In review (its document waits on your review), Running or Locked;
  • one line on what it writes or, when it cannot run, why: for example "Run /srs first" or "Approve the Technical Architecture first".

alara-code · SDLC Pipeline

The slash menu open above the message box, listing the steps in order with /rfp marked In review and the later steps marked Locked, each with a line saying what it waits for.
Type a slash and the steps open above the box, each with its state.

Keep typing to narrow the list. It matches the command first (/s finds /scope, /srs, /sds), then a word of the document's name (/arch finds /tad, Technical Architecture).

KeyWhat it does
↑ ↓Move through the steps. The next step is highlighted when the menu opens.
EnterRun the highlighted step.
TabComplete the highlighted step's command in the box, without running it.
EscClose the menu. Typing opens it again.

You can also click a step to run it, or type the whole command (/scope) and press Enter. The round button's label changes to "Run /scope" so you can see which will happen.

A step that cannot run never goes to the agent as a message. Below the box, Alara Code says why, for example "/tad can't run now: Run /srs first.", and an unknown command says "There is no step /deploy. Type / to see the steps." While a step is running, the menu still lists the steps, each with "Wait for /srs to finish".

A sentence that starts with a slash, such as "/scope looks thin, what is missing?", is a message: the menu closes as soon as you type a space, and Enter sends it to the agent.

What happens to what you type, in one picture:

Flow
  • You type in the box and press Enter to Does it start with a slash?
  • Does it start with a slash? to Sent to the agent as a message, No
  • Does it start with a slash? to Is there a space after the command?, Yes
  • Is there a space after the command? to Sent to the agent as a message, Yes
  • Is there a space after the command? to Is it a step in the pipeline?, No
  • Is it a step in the pipeline? to There is no step: type / to see the steps, No
  • Is it a step in the pipeline? to Can it run now?, Yes
  • Can it run now? to Says why, nothing goes to the agent, No
  • Can it run now? to The step runs, Yes

With the box empty, the round button runs the next available step. See Run the pipeline.

Chatting while a step runs

A running step never blocks the chat. The composer keeps the message box, with "You can keep talking to the agent while the step runs." beneath it, and a Stop button for the run beside Send.

When a reply fails

A reply that fails shows a red message in its place. Send your message again once you have dealt with the cause.

MessageWhat happenedWhat to do
"The agent did not answer in time. Send the message again."No reply within the time limitResend. If it keeps happening, check the agent's model in Alara.
"Your session expired while the agent was answering. Sign in again, then resend."Your sign-in expired mid-replySign in again and resend
"The project agent does not have its chat skill. …"The agent declined because sdlc-project-assistant.md is missingAdd the file to the agent in Alara, then resend. Set up the project agent
"The agent could not answer: … Send the message again."Its reply did not match the chat contract, twiceResend; if it persists, check the agent's persona and skill files
"Alara refused the request (…)."Alara answered but would not let you use the agent. The reason in brackets is Alara's, for example that the agent's credit is used upAct on the reason, or choose another agent in Project Settings › Agent
"Alara is not reachable right now …"Alara could not be contactedTry again shortly
"The agent's reply was lost (the service restarted). Send the message again."The service restarted before the reply finishedResend

Some problems stop a message before it is sent and appear as a notification instead, for example The agent is still answering, No agent bound, Agent not available (the bound agent is no longer shared with your organization), or Sign in again first (your session would expire too soon).

Under the hood

Sending posts POST /api/projects/:id/chat, which stores your message and a pending reply and returns at once. The reply is one sdlc-project-assistant skill call returning { reply, suggestGenerateRfp }. Its text streams to the browser over GET /api/projects/:id/chat/:messageId/stream (events snapshot, delta, end, unavailable); the saved message is the record. See Run lifecycle and streaming.