AGENTS.md Generator

v0.6.1
io.github.nushey/agents-md-generator Checked 3 days ago Published 2 months ago

Analyzes codebases with tree-sitter and generates AGENTS.md files for AI coding agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_codebase

Scan and analyze a codebase with tree-sitter, producing a structured context payload. Performs AST analysis, change detection, and caching. Writes the analysis payload to disk and returns instructions to retrieve it via read_payload_chunk. The payload contains pure architectural data — no AGENTS.md writing instructions. Use this tool when you need deep codebase understanding for any task (code review, refactoring, planning, Q&A). To generate or update AGENTS.md specifically, use generate_agents_md instead — it orchestrates the full workflow automatically. Sup…

ParameterTypeDescription
params *

read_payload_chunk

Read a chunk of the analysis payload produced by scan_codebase. Call this tool repeatedly starting at chunk_index=0, incrementing by 1 each time, until the response contains has_more=false. Concatenate all 'data' fields in order to reconstruct the full payload JSON. The payload file is automatically deleted after the last chunk is read. Args: params (ReadPayloadChunkInput): Input parameters containing: - project_path (str): Path to the project root (must match scan_codebase call). - chunk_index (int): Zero-based index of the chunk to retri…

ParameterTypeDescription
params *

generate_agents_md

Orchestrate the full AGENTS.md creation or update workflow. Determines whether to create or update AGENTS.md by checking if the file already exists. Returns writing rules, the existing content (if any), and step-by-step instructions to scan the codebase and produce the final file. Use this tool whenever the user asks to generate, create, update, or refresh AGENTS.md. For general codebase context without AGENTS.md generation, use scan_codebase + read_payload_chunk directly. Args: params (GenerateAgentsMdInput): Input parameters containing: - pr…

ParameterTypeDescription
params *