Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 4.29 KB

usage.md

File metadata and controls

27 lines (19 loc) · 4.29 KB

Mr. Code user guide

Project continuity

  • Use /new to start a conversation, /sessions to browse previous conversations, or /resume to open the most recent one. A continued conversation is saved separately so the earlier copy stays available.
  • Lock REQUIREMENTS.md, DESIGN.md, and TASKS.md from the project root with /lock, or lock a single file with /lock path/to/blueprint.md. Use /unlock before locking a revised snapshot. Each request gets the locked content and the current root instructions (AGENTS.md, with CLAUDE.md and GEMINI.md as fallbacks).
  • Send a message during a run to steer it before the next tool, or press Esc to stop. Start mrcode -c from the same project directory to reopen its latest session, then send a message to continue. Completed tool results are saved locally. If a run stopped before a result was recorded, Mr. Code shows the outcome as unknown. Use /diff to inspect changes against Git HEAD, including new files that Git does not ignore.
  • Sessions are saved in the operating system's user configuration directory. They contain conversation and tool output. The provider connection is configured separately, so you can resume with a different model.
  • /undo and /redo preview the latest direct file edit before you confirm with its displayed identifier. If the file changed after that edit, the restore refuses to overwrite it. /rewind chat forks the conversation at its last prompt. Shell changes are outside file undo.
  • /proof shows actual command exit status. When a Git workspace can be fingerprinted, it marks whether a successful command ran on the current tracked and unignored files. Check the command and what it covers before relying on the result. /review uses the same project diff as /diff and reads the recorded command results.
  • /fresh <note> starts a new context with your note and recent command evidence. /handoff exports the conversation, tool results, blueprint, and project diff to a local file. /import <file> restores the conversation without applying source changes. Review a handoff before sharing it because it can contain source and command output.
  • Launch with --inline if you prefer native terminal scrollback.
  • The project map lists declarations from Git-tracked sources. Start with --gopls to enable Go definitions and references using an already installed gopls.

Skills and MCP

Open /skills to search project and device skills in a dedicated panel. Use Enter to read the selected skill or Ctrl+K to edit its activation command inside the panel. Discovery includes skills.md, standard SKILL.md directories under .agents/skills, and supported Codex, Claude Code, Cursor, and GitHub Copilot paths. Use project for the root file and /skills off to clear the active skill.

Open /mcps to search saved profiles and discover existing servers from supported project and device configs, including Codex, Claude Code, Cursor, VS Code, Copilot CLI, and OpenCode. Use Enter to see where a server came from, or Ctrl+K to edit and run its setup, connect, or disconnect command inside the MCP panel. Discovery only reads configuration.

You can browse and inspect skills and servers while the model is working. A skill you activate or a server you connect during a turn is available from the next turn.

  • /mcps connect docs https://example.com/mcp DOCS_MCP_TOKEN connects to a Streamable HTTP server. Set the token in that environment variable first, or omit the variable for a server without authentication.
  • /mcps stdio tools ["my-mcp-server","--flag"] starts a local server. The command must already be installed. Commands and arguments are saved with the profile, so put credentials in the server's environment instead of the argument array.
  • /mcps connect docs connects a discovered server or reconnects a saved profile. For a discovered remote server that needs credentials, /mcps auth docs DOCS_MCP_TOKEN connects using the token you supply for Mr. Code. Other apps' sign-ins remain separate. /mcps disconnect docs closes the connection. Saved servers stay disconnected at startup.

Mr. Code exposes the connected server's tools to the selected model and asks before sending arguments to a server. MCP auth values provided through the environment are omitted from the profile. The integration supports MCP tools over stdio or Streamable HTTP.