Logo van Infimium

Infimium

Organisatie
infimium-ai

Infimium Builds Cross-IDE Persistent, project-aware coding session memory that works across Claude Code, Cursor, and Windsurf simultaneously.

Uitgeverinfimium-ai
Repositoryinfimium-agent
TaalTypeScript
Forks
3
Sterren
22
Beschikbare tools
11
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Infimium biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 11 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    22 sterren en 3 forks in de gekoppelde repository.

Infimium

The Private Context Layer & Super Brain for Your Codebase. Give AI agents persistent memory, deep dependency graphs, and instant code context -- 100% local, zero token bloat.

npm version MCP Badge MIT GitHub stars

Demo

Infimium demo

Why

Large repositories make agents read too much code or miss the right symbol. Infimium retrieves compact, relevant context before the agent starts editing.

text
200,000 lines of code
Agent reads everything -> context blown + expensive
grep "price calculation" -> misses calcPropertyValue()
text
tool: semantic_code_search
query: "price calculation logic"

-> services/property/calc.ts:142 · calcPropertyValue()
-> callers: getListingPrice(), estimatePropertyTax()

Quick Start

Requires Node.js 22.5+. From your project folder:

bash
cd /path/to/your/project
npx infimium@latest setup

Run setup from the repository you want to index, not from your home directory (~). Infimium stops broad roots automatically so it cannot scan unrelated files.

That creates global config, starts Ollama if it is installed, pulls nomic-embed-text, indexes the current project or workspace, runs doctor, and opens Playground.

The published CLI keeps its executable entrypoint, so MCP clients can launch it directly through the configuration below.

If Ollama is not installed yet:

bash
npx infimium@latest setup --install-deps

infimium setup creates one global config at ~/.infimium/.env. You do not need a .env in every project. Code, docs, memory, graphs, and vectors are stored locally under ~/.infimium/.

Web search is optional. Add a Tinyfish key only when you need it:

env
SEARCH_PROVIDER=tinyfish
SEARCH_API_KEY=your_key

Full infimium plan generation also needs a local text model:

bash
ollama pull llama3.1

infimium plan --dry-run "your task" works without this model and shows the retrieved code context first.

Connect Your Agent

Cursor, Windsurf, Claude Desktop, and other MCP clients:

json
{
  "mcpServers": {
    "infimium": {
      "command": "npx",
      "args": ["-y", "infimium", "serve"]
    }
  }
}

Restart the client, then use:

text
Use Infimium hello_infimium.
Use Infimium get_context before starting.
Use Infimium semantic_code_search to explain this repository.

Infimium normally uses the MCP process working directory. If your client starts it elsewhere, pass project_path once; Infimium remembers the active project and auto-indexes it.

Tools

ToolWhat it does
hello_infimiumConfirms the MCP server is healthy.
get_contextReads saved YAML repo context, current memory and handoff; explicit refresh updates Git/index state.
infimium_updateRefreshes episodic memory and handoff graphs; controls automatic memory checkpoints.
semantic_code_searchFinds code by meaning and returns symbol signatures first.
expand_symbolLoads one full implementation only when needed.
query_local_docsSearches local Markdown, text, HTML, and PDF files.
dep_graphShows imports, callers, callees, and HTTP routes for a symbol.
project_memoryKeeps active scratchpad events, compact milestones, and durable project rules across agents.
planBuilds a grounded implementation plan from code and graph context.
web_searchSearches the web through optional Tinyfish configuration.
fetch_urlExtracts readable Markdown or text from a URL.
shellRuns allowlisted commands with timeouts and output limits.

CLI

CommandDescription
infimium doctorRun health checks on your dependencies and setup.
infimium statusShow the current status of the index and memory.
infimium --helpShows all relevant cli commands.
infimium playgroundLaunch the local web UI to explore index, graph, and memory.
infimium indexScan and index the current project directory (code, docs, dependencies).
infimium watchRun the indexer in watch mode to continuously index changes.
infimium get-contextOutput the full flattened context as YAML (layer.md).
infimium code-search <query>Semantically search code and return symbol signatures.
infimium expand-symbol <symbol>Fetch the full implementation code for a specific symbol.
infimium docs-search <query>Semantically search local markdown/text documentation.
infimium dep-graph <symbol>Show dependencies, callers, callees, and route graph.
infimium plan --dry-run "<task>"Draft an implementation plan based on a given prompt.
infimium remember "<note>"Add a milestone, progress, or decision to project memory.
infimium resumeShow the active task and recent scratchpad memory events.
infimium memory completeCompact the active scratchpad into an archived milestone.
infimium memory search "<query>"Semantically search past project rules and memory ledger.

