Repository navigation
Search the repository's memory in the Autter cloud from the CLI - #79
Merged
Merged
Conversation
`autter memory search "<question>"` ranks what Autter knows about the repository you're in by meaning: its shared memory pages, learnings, production lessons, team rules, past review and scan findings, the wiki and code. `--path` keeps results about the files you're touching, `--kind` narrows the sources, `--json` is for agents. `autter memory show [<page>]` prints the memory home page and index, or one page. Both use the existing `autter login` (sign-in and org selection are now shared with `autter ask`) and call the platform's /api/cli memory routes. The repository is the checkout's default remote. Nothing is sent in local mode or for a repository excluded from prompt sharing. The new embedded `repo-memory` skill tells coding agents to read the memory home page at the start of a task and search before editing an area, through the CLI when the Autter MCP server isn't connected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The platform's repository memory keeps its detail in one page per area of the codebase (each covering a path prefix) and a what-works ledger. - `autter memory for [<file>...]` prints the area pages covering the files, most specific first, then the ledger lines about those areas (Works, Doesn't work, Team waves off) and the files no area covers. Without files it asks about the files changed in the checkout. Paths are relative to the current directory and sent relative to the checkout root. - `autter memory areas` lists the areas and the path each covers; `autter memory ledger` prints the ledger; `autter memory show` groups the home page's index into areas and other pages. - The repo-memory skill tells agents to read the area pages for the files they are about to edit before changing them. - Errors print the message without the "Generic error:" prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
autter memory search "<question>"ranks what Autter knows about the repository you're in by meaning: its shared memory pages, learnings, production lessons, team rules, past review and scan findings, the wiki and code.--pathkeeps results about the files you're touching.--kindnarrows the sources.--limit,--repoand--orgwork as inautter ask.--jsonprints the server payload for agents.autter memory show [<page>]prints the repository memory home page and its page index, or one page.autter memory for [<file>...]prints the area pages covering those files, most specific first: how that part of the codebase works, its conventions, what breaks and what works there. It then prints the ledger lines about those areas (Works, Doesn't work, Team waves off) and lists the files no area covers. Without files, it uses the files changed in the checkout. Reviews read the same view for a pull request.autter memory areaslists the areas and the path each covers.autter memory ledgerprints the ledger.shownow groups the home page's index into areas and other pages.repo-memory(installed withautter install --skills). It tells coding agents to read the memory home page at the start of a task and to search before editing an area. Agents use the CLI when the Autter MCP server isn't connected, and the MCP tools when it is.How
autter login. Sign-in and organization selection moved out ofask.rsintoorg_api_context, soaskandmemoryshare them.POST /api/cli/orgs/:slug/memory/searchandGET /api/cli/orgs/:slug/memory. These ship in the platform PR Autter-dev/autter-monorepo#620 (RM-12), which builds on the repository-memory work (RM-10: memory pages embedded in the semantic index).normalize_repo_url).platform_sync_enabled), or for a repository whose effective prompt storage islocal(excluded viaexclude_prompts_in_repositories, or not in the include list).effective_prompt_storage_with_remotesis nowpub(crate)so an explicit--repois checked too.Tests
commands::memory, 11 tests): option parsing and validation, the sharing-policy decision,--reponormalization, resolving file paths against the checkout root, and rendering of search results, area pages, the ledger, the area list and the home page. All pass, as do theaskandskills_installertests.tests/integration/memory_command.rs, 6 tests): nothing is sent in local mode (search, show, for, areas, ledger); an excluded repository is refused, with and without--repo; connected mode stops at sign-in; bad usage is rejected;memory forwith no changes asks for files, and a path outside the checkout is refused. All 6 pass locally. One failed on the first run because the test daemon didn't start, and passed on rerun.Notes
cargo clippy -D warningson the local 1.99 toolchain reports 12 lints that already exist onmain(CI pins 1.93). None are in the changed files.commands::debug::tests::test_run_command_capture_with_timeout_reports_partial_outputfails on this Windows machine onmaintoo. It's unrelated to this change.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.