Expand description
What an agent started by visdom is told about Visdom: which of its
tools this session has, and when to use them.
The text is made from what was found working for this run (a login to the
tracing server, a registered bazaar MCP server, a session through the AI
Gateway), so the agent is never pointed at something that is not there,
and it is given on the agent’s command line: no file of the developer’s
(CLAUDE.md, AGENTS.md) is written, and it does not depend on any hook
being installed.
- Claude Code:
--append-system-prompt. Claude Code keeps only the last one it is given, so the caller’s own is taken out of the arguments and sent after this text, in the same option. - Codex:
-c developer_instructions=…. That setting has one value, so the developer’s own — from their options or their own configuration — is sent after this text, in the same setting. Where a file that is not the developer’s own sets it (a project’s.codex/config.toml), nothing is added: whether Codex uses that file is its decision (the project’s trust), and its content is never made into an option byvisdom.
Structs§
- Facts
- What this session has, as far as
visdomcould tell before starting it.
Enums§
- Told
- The agent’s arguments, and what became of the instructions.
Constants§
- CODEX_
SYSTEM_ CONFIG - Where Codex reads the configuration of the whole machine.
Functions§
- agent_
args argsforagent, started instart_dir, telling ittext.- claude_
args - Claude Code’s arguments with
textadded to its system prompt. Options after--are the prompt’s. - codex_
args - Codex’s arguments, started in
start_dir, withtextgiven as its developer instructions ahead of the developer’s own: from their options, else from the profile they name, theirconfig.tomlor the machine’s (system_config), the first that sets any. See [codex_left_to] for when nothing is added. - codex_
profile_ changes_ mcp - Whether the profile the caller names for Codex has anything to say about its MCP servers: one found registered may then be switched off.
- codex_
works_ elsewhere - Whether the caller’s options have Codex work in another directory than
the one it is started in (
-C). What that directory has of Visdom’s was not looked at. - compose
- The instructions for a session with
facts.Nonewhen the session has nothing of Visdom’s to be told about. - without_
hooks - Whether the caller’s options start
agentwithout its hooks, so that nothing binds the session: Claude Code’s--bareskips them. - without_
registered_ mcp - Whether the caller’s options start
agentwithout the MCP server registered for it asname, or may: one found registered is then not one this session is known to have. For Codex that is any override of its servers as a whole or of this one.