Skip to main content

Module instructions

Module instructions 

Source
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 by visdom.

Structs§

Facts
What this session has, as far as visdom could 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
args for agent, started in start_dir, telling it text.
claude_args
Claude Code’s arguments with text added to its system prompt. Options after -- are the prompt’s.
codex_args
Codex’s arguments, started in start_dir, with text given as its developer instructions ahead of the developer’s own: from their options, else from the profile they name, their config.toml or 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. None when the session has nothing of Visdom’s to be told about.
without_hooks
Whether the caller’s options start agent without its hooks, so that nothing binds the session: Claude Code’s --bare skips them.
without_registered_mcp
Whether the caller’s options start agent without the MCP server registered for it as name, 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.