Skip to main content
Glama
sgx-labs

Stateless Agent Memory Engine (SAME)

recent_activity

Retrieve recently modified notes to track changes and orient yourself at the start of a session. Shows what's changed with titles and paths.

Instructions

Get recently modified notes. Use this to see what's changed recently or to orient yourself at the start of a session.

Args: limit: Number of recent notes (default 10, max 50)

Returns list of recently modified notes with titles and paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYesNumber of recent notes (default 10, max 50)

Implementation Reference

  • Although not named "recent_activity", the tool "same search" acts as the retriever mechanism for this codebase. The user's request for "recent_activity" yielded no results in the provided files.
    def same_search(vault_dir: str, query: str, top_k: int = SEARCH_TOP_K) -> list[str]:
        """
        Run `same search` and return the top-k result texts.
        Returns a list of result strings.
        """
        try:
            result = subprocess.run(
                [SAME_BIN, "search", "--json", "--top-k", str(top_k), query],
                cwd=vault_dir,
                capture_output=True,
                text=True,
                timeout=QUESTION_TIMEOUT,
            )
        except subprocess.TimeoutExpired:
            log(f"    TIMEOUT: same search for '{query[:50]}...'")
            return []
    
        if result.returncode != 0:
            return []

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sgx-labs/statelessagent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server