Use npx infimium ... if you did not install the package globally.

Project Memory

Refresh memory yourself, or enable periodic checkpoints for the current project:

bash
infimium update --note "Implemented login validation" --task "Finish login" --handoff "Run the auth tests next"
infimium update start --interval 300
infimium update status
infimium update stop

Replace the example notes with your own. Add --project /path/to/repo to select a project and --file src/auth.ts to attach a relevant file. infimium_update and infimium-update are CLI aliases. MCP agents use the infimium_update tool with action: refresh|start|stop|status, project_path, and optional note, task, handoff, files, or interval_seconds.

Auto-update is opt-in and runs while the foreground CLI watcher or an MCP server is open. Its per-project setting survives restarts; stop disables future checkpoints (an in-flight refresh may finish). Checkpoints link episodes, tasks, file references, and handoff notes in local SQLite. Unchanged observations are deduplicated. Automatic checkpoints record observable state, not guessed intent, and never mark a task complete.

get-context / get_context now reads saved context and current memory without rescanning the repo. It includes a bounded memory graph and guidance to answer repo-overview questions only when asked, using Infimium memory first. Missing context is reported explicitly. Run infimium update or get-context --refresh to refresh filesystem context. These are agent guidelines, not an enforcement mechanism for other clients.

Infimium keeps memory bounded across long sessions:

  • Scratchpad: recent events for the active task.
  • Archive: compact summaries of completed tasks.
  • Ledger: durable decisions, rules, quirks, and unresolved blockers.

Record meaningful progress while working:

bash
infimium remember "Added rate-limit middleware" --type progress --task "Rate limiting"
infimium remember "Use Redis-backed counters in production" --type decision

When the task is complete:

bash
infimium memory complete

Infimium uses the local llama3.1 model when available and falls back to deterministic compaction when it is not. Raw compacted events remain stored locally for seven days before pruning. get_context never calls an LLM or network service.

From a source checkout, build once and run the local playground with:

bash
npm run build
npm run playground

Local Architecture

  • Ollama creates embeddings on your machine.
  • Embedded SQLite stores vectors, index metadata, project memory, and graph edges. No ChromaDB or Docker service is required.
  • Documents use recursive boundary-aware chunks instead of blind fixed slices.
  • JavaScript, TypeScript, Python, and Dart parsers are bundled.
  • Go, Rust, and Java Tree-sitter WASM grammars download on first use and cache in ~/.infimium/grammars/.
  • .gitignore, .infimiumignore, and framework defaults exclude dependencies, build output, Flutter artifacts, caches, and binaries before indexing.
  • semantic_code_search returns signatures; expand_symbol provides full code on demand.
  • Project memory uses session-scoped scratchpads, compact milestone archives, and a versioned semantic ledger.
  • get_context emits static anchors, dynamic repository state, and active execution as separate YAML zones.

Multiple Projects

Run the normal index command from a folder containing related projects:

bash
infimium index

Infimium detects immediate project roots from files such as pubspec.yaml, package.json, Cargo.toml, and go.mod. It shows the detected roles and dependencies, asks once, then creates infimium.workspace.json, indexes every project, and opens Playground.

For unattended setup:

bash
infimium index --yes --no-playground

Use --no-workspace to index only the current project. Workspace projects keep separate memory and Git state while get_context includes balanced summaries and graph relationships from related projects.

Infimium - Playground

Infimium drops the initial payload cost from approximately 1,460 tokens to 8 tokens per symbol. Semantic search returns the AST signature first; the agent requests the full implementation only when it needs it with expand_symbol.

text
Full implementation   ~1,460 tokens
AST skeleton               ~8 tokens
Initial payload reduction  ~99.5%

