feat: improve AI discoverability — tool descriptions, AGENTS.md, For AI Agents section#33
Merged
dbhurley merged 1 commit intoplasmate-labs:masterfrom Apr 2, 2026
Conversation
Tool descriptions (src/mcp/tools.rs): - fetch_page: '10x token savings' → '17x fewer tokens (up to 117x on complex pages)'. Added guidance: 'Prefer this over raw HTTP fetches for any web content in agent pipelines. Add selector=main to strip nav/footer and reduce tokens further.' - extract_text: added when-to-use guidance vs fetch_page - open_page: added when-to-use guidance for multi-step interaction These descriptions are what Claude/GPT-4/Cursor read when deciding which tool to call. Action-oriented instructions beat feature lists. AGENTS.md: - Codebase map for AI coding agents (Cursor, Devin, Claude Code) - Build/test instructions - How to add a new MCP tool (step-by-step) - Tool description writing guidelines - SOM selector reference table - Common patterns and anti-patterns (V8 callback threading, error handling, selector contract)
|
@dbhurley is attempting to deploy a commit to the dbh ventures Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes that make Plasmate easier for AI systems to discover and use correctly.
1. MCP tool descriptions (
src/mcp/tools.rs)These descriptions are what Claude/GPT-4/Cursor read when deciding which tool to call.
fetch_pageselector=mainto strip nav/footer."extract_textfetch_pageopen_pagefetch_page2.
AGENTS.mdA codebase guide for AI coding agents (Cursor, Devin, Claude Code, Copilot). Covers build/test, directory map, how to add a new MCP tool, tool description guidelines, selector reference, and common anti-patterns.
3.
## For AI Agentssection in READMEAdded between Quick Start and What is SOM — covers:
@plasmate/aillms.txt,AGENTS.md, and MCP Registry listingThis section is what AI agents read when browsing the repo and what developers see first when evaluating Plasmate for agent pipelines.