Part 1: Gemini
Copy a code block
Google's help says that below a block of code, you tap or click Copy. The help page does not describe a copy button for normal text.
If you need the Markdown symbols, try asking: "Put the answer in a Markdown code block." Then copy that block. Google does not document this prompt. It is not an official feature, so check the result.
Ask for a Markdown file
Google's blog lists Markdown (MD) as a file type Gemini can create in a chat. You describe the file you need in a prompt. The blog says that for most formats you can then download the file to your device or export it to Drive.
Try asking: "Create a Markdown (MD) file with this answer." The blog does not give the exact steps for the MD file. If no file appears, use the code block method above.
Share and export
Under a response, the web app has a Share & export menu. Google documents these options:
- Export to Docs: saves a new doc in Google Drive.
- Draft in Gmail: makes a new email draft. Gmail accounts only.
- Export to Sheets: for tables. It is at the bottom right of the table.
- Export to Colab: for Python code. Not for Workspace accounts.
- Export to Replit: for code. Not for work or school accounts.
In the Android app, the options are under More below the response. Tables, Colab and Replit are not available there.
None of these options is documented as a way to download a Markdown (.md) file. The Canvas panel has its own Share & export button with Export to Docs and Copy contents. Google's page does not mention Markdown for Canvas.
Export options also change with your account type and Workspace settings.
Part 2: Antigravity
Antigravity is Google's agent coding tool. It has a desktop app and a terminal client called the Antigravity CLI. The command is agy.
Plans and artifacts
In Antigravity, the things the agent creates are called "artifacts". Google's artifacts page lists "rich Markdown plans (implementation plans)" among them. The agent usually asks you to review the plan before it changes your code. In the CLI, Ctrl + R opens the Artifact Review screen to check plans and diffs.
At the end of a task, the agent makes a walkthrough: a short summary of what it changed. Google's page does not say what format the walkthrough has.
Google's pages do not say where artifacts are saved on disk, and they do not describe a task list. So this guide does not cover them either.
Rules files
Antigravity's Rules page describes two plain Markdown files:
AGENTS.mdandGEMINI.md: always active, no frontmatter. You can put them in a folder, or in.agents/. Antigravity looks in your workspace folder and each parent folder up to the repository root..agents/rules/*.md: separate rule files. Each one must start with YAML frontmatter that sets atrigger:always_on,model_decision,globormanual. A file with missing or wrong frontmatter is silently dropped.
Global versions live in ~/.gemini/. Each rule file is limited to 24,000 bytes.
The Rules page says "Antigravity". Google's features page says rules work in both the Antigravity app and the CLI.
Gemini CLI is a different tool
Gemini CLI is Google's earlier terminal agent. It reads GEMINI.md context files: a global one in ~/.gemini/, ones in your workspace and parent folders, and ones in folders its tools touch. /memory show prints the combined text. /memory reload reads the files again. The context.fileName setting can add other names, such as AGENTS.md.
Its documentation says Gemini CLI was replaced by Antigravity CLI on 18 June 2026 for unpaid-tier and Google One users.
More on the same idea: Reading the Markdown files your AI agents write and Codex: AGENTS.md and the files Codex reads.
Reading what Gemini and Antigravity write
On Android. Copy the Markdown from Gemini. In PilcrowMD, start a new document from the welcome screen, paste, and tap Read. You see headings and tables, not symbols.
If you downloaded an .md file, open it from your file manager with PilcrowMD. PilcrowMD opens Markdown files from a file manager or another app.
If a computer holds the project and syncs it with Google Drive, add that folder in My folders. Tested with Google Drive. Limits: open the note to see the latest version, and there is no live reload.
On a Mac. Add the project folder in My folders. When Antigravity writes or changes a file there, it shows up marked N (new) or U (updated). When a file changed since you last read it, click Highlight changes to see what is new, or Compare side by side. The Mac app makes no internet connection.
Common questions
Does Gemini give me Markdown? Not by default. Its help documents a Copy button on code blocks and export to Google products. Google documents asking Gemini to create a Markdown (MD) file. Asking for a Markdown code block is not documented, so check the result.
Is GEMINI.md the same as AGENTS.md? They are both plain Markdown instruction files. Antigravity's Rules page lists both as always active. Google's pages do not say which file takes priority if both exist, so use only one.
Are Antigravity plans saved as .md files? Google calls them "rich Markdown plans", but its pages do not say where they are saved. Check your own project and Antigravity folders to find them.
Also on Mac: PilcrowMD for Mac (beta)