docmap help · All-in-One Markdown Viewer

Working with AI agents

docmap has no AI of its own. It writes good prompts for the AI agent you already use (Claude Code, Copilot, Codex, Cursor…).

  1. Ask My AI Agent About This File

    “I don't know how to ask the AI the right question.”

    A menu of ready prompts: summarise, explain, challenge, find risks, turn into tasks, and more. The prompt is copied; paste it into your agent.

    Where: ⋯ Ask my AI agent at the top of the page → Ask my AI agent about this file…

    The Ask my AI agent menu: Summarise this file, Restructure into a clear doc, Tidy formatting, Brief me on what changed and more
  2. Build from this doc · Fill in this doc

    “I gave the AI my design. It built something a bit different, and nobody knows why.”

    Build from this doc: the agent builds exactly what the doc says and writes down every choice it had to make, and why. Fill in this doc: it fills the empty sections from the code.

    Where: ⋯ Ask my AI agent → Ask my AI agent about this file… (shown for design docs and docs with empty sections).

    The Ask my AI agent list for a design doc: Summarise, Restructure, Build from this doc, Does the code still match this design, Fill in this doc and more
  3. Review a doc and send it to your agent

    “I have notes on five sections of the AI's plan.”

    Mark sections as you read (approve, question, request a change), then send all your notes to your agent as one prompt.

    Where: hover a heading on the page → ⋯. To send: ⋯ Ask my AI agent → Send my review to my AI agent.

    The menu for a section: Approve this section, Ask a question, Request a change, Explain or challenge, Sign off, Ask my AI agent
  4. Comment on any words

    “My note is about one sentence in the AI's plan, not the whole section.”

    Select words on the page → Comment → type your note. The words get a dashed underline and a ✎; point at them to read your note. Send my review to my AI agent sends every comment with the words it is about.

    Where: select text on the page; the Comment button appears next to Highlight.

    A selected word on the page with Highlight and Comment buttons above it
  5. Copy for my AI

    “I want my AI chat to see this doc and the two it links to, without copying each one.”

    Copies this doc plus the linked docs you tick, as one text ready to paste into any AI chat, and tells you how big it is (“about 100 words”).

    Where: ⋯ Ask my AI agent at the top of the page → Copy for my AI… → tick the linked docs → OK.

    The page menu: Sign off this version, Ask my AI agent about this file, Copy for my AI (this doc and the linked docs you pick, as one text), What can docmap do?
  6. Where prompts go

    “Where does the prompt end up?”

    It is copied, with the message “Prompt copied — paste it into your AI agent”. docmap sends nothing anywhere. Copilot users can have it open in Copilot Chat instead.

    Where: Settings → search docmap agent target → auto for Copilot Chat.

    The AI settings: Agent Target set to clipboard, Answer With My Model off, Tools off
  7. Add Markdown Prompts to This Project

    “I want these prompts as commands in my agent.”

    Saves docmap's prompts into your project, so they show up when you type / in Copilot Chat or Claude Code.

    Where: Command Palette → Add Markdown Prompts to This Project.

    A picker with GitHub Copilot and Claude Code ticked
  8. Answer with my own model

    “I just want a quick summary, without leaving VS Code.”

    Your own model in VS Code (e.g. GitHub Copilot) writes the answer on a page next to your doc. Off by default; your text goes only to your model, after you agree.

    Where: Settings → search docmap ai → Answer With My Model.

    VS Code Settings showing the docmap AI settings, both off
  9. Tools for your AI agents (docmap-mcp)

    “My agent should check the plans, decisions and docs before it writes code — even outside VS Code.”

    Give Claude Desktop, Claude Code, Cursor, Antigravity or Copilot 6 read-only local tools: docmap_plans, docmap_open_questions, docmap_decisions, docmap_search, docmap_outline, and docmap_check_doc. Runs 100% locally with zero dependencies, zero network calls, and never reads .env secrets.

    Standalone (no VS Code needed): npx -y docmap-mcp /path/to/your/project
    In VS Code: What Can docmap Do? → Set Up docmap Tools for My Agent…

    Setup snippets (Claude Desktop, Claude Code, Cursor, Antigravity)

    Claude Code CLI:

    claude mcp add docmap -- npx -y docmap-mcp /absolute/path/to/your/project

    Claude Desktop / Cursor / Antigravity / .mcp.json:

    {
      "mcpServers": {
        "docmap": {
          "command": "npx",
          "args": ["-y", "docmap-mcp", "/absolute/path/to/your/project"]
        }
      }
    }

    Use "${workspaceFolder}" in Cursor's .cursor/mcp.json, or "." in a project's .mcp.json. Run npx -y docmap-mcp --help to see all flags.

    Sample prompts to try once connected (all 6 tools)
    ToolPrompt to paste into your AI agent
    docmap_plans“Use docmap_plans to list our top plans and anything overdue or needing attention.”
    docmap_open_questions“Use docmap_open_questions to find every unresolved question across our docs, with file and line numbers.”
    docmap_decisions“Use docmap_decisions to summarize the key decisions we've already recorded so we don't contradict them.”
    docmap_search“Use docmap_search to find every mention of auth across our Markdown docs and show the heading trail.”
    docmap_outline“Use docmap_outline on DESIGN.md first, then read only the section about security.”
    docmap_check_doc“Use docmap_check_doc on README.md to see if any code paths it mentions no longer exist.”
    A picker: Claude Code, Cursor, Windsurf and other agents, Just the command
  10. Install the Agent Skill (SKILL.md)

    “My agent has the docmap tools, but it still dumps whole 1,000-line docs into context.”

    Install docmap's ready-to-use SKILL.md in one command. It teaches your agent to inspect outlines, search across docs, and check plans, decisions and open questions before reading long files.

    npx -y docmap-mcp --install-skill          # writes .claude/skills/docmap/SKILL.md
    npx -y docmap-mcp --install-skill agents   # writes .agents/skills/docmap/SKILL.md

    Where: run in your project folder (or run npx -y docmap-mcp --print-skill to inspect it first).

  11. Point Other AI Tools to AGENTS.md

    “I use three AI tools, and keep copying the same rules into each.”

    Keep your rules in one AGENTS.md. docmap adds one pointer line to CLAUDE.md, Copilot's and Gemini's files. Nothing is replaced.

    Where: What Can docmap Do? → Point Other AI Tools to AGENTS.md…

    A picker listing CLAUDE.md, Copilot instructions and GEMINI.md, each with the line it will add
  12. Write Doc Map for Agents

    “My AI agent scatters new docs all over the project.”

    Adds a table to AGENTS.md saying where each kind of doc lives and which shape to follow, and to read the design before building.

    Where: Command Palette → Write Doc Map for Agents.

    AGENTS.md with a Doc map table: kind of doc, where it lives, shape to follow

Want to see every command in VS Code? Press Ctrl+Shift+P and run What Can docmap Do? (or Help: Get Started → All-in-One Markdown Viewer for the guided tour).