How It Works

Anamnesis scans your workspace folder using language-specific extractors powered by tree-sitter and custom parsers. Each extractor produces nodes (files, classes, functions, config blocks) and edges (contains, imports, calls).

The unified graph is uploaded to Anamnesis Cloud and can be queried from the VS Code extension or via MCP tools when AI integration is enabled.

Quick Start Workflow

  1. Install the extension and configure credentials.
  2. Click Install MCP and Skill in Settings (detects VS Code or Cursor).
  3. Right-click a folder - Create Knowledge Graph.
  4. Browse the project in the Projects tree.
  5. Add Project Prompts with Prompt Parameters, or skip AI verification.
  6. Store tagged secrets in Credentials for AI.
  7. Switch between Table and Graph views, then click nodes to jump to source.

Project Prompts and Prompt Parameters

The Project Prompts view lists prompts stored for each knowledge-graph project. Use Prompt Parameters for placeholders in a generic prompt (for example brand, locale, or task constraints). When Skip verification via AI Model is checked, the original is stored as-is (ready) and the server does not generate an AI-improved prompt. View shows Original, AI Generated, and Parameters as markdown, each with Copy.

Credentials for AI

Named key/value sets stay encrypted on Anamnesis Cloud. Decryption happens only inside the extension. Tag a set to multiple projects so the same credentials apply across graphs. Prefer a set whose project tags include the current graph when more than one match exists. Agents must not dump secret values unless the user asked for that named set.

Extractor Reference

Extractors run automatically when you create a knowledge graph.

Technology File Patterns Graph Entities
TypeScript / JavaScript .ts, .tsx, .js, .jsx, .mjs, .cjs classes, interfaces, functions, methods, imports, calls
Java .java classes, interfaces, methods, imports, invocations
Maven pom.xml, *.pom projects, modules, dependencies, plugins, properties, profiles
HTL / Sightly (AEM) .html with data-sly-* components, Sling Models, includes, templates
AEM Content XML .content.xml components, dialogs, tabs, fields, clientlibs
Apache Web Server .conf, .any vhosts, domains, SSL, proxies, backends
NGINX Server .conf, .upstream.conf server blocks, upstreams, backends, locations
Markdown Architecture .md projects, modules, API routes, Mermaid flows
Bash .sh, .bash functions, commands, env vars, deploy targets
Jenkins Pipeline Jenkinsfile, *.jenkinsfile pipelines, stages, steps, environment

MCP Tools Reference

When AI Tools are enabled, agents can call these MCP tools against your knowledge graphs and stored credentials.

list_projects

List all knowledge-graph projects with node/edge counts

graph_stats

Overview of a project graph: nodes, edges, communities

search_symbols

Find nodes by name, id, or source file

get_node

Get a symbol with its callers, callees, and imports

get_neighbors

Direct neighbors of a symbol (in, out, or both)

shortest_path

Dependency path between two symbols

impact_of_change

Everything that depends on a symbol (blast radius)

god_nodes

Most connected nodes - architectural hubs

query_graph

Keyword-driven scoped subgraph for any question

list_credential_sets

Names and metadata of stored credential sets (no secret values)

get_credentials

Decrypt a named credential set locally and return key/value pairs

Use Cases

Architecture Exploration

Use query_graph to ask "where is authentication handled?" and get a scoped subgraph instead of grepping hundreds of files.

Dependency Analysis

Trace shortest_path between two symbols to understand how modules, classes, or config blocks connect.

Impact Assessment

Run impact_of_change before editing a function to see everything that depends on it - callers, imports, and downstream effects.

Architectural Hotspots

Use god_nodes to find the most connected nodes - hubs that affect many parts of the system and deserve careful review.

Prompt Libraries

Keep reusable prompts with Prompt Parameters per project, then View or copy original, AI-generated, and parameter text without leaving the IDE.

Agent Credentials

Ask an agent to use a named credential set (for example Production database). It lists sets with list_credential_sets and decrypts locally with get_credentials.