These are the tools your assistant gets. You rarely call them yourself, the assistant does, but you can ask for them by name. The machine-readable index of these docs is at /llms.txt.
Every tool that writes to your memory, including the journal, is marked as one that writes, and the one tool that overwrites a file, write_file, is marked destructive, so your AI app may ask before it runs.
| Tool | What it does |
|---|---|
start | Loads rules, profile, contexts and playbooks. Called once at the start of every chat. |
open_context | Opens one context: its README and the most recent journal lines. |
new_context | Creates a context folder for a new client, project or topic. |
log | Adds one journal line after every answer. |
remember | Adds a line to your rules, your profile or a context. |
list_files | Lists files in your memory. |
read_file | Reads one file. |
write_file | Writes a Markdown, text, CSV or JSON file. |
choose_repo | GitHub and Azure DevOps only. Picks the repository. |
record_turn | Used by the optional journal hooks. |
start#
Call start first in every chat where Alter Ego is available or the user mentions it, before answering, also for a simple question. It loads the user's rules, profile, contexts and playbooks. In an empty memory it creates the starter files.
| Parameter | Type | Description |
|---|---|---|
request | string | The user's first message in one short line. It goes to the journal. |
open_context#
Opens a client, project or topic: its README and the most recent journal lines. If the context does not exist it answers with the existing ones and suggests new_context.
| Parameter | Type | Description |
|---|---|---|
name | string | The context to open. |
turn | string | The user's current question in one short line. It goes to the journal. |
new_context#
Creates a context for a client, project or topic, with a README that holds the description.
| Parameter | Type | Description |
|---|---|---|
name | string | The name of the context. |
description | string | What it is and what matters, in a few lines. |
kind | string, optional | Only when start listed several kinds of contexts, for example client or project. |
log#
Records one short line with the question and its outcome in the user's own journal.
| Parameter | Type | Description |
|---|---|---|
entry | string | One short line: what was asked and what came out of it. |
context | string, optional | The client, project or topic. Empty for the general journal. An unknown name keeps the line in the general journal with the name in front. |
remember#
Stores something lasting.
| Parameter | Type | Description |
|---|---|---|
text | string | What to store. |
where | string, default rules | rules (how to work, applies to every chat), profile (facts about the user) or a context name. |
When a rules file grows long the tool says so and suggests merging overlapping rules, because some clients cut long instructions off.
list_files#
Lists files and folders in the user's memory.
| Parameter | Type | Description |
|---|---|---|
turn | string | The user's current question in one short line. It goes to the journal. |
path | string, optional | Path relative to the memory. Empty for the top. |
read_file#
Reads a file from the user's memory, for example a playbook.
| Parameter | Type | Description |
|---|---|---|
path | string | The file to read. If it does not exist, use list_files to see which files exist. |
turn | string | The user's current question in one short line. It goes to the journal. |
write_file#
Creates or overwrites a file in the user's memory, for example a new playbook. Overwrites the file.
| Parameter | Type | Description |
|---|---|---|
path | string | Only .md, .txt, .csv and .json files. Journals cannot be overwritten, use log. In an agent-context repository only the folders clients, projects, knowledge, playbooks and skills are writable. |
content | string | The full content of the file. |
choose_repo#
Only available when GitHub or Azure DevOps is configured as storage. Picks which repository holds the user's memory, when several are reachable. Storage with one fixed folder has no repository to choose.
| Parameter | Type | Description |
|---|---|---|
repo | string | The name exactly as listed: owner/name on GitHub, organization/project/name on Azure DevOps. |
record_turn#
Saves a message from the user's enabled Codex or Claude Code journal hook to the journal of the chat's context, or to the general journal, and to that chat's session file. Secrets are masked and lines are cut at 400 characters first.
| Parameter | Type | Description |
|---|---|---|
turn_id | string | The chat the message belongs to. |
role | user or assistant | Who wrote the message. |
message | string or null | The message text. |