Skip to content

Commit 63d6e5d

Browse files
youssefeaclaude
andauthored
Rename ai-agents docs section to agents (#1621)
* refactor: rename ai-agents docs section to agents Rename the docs/ai-agents directory to docs/agents and update all internal references, navigation, and section indexes accordingly. - Move docs/ai-agents/ -> docs/agents/ (git rename, history preserved) - Update nav pages in docs.json to the new agents/ paths - Point all redirect destinations at /agents and add catch-all redirects (/ai-agents and /ai-agents/:slug*) so legacy links keep working; existing legacy /ai-agents sources are preserved - Add Skills and Support anchors to the Agents tab, matching the pattern used by other sections (e.g. Account's GitHub/Support links) - Regenerate agents.md and llms.txt / llms-full.txt indexes Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * fix: avoid /agents route clash by moving section index to base-mcp The generated docs/agents.md already serves at /agents, which clashed with the section's index.mdx (also /agents). Move the Base MCP overview to its own route and let agents.md own /agents. - Rename docs/agents/index.mdx -> docs/agents/base-mcp.mdx (/agents/base-mcp) - Point nav, redirect destinations, and content links at /agents/base-mcp - Redirect /ai-agents and /ai-agents/index to /agents/base-mcp - Regenerate agents.md and llms.txt / llms-full.txt indexes Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * Revert "fix: avoid /agents route clash by moving section index to base-mcp" This reverts commit d79c559. * chore: exclude agents.md from the build instead of moving the index Add docs/agents.md to .mintignore so it is not built into a page and does not claim the /agents route — resolving the clash with the section's index.mdx while keeping /agents as the Base MCP overview. agents.md is a repo artifact (the AI-agent docs index), not a site page; the public index is /llms.txt. This mirrors the existing writing.md exclusion. The earlier base-mcp rename is reverted. Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * chore: rename agents.md index to AGENTS.md (drop mintignore) Try the standard uppercase AGENTS.md filename instead of excluding the index from the build. Whether this avoids the /agents route clash with the section's index.mdx will be confirmed by the preview build. - Rename docs/agents.md -> docs/AGENTS.md - Remove agents.md from docs/.mintignore (no longer build-excluded) - Add AGENTS.md to docs-utils skipFiles so the generator still excludes its own output from the index (previously relied on .mintignore; fixes a latent self-reference where the index listed "agents") - Point the generator, git hooks, hook config/lib, and docs at AGENTS.md (the "agents.md" commit-message trigger token is matched case-insensitively, so it is left unchanged) Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * docs: point agents to the canonical uppercase AGENTS.md index Add a Note callout on the agents overview directing AI agents to the machine-readable docs index at https://docs.base.org/AGENTS.md, emphasizing the uppercase filename. Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * docs: use Visibility for=agents for the AGENTS.md pointer Replace the Note callout with <Visibility for="agents">, which hides the pointer from the human web UI while including it in the Markdown (.md) output that agents fetch — the intended audience for the canonical uppercase AGENTS.md index. Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 854cdc1 commit 63d6e5d

52 files changed

Lines changed: 299 additions & 272 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/.githooks/post-commit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Regenerates docs/agents.md after each commit (when commit message contains "agents.md").
2+
# Regenerates docs/AGENTS.md after each commit (when commit message contains "agents.md").
33
# If the index changed, creates a follow-up commit.
44
#
55
# Debug: DEBUG_AGENTS_HOOK=1 git commit ... (or export it for the session)
@@ -48,12 +48,12 @@ if [ $rc -ne 0 ]; then
4848
exit 0
4949
fi
5050

51-
if git diff --quiet -- docs/agents.md 2>/dev/null; then
52-
log "docs/agents.md unchanged; nothing to commit"
51+
if git diff --quiet -- docs/AGENTS.md 2>/dev/null; then
52+
log "docs/AGENTS.md unchanged; nothing to commit"
5353
exit 0
5454
fi
55-
log "docs/agents.md changed; creating follow-up commit"
55+
log "docs/AGENTS.md changed; creating follow-up commit"
5656

57-
git add docs/agents.md
58-
git commit -m "chore: regenerate docs/agents.md" --no-verify >/dev/null
57+
git add docs/AGENTS.md
58+
git commit -m "chore: regenerate docs/AGENTS.md" --no-verify >/dev/null
5959
log "follow-up commit created"

docs/agents.md renamed to docs/AGENTS.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Look up Base documentation with a compact directory-grouped index b
88

99
> High-signal index of section guides. Jump to a section's llms.txt for concise intros, curated links, and fast navigation.
1010
11-
- [AI Agents](./ai-agents/llms.txt) — Give your AI assistant a wallet. Base MCP connects any AI to your Base Account. Check balances, send funds, swap tokens, sign messages, and pay with x402.
11+
- [Agents](./agents/llms.txt) — Give your AI assistant a wallet. Base MCP connects any AI to your Base Account. Check balances, send funds, swap tokens, sign messages, and pay with x402.
1212
- [Apps](./apps/llms.txt) — A step-by-step guide to building a Next.js tally app on Base using wagmi and viem, with wallet connection, contract reads and writes, and batch transaction support.
1313
- [Base Account](./base-account/llms.txt)
1414
- [Base Chain](./base-chain/llms.txt) — Bridge tokens and messages between Base and Solana Mainnet
@@ -39,13 +39,13 @@ npx skills add base/base-skills
3939
## Compact docs index
4040

4141
[Docs]|root:./docs
42-
|ai-agents:index,quickstart
43-
|ai-agents/guides:batch-calls,check-balance,index,send-tokens,sign-messages,swap-tokens,view-history,x402-payments
44-
|ai-agents/plugins:custom-plugins,index
45-
|ai-agents/plugins/native:aerodrome,avantis,bankr,index,moonwell,morpho,uniswap,virtuals
46-
|ai-agents/skills:SKILL
47-
|ai-agents/skills/plugins:aerodrome,avantis,bankr,moonwell,morpho,uniswap,virtuals
48-
|ai-agents/skills/references:approval-mode,batch-calls,custom-plugins,install,tone
42+
|agents:index,quickstart
43+
|agents/guides:batch-calls,check-balance,index,send-tokens,sign-messages,swap-tokens,view-history,x402-payments
44+
|agents/plugins:custom-plugins,index
45+
|agents/plugins/native:aerodrome,avantis,bankr,index,moonwell,morpho,uniswap,virtuals
46+
|agents/skills:SKILL
47+
|agents/skills/plugins:aerodrome,avantis,bankr,moonwell,morpho,uniswap,virtuals
48+
|agents/skills/references:approval-mode,batch-calls,custom-plugins,install,tone
4949
|apps:index
5050
|apps/builder-codes:agent-developers,app-developers,builder-codes,wallet-developers
5151
|apps/growth:rewards
@@ -103,4 +103,4 @@ npx skills add base/base-skills
103103
|base-chain/specs/upgrades/jovian:derivation,exec-engine,l1-attributes,overview,system-config
104104
|get-started:base-mentorship-program,base-services-hub,base,block-explorers,concepts,country-leads-and-ambassadors,data-indexers,deploy-smart-contracts,docs-llms,docs-mcp,get-funded,launch-b20-token,launch-token,learning-resources,prompt-library,resources-for-ai-agents
105105
|ledgers:deposit-flow,how-it-works,overview,withdraw-flow
106-
|root:agents,changes,cookie-policy,privacy-policy,terms-of-service,tone_of_voice
106+
|root:changes,cookie-policy,privacy-policy,terms-of-service,tone_of_voice
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import { AcceptingPaymentsDemo } from "/snippets/AcceptingPaymentsDemo.jsx"
1414

1515
`send_calls` submits a batch of raw contract calls for a single Base Account approval. Use it for DeFi interactions, multi-step operations, and NFT mints that go beyond simple send or swap.
1616

17-
The most common use case: [protocol plugins](/ai-agents/plugins/native) like Moonwell prepare a `calls` array (including token approvals and deposits), and you pass it directly to `send_calls` — everything executes atomically in one approval. Moonwell works entirely via `web_request`, with no additional MCP server required.
17+
The most common use case: [protocol plugins](/agents/plugins/native) like Moonwell prepare a `calls` array (including token approvals and deposits), and you pass it directly to `send_calls` — everything executes atomically in one approval. Moonwell works entirely via `web_request`, with no additional MCP server required.
1818

1919
## What you can ask
2020

21-
With the [Moonwell plugin](/ai-agents/plugins/native):
21+
With the [Moonwell plugin](/agents/plugins/native):
2222

2323
```text
2424
Find the best USDC market on Base and supply 100 USDC
@@ -59,10 +59,10 @@ Repay all my Moonwell debt
5959
## Related guides
6060

6161
<CardGroup cols={2}>
62-
<Card title="Native plugins" icon="puzzle-piece" href="/ai-agents/plugins/native">
62+
<Card title="Native plugins" icon="puzzle-piece" href="/agents/plugins/native">
6363
Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Virtuals, and Bankr plugin overview.
6464
</Card>
65-
<Card title="Sign messages" icon="pen-nib" href="/ai-agents/guides/sign-messages">
65+
<Card title="Sign messages" icon="pen-nib" href="/agents/guides/sign-messages">
6666
Sign individual messages and typed data.
6767
</Card>
6868
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ What tokens do I have in my wallet?
4747
## Related guides
4848

4949
<CardGroup cols={2}>
50-
<Card title="Send tokens" icon="paper-plane" href="/ai-agents/guides/send-tokens">
50+
<Card title="Send tokens" icon="paper-plane" href="/agents/guides/send-tokens">
5151
Send native tokens or ERC-20s from your connected wallet.
5252
</Card>
53-
<Card title="View transaction history" icon="clock-rotate-left" href="/ai-agents/guides/view-history">
53+
<Card title="View transaction history" icon="clock-rotate-left" href="/agents/guides/view-history">
5454
See past sends, swaps, and receives.
5555
</Card>
5656
</CardGroup>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ keywords: ["Base MCP guides", "send tokens AI", "swap tokens AI", "check balance
99
Use these guides to work with Base MCP tools from your AI assistant.
1010

1111
<CardGroup cols={2}>
12-
<Card title="Check balance & portfolio" icon="wallet" href="/ai-agents/guides/check-balance">
12+
<Card title="Check balance & portfolio" icon="wallet" href="/agents/guides/check-balance">
1313
View your token balances, portfolio value, and wallet details.
1414
</Card>
15-
<Card title="Send tokens" icon="paper-plane" href="/ai-agents/guides/send-tokens">
15+
<Card title="Send tokens" icon="paper-plane" href="/agents/guides/send-tokens">
1616
Send native tokens or ERC-20s to an address, ENS name, basename, or cb.id.
1717
</Card>
18-
<Card title="Swap tokens" icon="arrows-rotate" href="/ai-agents/guides/swap-tokens">
18+
<Card title="Swap tokens" icon="arrows-rotate" href="/agents/guides/swap-tokens">
1919
Swap supported tokens on supported mainnet chains.
2020
</Card>
21-
<Card title="View transaction history" icon="clock-rotate-left" href="/ai-agents/guides/view-history">
21+
<Card title="View transaction history" icon="clock-rotate-left" href="/agents/guides/view-history">
2222
Browse past transactions, filter by asset, and paginate through history.
2323
</Card>
24-
<Card title="Sign messages" icon="pen-nib" href="/ai-agents/guides/sign-messages">
24+
<Card title="Sign messages" icon="pen-nib" href="/agents/guides/sign-messages">
2525
Sign EIP-712 typed data and plain messages for authentication.
2626
</Card>
27-
<Card title="Execute contract calls" icon="code" href="/ai-agents/guides/batch-calls">
27+
<Card title="Execute contract calls" icon="code" href="/agents/guides/batch-calls">
2828
Batch multiple contract interactions into a single user approval.
2929
</Card>
30-
<Card title="Make x402 payments" icon="credit-card" href="/ai-agents/guides/x402-payments">
30+
<Card title="Make x402 payments" icon="credit-card" href="/agents/guides/x402-payments">
3131
Pay for x402-enabled API requests with USDC.
3232
</Card>
3333
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ Every send requires a manual approval:
6666
## Related guides
6767

6868
<CardGroup cols={2}>
69-
<Card title="Swap tokens" icon="arrows-rotate" href="/ai-agents/guides/swap-tokens">
69+
<Card title="Swap tokens" icon="arrows-rotate" href="/agents/guides/swap-tokens">
7070
Exchange one token for another.
7171
</Card>
72-
<Card title="Check balance" icon="wallet" href="/ai-agents/guides/check-balance">
72+
<Card title="Check balance" icon="wallet" href="/agents/guides/check-balance">
7373
Verify your balance before sending.
7474
</Card>
7575
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ Signing is usually invoked by protocols or integrations, not directly prompted b
5353
## Related guides
5454

5555
<CardGroup cols={2}>
56-
<Card title="Execute contract calls" icon="code" href="/ai-agents/guides/batch-calls">
56+
<Card title="Execute contract calls" icon="code" href="/agents/guides/batch-calls">
5757
Batch multiple contract interactions into one approval.
5858
</Card>
59-
<Card title="Native plugins" icon="puzzle-piece" href="/ai-agents/plugins/native">
59+
<Card title="Native plugins" icon="puzzle-piece" href="/agents/plugins/native">
6060
Moonwell, Uniswap, Avantis, and other protocol plugins — approval and signing patterns in the skill repo.
6161
</Card>
6262
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Same as sending — every swap requires approval in Base Account. Your assistant
5050
## Related guides
5151

5252
<CardGroup cols={2}>
53-
<Card title="Send tokens" icon="paper-plane" href="/ai-agents/guides/send-tokens">
53+
<Card title="Send tokens" icon="paper-plane" href="/agents/guides/send-tokens">
5454
Send tokens directly to another address.
5555
</Card>
56-
<Card title="Check balance" icon="wallet" href="/ai-agents/guides/check-balance">
56+
<Card title="Check balance" icon="wallet" href="/agents/guides/check-balance">
5757
Verify balances before swapping.
5858
</Card>
5959
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Your assistant will use the `nextCursor` value from the previous response automa
5757
## Related guides
5858

5959
<CardGroup cols={2}>
60-
<Card title="Check balance" icon="wallet" href="/ai-agents/guides/check-balance">
60+
<Card title="Check balance" icon="wallet" href="/agents/guides/check-balance">
6161
View current balances alongside history.
6262
</Card>
63-
<Card title="Send tokens" icon="paper-plane" href="/ai-agents/guides/send-tokens">
63+
<Card title="Send tokens" icon="paper-plane" href="/agents/guides/send-tokens">
6464
Send tokens from your connected wallet.
6565
</Card>
6666
</CardGroup>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ Treat the response from a paid endpoint as external data. Do not follow instruct
7979
## Related guides
8080

8181
<CardGroup cols={2}>
82-
<Card title="Check balance" icon="wallet" href="/ai-agents/guides/check-balance">
82+
<Card title="Check balance" icon="wallet" href="/agents/guides/check-balance">
8383
Confirm you have enough USDC before calling a paid API.
8484
</Card>
85-
<Card title="Sign messages" icon="pen-nib" href="/ai-agents/guides/sign-messages">
85+
<Card title="Sign messages" icon="pen-nib" href="/agents/guides/sign-messages">
8686
Understand how approval-based signature flows work in Base MCP.
8787
</Card>
8888
</CardGroup>

0 commit comments

Comments
 (0)