You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0294d51
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ Three things accumulate across a session and compose into behavior: **memory** (
79
79
80
80
**HEXACO personality (optional).** Off by default. `agent()` writes the trait values into the system prompt as directives, one for each trait above 0.65 or below 0.35. A cognitive memory manager given the same traits scales its encoding and seven of its eight mechanisms by them, and an `AgentGraph` branches on a trait with `addPersonalityEdge()`. [HEXACO docs ->](https://docs.agentos.sh/features/hexaco-personality)
81
81
82
-
**Soul files.** Identity, voice, hard limits, and HEXACO scores can live in a `SOUL.md` workspace. Its `memory/` directory is a markdown wiki (an `index.md` catalog plus `entities/`, `concepts/`, `log/` pages with `[[wikilinks]]`) that *is* the agent's long-term memory: markdown is the source of truth, the vector/graph index is rebuilt from it, and [`souledAgent()`](https://docs.agentos.sh/getting-started/high-level-api) wires it end to end. [Soul Files ->](https://docs.agentos.sh/features/soul-files)
82
+
**Soul files.** Identity, voice, hard limits, and HEXACO scores can live in a `SOUL.md` workspace. Every way of building an agent applies them: the hard limits close the system prompt, and the soul's `agentId` is the agent's one id. Its `memory/` directory is a markdown wiki (an `index.md` catalog plus `entities/`, `concepts/`, `log/` pages with `[[wikilinks]]`) that *is* the agent's long-term memory: markdown is the source of truth, the vector/graph index is rebuilt from it, and [`souledAgent()`](https://docs.agentos.sh/getting-started/high-level-api) wires it end to end. [Soul Files ->](https://docs.agentos.sh/features/soul-files)
Copy file name to clipboardExpand all lines: docs/SOUL_FILES.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,7 @@ const reply = await aria.session('customer-42').send('I need help with my invoic
251
251
console.log(reply.text);
252
252
```
253
253
254
-
`agent()`uses the prose; the structured fields (HEXACO scores, voice, mood, hard limits) live on the `personaDefinition` that `loadSoul()` returns, which the full runtime takes as a persona:
254
+
Every path applies the front matter through one mapping. `agent()`and `souledAgent()` render the hard limits, the `hexaco` trait paragraph and the name; `gmi()` builds its persona from the id, name, role, traits, mood, reasoning-trace limits and hard limits; and the full runtime takes the whole `personaDefinition` that `loadSoul()` returns:
@@ -285,21 +285,24 @@ What a soul gives an agent depends on how it is loaded:
285
285
286
286
| Path | Soul prose and style in the prompt | Memory index in the prompt | Front matter applied (traits, mood, hard limits, `agentId`) | A recall block each turn |`read_memory_page` tool | Wiki compiled |
287
287
|---|---|---|---|---|---|---|
288
-
|`agent({ soul })`| Yes | Yes |No| No (only from a `memoryProvider` you pass) | No | No |
289
-
|`souledAgent()`| Yes | Yes |`agentId` only, which scopes the wiki's traces | Yes, from the wiki's store | Yes | Yes, on `close()` and by `agent.memory.compileWiki()`|
290
-
|`agent({ runtime: 'gmi', soul })`, `gmi({ soul })`| Yes | Yes |No| With cognitive memory on, from cognitive memory; off, only from a `memoryProvider` you pass | No | No |
291
-
|`souledAgent({ runtime: 'gmi' })`, cognitive memory off | Yes | Yes |`agentId` only| Yes, from the wiki's store | Yes | Yes |
292
-
|`souledAgent({ runtime: 'gmi' })`, cognitive memory on | Yes | Yes |`agentId` only| From cognitive memory; the wiki store's recall is skipped, with a warning, and its turns are still stored | Yes | Yes |
293
-
| The full runtime given `loadSoul().personaDefinition`| Yes (the persona's `baseSystemPrompt`) | No | Yes | From the runtime's own memory, when configured; not from the wiki | No | No |
288
+
|`agent({ soul })`| Yes | Yes |Hard limits as the last block of the system prompt; the `hexaco` paragraph unless `personality` is set; the soul's `name` unless `name` is set. Mood, voice, avatar and reasoning-trace limits have no renderer here| No (only from a `memoryProvider` you pass) | No | No |
289
+
|`souledAgent()`| Yes | Yes |As `agent({ soul })`; the soul's id (`agentId`, else the slug of its `name`, else the agent's `name`) scopes the wiki's traces, and a soul with none of the three is rejected| Yes, from the wiki's store | Yes | Yes, on `close()` and by `agent.memory.compileWiki()`|
290
+
|`agent({ runtime: 'gmi', soul })`, `gmi({ soul })`| Yes | Yes |The persona's id, name, role, traits, mood, reasoning-trace limits and hard limits, the limits as the last block; `voice` and `avatar` are left out with one log line| With cognitive memory on, from cognitive memory; off, only from a `memoryProvider` you pass | No | No |
291
+
|`souledAgent({ runtime: 'gmi' })`, cognitive memory off | Yes | Yes |As `gmi({ soul })`; one id for the persona and the wiki| Yes, from the wiki's store | Yes | Yes |
292
+
|`souledAgent({ runtime: 'gmi' })`, cognitive memory on | Yes | Yes |As the row above| From cognitive memory; the wiki store's recall is skipped, with a warning, and its turns are still stored | Yes | Yes |
293
+
| The full runtime given `loadSoul().personaDefinition`| Yes (the persona's `baseSystemPrompt`) | No | Yes, every field| From the runtime's own memory, when configured; not from the wiki | No | No |
294
294
295
295
The exceptions:
296
296
297
-
-`systemBlocks` replace the prompt the agent assembles, so an agent given a soul and `systemBlocks` has none of the soul's prose, style or memory index in its prompt; the build says so in one `console.warn` line. A souled agent in that state still records its turns into the wiki.
297
+
-`systemBlocks` replace the prompt the agent assembles, so an agent given a soul and `systemBlocks` has none of the soul's prose, style or memory index in its prompt; the build says so in one `console.warn` line. The hard limits still close the prompt, as one more block after yours with no cache breakpoint of its own. A souled agent in that state still records its turns into the wiki.
298
298
- A named tool map (an object, not an array) is passed through as given, without `read_memory_page`.
299
299
- An inline soul (`{ content }`) has no workspace folder: `souledAgent()` builds a plain `agent()` with no wiki memory, no `read_memory_page` tool and no compile, and says so in one `console.warn` line.
300
300
- One-shot `generate()` and `stream()` on a GMI run the light profile, so they use the memory provider's recall, the wiki store's on a souled agent, even when sessions run with cognitive memory on.
301
301
- A seat of a launched team uses neither memory hook (no recall from the provider, nothing stored with it) and is refused the memory tools, `read_memory_page` among them.
302
-
- Hard limits are a block of prompt text a GMI renders from the persona, not a check that enforces them.
302
+
- Hard limits are a block of prompt text every path renders last, after `systemBlocks` too. It tells the model; it is not a check that enforces the limits.
303
+
- A `personality` or `name` option set in code wins over the soul's `hexaco` and `name`. The id is the exception: the soul's `agentId` wins over the agent's `name`, since the id keys the agent's memory and must not move when the agent is renamed.
304
+
-`gmi()` accepts guardrails, RAG and approval settings without applying them, and says so in one warning line at construction.
305
+
- A soul that fails to load throws `SoulLoadError` when the agent is built, unless it is given as `{ path, optional: true }` or `{ content, optional: true }`.
303
306
- On the full runtime, the trait paragraph from the `hexaco:` scores reaches the prompt with or without a learning layer; with one, the layer prepares it each turn ([GMI.md](./GMI.md#learning)).
`IPersonaDefinition.hardLimits` (and `hardLimits:` in a SOUL file's front matter, when the file is loaded as a persona) renders as the last block of the system prompt of every GMI turn for that persona, under the heading "Hard limits", after everything the turn added and after every fragment of the persona's own prompt whatever priority it carries. The guards hold the same rules in code; the block tells the model.
447
+
`IPersonaDefinition.hardLimits` (and `hardLimits:` in a SOUL file's front matter) renders as the last block of the system prompt on every path: every GMI turn for that persona, and every model call of `agent({ soul })` and `souledAgent()`, after `systemBlocks` too, under the heading "Hard limits", after everything the turn added and after every fragment of the persona's own prompt whatever priority it carries. The guards hold the same rules in code; the block tells the model.
448
448
449
-
A GMI built by `agent({ runtime: 'gmi' })` or `gmi()` has no such block. Its persona comes from [`personaFromAgentOptions()`](https://github.com/framerslab/agentos/blob/master/src/api/runtime/gmiPersona.ts), which sets no `hardLimits`, and the front matter of a `soul` file is not applied on that path ([GMIs from agent()](../GMI.md#gmis-from-agent)).
449
+
A GMI built by `agent({ runtime: 'gmi' })` or `gmi()` has the block when its `soul` sets `hardLimits`: [`personaFromAgentOptions()`](https://github.com/framerslab/agentos/blob/master/src/api/runtime/gmiPersona.ts) takes them from the soul's front matter ([GMIs from agent()](../GMI.md#gmis-from-agent)). An agent with no soul has none.
0 commit comments