Public Beta
Not set

Experience

Changes how pages explain things, never what you can do.

More

Experience

Changes how pages explain things, never what you can do.

Sign inGet started

Document Assistant v0.3.0 · claude-code

Archive SHA-256 9685b713d3cec06e94000327c7fded28202a5a41d8f1317df0785171795cd005 · 40.9 KB · built Dec 2, 2026

agent.json

{
  "id": "agentrove.document-assistant",
  "name": "Document Assistant",
  "version": "0.3.0",
  "license": "MIT",
  "summary": "Outlines, summarises (extractive, TF-IDF sentence scoring), searches and compares markdown or plain-text documents you supply, and builds cited reports from other agents' output. Offline, deterministic, no AI model or network.",
  "description": "Paste or pipe markdown / plain text. Get a heading outline, an extractive summary made of the document's own sentences in original order, keyword search with line numbers and context snippets, and a line-based diff summary between two versions.",
  "tools": [
    {
      "name": "outline",
      "description": "List the document's headings (markdown ATX/setext, or numbered / ALL-CAPS lines in plain text) with levels and line numbers, plus title and word count.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "required": [
          "text"
        ],
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 5000000,
            "description": "Markdown or plain text."
          },
          "format": {
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "text"
            ]
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "title",
          "outline",
          "headings",
          "word_count"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "format": {
            "type": "string",
            "enum": [
              "markdown",
              "text"
            ]
          },
          "outline": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "headings": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "level",
                "text",
                "line"
              ],
              "properties": {
                "level": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 6
                },
                "text": {
                  "type": "string"
                },
                "line": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "word_count": {
            "type": "integer",
            "minimum": 0
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "summarize",
      "description": "Extractive summary: scores every prose sentence with TF-IDF-like term weights, picks sentences greedily with a redundancy penalty so several sections are covered, and returns them verbatim, in document order, with line numbers. Returns a document_summary.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "required": [
          "text"
        ],
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 5000000
          },
          "max_sentences": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Default 5."
          },
          "format": {
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "text"
            ]
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "title",
          "outline",
          "key_sentences",
          "word_count"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "outline": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key_sentences": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "word_count": {
            "type": "integer",
            "minimum": 0
          },
          "sentence_count": {
            "type": "integer",
            "minimum": 0
          },
          "sentences": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "text",
                "line",
                "score"
              ],
              "properties": {
                "text": {
                  "type": "string"
                },
                "line": {
                  "type": "integer"
                },
                "score": {
                  "type": "number"
                }
              }
            }
          },
          "method": {
            "type": "string"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "find",
      "description": "Keyword search. Space-separated terms or \"quoted phrases\"; whole-word and case-insensitive by default. Returns line, column, context snippet and enclosing section for each match.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "required": [
          "text",
          "query"
        ],
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 5000000
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "mode": {
            "type": "string",
            "enum": [
              "any",
              "all"
            ],
            "description": "any: every occurrence of any term. all: only lines containing every term."
          },
          "case_sensitive": {
            "type": "boolean"
          },
          "whole_word": {
            "type": "boolean",
            "description": "Default true."
          },
          "context_chars": {
            "type": "integer",
            "minimum": 0,
            "maximum": 400,
            "description": "Characters of context on each side. Default 60."
          },
          "max_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Default 50."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "query",
          "terms",
          "total_matches",
          "matches"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "type": "string"
          },
          "total_matches": {
            "type": "integer",
            "minimum": 0
          },
          "lines_matched": {
            "type": "integer",
            "minimum": 0
          },
          "per_term": {
            "type": "object"
          },
          "truncated": {
            "type": "boolean"
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "line",
                "column",
                "term",
                "match",
                "snippet"
              ],
              "properties": {
                "line": {
                  "type": "integer",
                  "minimum": 1
                },
                "column": {
                  "type": "integer",
                  "minimum": 1
                },
                "term": {
                  "type": "string"
                },
                "match": {
                  "type": "string"
                },
                "snippet": {
                  "type": "string"
                },
                "section": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "name": "compare",
      "description": "Line-based diff between two versions (Myers algorithm): counts of added/removed/unchanged lines, similarity, changed regions with line numbers and context, word-level changes inside edited lines, headings added or removed, word-count change.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "required": [
          "before",
          "after"
        ],
        "additionalProperties": false,
        "properties": {
          "before": {
            "type": "string",
            "maxLength": 2000000
          },
          "after": {
            "type": "string",
            "maxLength": 2000000
          },
          "ignore_whitespace": {
            "type": "boolean"
          },
          "context_lines": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10,
            "description": "Default 1."
          },
          "max_hunks": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Default 200."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "identical",
          "summary",
          "summary_text",
          "hunks"
        ],
        "properties": {
          "identical": {
            "type": "boolean"
          },
          "summary": {
            "type": "object",
            "required": [
              "lines_before",
              "lines_after",
              "added",
              "removed",
              "unchanged",
              "hunks",
              "similarity"
            ],
            "properties": {
              "lines_before": {
                "type": "integer"
              },
              "lines_after": {
                "type": "integer"
              },
              "added": {
                "type": "integer"
              },
              "removed": {
                "type": "integer"
              },
              "unchanged": {
                "type": "integer"
              },
              "hunks": {
                "type": "integer"
              },
              "similarity": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "word_count_before": {
                "type": "integer"
              },
              "word_count_after": {
                "type": "integer"
              },
              "word_count_delta": {
                "type": "integer"
              }
            }
          },
          "summary_text": {
            "type": "string"
          },
          "headings_added": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "headings_removed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approximate": {
            "type": "boolean"
          },
          "truncated": {
            "type": "boolean"
          },
          "hunks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "before_start",
                "before_count",
                "after_start",
                "after_count",
                "removed",
                "added"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "added",
                    "removed",
                    "changed"
                  ]
                },
                "before_start": {
                  "type": "integer",
                  "minimum": 0
                },
                "before_count": {
                  "type": "integer",
                  "minimum": 0
                },
                "after_start": {
                  "type": "integer",
                  "minimum": 0
                },
                "after_count": {
                  "type": "integer",
                  "minimum": 0
                },
                "removed": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "added": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "context_before": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "context_after": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "word_changes": {
                  "type": "array",
                  "description": "Edited lines only: words that changed between a removed line and the added line at the same position.",
                  "items": {
                    "type": "object",
                    "required": [
                      "before_line",
                      "after_line",
                      "changes"
                    ],
                    "properties": {
                      "before_line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "after_line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "changes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "removed",
                            "added"
                          ],
                          "properties": {
                            "removed": {
                              "type": "string"
                            },
                            "added": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    {
      "name": "build_report",
      "description": "Build a cited Markdown report from a brief (key points, each with its source URLs), an optional comparison table in Markdown (for example a competitor matrix), an optional document_summary and the source_list. Findings are the brief's claims, word for word, each with numbered citations to its own sources; claims with no source go to 'Statements that need a source'. Nothing is invented, rephrased or looked up. Provide at least one of brief, markdown or summary.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "description": "Report title. Default: built from the question or the brief's topic."
          },
          "question": {
            "type": "string",
            "maxLength": 500,
            "description": "The business question the report answers (shown at the top)."
          },
          "brief": {
            "type": "object",
            "properties": {
              "topic": {
                "type": "string",
                "maxLength": 500
              },
              "generated_at": {
                "type": "string",
                "maxLength": 40
              },
              "key_points": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "type": "object",
                  "required": [
                    "claim"
                  ],
                  "properties": {
                    "claim": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "sources": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "type": "string",
                        "maxLength": 2048
                      }
                    }
                  }
                }
              },
              "open_questions": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "string",
                  "maxLength": 1000
                }
              }
            },
            "description": "A brief: key points (claims) with the source URLs that support them."
          },
          "markdown": {
            "type": "string",
            "maxLength": 200000,
            "description": "A comparison table or other Markdown section to include as provided (untrusted text, shown verbatim)."
          },
          "summary": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "outline": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "type": "string",
                  "maxLength": 1000
                }
              },
              "key_sentences": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "string",
                  "maxLength": 2000
                }
              },
              "word_count": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "document_summary: extractive key sentences."
          },
          "sources": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "maxLength": 2048
                },
                "title": {
                  "type": "string",
                  "maxLength": 2000
                },
                "source_name": {
                  "type": "string",
                  "maxLength": 300
                },
                "published_at": {
                  "type": "string",
                  "maxLength": 40
                },
                "excerpt": {
                  "type": "string",
                  "maxLength": 50000
                },
                "text": {
                  "type": "string",
                  "maxLength": 500000
                }
              }
            },
            "description": "source_list: used to title the citations."
          },
          "max_findings": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 12
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "report",
          "findings",
          "sources",
          "unsourced",
          "sections",
          "generated_at",
          "notes"
        ],
        "properties": {
          "report": {
            "type": "string",
            "description": "The full report in Markdown."
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "n",
                "text",
                "citations"
              ],
              "properties": {
                "n": {
                  "type": "integer"
                },
                "text": {
                  "type": "string"
                },
                "citations": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "n",
                "url",
                "title",
                "provided"
              ],
              "properties": {
                "n": {
                  "type": "integer"
                },
                "url": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "provided": {
                  "type": "boolean",
                  "description": "true when the URL is in the source_list you provided"
                }
              }
            }
          },
          "unsourced": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "generated_at": {
            "type": "string"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  ],
  "permissions": {
    "filesystem": "none",
    "network": [],
    "credentials": []
  },
  "io": {
    "inputs": [
      {
        "name": "text",
        "type": "text"
      },
      {
        "name": "brief",
        "type": "research_brief"
      },
      {
        "name": "markdown",
        "type": "markdown_document"
      },
      {
        "name": "summary",
        "type": "document_summary"
      },
      {
        "name": "sources",
        "type": "source_list"
      }
    ],
    "outputs": [
      {
        "name": "summary",
        "type": "document_summary"
      },
      {
        "name": "report",
        "type": "markdown_document"
      }
    ]
  },
  "runtimes": [
    {
      "id": "node",
      "version": ">=20",
      "tested": true
    },
    {
      "id": "claude-code",
      "tested": false,
      "notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
    }
  ],
  "external_costs": "None. Runs entirely offline on text you supply; no network access, no API keys, no AI model calls."
}

Find an agent

Do not include passwords, keys, customer data or other confidential details.
Rule-based matching is free during the public beta (fair use).