These are Playground reference values, not a claim that every function has the same size. Inspect your own indexed repository and compare AST-first retrieval with full-text retrieval locally:

bash
infimium playground

Open Token Economics to see the estimated token difference across your actual indexed symbols.

Privacy

Code, docs, embeddings, memory, graph data, prompts, queries, file paths, and repo names remain local.

Infimium sends privacy-safe anonymous lifecycle telemetry so we can understand setup success:

  • init_started, init_completed
  • doctor_run, doctor_passed
  • index_started, index_completed, setup_completed
  • serve_started, first_tool_call, playground_opened

Telemetry includes an anonymous install ID, Infimium version, OS, Node major version, timestamp, and event name. It never includes code, file paths, repo names, prompts, search queries, memory notes, API keys, or user identity.

Disable it anytime:

bash
infimium telemetry off

or set:

env
INFIMIUM_TELEMETRY=false

Troubleshooting

FAQ & Common Confusions

Where is layer.md? When you run infimium get-context, it prints saved context directly to your terminal (stdout). Refreshes store project-scoped YAML under Infimium's local data directory. To export the saved context to a file, use terminal redirection:

bash
infimium get-context > layer.md

Why does the Playground UI say "Awaiting first agent interaction..."? The CURRENT TASK tracker reflects stored project context. Run infimium update --task "Your task" to refresh it; get-context reads the saved snapshot.

How do I format infimium remember? The infimium remember command requires a message and a --type flag (valid types: note, progress, decision, blocker, index, plan). If you also want it to update the active task in the Playground, include the --task flag:

bash
infimium remember "Added rate limiting" --type progress --task "Security Features"

Database is locked

If you see Failed to start Infimium: Database is locked, it means another instance of Infimium is actively holding a lock on the SQLite memory database. This usually happens if you try to run infimium index manually in one terminal while infimium playground or infimium watch is still running in another. Simply stop the running process (Ctrl+C) before running manual commands.

General Setup Issues

Run:

bash
infimium doctor

Every failed check prints one copy-paste fix. If setup still fails, give this prompt to your coding agent:

text
Set up Infimium in this repository. Install/start Ollama, pull nomic-embed-text,
run npx infimium init, run npx infimium index, and make all six
npx infimium doctor checks pass. Do not commit secrets.

Contributing

See CONTRIBUTING.md. Adding a language starts with a parser fixture and extraction test.

Self-hosting is free forever under the MIT license.

Installatie

TypingMind
{
  "mcpServers": {
    "infimium-agent": {
      "command": "npx",
      "args": [
        "-y",
        "infimium",
        "serve"
      ]
    }
  }
}

Beschikbare tools

  • hello_infimium

    Health probe for the Infimium MCP server.

  • web_search

    Search the web for current information.

  • fetch_url

    Fetch a URL and extract readable content.

  • query_local_docs

    Query indexed local documentation.

  • semantic_code_search

    Search code semantically and return compact symbol signatures.

  • expand_symbol

    Load the full implementation of one symbol returned by semantic_code_search.

  • dep_graph

    Inspect dependency relationships for a symbol.

  • shell

    Run an allowlisted shell command.

  • plan

    Generate a grounded implementation plan for the current repository.

  • project_memory

    Manage compact project memory across chats, agents, and IDEs: remember active work, complete and archive sessions, search history, or update durable rules.

  • get_context

    Read the balanced YAML context layer with repo overview, Git state, task, memory, and AST-first handoff guidance. Pass project_path once to activate the current IDE workspace as the default.

Gebruik Infimium MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Infimium is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Infimium toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Infimium.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "infimium-agent": {
      "command": "npx",
      "args": [
        "-y",
        "infimium"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Infimium in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Infimium in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Infimium gebruiken om me hiermee te helpen?
Infimium
Zeker. Ik heb het gelezen.
Dit vond ik met Infimium.

Veelgestelde vragen

Waarvoor wordt de MCP-server Infimium gebruikt?

Infimium is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Infimium MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Infimium gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Infimium MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Infimium verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Infimium MCP met TypingMind?

Infimium werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Infimium MCP in TypingMind?

Infimium biedt 11 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Infimium MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Infimium authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