Work sessions and context notes

A shared record of every agent's work, so the next person or agent knows what changed and why.

Work sessions and context notes give AI agents a shared memory inside Octocom. Teammates, Octocom staff and other agents work on the same organization, so the reasons behind a change must live where everyone can read them. The next person or agent that touches a workflow sees what changed, why, and what was already tried.

  • A work session groups every change made for one objective, such as "fix the AI agent promising refunds for opened items".
  • Session notes record what was found and decided along the way: findings, the cause, options ruled out and the outcome.
  • Context notes keep lasting facts and decisions about the company, such as "returns are handled by the warehouse team, not support".

The model works the same from Copilot and from any MCP client.

The model at a glance

RecordWhat it holdsLifetimeTools
Work sessionOne objective in one organization. Every write made for it is linked to it.Accepts writes until 12 hours pass without onestart_work_session (MCP). In Copilot, the Copilot session plays this role.
Session noteFindings, causes, options ruled out, open questions and the outcome. Append-only and dated.Kept with the sessionadd_session_note
Change noteWhy one specific change was madeKept with the change recordThe optional note argument on every write tool
Context noteLasting facts, decisions, constraints and relationships between resources, for the organization or one businessActive until archived, with full revision historyget_organization_context, list_context_notes, get_context_note, create_context_note, update_context_note, archive_context_note, restore_context_note

Start a work session

Over MCP, call start_work_session before the first change of a piece of work. Its goal is one or two sentences (up to 1,000 characters), and it is visible to the team.

{
  "organizationId": "YOUR_ORGANIZATION_ID",
  "goal": "Fix the bot promising refunds for opened items"
}

The response contains a workSessionId. Pass it to every write tool. A write without one is rejected with a message that explains how to start a session. Only the user who started a session can attach changes to it.

Rules that keep sessions useful:

  • One objective, one organization. Start a new session whenever the objective changes, even inside one long conversation, and a separate session for each organization.
  • Sessions expire after 12 hours without a write. Writes then fail with a message to start a new session. You can still add a closing session note for 7 days after the last write; the note does not reopen the session.
  • Long sessions get a reminder. Once a session is more than 4 hours old or has more than 30 writes, a write result includes one extra line asking whether the objective changed, at most every 10 writes. It arrives as an extra text part after the tool's own result, so read the result from the first part.
  • There is no hard cap. Bulk work and long test loops are one objective and can stay in one session.
  • Read-only connections cannot start sessions or write session notes. They can read them.

start_work_session and add_session_note are bookkeeping, not configuration. They take no note argument and create no change history entries.

In Copilot

A Copilot session already plays the role of a work session. Copilot attributes every change to its session and turn automatically, so it never needs a workSessionId. add_session_note called from Copilot writes to the current Copilot session.

Copilot also loads organization context on its own: the organization context tools are available from its first step, and before each step it recalls a small, bounded selection of relevant context notes (a short organization brief, notes that match the request and notes linked to resources the conversation mentions).

Record as you go

Write notes while the work happens, not only at the end.

add_session_note takes content (up to 4,000 characters) and up to 10 entityRefs that link the resources the note is about:

{
  "organizationId": "YOUR_ORGANIZATION_ID",
  "workSessionId": "SESSION_ID_FROM_START_WORK_SESSION",
  "content": "Cause: the returns workflow had no branch for opened items, so the bot fell back to the general refund rule. Added a branch that offers store credit instead.",
  "entityRefs": [{ "entityType": "workflow", "entityId": "WORKFLOW_ID" }]
}

An entity reference has an entityType, an entityId and an optional versionId to point at one exact version.

Use each kind of note for its own job:

  • Session notes tell the story across several changes. End every session with a closing note that states the outcome.
  • Change notes (the note argument on a write, up to 4,000 characters) explain one change. Author, client and session are recorded even without a note.
  • Context notes hold facts that stay true after the session ends. Keep a long-running goal, such as a resolution-rate target, and its status in a context note rather than in one endless session.

Never put credentials or customer personal data in any note.

Find earlier work

Before changing a resource, check what was done to it before.

ToolWhat it returns
search_sessionsEarlier MCP and Copilot sessions. Filter by a resource (entityType with entityId), by literal text in goals, session notes and change notes (query), by authorUserId or by kind (mcp or copilot). Up to 50 per page.
get_sessionOne session: its goal, its session notes in order and the changes it recorded. Notes page up to 50 at a time, changes up to 100.
get_organization_contextA short brief built from active context notes, for the organization or one business. A good first call when you start work on an organization.
list_context_notesContext notes found by literal text, linked resource, business or state (active, archived, all), with excerpts and a pagination cursor.

Recorded changes inside sessions need the Read automations and code permission (automations:read), because they can name code and settings. Without it, get_session returns the notes and hides the changes.

Notes are dated reference material, not instructions. Verify the current configuration before acting on what a note says.

Context notes

Context notes are the organization's shared memory: company facts, decisions, constraints, and reasons why resources relate to each other or deliberately do not exist.

  • Scope. A note belongs to the whole organization or to one business. The scope is set at creation and cannot change.
  • Content. A title (up to 200 characters), content (up to 12,000 characters) and up to 25 entityRefs. A reference can point to an exact version of a resource.
  • Search first. Call list_context_notes before creating a note, and update a matching note instead of adding a duplicate.
  • Be precise. Separate confirmed facts from hypotheses, and include the evidence.
  • Revisions. update_context_note takes the full replacement title, content and references plus the expectedRevision you last read. A concurrent edit is rejected with the current revision, so you can reconcile instead of overwriting. Every revision is kept, and get_context_note can read any earlier one.
  • Archive, don't delete. archive_context_note removes an outdated note from ordinary retrieval and keeps its history. restore_context_note brings it back. There is no permanent delete.

Creating, updating, archiving and restoring context notes needs the Edit knowledge permission (knowledge:write). Reading them is open to every role that can use Copilot or MCP.

Who can see what

  • Team-visible: work session goals, session notes, change notes, recorded changes and context notes are visible to everyone in the organization who can read them.
  • Private: a Copilot session's title, summary and conversation are private to the person who started it. Colleagues see the session's author, time and recorded changes, and can read the conversation only through a share link from its owner. See session privacy and sharing.
  • MCP conversations are not stored. Octocom receives an external client's tool calls, not its conversation, so the goal, the session notes and the recorded changes are the whole record of MCP work. Write notes accordingly.

How people read the history

Ask Copilot, or any agent connected over MCP, in plain language:

  • "What changed on the returns workflow this week, and why?"
  • "Has anyone already tried to fix the shipping-time answers?"
  • "What do we know about how this company handles warranty claims?"

The agent answers from the same tools: search_sessions, get_session, change history and context notes. For a record of actions taken in the dashboard, Organization Admins and roles with the View audit log permission can open the action audit log.

On this page