# Agents Read Their Own Working Context: Octomind 0.74.0

> Octomind 0.74.0 lets an agent read its own working context — pinned constraints, exact frontier, recall index — and search the conversation that delegated it.

![Animated Octomind icon — purple pixel-art octopus](/octomind-icon-animated.gif)

Octomind 0.74.0 is, from a user's side, about context. The headline is the **delegated context search**: a specialist dispatched to work does not have to be told every fact its parent already established — it can read back the working context that delegated it. Underneath that, the compression machinery keeps your session as a working set rather than a blob of text: the constraints that must survive a fold are pinned, the lines the agent actually worked on stay exact, and everything else is archived with a recall index that tells the agent where to go for the rest.

## Why a working set instead of a blob?

When a session grows long, Octomind folds the older exchanges into a summary. Before 0.74.0, that summary was one opaque block: the agent would be told a task and a handful of facts, and anything it had to reconstruct from the earlier conversation was gone. Now a folded summary carries, in order:

- **Pinned state** — the exact task and the constraints that were in force when the fold happened, kept verbatim. Constraints come from the plugins you have installed, and from the request lines that carry them.
- **An exact frontier** — the evidence still in play for the open step, kept word for word, not summarized. Four working windows of it survive the fold, least-budgeted first, and the exact bytes are preserved so the agent can see a line it wrote last.
- **A recall index** — the same summary names what was archived, with block IDs and a pointer to the archive. The `recall` tool takes those IDs and returns the original text with role labels, so the agent can ask for one specific passage instead of re-reading a token dump.

The result is that the agent can tell what it was told, what it pinned, and what it is allowed to re-read — rather than guessing from a summary. The exact working set survives the fold even when the fold is very aggressive, so the lines an agent still depends on are not silently evicted. (For the broader shape of this — why the agentic loop fails without it — see [Context Engineering](/blog/context-engineering-for-ai-agents).) When a session is archived, the sidecar keeps every block findable: a summary that lists a block ID always has the original archived behind it.

This is the same shape the compression guide describes: a fire line (`compression.threshold`, default 120000 tokens), a hard ceiling, and an adaptive fold. What changed in the release is that the context handed to an agent is now something it can read and ask about, instead of a shape with no handle on it.

## Delegated specialists can search the conversation behind them

Until 0.74.0, a delegated run started with nothing: the specialist saw the brief and nothing else, so the brief had to repeat every fact, name and constraint you had already established. If the brief left something out, the specialist could not get it back.

**In 0.74.0 a same-workspace delegated child gets a `context` tool** (a close cousin to the [multi-agent delegation](/blog/multi-agent-delegation-octomind) pattern) that searches the authorized conversation of the agents that delegated the work. The tool is part of the builtin `core` server and is only present in a delegated child that holds a grant.

A grant is issued when the work lands in the same workspace as the parent session. It is bound to that workspace and to the parent chain, persisted for the child, and limited to 16 ancestors. A `tap` run pointed at a different directory gets no grant: the run reports the context as unavailable and the `context` tool is not offered.

The brief the specialist receives now ends with a short note saying the parent conversation is available through the `context` tool, followed by an excerpt of your original request. The specialist is told to search for earlier instructions, decisions or evidence when it needs them.

The tool itself takes three parameters:

| Parameter | What it means                                          |
| --------- | ------------------------------------------------------ |
| `query`   | Required. The text to search for, up to 1024 bytes.    |
| `scope`   | `ancestors` (the default), `parent`, or `root`.        |
| `limit`   | How many passages to return. 5 by default, 12 at most. |

Each result carries a source label, the ancestor depth it came from, a reference and the exact excerpt. The source labels are `user_instruction`, `delegation`, `assistant_discussion` and `tool_evidence`. The search has a lexical and a semantic half. Only some of the transcript is projected: your real task messages, the assistant's visible discussion, and the monitor lines that record a started monitor. Compression summaries are not projected, because they are compacted state rather than a live turn. Text that looks like a credential is left out of the projection entirely, so a secret in an old message is never handed to a child.

The answer also reports coverage: `lexical_complete` and `semantic_complete` say whether the search covered the whole authorized transcript or only part of it, so an empty result can be read as "nothing matched" only when the coverage says the search was complete. The semantic half needs the local embedding model; where it is unavailable, the semantic coverage flag says so.

The conversation vectors used for the semantic half are computed as transient embeddings, so they are not written into the reusable embedding cache that the rest of Octomind shares.

A parent that cancels a turn and removes it takes that turn out of the child's search, including from a grant that was issued earlier. Each ancestor is fixed at the moment it was dispatched: resuming a run keeps the same boundaries, and new instructions go to a running specialist with `tap send` rather than by widening its search.

## Why this is worth the read

A handful of papers sit behind the shape of what Octomind now does, and they are worth naming because the same failures they describe are still common in long-running agents.

