Alter Ego Docs Get started
DocsReference

Tools

Every tool the Alter Ego connector gives your assistant, with its parameters.

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.

ToolWhat it does
startLoads rules, profile, contexts and playbooks. Called once at the start of every chat.
open_contextOpens one context: its README and the most recent journal lines.
new_contextCreates a context folder for a new client, project or topic.
logAdds one journal line after every answer.
rememberAdds a line to your rules, your profile or a context.
list_filesLists files in your memory.
read_fileReads one file.
write_fileWrites a Markdown, text, CSV or JSON file.
choose_repoGitHub and Azure DevOps only. Picks the repository.
record_turnUsed 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.

ParameterTypeDescription
requeststringThe 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.

ParameterTypeDescription
namestringThe context to open.
turnstringThe 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.

ParameterTypeDescription
namestringThe name of the context.
descriptionstringWhat it is and what matters, in a few lines.
kindstring, optionalOnly 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.

ParameterTypeDescription
entrystringOne short line: what was asked and what came out of it.
contextstring, optionalThe 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.

ParameterTypeDescription
textstringWhat to store.
wherestring, default rulesrules (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.

ParameterTypeDescription
turnstringThe user's current question in one short line. It goes to the journal.
pathstring, optionalPath relative to the memory. Empty for the top.

read_file#

Reads a file from the user's memory, for example a playbook.

ParameterTypeDescription
pathstringThe file to read. If it does not exist, use list_files to see which files exist.
turnstringThe 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.

ParameterTypeDescription
pathstringOnly .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.
contentstringThe 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.

ParameterTypeDescription
repostringThe 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.

ParameterTypeDescription
turn_idstringThe chat the message belongs to.
roleuser or assistantWho wrote the message.
messagestring or nullThe message text.