- [“Lost in the Middle: How Language Models Use Long Contexts”](https://arxiv.org/abs/2307.03172) (Liu, Lin, Hewitt, Paranjape, Bevilacqua, Petroni & Liang, 2023, Transactions of the Association for Computational Linguistics, 2024) shows that a language model uses information near the beginning and end of a long context far better than what sits in the middle. Octomind keeps the task and the constraints at the top of a folded summary and the lines the agent still works on near the frontier — the same shape the paper describes, and an analogy to a good response, not a claim that Octomind is built on it.
- [“MemGPT: Towards LLMs as Operating Systems”](https://arxiv.org/abs/2310.08560) (Packer, Wooders, Lin, Fang, Patil, Stoica & Gonzalez, 2023) treats an agent's context as a hierarchy of memory with paging in and out. Octomind's fold-and-archive with a recall index is the same idea applied to a session: the working set is what stays, everything else is one lookup away.
- [“LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models”](https://arxiv.org/abs/2310.05736) (Jiang, Wu, Lin, Yang & Qiu, 2023, EMNLP) shows that how you compress matters — selecting the tokens worth keeping beats trimming whatever is convenient. Octomind chooses what survives the fold instead of trimming whatever is convenient: the pinned task, the exact frontier and the constraints are kept.
- [“Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks”](https://arxiv.org/abs/2005.11401) (Lewis et al., 2020, NeurIPS) is the umbrella idea: a model that can retrieve relevant evidence at the moment it needs it does better when it does not have to carry everything in one block. The delegated `context` tool is retrieval over an authorized conversation rather than over the web.

None of these papers is a spec for Octomind; they describe where the shape of this work comes from, and the release is grounded in its own source. The connection between any paper and the implementation is an analogy, not a claim that Octomind is built on that paper.

## What else is in 0.74.0

Besides the context layer, three changes ship; they are concrete but quieter.

**Remote MCP skills.** Octomind's `skill` tool managed local and tap-installed skills before: `list` to see them, `use` to put one into the session, `forget` to take it out. In 0.74.0 `list` also shows skills published by a connected MCP server, marked `[MCP]` and named with the server in front of the reference, for example `docs:skill://release/SKILL.md`. Loading one is a two-step affair. First `use` asks you to approve the skill — the prompt names the server and the skill and says the agent will follow its instructions, including asking to run code locally under this session's tool policy — and your answer has to be an explicit yes. Then `use` again with the file URI as `resource` and the manifest identifier as `manifest` lets you read a supporting file such as a script or reference document that belongs to the skill. The manifest is a digest over the server name, the skill URI, the frontmatter and the sorted file list; a supporting file is accepted only when its bytes match the hash the manifest declares, and only when the manifest identifier you pass matches the one recorded for that skill in that session. Manifests may declare at most 512 files and 16 MB in total. The skill must carry YAML frontmatter that matches the manifest exactly, or it is refused. A non-interactive run cannot answer the approval prompt, so a remote skill will not load there. A remote skill is returned as tool output, not injected into the context as an active skill, so `forget` applies to local skills only — there is nothing to forget for a remote one.

**Formatted plugin answers.** Some plugins answer in their own payload shape, and Octomind used to print that payload as framed text — a block of a block, with the colours gone. In 0.74.0 a recognized plugin answer is laid out like the built-in command. Besydr's `/learning` answers now render with the framed blocks Octomind uses for its own output: a summary of storage with pagination, the lesson with its metadata and a provenance section, the delete confirmation, the clear summary with any warning, and the evolution view with each artifact's kind and state and the approve, reject and rollback actions. Other plugins and unrecognized answers keep the framed text they had before; the layout is applied only to a `/learning` answer from the plugin Octomind ships with.

**Maintenance.** The CI action pin for ripgrep and ast-grep went from 2.90.4 to 2.90.8. The config version is still 34, so nothing migrates on first start and no backup is needed.

## Before you update

- **`skill list` can now fail.** A connected server whose `skills/list` call errors makes the whole call report that error, rather than listing your local and tap skills on their own. Servers that do not publish skills are ignored.
- **MCP skills need an interactive session.** An approval prompt cannot be answered from a non-interactive scope, so a remote skill will not load there.
- **A delegated child in another workspace gets no `context` tool.** If the delegation runs somewhere else on disk, the context stays unavailable.
- **Turns your parent removed are gone from the child's search.** If a child relied on a turn you later cancelled and removed, it will not find it now.
- **`forget` still means a local skill.** A remote MCP skill is loaded as tool output and has no active entry to remove.

## Update to Octomind 0.74.0

On macOS and Linux:

```bash
curl -fsSL https://octomind.run/install.sh | bash -s -- --version 0.74.0
octomind --version
```

On Windows, in PowerShell:

```powershell
$env:OCTOMIND_VERSION = "0.74.0"
irm https://raw.githubusercontent.com/muvon/octomind/master/install.ps1 | iex
```

Or run `scoop update octomind`. See the [installation guide](/docs/usage/01-installation) for other methods, the [full changelog](https://github.com/muvon/octomind/blob/0.74.0/CHANGELOG.md), and [the 0.73.2 notes](/blog/octomind-0-73-2-release) for what came before.

Then try it: delegate a task with `tap`, let the parent make a decision it does not repeat in the brief, and ask the specialist to look it up with `context`.

— DK
