Metis Public Health
🩺 공중보건 및 역학 에디션입니다
Metis_PH에는 사전 탑재된 공중보건 지식 레이어가 포함되어 있습니다 — WHO 지침, 글로벌 보건 보고서, 역학/방법론 참고자료 — 따라서 말뭉치를 먼저 구축하지 않아도 첫날부터 근거가 있고 인용이 가능한 질문을 할 수 있습니다. 도메인에 구애받지 않는 기본 셸 (
SVerITG/Metis)은 그 외 모든 면에서 동일합니다. 빈 상태로 제공되며 설정 설문을 통해 귀하의 분야 지식 레이어를 구축합니다.
실제 작동 모습
Related MCP server: rag-paper
연구자들이 신뢰하는 이유
📚 귀하의 출처를 인용합니다. 지식 답변은 귀하의 인덱싱된 라이브러리에 기반하며, 문서 및 페이지 수준의 인용이 포함됩니다 — 모델의 추측이 아닙니다. 라이브러리가 답변의 토대가 되지, 가둬 두지 않습니다. Metis는 여전히 최신 문헌, 지침, 더 넓은 지식을 필요할 때 가져오며, 어느 것이 어느 것인지 알려줍니다 — 따라서 아직 보유하지 않은 인용 가치가 있는 자료는 추가할 논문이 됩니다.
🔗 아는 모든 것을 연결합니다. 모든 논문, 회의 대화록, 아이디어, 메모, 저널 항목, 작업이 나머지 작업과 연결됩니다. 오늘 작성하는 보조금 신청서가 작년의 방법론 논문과 3월의 회의 메모를 떠올리게 합니다 — 직접 찾아다닐 필요가 없습니다. Metis가 가져다 줍니다.
🧠 올바른 전문가에게 라우팅합니다. 평범한 언어로 요청하면 Metis는 30개 이상의 전문 스킬 중 적합한 하나에 작업을 넘깁니다 — Librarian, Methods Coach, Writing Partner, Meeting Memory, Epidemiologist, Course Builder 등.
🔁 스스로 개선합니다. 모든 작업 후 무엇이 잘되었고 무엇이 부족했는지 기록하며, 매주 자신의 행동에 대한 개선안을 초안으로 작성하고 승인을 기다립니다. 대부분의 MCP 서버는 정적입니다 — Metis는 사용할수록 더 날카로워집니다.
🚫 지어내기를 거부합니다. 라이브러리에 없는 것을 물어보면 그렇다고 말합니다. 그럴듯한 답변을 만들어 내지 않습니다. (이 근거 기반 행동은 자동화된 테스트로 검증됩니다.)
🔒 귀하의 기기에 머무릅니다. 로컬 임베딩, 로컬 데이터베이스, 로컬 파일. 논문, 환자 인접 데이터, 미발표 작업은 컴퓨터를 떠나지 않습니다.
🎥 실제 작동 모습은 위에서 확인하세요 — 대시보드, 탭 둘러보기, Claude Desktop으로의 조용한 레이어, 그리고 스스로 개선하는 Metis.
가장 쉬운 체험 방법: Claude Desktop을 설치하고 3단계 설정을 실행하세요 — 데모 작업 공간이 미리 로드되어 있어 빈 화면 대신 탐색할 무언가로 시작합니다.
누구를 위한 것인가?
🔬 저는 연구자입니다
프로그래밍 배경이 필요 없습니다. 몇 분 안에 설치하고 즉시 작업을 시작하세요. Metis가 하는 모든 일은 평이한 언어로 설명됩니다.
⚙️ 저는 개발자입니다
오픈소스, 확장 가능, 잘 설계된 아키텍처. 도메인 팩을 구축하고, 에이전트를 추가하고, MCP 서버를 확장하거나 기관용으로 배포하세요.
Metis란 무엇인가?
Metis는 Claude 위에 구축된 연구 동반자로, 데이터를 귀하의 기기에 보관합니다. 모든 AI 대화에 귀하의 도메인, 논문, 프로젝트, 작업 이력에 대한 지속적인 기억을 부여합니다. 요청을 올바른 전문가에게 라우팅하고, 작업을 수행하며, 결과를 기록하고, 평이한 답변을 반환합니다 — 프롬프트나 설정이 필요 없습니다.
앱은 귀하의 기기에서 실행되며 데이터도 그곳에 머무릅니다 — 문서, 메모, 임베딩, 기억이 기기를 떠나지 않습니다. 추론은 Claude가 담당하므로 분석을 위해 보내기로 선택한 텍스트만 Anthropic API로 전송됩니다. 그 외 모든 것은 로컬입니다. (정확히 무엇이, 언제 기기를 떠나는지는 데이터 보호를 참조하세요.)
요약하자면: 귀하의 분야와 문헌을 이미 알고, 캡처한 모든 논문, 회의, 아이디어, 메모를 연결하며, 각 요청을 올바른 전문가에게 보내고 — 사용할수록 귀하의 작업에 대해, 그리고 자신에 대해 더 날카로워지는 AI를 상상해 보세요. 그것이 Metis입니다.
작동 방식
Metis는 로그인하는 별도의 앱이 아닙니다. 백그라운드에서 조용히 실행되며 Claude를 귀하의 연구 — 논문, 기억, 프로젝트 — 에 연결하는 작은 서비스입니다.
백그라운드 서비스("MCP 서버")가 컴퓨터와 함께 시작됩니다. Claude와 귀하의 파일 사이의 다리 역할을 하며, 직접 상호작용할 필요가 없습니다.
Claude를 통해 Metis와 대화합니다. 두 가지 방법:
Claude Desktop (가장 쉬움): 열고 프롬프트 메뉴에서 Metis 프롬프트(예: Metis, Metis Doctor)를 선택하거나 그냥 물어보세요.
Claude Code (터미널):
/metis다음에 요청을 입력하세요.
평범한 언어로 요청합니다. Metis가 30개 이상의 전문가 중 누가 처리할지 파악하고, 귀하의 라이브러리와 기억을 사용해 작업을 수행하며, 출처를 인용하여 답변합니다.
그게 전부입니다. 시작 전에 배울 것이 없습니다. 대시보드는 이 모든 것 위에 있는 선택적 가시성 도구입니다.
디자인 철학
모든 AI 대화는 제로에서 시작합니다. 맥락을 다시 설명하는 데 10분을 쓰고, 세션이 끝나면 사라집니다. 일반적인 AI 도구는 강력하지만 상태가 없습니다 — 세상에 대해서는 모든 것을 알고, 귀하에 대해서는 아무것도 모릅니다.
Metis는 하나의 아이디어 위에 구축되었습니다: AI가 귀하를 알아야 한다. 그리고 스스로 계속 나아져야 한다.
이름만이 아닙니다 — 도메인, 문헌, 프로젝트, 선호하는 작업 스타일, 미해결 질문, 지난달의 회의 메모, 어제 라이브러리에 추가한 논문까지. Metis를 사용할수록 모든 응답이 좋아집니다. AI가 변해서가 아닙니다 — Metis가 귀하를 더 잘 알게 되기 때문입니다.
AI의 발전을 따라갈 필요가 없습니다. Metis가 대신 합니다. 매주 Metis는 모든 세션에서 자신의 성과를 검토하고, 더 잘할 수 있었던 부분을 식별하며, 자신의 행동에 대한 개선안을 초안으로 작성하고, 적용 전에 귀하의 승인을 기다립니다. 더 나은 방법과 모델이 등장하면 그 개선도 같은 방식으로 통합됩니다 — 항상 승인을 위해 제안되며, 결코 몰래 적용되지 않습니다. 연구자로서 귀하는 연구에 집중하세요. Metis가 자신을 날카롭게 유지하는 일을 처리합니다.
핵심 메커니즘은 교차 수분(cross-pollination)입니다. 아이디어를 포착하거나, 논문을 추가하거나, 회의를 기록하거나, 작업을 완료할 때마다 Metis는 이를 연구 유니버스의 다른 모든 것과 연결합니다. 1년 전에 색인한 논문이 오늘 연구비 신청서를 작성할 때 떠오릅니다. 3월의 회의 노트가 오늘 아침에 포착한 아이디어와 연결됩니다. 6개월 전의 미해결 질문이 방금 발표된 새 논문과 이어집니다. 이러한 연결은 자동으로, 백그라운드에서, 검색할 필요 없이 이루어집니다. 이것이 Metis를 검색 도구가 아닌 연구 동반자로 만드는 이유입니다 — 모든 작업을 머릿속에 담아둘 필요 없이 전체 작업 범위에 걸쳐 사고합니다.
이것은 진정으로 새로운 영역입니다. 개별 구성 요소들 — 로컬 언어 모델, 검색 증강 생성, 에이전트 라우팅, 벡터 검색 — 은 모두 독립적으로 존재합니다. Metis가 제시하는 것은 이 모든 것의 일관된 통합으로, 연구 작업의 특정 요구(긴 시간대, 민감한 데이터, 깊은 문헌, 수년에 걸쳐 축적되는 지식)에 맞춰 특별히 설계되었습니다. 매 세션마다 제로에서 시작하는 대신, 당신과 함께 성장하고 당신을 위해 연결을 표면화하는 시스템입니다. 우리가 아는 한, 통합되고 로컬에서 실행되며 연구자 중심의 시스템으로서 이와 유사한 것은 존재하지 않습니다.
세 가지 레벨 — 진입점을 선택하세요
레벨 | 설명 | 추천 대상 |
☁️ MCP 서버만 | Claude와 함께 실행되는 백그라운드 서비스. 영구 메모리, 세션 인식, 30개 이상의 전문 에이전트 — 대시보드 없음, 눈에 보이는 앱 없음. | 이미 Claude를 사용하고 있으며 Claude가 자신의 작업을 알기를 원하는 연구자 |
📊 대시보드 포함 | 연구 생활 전반에 걸친 완전한 가시성 — 논문, 아이디어, 회의, 작업, 프로젝트가 모두 연결됨. 교차 수분(아이디어와 문헌 연결)과 두뇌 오프로딩(추적이 머릿속을 떠나 시스템으로 들어감)을 위해 설계됨. | 완전한 연구 운영 환경을 원하는 연구자 |
🌐 Metis OS | 이메일, 캘린더, 데이터 시스템, 기관 인프라에 연결 — 전체 작업 환경을 위한 통합 지능 레이어. | 더 긴 비전. 아직 개발 중. |
현재 상황: MCP 서버, 30개 이상의 에이전트, 9탭 대시보드는 완전히 작동하며 매일 사용됩니다. 원클릭 설치 프로그램과 사전 로드된 도메인 지식 레이어는 아직 다듬는 중입니다. 이는 작동하는 시스템입니다 — 허풍이 아니라 — 그러나 완성된 것도 아닙니다. 문제가 발생하면 이슈를 열어 주세요. 그 피드백이 다음에 구축할 것을 결정합니다.
연구자용
프로그래밍 배경 지식이 필요 없습니다. 아래의 모든 것은 클릭하거나 복사-붙여넣기만 하면 됩니다.
Metis의 구동 방식 — 직접 선택하세요 (사용한다고 API 토큰이 소진되지는 않습니다)
Metis는 두 가지 방식으로 실행되며, 선택할 수 있습니다:
Claude 구독으로 — API 키 없음, 토큰별 과금 없음. 이것이 일상적인 경로입니다: Claude Desktop 또는 Claude Code를 통해 Metis와 대화하고, 대시보드의 "✦ Update with Claude" / 브레인스토밍 버튼은 구독으로 Claude Desktop을 엽니다. 대부분의 사람들은 전적으로 이 방식으로 Metis를 사용합니다.
Anthropic API 키로 — 당신이 없는 동안 실행되는 것(예약된 아침 스캔, 자동 브리프 생성)에만 필요합니다. 토큰별 과금이며, 일반적으로 하루에 몇 센트 수준입니다.
로컬 모델(Ollama)로 — 선택 사항, 완전 오프라인 보조 작업(예: 데이터 어시스턴트)용.
설치 프로그램이 API 키를 요청하여 자동화가 실행될 수 있게 하지만, 건너뛰고 구독만으로 Metis를 사용할 수 있습니다. 대화형 경험에는 API가 필요하지 않습니다.
3단계 설치
1단계 — (선택 사항) Anthropic API 키 받기 — 무인 자동화 전용(무료, 2분)
console.anthropic.com 으로 이동하여 계정을 만듭니다.
API Keys → Create Key를 클릭합니다. 키를 복사합니다(
sk-ant-…로 시작).해당 탭을 열어 둡니다 — 설치 프로그램이 한 번 요청합니다.
키는 컴퓨터에만 저장됩니다. 업로드되거나 공유되지 않습니다.
Windows
설치 프로그램을 더블클릭합니다. 마법사가 다음 단계를 안내합니다:
전체 또는 AI만 — 전체는 AI 어시스턴트 + 9탭 연구 대시보드(약 15분)를 제공합니다. AI만은 더 빠르며(약 5분) 나중에 대시보드를 추가할 수 있습니다.
프로젝트 — 작업 중인 내용을 Metis에 알려줍니다. 각 프로젝트에 대한 추적 레코드를 만들고, 프로젝트 폴더에 컨텍스트 파일을 작성하며, Claude Desktop에 자동으로 등록합니다.
데모 워크스페이스 — 현실적인 예제 프로젝트, 회의, 문헌, 작업을 사전 로드하여 모든 기능을 즉시 탐색할 수 있습니다. 처음 사용자에게 권장됩니다.
API 키 — 한 번 붙여넣습니다.
나머지는 모두 자동입니다. 마지막에 Metis가 준비된 상태로 Claude Desktop이 열립니다.
요구 사항: Windows 10 또는 11 · 인터넷 연결 · API 키
macOS 또는 Linux
터미널을 열고 붙여넣습니다:
bash <(curl -fsSL https://raw.githubusercontent.com/SVerITG/Metis_PH/main/system/mcp-server/setup-mcp.sh)스크립트는 두 가지 질문(전체 또는 AI만, 데모 워크스페이스)을 하고 나머지를 처리합니다. Metis를 Claude Desktop과 Claude Code에 자동으로 등록합니다. Ubuntu 20/22/24, Debian, macOS에서 작동합니다.
요구 사항: Python 3.10–3.13. 설치 프로그램은
uv를 선호합니다(자체 Python 3.12를 다운로드 — 시스템 패키지 불필요).uv를 사용할 수 없으면 시스템 Python으로 대체합니다. 기본 시스템에서는sudo apt install python3-venv가 필요할 수 있습니다. 아주 새로운 Python(3.14+)은 아직 지원되지 않습니다 — 일부 패키지가 해당 버전용 wheel을 게시하지 않습니다. "ensurepip is not available" 오류가 발생하면uv(위 줄) 또는python3-venv를 설치하고 다시 실행하세요.
설치 후 — API 키 및 업데이트
API 키(선택 사항): system/.env.example을 system/.env로 복사하고 키를 추가하거나, 설치 프로그램이 요청할 것입니다. 키는 자동화 기능(아침 브리프, 예약 스캔)을 활성화합니다. Claude를 통한 대화형 사용은 키 없이 작동합니다.
git pull 후 업데이트: MCP 서버는 소스의 로컬 복사본(저장소 직접이 아님)에서 실행됩니다. 새 코드를 가져온 후 다음으로 재동기화합니다:
bash system/mcp-server/setup-mcp.sh --update이렇게 하면 소스를 다시 복사하고, 패키지를 재설치하고, 마이그레이션을 적용합니다 — 전체 마법사를 다시 실행하지 않습니다.
Metis 폴더를 이동했나요? ~/.local/share/metis-mcp/.metis-rc-root의 마커 파일을 새 경로로 업데이트하거나 설치 프로그램을 다시 실행하세요.
MCP 클라이언트 구성
설치 프로그램이 Metis를 Claude Desktop과 Claude Code에 자동으로 등록합니다 — 일반적으로 구성을 수동으로 편집할 필요가 없습니다. 아래 블록은 참고용(및 MCP 디렉터리용)입니다: metis-rc 서버가 어떻게 연결되는지 보여줍니다.
Metis는 한 줄짜리
npx/uvx서버가 아닙니다. 먼저 설치 프로그램을 실행하세요 — 로컬 가상 환경을 구축하고, 데이터베이스를 초기화하고, 아래 구성이 가리키는 실행 스크립트(run.sh)를 생성합니다.
0단계 — 설치(venv + DB 구축, run.sh 생성):
bash system/mcp-server/setup-mcp.shClaude Code(모든 OS) — 설치 프로그램이 자동으로 처리하거나, 수동으로 추가:
claude mcp add metis-rc ~/.local/share/metis-mcp/run.shClaude Desktop — macOS — ~/Library/Application Support/Claude/claude_desktop_config.json에:
{
"mcpServers": {
"metis-rc": {
"command": "bash",
"args": ["/Users/<you>/.local/share/metis-mcp/run.sh"]
}
}
}Claude Desktop — Linux(네이티브) — ~/.config/Claude/claude_desktop_config.json에:
{
"mcpServers": {
"metis-rc": {
"command": "bash",
"args": ["/home/<you>/.local/share/metis-mcp/run.sh"]
}
}
}Claude Desktop — Windows + WSL — %APPDATA%\Claude\claude_desktop_config.json에:
{
"mcpServers": {
"metis-rc": {
"command": "wsl",
"args": ["-e", "/home/<you>/.local/share/metis-mcp/run.sh"]
}
}
}
<you>를 사용자 이름으로 바꾸세요. 생성된run.sh는 런타임에 마커 파일에서METIS_RC_ROOT를 확인합니다 — 하드코딩된 경로 없음. 서버 자체를 실행하는 데 API 키가 필요하지 않습니다.
첫날에 얻는 것
기능 | 기능 설명 |
30개 이상의 전문 에이전트 | 사서, 역학자, 방법론 코치, 글쓰기 파트너, 회의 메모리, 강좌 빌더, 커리어 코치, 비평가 등 — 각각 해당 분야의 전문가 |
근거 기반 답변 | 모든 지식 질문은 AI의 추측이 아닌, 사용자가 색인한 문서 라이브러리에서 페이지 수준 인용과 함께 자동으로 답변됩니다 |
라이브러리 관리 | PDF 가져오기, Zotero 또는 Mendeley 동기화, "내 논문들이 X에 대해 뭐라고 말하나요?" 질문 — 내 라이브러리에서 인용된 답변 제공 |
아침 인텔리전스 브리핑 | 매일 아침: 정확한 연구 주제에 대한 새 논문, 분야 뉴스, 감시 알림, 집중 추천 — 완전히 개인화됨 |
실시간 회의 어시스턴트 | 실시간으로 따라가거나 대화록을 붙여넣기 — 구조화된 메모, 실행 항목, 프로젝트 상호 참조를 자동으로 제공 |
프로젝트 추적 | 모든 프로젝트는 추적 기록, 폴더 내 컨텍스트 파일, Claude Desktop 통합을 갖습니다. 업데이트 버튼은 모든 프로젝트 폴더의 활동을 스캔합니다. |
음성 캡처 | 어디서나 녹음, 로컬에서 전사(API 없음, 업로드 없음), 아이디어, 저널 또는 메모로 라우팅 |
9탭 대시보드 | 오늘 · 뉴스 · 지식 · 회의 · 학습 · 작업 · 사고 · 가르치기 · Metis — 모두 실시간, 모두 로컬 |
데이터 보호 | 6가지 보안 계층 + |
교차 수분 | 모든 아이디어, 논문, 회의, 작업은 연구 세계의 다른 모든 것과 자동으로 연결됩니다. Metis는 시간을 넘어 연결을 표면화합니다 — 작년의 논문, 3월의 회의 메모, 컨퍼런스에서 기록한 질문 — 아무것도 검색할 필요 없이. |
토큰 추적 | 모든 에이전트 실행은 정확한 비용을 보여줍니다 — 어떤 전문가가 사용되었는지, 토큰 수, 모델. 대시보드 오늘 탭에는 실시간 토큰 펄스가 있어 일일 사용량을 항상 알 수 있습니다. 대부분의 일상 작업은 몇 센트 미만으로 유지됩니다. |
도구 하위 집합 로딩 | Metis는 210개 이상의 MCP 도구를 등록하지만, 모든 세션에서 이를 모두 Claude에 노출하면 컨텍스트가 낭비됩니다. 기본적으로 약 80개의 일상 도구가 즉시 로드되고, 나머지는 |
Metis는 진화합니다 — 당신은 그럴 필요 없습니다 | 매주 Metis는 자체 세션 로그를 검토하고, 성과가 부족했던 부분을 식별하며, 행동 개선 초안을 작성합니다. 승인하거나 거부할 수 있습니다 — 승인 없이는 아무것도 변경되지 않습니다. 새로운 기능도 같은 방식으로 통합됩니다. 연구에 집중하세요. Metis는 스스로 날카로움을 유지합니다. |
당신과 함께 성장합니다 | 모든 에이전트 실행은 프로필에 추가됩니다. 6개월 사용 후 질문한 질문은 첫날의 같은 질문보다 의미 있게 더 나은 답변을 받습니다 — AI가 바뀌었기 때문이 아니라, Metis가 당신을 더 잘 알기 때문입니다. |
핵심 워크플로우
아침
Wake up
└─ Metis scanned overnight
├─ New papers on your configured research topics
├─ Surveillance alerts and field news
├─ Tasks due today, overdue items
└─ Suggested daily focus based on your open projects
└─ Open dashboard → read morning brief → start work문헌
New paper (PDF / DOI / Zotero / Mendeley import)
└─ Librarian indexes it
├─ Added to knowledge graph
├─ Cross-pollinated with existing papers, past ideas, meeting notes
└─ Available for cited semantic search immediately
└─ Ask: "What do my papers say about X?"
└─ Answered with inline citations from your own library회의
Meeting ends
├─ Paste transcript (Teams / Zoom / any audio file)
└─ Meeting Memory agent processes it
├─ Structured notes with context
├─ Action items: who does what, by when
├─ Cross-references to your projects and open questions
└─ Follow-up tasks auto-added to Work tab아이디어와 글쓰기
Idea surfaces
└─ Ctrl+K → capture instantly (i: idea · n: note · t: task · q: question)
└─ Metis cross-pollinates immediately
└─ Related papers + past ideas surfaced automatically
└─ Writing Partner → draft · Librarian → sources · Methods Coach → check argument교육과 강좌
Course topic defined
└─ Course Builder
├─ Generates lessons, slides, assessments, question banks
├─ Flags new papers relevant to your course automatically
├─ Gap analysis against current literature
└─ Spaced repetition for your own knowledge maintenance대시보드
9탭 대시보드는 http://127.0.0.1:8080에서 로컬로 실행됩니다. 계정 없음, 클라우드 없음, 구독 없음.

오늘 탭 — 아침 브리핑, 활성 프로젝트, 진행 상황, 뉴스 레이더, 빠른 통계. 모든 것이 연구 분야에 맞게 개인화됩니다.
탭 | 기능 |
오늘 | 아침 브리핑, 우선 작업 큐, 뉴스 레일, 빠른 캡처( |
뉴스 | 작업과 관련된 분야 뉴스, 감시 알림, RSS 신호 |
지식 | 의미론적 PDF 검색, 문헌 카드, 지식 그래프, 커버리지 격차 분석 |
회의 | 실시간 어시스턴트, 대화록 가져오기, 실행 항목, 상호 참조 |
학습 | 강좌 진행 상황, 간격 반복, 역량 지도 |
작업 | 작업, 프로젝트 카드, 활동 추적, VS Code / RStudio / Claude에서 원클릭 열기 — 보드 보기 포함(주간 계획 · 의도 · 프로젝트 파이프라인) |
사고 | 아이디어 캡처, 교차 수분, 브레인스토밍 런처, 미해결 질문 추적기 |
가르치기 | 강좌 빌더, 문헌 알림, 수업 생성, 학생 대상 콘텐츠 |
Metis | 에이전트 실행 기록, 자기 개선 제안, 시스템 상태, 신원 카드 |
Metis가 당신을 아는 방법
Metis를 처음 설치하면 설정 마법사가 프로필을 안내합니다:
연구 분야 · 특정 관심사 · 활성 프로젝트 · 작업 스타일 · 사용하는 도구 · 데이터 민감도 수준
이것이 신원 카드를 만듭니다 — 모든 에이전트가 응답하기 전에 읽는 살아있는 프로필입니다. 시간이 지나면서 성장합니다. 모든 세션이 컨텍스트를 추가합니다. 캡처하는 모든 아이디어는 Metis에게 당신이 무엇을 생각하고 있는지 알려줍니다.
6개월 사용 후 질문한 질문은 첫날의 같은 질문보다 의미 있게 더 나은 답변을 받습니다 — AI가 바뀌었기 때문이 아니라, Metis가 당신을 더 잘 알기 때문입니다.
데이터 보호
연구자들은 민감한 데이터를 다룹니다. 대부분의 AI 도구는 이를 진지하게 받아들이지 않습니다.
환자 데이터, 비공개 결과, 미발표 발견 — 이러한 것들은 절대 사용자 머신을 떠나서는 안 됩니다. Metis는 처음부터 이를 염두에 두고 설계되었습니다.
머신을 떠나는 것(그리고 시기):
서비스 | 내용 | 시기 | 선택 사항? |
Anthropic Claude API | 분석을 위해 보내는 텍스트 | 요청 시 | AI에 필수 |
PubMed / OpenAlex | 연구 검색 키워드 | 매일 아침 스캔 | 예 |
Zotero | 라이브러리 메타데이터(제목, 초록, 태그) | 매일 동기화 | 예 |
CrossRef | DOI 쿼리 | 요청 시 | 예 |
HuggingFace | 모델 이름만 — 임베딩 모델 다운로드 | 첫 실행 | 예 |
그 외 모든 것 — 문서, 음성 녹음, PDF 텍스트, 회의 메모, 환자 관련 데이터 — 디스크에 유지됩니다.
보안 계층:
계층 | 기능 |
사전 도구 훅(Pre-tool hook) | 모든 도구 호출에서 주입(injection) 시도와 제한 경로를 검사하고, 데이터 파일의 헤더를 읽기 전에 로컬에서 미리 확인한 뒤 개인 수준 데이터가 대화에 로드되기 전에 확인을 요청합니다 |
PII 탐지 | 11가지 검사, 4단계 분류. 민감 데이터는 파이프라인 진입 시점에 분류되어 거부됩니다 |
주입 탐지(프로브) | 외부 콘텐츠(논문, 대화 기록)에서 프롬프트 주입을 탐지합니다 |
헌법(Constitution) | 모든 딥 에이전트 실행에 적용되는 14가지 기계 판독 가능 규칙 |
레드 라인(Red lines) | 코드 수준에서 강제되는 5가지 재정의 불가 규칙 — 재정의 불가능 |
AES-256 암호화 | 모든 백업은 저장 시 암호화됩니다 |
민감 데이터에 권장되는 패턴: 데이터가 아닌 코드를 보내세요.
가장 강력한 보호는 스캐너가 아니라, 원시 데이터를 프롬프트에 아예 넣지 않는 것입니다. Metis는 이를 위해 설계되었습니다. 분석 스크립트(R 또는 Python)를 요청하고, 여러분은 실제 데이터로 자신의 컴퓨터에서 실행합니다. 그리고 파생된 결과물 — 변수 이름, 값 개수, 요약 테이블, 모델 계수, 데이터 사전 — 만 Metis로 돌아옵니다. Claude는 데이터의 형태(shape) 에 대해 추론하며, 레코드 자체에는 접근하지 않습니다.
Your real dataset (patient rows) ── stays on your machine, never sent ──┐
│ you run Metis's R/Python script locally │
▼ │
Derived metadata (column names, unique values, Table 1, model summary) ── safe to share ──► Metis
│ │
▼ │
Metis builds the dashboard / writes the methods / interprets the model ◄────────┘이것이 바로 우리 작업에서 대시보드와 분석이 구축된 방식입니다. 원시 감시 데이터는 컴퓨터를 떠난 적이 없지만, Metis는 이를 프로파일링하고, 모든 변수에 이름을 붙이고, 고유 값을 나열하고, 전체 대시보드를 생성할 수 있었습니다.
/safe-analysis를 실행하세요 (Claude Code 또는 Claude Desktop). Metis가 처음부터 끝까지 안내합니다 — 로컬 스크립트를 제안하고, 어떤 메타데이터를 다시 붙여넣어야 하는지 정확히 알려주며, 원시 행을 요청하지 않습니다. 그 아래에는 두 개의 안전장치가 있습니다: 사전 도구 훅이 데이터 파일의 헤더를 로컬에서 미리 확인하고 개인 수준 데이터가 대화에 읽히기 전에 요청하며, Data Guardian(파이프라인 진입 시 PII 스캔 + 4단계 분류)이 어쨌든 프롬프트에 들어온 민감 콘텐츠를 잡아냅니다. 위 패턴을 사용하면 둘 다 발동할 일이 거의 없습니다.
Metis가 최신 상태를 유지하는 방법 — 여러분이 신경 쓸 필요 없이
AI는 빠르게 발전하고 있습니다. 새로운 모델, 새로운 기능, 새로운 연구 도구가 매달 등장합니다. 대부분의 연구자는 이를 따라갈 시간이 없습니다. Metis는 이를 대신 처리하도록 설계되었습니다.
모든 에이전트 실행 후, Metis는 반성(reflexion)을 기록합니다 — 무엇이 잘 되었는지, 무엇이 부족했는지, 어떤 맥락이 누락되었는지. 매주 이를 집계하여 주제로 만듭니다. 매주 명확한 근거와 함께 행동 개선안을 초안으로 작성합니다. Metis 탭에서 제안을 검토하고 — 한 번의 클릭으로 승인, 거부 또는 편집 — 승인된 변경 사항은 디스크에 기록됩니다.
이는 Metis가 특히 여러분과 함께 일하는 방식이 주마다 개선된다는 것을 의미합니다. 또한 새로운 AI 개발 사항이 Metis에 통합됨에 따라, 여러분이 아무것도 하지 않아도 개선 사항을 받게 된다는 것을 의미합니다. 여러분의 일은 연구입니다. Metis의 일은 예리함을 유지하는 것입니다.
자기 개선 루프의 상세:
모든 에이전트 실행 후 — 반성 기록: 무엇이 잘 되었는지, 무엇을 개선할 수 있는지, 무엇이 누락되었는지
매주 — 모든 세션에서 주제 추출; 패턴 식별
제안 초안 작성 — 에이전트 행동에 대한 구체적인 변경 제안과 근거
Metis 탭에서 검토 — 적용 전에 승인, 거부 또는 편집
백업과 함께 적용 — 타임스탬프가 있는 롤백 지점과 함께 업데이트 기록
Metis의 행동 변경은 명시적인 승인 없이는 절대 이루어지지 않습니다. 시스템이 제안하고, 여러분이 결정합니다.
개발자용
이 섹션은 Python, Git, 명령줄에 대한 기본 지식을 가정합니다.
아키텍처
flowchart LR
U([Researcher])
subgraph Harness["AI Harness (Claude Code / Desktop)"]
METIS[Metis\nrouter agent]
AGENTS[Specialist agents\n30+ agents]
WATCHERS{{Watchers\nData Guardian · Cybersecurity}}
end
subgraph Platform
MCP[MCP Server\n210+ tools\nFastMCP]
DASH[Dashboard\nFastAPI + HTMX]
DB[(SQLite\nWAL mode)]
end
subgraph Memory
EPIS[Episodic]
SEM[Semantic\nvector search]
REFLEX[Reflexion log]
end
Skills[/CLI Skills\n/metis · /librarian · …/]
U -->|asks| METIS
U -->|clicks| DASH
METIS -->|routes to| AGENTS
AGENTS -->|uses| MCP
MCP --- DB
DASH --- DB
WATCHERS -.guards.-> AGENTS
AGENTS -->|writes| REFLEX
REFLEX -->|proposes edits to| AGENTS
MCP --- Memory
Skills --> METIS
style WATCHERS fill:#fff4e6,stroke:#9a7b3c
style REFLEX fill:#eef4f1,stroke:#2d4a3a,stroke-dasharray:3 3기술 스택
계층 | 기술 |
AI 하네스 | Claude Code, Claude Desktop (기본); Gemini (실험적) |
MCP 서버 | Python 3.10+, FastMCP, 로컬 venv에서 실행 |
대시보드 | FastAPI + HTMX + Jinja2 — JavaScript 프레임워크 없음 |
데이터베이스 | SQLite WAL 모드, 65개 테이블 |
벡터 메모리 | sqlite-vec + nomic-embed-text-v1.5-Q (768차원, 로컬 ONNX) |
의미론적 PDF 검색 | sqlite-vec — 로컬 PDF 청크 인덱스, 외부 API 없음 |
호스트 OS | Windows + WSL2 (Ubuntu 20/22/24) · macOS · Linux |
메모리 — 5개 계층
계층 | 저장 내용 |
일화(Episodic) | 세션 이벤트 및 관찰 (발견 · 결정 · 구현 · 이슈) |
의미론적(Semantic) | 벡터 인덱스 콘텐츠 (sqlite-vec + nomic-embed-text-v1.5-Q, 768차원) |
절차적(Procedural) | 스킬 파일 및 에이전트 계약 — 에이전트의 지속적 행동 |
작업(Working) | 활성 세션 맥락 및 현재 프로젝트 초점 |
반성적(Reflexive) | 반성 로그 및 개선 제안 |
지식 계층 및 근거 기반 답변 (RAG)
지식 집약적 질문을 하면, Metis는 전문 에이전트가 답변하기 전에 인덱스된 문서 라이브러리에서 관련 구절을 검색합니다. 에이전트는 훈련된 기억뿐만 아니라 라이브러리에서 읽을 수 있는 내용에 근거하여 답변합니다.
You ask Methods Coach:
"Which variance estimator should I use for my Poisson MLM with overdispersion?"
Metis retrieves before routing:
→ Leyland (2020) Multilevel Modelling for Public Health, p.142 — score 0.87
→ Bates lme4 vignette, p.28 — score 0.71
Methods Coach answers grounded in those passages, citing both sources.구성 요소 | 세부 사항 |
임베딩 모델 |
|
벡터 저장소 | Metis SQLite 데이터베이스 내 |
청킹 | 3,200자 청크, 400자 중첩 |
점수 임계값 | 0.4 미만 유사도 청크는 주입 전에 제거 |
여러분 분야의 지식 계층을 구축하세요. 최초 설정 시, 마법사의 연구 배경 설문이 Background Maker에 브리핑하여, 여러분의 학문 분야 문헌을 수집, 정제, 인덱싱하여 로컬 RAG 저장소에 넣습니다 — 따라서 모든 에이전트가 여러분의 말뭉치에서 인용과 함께 답변합니다. 언제든지 /background build <topic>으로 확장할 수 있습니다.
사전 로드된 지식 계층 (이 에디션):
계층 | 문서 수 | 범위 |
공중 보건 배경 | 34 | WHO 지침, 글로벌 보건 보고서, 사회적 결정 요인, 비전염성 질환, 모자 보건 |
역학 및 방법론 | 10 | STROBE, WHO Basic Epi, Leyland MLM, Bates lme4, PRISMA 2020, SaTScan, CIFOR |
보안 계층 (상세)
pre-tool-use.mjs— 13가지 주입 패턴, 도메인 허용 목록, 경로 제한 (모든 도구 호출)guardrails.py— 모든 외부 콘텐츠(논문, 웹, 대화 기록)에 대한 주입 탐지safety.py— 11가지 PII 검사, 4단계 분류, 파이프라인 진입 시 민감 데이터 거부constitution.md— 딥 및 체인 에이전트 실행을 위한 14가지 기계 판독 가능 규칙red-lines.md— 코드 수준에서 강제되는 5가지 재정의 불가 규칙
토큰 효율성
모델 라우팅 — 분류/요약에는 Haiku, 대부분의 작업에는 Sonnet, 심층 추론에만 Opus; 대부분의 일상 사용은 Opus에 도달하지 않음
정밀 맥락 구성 — 각 에이전트는 전체 기록이 아닌 작업에 관련된 맥락만 받음
최대 턴 가드레일 — 20턴에서 중지,
/clear프롬프트세션 핸드오프 — 세션 종료 시 3KB 미만 상태 캡처; 이미 확립된 맥락에 대한 재비용 없음
토큰 펄스 위젯 — 대시보드에서 실시간 사용량 표시
교차 AI 지원
하네스 | 상태 |
Claude Code | ✅ 기본 — 전체 MCP + 스킬 + 훅 |
Claude Desktop | ✅ 기본 — 전체 MCP + 메모리; CLI 스킬 없음 |
Gemini 2.0+ | 🔬 실험적 |
OpenAI / Cursor | 🟡 부분 — MCP 도구만 |
설치 옵션
옵션 1 — 단일 명령 (Linux, macOS, WSL)
bash <(curl -fsSL https://raw.githubusercontent.com/SVerITG/Metis_PH/main/system/mcp-server/setup-mcp.sh)Ubuntu 20/22/24, Debian, macOS Homebrew를 감지합니다. venv를 생성하고, 모든 종속성을 설치하며, Claude Code 및 Claude Desktop에 등록합니다. 멱등적(idempotent) — 재실행해도 안전합니다.
# Profile overrides (skip the interactive menu):
METIS_PROFILE=light bash <(curl -fsSL ...) # MCP server only (~5 min)
METIS_PROFILE=standard bash <(curl -fsSL ...) # MCP + dashboard (~15 min)
METIS_PROFILE=full bash <(curl -fsSL ...) # Standard + scheduler (~25 min)옵션 2 — 클론 및 설치 (모든 플랫폼)
git clone https://github.com/SVerITG/Metis_PH.git
cd Metis_PH/system/mcp-server
bash setup-mcp.sh옵션 3 — 수동
git clone https://github.com/SVerITG/Metis_PH.git
cd Metis_PH/system/mcp-server
python3 -m venv .venv && source .venv/bin/activate
pip install -e "."
export METIS_RC_ROOT="$(pwd)/../.."
export ANTHROPIC_API_KEY="sk-ant-..."
python -m metis_mcp.server # MCP server
cd ../app-py && bash run.sh # Dashboard → http://127.0.0.1:8080옵션 4 — Docker (플랫폼 테스트 매트릭스)
# Full platform test — Ubuntu 24/22 + Debian in parallel
docker compose -f system/install/docker/docker-compose.test.yml up --build
# Production stack
docker compose -f system/install/docker/docker-compose.yml up -dClaude Code에 등록
~/.claude/settings.json:
{
"mcpServers": {
"metis-rc": {
"command": "/home/<username>/.local/share/metis-mcp/run.sh"
}
}
}Claude Desktop에 등록 (Windows + WSL)
%APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"metis-rc": {
"command": "wsl.exe",
"args": ["-e", "bash", "/home/<username>/.local/share/metis-mcp/run.sh"]
}
}
}구성
파일 | 제어 항목 |
| 도메인, 관심사, 스타일 — 설정 마법사가 생성 |
| 모든 딥/체인 실행에 적용되는 14가지 규칙 |
| 5가지 재정의 불가 규칙 |
| 모델 라우팅, 핸드오프 임계값 |
| 에이전트별 행동 계약 — 직접 편집 가능 |
| 모든 도구 호출에 대한 보안 게이트 |
종속성
패키지 | 용도 |
| MCP 프로토콜 |
| 대시보드 |
| 로컬 벡터 검색 |
| 로컬 임베딩 (API 없음) |
| RSS 피드 파싱 |
| 사용자 구성 |
| 비동기 HTTP |
| 데이터 분석 도구 |
| AES-256-GCM 백업 암호화 |
| Zotero 동기화 |
| Mendeley BibTeX 가져오기 |
| Claude API |
에디션 및 로드맵
Metis는 별개의 에디션으로 제공됩니다 — 도메인에 구애받지 않는 기본 셸과, 그 위에 분야별 콘텐츠를 추가하는 도메인 팩으로 구성됩니다.
저장소 | 상태 | 설명 |
✅ 운영 중 (v1.0) | 도메인에 구애받지 않는 기본 셸. 전체 아키텍처, 도메인 콘텐츠 없음. 자체 에디션을 만들려면 이 저장소를 포크하세요. | |
✅ 운영 중 (v1.0, 이 저장소) | 공중보건 및 역학 — MCP 서버, 30개 이상의 에이전트, 대시보드, 지식 레이어 | |
🧬 계획 중 | 생물의학 | |
🏥 계획 중 | 임상의학 | |
Metis [커뮤니티] | 🌍 공개 | 기타 연구 분야용 도메인 팩 — 기여 환영 |
Metis Institute Edition | 🏛 향후 | 다중 사용자, 공유 지식 기반, 기관 배포 |
각 도메인 에디션에 포함된 것: 사전 구성된 저널 + RSS 피드 · 전문 에이전트 · 도메인 온톨로지 · 선별된 배경 지식 라이브러리
도메인 팩을 만들고 싶으신가요?
Metis를 포크하고, 해당 분야의 지식 라이브러리, 에이전트, RSS 피드를 추가한 뒤 PR을 열어 주세요.
코스 패키지 (출시 예정)
모든 Metis 설치에 바로 추가할 수 있는 독립형 코스 패키지:
패키지 | 다루는 내용 |
표본 추출 전략 | 확률 및 비확률 표본 추출, 표본 크기, 복합 설문 설계, 가중 추정 |
공간 역학 | 공간 자기상관, 커널 밀도, SaTScan, LISA, R 및 GeoDa를 이용한 질병 매핑 |
유전체 감시 | 공중보건에서의 병원체 시퀀싱, 계통유전학, WGS 파이프라인, Nextstrain |
course-package 라벨로 이슈를 열어 파일럿 테스트를 하거나 기여할 수 있습니다.
개발 현황
영역 | 상태 |
MCP 서버 (210개 이상의 도구) | ✅ 운영 중, 매일 사용 중 |
30개 이상의 전문 에이전트 | ✅ 운영 중, 매일 사용 중 |
9탭 대시보드 | ✅ 운영 중, 일부 기능은 활발히 개발 중 |
Windows .exe 설치 프로그램 | 🔧 개선 중 |
Docker 이미지 | ✅ 테스트 매트릭스 작동 중 |
도메인 지식 레이어 (Metis_PH) | 🔧 활발히 확장 중 |
자동 일일 작업 (APScheduler) | 📋 다음 단계 |
테스트 스위트 | 📋 다음 단계 |
Telegram 캡처 봇 | 📋 계획됨 |
Metis OS (캘린더, 이메일 통합) | 🌐 향후 비전 |
기여하기
Metis는 한 도메인과 한 연구자를 넘어 성장하도록 설계되었습니다. 기여를 환영합니다 — 특히 Metis를 사용하면서 무엇이 빠져 있는지 아는 연구자들의 기여를 환영합니다.
자세한 지침은 CONTRIBUTING.md를 참조하세요.
가장 필요한 것
도메인 팩 — 가장 영향력이 큰 기여입니다. 도메인 팩에는 다음이 포함됩니다: 주요 저널 + RSS 피드 · 전문 에이전트 · 도메인 온톨로지 · 선별된 배경 라이브러리
도메인 | 상태 |
공중보건 및 역학 | ✅ 포함됨 |
사회과학 | 🔬 계획 중 |
생물의학 / 임상 연구 | 🔬 계획 중 |
환경과학 | 🔬 계획 중 |
경제학 및 개발 | 🔬 계획 중 |
심리학 및 행동과학 | 🔬 계획 중 |
교육 연구 | 🔬 계획 중 |
간호 및 보건 관련 | 🔬 계획 중 |
기타 영향력이 큰 기여:
번역 — 마법사와 스킬 파일은 영어 전용입니다. 프랑스어, 네덜란드어, 스페인어, 독일어 번역은 더 많은 연구자들에게 Metis를 열어 줄 것입니다
설치 프로그램 테스트 — 관리형 머신, 기업 환경, 다양한 하드웨어에서의 Windows
.exe및 PowerShell 테스트; 작동하는 것과 실패하는 것에 대한 보고는 가치가 있습니다새 에이전트 및 스킬 — 아직 다루지 않은 사용 사례를 위한 전문 에이전트
보안 검증 — 데이터 로컬 유지 보장(머신에 보관되는 것 vs. Claude API로 전송되는 것)에 대한 독립적 검토, PII 탐지, 훅 동작, 헌법 적용; 허점을 발견하면 비공개 이슈를 열어 주세요
멀티 AI 지원 — 특히 오프라인 연구 환경을 위한 더 나은 Gemini 및 로컬 모델(Ollama) 지원
버그 보고 및 UX 피드백 — 워크플로우에 맞지 않는 것이 있다면 알려 주세요
변경 로그
Metis는 활발히 개발 중입니다 — 최신 내용은 아래를 참조하세요. (최근: 누가 응답해야 하는지 학습하는 라우팅 브레인, 작업 방식을 기억하는 개인화 레이어, 보안 패스)
2026년 6월 하순
변경 사항 |
학습 가능한 에이전트 라우팅 — 어떤 전문가가 요청에 응답할지는 이제 하드코딩된 목록이 아닌 라우팅 데이터베이스에서 결정됩니다: 21개의 전문 에이전트에 도달하며(기존 10개), 단어 경계에서 매칭하므로(잘못된 단어 하나가 요청을 엉뚱한 전문가에게 끌고 갈 수 없음), 학습합니다 — 명확한 담당자가 없는 경우 Metis가 "이 요청을 항상 역학자에게 보낼까요, 아니면 이번 한 번만 보낼까요?"라고 묻고 답변을 기억합니다. |
개인화 레이어 (사용자와 함께 성장) — Metis는 이제 사용자의 고정된 선호도와 결정(코딩 스타일, 인용 형식, 방법론 기본값, 반복적으로 찾는 논문과 데이터셋)을 기록하고, 매 요청마다 다시 묻는 대신 적용합니다. 한 번만 말하면("항상 tidyverse 스타일 사용"), 매번 컨텍스트에 반영됩니다. |
살아있는 요청 루프 — 모든 |
보안 패스 — 검색의 반사형 XSS 취약점을 차단했습니다. PII 탐지(국제 전화번호 형식, 가구 단위 GPS)와 프롬프트 인젝션 탐지(더 많은 공격 문구)를 확장했습니다. 모두 반복 가능한 프로브로 뒷받침됩니다. |
오늘 화면 — 편집 디자인 개편 — 아침 뷰를 대시보드가 아닌 브리핑으로 재구축했습니다: 항상 열려 있는 아침 문단, 가장 활발한 진행 중 스레드, 사용자 지정 가능한 세 가지 집중 항목, 어시스턴트의 메모. |
v1.0 이후 — 2026년 6월
변경 사항 |
Code Repository — 재현성/코드 재사용 계층: 스크립트, 데이터 사전(변수 이름, 유형, 고유 값) 및 데이터셋 처리를 등록하면 |
Projects in the registry + cross-pollination — 프로젝트 목록이 이제 프로젝트 레지스트리를 읽습니다(디스크의 폴더뿐만 아니라 모든 프로젝트); 브레인스토밍과 교차 수분이 이제 라이브러리/뉴스뿐만 아니라 등록된 프로젝트와 노트를 활용합니다. |
Brainstorm + brief upgrades — 브레인스토밍 창의성 다이얼(Grounded/Balanced/Bold)과 범위 메뉴(이 작업 · 주제 · 마인드맵 · 클러스터)로 작업이 준비된 상태로 Claude Desktop에 전달됩니다; Daily ↔ Weekly 아침 브리핑 토글; Reflection 탭의 아이디어 마인드맵; Metis 탭의 "Improve Metis (OODA)" 버튼. |
Sensitive-data workflow ( |
Data Guardian hardening — 파이프라인 PII 스캐너가 이제 11개 패턴 모두(이름, 생년월일, 여권, 의료 기록 번호, 국가 ID 번호, 사례/레지스트리 식별자, + 원래 5개)를 도구와 파이프라인 모두가 사용하는 하나의 공유 스캐너로 실행하여 불일치가 발생하지 않습니다; 단위 테스트 스위트로 검증됩니다. |
Pre-tool data-file guard — |
Honest positioning — "로컬 우선/로컬 AI" 프레임을 제거했습니다(추론은 Claude API에서 실행됨); 이제 데이터는 사용자 머신에 유지되고 추론은 Claude를 사용한다는 점을 명확히 표기합니다. |
Desktop project-tracking + file-tracking fixes — Desktop 라우터가 이제 추적된 프로젝트를 등록합니다; 파일 추적을 깨뜨렸던 재귀 버그를 수정했습니다. |
Post-v1.0 — 2026년 5월
변경 사항 |
Unified project intelligence system — 모든 설치 경로에서 카테고리와 폴더 경로를 가진 무제한 프로젝트; 각 프로젝트 폴더에 CLAUDE.md 작성; Claude Desktop 자동 등록; 활동 스캐너가 git 커밋, 수정된 파일, todo 완료를 감지; Claude Code 중지 훅이 활성 프로젝트를 대시보드에 보고 |
Three-path intelligent setup wizard — 브라우저 마법사(무제한 프로젝트, 카테고리), 터미널 마법사(Linux/macOS), Inno Setup 마법사(Windows .exe) 모두 Claude API 페르소나 생성으로 지원 |
Docker test matrix — Ubuntu 24/22 + Debian + 라이트 프로필이 병렬로 실행; Release Coordinator의 필수 사전 릴리스 게이트 |
Today surface restructure — 세션 핸드오프 스트립, 7개 지표 원장, 3단계 우선순위 큐, 2×2 리서치 쿼드런트 레이아웃, 시간대 적응형 아침 브리핑 |
Metis real subagent orchestration — Metis가 Agent 도구를 통해 실제 격리된 서브에이전트를 생성하며, 독립적인 토큰 추적을 제공 |
Release Coordinator — |
Scheduler fix — 라이브러리 인덱스 작업 수정(content_scan 모듈의 scan_literature_folder) |
Knowledge surface — 통합 검색, 커버리지 갭 분석, 지식 계층 브라우저 |
v1.0 — 2026년 5월
첫 번째 안정 릴리스. 전체 세부 사항은 system/config/release-notes-v1.0.md를 참조하세요.
출시된 기능 |
FastAPI + HTMX 대시보드 — 9개 탭 |
34개 전문 에이전트 |
MCP 서버 — 170개 이상 등록된 도구 |
Windows 설치 프로그램(Inno Setup) |
역학 통계 과정 — 간격 반복 학습이 포함된 12개 레슨 |
스타트업 평가 스위트 + 뉴스 신선도 확인 |
컨텍스트 80%에서 자동 핸드오프 브리핑 |
AGPL-3.0 라이선스 |
이전 개발 단계(Phase 0–9b)
단계 | 출시된 기능 |
0–5 | MCP 서버, 34개 에이전트, CLI 스킬, 구성 마법사, SQLite(46개 테이블), 5계층 메모리, 지식 그래프, Zotero/Mendeley 동기화 |
6–7 | FastAPI + HTMX 대시보드 — 9개 탭, 라이브 파셜 |
8 | 아침 브리핑, 뉴스 레일, 회의 어시스턴트, 음성 캡처, PaperQA2 PDF 검색, 교차 수분, 토큰 가드레일 |
9 | CSS 디자인 개편 — 에디토리얼 레이아웃, 반응형 그리드, 애니메이션 |
9b | 자기 개선 루프 — 반성(reflexion) 집계, 제안 초안 작성, 승인 흐름 |
M | 대화 메모리 — 일화 메모리의 세션 요약, 과거 세션 간 의미 검색 |
라이선스
AGPL-3.0 코드베이스용 — 자유롭게 사용, 수정, 포크할 수 있지만, 서비스로 실행하거나 배포하는 모든 버전은 AGPL-3.0에 따라 오픈소스여야 합니다.
CC-BY-SA 4.0 강의 콘텐츠 및 학습 자료용.
Available Tools
187 toolsadd_glossary_termA
Add a glossary term, or update its definition if it already exists.
Maintains a personal glossary of field-specific terms and acronyms so
Metis can give consistent definitions across sessions. Upserts on the
term (an existing term keeps its created_at but takes the new definition).
Retrieve entries with get_glossary.
Args:
term: The term, acronym, or phrase to define; serves as the unique key,
so reusing an existing term overwrites its definition.
definition: The definition text to store for this term.
Returns:
A confirmation message naming the term that was added or updated.
Inputs: term (required), definition (required). Returns: result
add_journal_entryA
Store a journal entry with auto-extracted mood and energy.
Args:
content: The journal entry text.
image_path: Optional path to an associated image.
Inputs: content (required), image_path. Returns: result
add_memory_entryA
Add a new memory entry to the memory palace.
Use this for a human-curated 'memory palace' note (title + summary + topics,
optionally saved as a markdown file). For machine/agent event logging use
store_episodic_memory; for a distilled concept/definition use
store_semantic_memory.
Inserts into the memory_entries table. If detail is provided, also writes
a markdown file under journal/{entry_type}s/.
Args:
title: Short title for the entry.
summary: One-paragraph summary, stored in the DB and shown in search.
topics: Comma-separated topic tags, e.g. "metis-setup,mcp-server".
entry_type: One of "session", "journal", "idea", "decision", or "topic".
detail: Full markdown content for the optional .md file.
computer: Hostname of the computer this entry is from (optional).
Returns:
A single TextContent confirming the saved entry (title, generated ID,
type, topics, and the markdown file path if one was written), or an
error message if the database is missing or the write fails.
Inputs: title (required), summary (required), topics (required), entry_type, +2 more. Returns: result
add_specialist_contextA
Add a specialist context to the user profile, or update it if it exists.
Specialist contexts tell Metis which domains the user works in so routing
and search can be tailored. This appends to specialist_contexts in
user-config.yaml (creating the file with defaults if absent); if a context
with the same name already exists, its description is updated instead of
duplicated. Related tools: toggle_context, list_contexts.
Args:
name: Short label for the context, e.g. "Epidemiological dashboards";
also the key used to detect and update an existing context.
description: One or two sentences describing what this context covers.
active_by_default: If True (default), the context is added to
active_contexts immediately; if False, it is stored but left
inactive (and removed from active_contexts if already present).
Returns:
A confirmation message stating whether the context was added (and
activated) or an existing one was updated.
Inputs: name (required), description (required), active_by_default. Returns: result
add_tracked_fileA
Add a single file to the tracked-files list and start watching it.
Registers one file so Metis notices when it changes and can read it later
via read_file; tracked files surface on the dashboard's Planning tab. The
file's current modification time is recorded and watch is set on. Re-adding
an existing path updates it (and keeps the old label unless a new one is
given). To register a whole project at once, use connect_project_folder.
Args:
path: Absolute path to the file to track; the file must exist or an
error is returned.
label: Optional category label for the file (default empty string);
on re-add, an empty label leaves the existing label unchanged.
Returns:
A confirmation message naming the tracked file (and its label, if any),
or a "file not found" / error message.
Inputs: path (required), label. Returns: result
add_user_topicA
Add a topic to track for new publications.
Args:
topic: Topic name (unique).
description: Optional description of what to look for.
Inputs: topic (required), description. Returns: result
aggregate_reflexions_toolB
Theme recent reflexions per agent (Phase 9b).
Reads ``reflexion_log`` entries from the last ``days`` days (default 14)
and returns the top recurring 'could improve', 'missing context', and
'tool wishes' themes, ordered by busiest agent.
Pass ``agent_slug`` to limit the scope; leave blank for all agents.
Inputs: agent_slug, days. Returns: result
anonymize_textA
Scrub PII from text and return anonymized version + replacement map.
Replaces:
- Patient/case IDs → [PARTICIPANT_001]
- GPS coordinates → [GPS_001]
- Belgian national IDs → [NID_001]
- Email addresses → [EMAIL_001]
- Phone numbers → [PHONE_001]
- Name-like tokens (opt.) → [NAME_001]
Args:
content: Text to anonymize.
mode: 'full' — replace; 'preview' — mark without replacing.
replace_names: Also replace CAPITALIZED name-like tokens (heuristic).
Returns JSON with keys 'anonymized' (str) and 'replacements' (dict).
Inputs: content (required), mode, replace_names. Returns: result
apply_proposal_toolA
Apply a self-improvement proposal: writes the proposed change to disk.
The previous skill.md content is backed up alongside as
``skill.md.bak.<timestamp>`` so a revert is always possible. Updates the
proposal row to status='applied' with the applied_at timestamp and the
backup path.
Args:
proposal_id: the id from skill_improvement_proposals.
Inputs: proposal_id (required). Returns: result
approve_proposalA
Approve a pending skill improvement proposal and apply it.
Writes the proposed content to the agent's skill.md file and marks
the proposal as approved. Creates a backup of the current skill file first.
Args:
proposal_id: The numeric ID from get_pending_proposals()
Inputs: proposal_id (required). Returns: result
archive_library_itemA
Archive a library item (mark as no longer active but keep in DB).
Sets status='archived' in library_seeded table. Item stays available
for search and cross-pollination but disappears from default view.
Args:
relative_path: The relative_path primary key in library_seeded table.
Inputs: relative_path (required). Returns: result
archive_projectA
Archive a project — marks it inactive but keeps all data.
Sets status='archived' in projects table. Project disappears from
active view but remains available for brainstorm context and search.
Args:
project_id: The project_id to archive.
Inputs: project_id (required). Returns: result
ask_libraryA
Answer a question using the user's indexed PDF library via PaperQA2.
Searches the pre-built index (see index_library_pdfs()) and returns
a synthesised answer with citations from the source papers.
Args:
question: Natural language question to answer from the library.
top_k: Number of source passages to retrieve before synthesis (default 5).
scope: Which index to query. "default" = full library. "ph_library" = PH background only.
Build the index first with index_library_pdfs(scope=<scope>).
Inputs: question (required), top_k, scope. Returns: result
assemble_brainstorm_contextB
Assemble context from multiple sources for brainstorming.
Gathers recent content from selected sources, respecting an 8000 char
limit per source. Returns assembled context string with source labels.
Args:
sources: List of sources to include: "library", "meetings", "news", "ideas", "journal".
date_filters: Optional dict with source-specific date filters, e.g. {"ideas": "2026-03-01"}.
Inputs: sources (required), date_filters. Returns: result
backup_dbA
Create a timestamped backup of the Metis SQLite database.
Uses SQLite's Online Backup API — safe to run while the database is live.
Args:
destination: Directory path to write the backup into.
Defaults to metis/system/backups/.
label: Optional label appended to the filename, e.g. 'pre-upgrade'.
extra_destination: Optional second directory for off-site / secondary copy.
Returns JSON with backup_path, size_kb, checksum (SHA-256), and elapsed_ms.
Inputs: destination, label, extra_destination. Returns: result
brainstorm_turnA
Run one turn of a brainstorm session, returning relevant context.
Call this at the start of a brainstorm and after each steering action.
The tool fetches relevant ideas, notes, questions, and library notes so
you (the AI) can surface connections the user may not have considered.
Steering modes:
expand — broaden; surface tangential connections
focus — narrow; find the most relevant threads
challenge — find counter-arguments and weaknesses
synthesize — identify themes; propose a unifying framework
connect — explicit cross-domain connections to library/literature
Args:
topic: The brainstorm topic or question.
steering: One of expand|focus|challenge|synthesize|connect.
session_uuid: Pass the UUID from the previous turn to continue a session.
Omit to start a new session.
turn_notes: Optional free-text notes from the previous turn to log.
Returns JSON with: session_uuid, turn_number, context (ideas/notes/
questions/library), steering_prompts, and instructions for the AI.
Inputs: topic (required), steering, session_uuid, turn_notes. Returns: result
build_pdf_knowledge_dbA
Index a knowledge database layer from PDFs into the semantic knowledge base.
Uses local nomic-embed-text-v1.5-Q (fastembed, ONNX) — no API key required.
Each database is a named layer: 'ph-background', 'hat-specialist', 'epi-methods',
or any custom database slug created via create_knowledge_database().
Args:
database: Slug of the knowledge database to build (default: 'ph-background').
force_rebuild: Re-index even files already indexed in this database.
Inputs: database, force_rebuild. Returns: result
capture_ideaA
Store an idea in the SQLite ideas table.
Auto-extracts tags from content. Links to domains/projects if keywords match.
Unless `auto_cross_pollinate=False`, automatically surfaces up to 5 cross-
pollination matches from library / meetings / news / older ideas in the same
response — so the user sees connections without a second tool call.
Args:
content: The idea text.
source: Where the idea came from (default "manual").
image_path: Optional path to an associated image.
auto_cross_pollinate: When True (default), include connection matches in the response.
Inputs: content (required), source, image_path, auto_cross_pollinate. Returns: result
capture_observationA
Record a typed observation during an agent run.
Use this throughout a run to capture what you are learning so it can be
recalled in future sessions without re-reading history.
Args:
observation_type: One of: discovery, decision, implementation, issue, note.
- discovery: something new you found out
- decision: a choice made and the reasoning behind it
- implementation: what was built or changed
- issue: a bug, blocker, or failure found
- note: a general observation that doesn't fit above
content: The observation in 1–3 sentences.
agent_slug: Which agent is recording (e.g. 'librarian').
session_id: Current pipeline session ID (optional).
concepts: Comma-separated concept tags — auto-extracted if blank.
related_files: Comma-separated file paths this observation relates to.
Inputs: observation_type (required), content (required), agent_slug, session_id, +2 more. Returns: result
check_data_safetyA
Scan content for PII patterns and classify sensitivity level.
Returns safety status, classification, and specific warnings.
Args:
content: Text content to scan.
file_path: Optional file path for context-based classification.
Inputs: content (required), file_path. Returns: result
clean_datasetA
Apply cleaning operations to a dataset and write a new file.
NEVER modifies the original file. Always writes to output_path.
Supported operations:
- "drop_duplicates" — remove exact duplicate rows
- "drop_columns:[col1:col2:...]" — remove specified columns
- "fill_na:[col:value]" — fill nulls in col with value
- "rename_column:[old_name:new_name]" — rename a column
- "strip_whitespace" — strip leading/trailing spaces from all string columns
- "standardize_dates:[col:format]" — parse col as date (format: 'auto' or strftime)
- "drop_na_rows:[col]" — drop rows where col is null
- "drop_na_rows_any" — drop rows with ANY null value
Args:
path: Absolute local path to the source dataset.
operations: List of operation strings (see above).
output_path: Where to write the cleaned file. If empty, appends '_cleaned'
before the extension (e.g. data.csv → data_cleaned.csv).
Returns JSON with: output_path, original_shape, cleaned_shape, row_delta,
col_delta, operations_applied, operations_skipped.
Inputs: path (required), operations (required), output_path. Returns: result
commit_session_decisionsA
Commit key decisions from this session to permanent memory.
This is the mandatory recording checkpoint — call it at the end of every
agent-routed session, before delivering the final result to the user.
Unlike save_session_summary (which accepts any summary), this tool enforces
that at least one concrete decision is captured, and writes each decision
separately to episodic_memory for future retrieval.
Args:
decisions: 1-5 plain-English decisions made this session. Be specific:
"Chose logistic regression over mixed model due to data sparsity in
Zone de Santé X" not "made a modelling decision".
summary: 1-3 sentence summary of the session context (optional but useful).
key_topics: Topic tags e.g. ["DHIS2", "domain surveillance", "tracker design"].
session_id: Optional session identifier.
Inputs: decisions (required), summary, key_topics, session_id.
compare_profilesA
Compare two dataset profiles and produce a side-by-side diff.
Pass the JSON strings returned by profile_dataset() for the original
and cleaned files. Returns rows added/removed, columns added/removed,
null count changes per column, type changes, and a human-readable summary.
Args:
before_profile: JSON string from profile_dataset() on the original file.
after_profile: JSON string from profile_dataset() on the cleaned file.
Returns JSON with: row_delta, col_delta, column_diffs (nulls, dtypes),
duplicate_delta, and a human_summary string.
Inputs: before_profile (required), after_profile (required). Returns: result
configure_library_providerA
Configure the library provider for this Metis installation.
Call this during setup or when switching reference managers.
Args:
provider: "zotero" or "mendeley". Mendeley uses BibTeX export.
api_key: Zotero API key (from https://www.zotero.org/settings/keys).
user_id: Zotero numeric user ID (shown on the same settings page).
bibtex_path: For Mendeley: full path to exported .bib file.
Inputs: provider (required), api_key, user_id, bibtex_path. Returns: result
connect_project_folderA
Register all relevant files in a project folder so Metis can read them.
Walks the folder recursively and adds every file with a recognised extension
(.R, .Rmd, .md, .py, .js, .ts, .sql, .json, .yaml, .qmd, .tex, .csv) to
the tracked_files table. Call this once per project; after that, use
read_file() to read any individual file.
Args:
folder_path: Absolute path to the project root folder.
label: Short label for all files from this project (e.g. "MLM Course").
max_files: Safety limit — stop after registering this many files (default 200).
Inputs: folder_path (required), label, max_files. Returns: result
consolidate_reflexions_toolA
Distil recurring reflexion themes into semantic memory and prune working memory.
Runs the nightly self-improvement consolidation: every theme an agent raised
>= min_count times in the last `days` becomes a searchable semantic-memory
node (deduped), and working_memory older than 7 days is pruned. Idempotent.
Inputs: days, min_count. Returns: result
consolidate_session_memoryA
Scan recent agent runs and write structured memory entries for high-value work.
Reads the n most recent agent_runs, identifies runs with output files and
substantive task summaries, deduplicates against existing memory_entries,
and writes new entries to the DB + markdown files.
Args:
n_runs: Number of recent agent runs to review (default 20).
min_quality: 'high' = only runs with output files; 'all' = include run-only entries.
Inputs: n_runs, min_quality. Returns: result
create_knowledge_databaseA
Register a new custom knowledge database layer.
After creating, add PDFs to knowledge/library/<your-folder>/ and call
build_pdf_knowledge_db(database='<slug>') to index them.
Args:
slug: URL-safe identifier (e.g. 'dhis2-specialist', 'malaria-research').
name: Human-readable name (e.g. 'DHIS2 Specialist Knowledge').
description: What this database covers.
layer: Layer number (4+ for custom; built-ins use 1–3).
folders: List of library subfolder paths to include
(e.g. ['open-access-books/Health Informatics & DHIS2']).
Inputs: slug (required), name (required), description, layer, +1 more. Returns: result
create_projectA
Register a new project in the Metis platform.
Called when a researcher confirms they want a Claude conversation or project
tracked permanently in Metis. Creates the project record in the DB so it
appears in the Work tab and is available for task linking and memory search.
Args:
title: Human-readable project name, e.g. "Statistics Course".
description: What this project is about (one sentence).
domain: Research domain, e.g. "education", "epidemiology". Optional.
source: Origin — "claude_project" (default), "claude_cowork", or "manual".
Inputs: title (required), description, domain, source. Returns: result
create_project_fullA
Create a project with full Metis integration: DB record, CLAUDE.md, Claude Desktop.
This is the unified project creation tool used by all installers and the dashboard.
Args:
title: Project name.
folder_path: Absolute path to the project folder on disk.
category: User-defined category (e.g. 'Article', 'Grant', 'Teaching').
description: What this project is about. If empty and scan_type != 'none',
auto-detected from folder.
scan_type: 'names' | 'content' | 'none' — how to infer description from folder.
link_claude_desktop_auto: Write project to Claude Desktop config automatically.
Inputs: title (required), folder_path, category, description, +2 more. Returns: result
create_taskB
Create a new task in the SQLite database.
Args:
title: Short task description.
project_id: Which project this task belongs to.
owner: Who is responsible (default "Metis").
notes: Additional details or context.
due_date: Optional due date in YYYY-MM-DD format.
recurrence: Optional repeat — "daily", "weekly", "monthly", or "yearly".
When a recurring task is completed, the next occurrence is created automatically.
parent_task_id: Optional parent task — set this to make this a subtask.
Inputs: title (required), project_id (required), owner, notes, +3 more. Returns: result
cross_pollinateB
Find cross-domain connections for given text.
Searches library_seeded, meetings, news_briefs, and ideas tables
for related items. Returns top 5 with source type, title, and snippet.
Args:
content: Text to find cross-domain connections for.
Inputs: content (required). Returns: result
daily_noteA
Append to (or read) today's daily note — one rolling note per day.
Unlike add_journal_entry (which creates a new row each time), daily_note
keeps a single entry per calendar day and appends timestamped lines to it —
the Reflect/Tana "daily note" pattern for fast, low-friction capture.
Args:
text: Line to append. Leave empty to just read today's note so far.
Inputs: text. Returns: result
decrypt_backupA
Decrypt a .enc backup produced by encrypt_backup().
Reverses the format [8B magic][16B salt][12B nonce][ciphertext+tag]. Writes the
recovered .sqlite next to the .enc file (dropping the .enc suffix) unless
output_path is given. The passphrase is never stored. This is the counterpart
to encrypt_backup — without it, encrypted backups could not be restored.
Args:
enc_path: Path to the .enc encrypted backup.
passphrase: The passphrase used at encryption time.
output_path: Optional explicit destination for the decrypted file.
Returns JSON with out_path and the method used.
Inputs: enc_path (required), passphrase (required), output_path. Returns: result
delete_taskA
Permanently delete a task from the database.
The destructive complement to create_task — removes the task row entirely.
Use this for tasks created in error or no longer relevant; to instead mark
work finished (and continue a recurring series), use update_task with
status="done". Find the task_id with get_tasks. This cannot be undone.
Args:
task_id: ID of the task to delete (as shown by get_tasks). Required.
Returns:
A confirmation that the task was deleted, or a note if no task with that
id exists.
Inputs: task_id (required). Returns: result
detect_projectsA
Scan a folder for unregistered git repos and article folders.
Useful for onboarding — finds existing project folders that are not yet
tracked in Metis. Call create_project() for each item you want to register.
Args:
scan_path: Absolute path to scan. Defaults to the parent of METIS_RC_ROOT.
Inputs: scan_path. Returns: result
dhis2_metadataA
Query DHIS2 metadata with a simplified interface.
Convenience wrapper around dhis2_query() for common metadata lookups.
Args:
resource: Metadata resource type — e.g. "dataElements", "indicators",
"organisationUnits", "programs", "dataSets", "trackedEntityTypes".
filters: Filter expressions in DHIS2 format, e.g. ["name:ilike:malaria", "valueType:eq:NUMBER"].
fields: Comma-separated field list (default: "id,name,shortName").
paging: Set True to get only the first page (faster for large resources).
Examples:
dhis2_metadata("dataElements", ["name:ilike:HAT", "valueType:eq:INTEGER"])
dhis2_metadata("programs", fields="id,name,programType,trackedEntityType[id,name]")
dhis2_metadata("organisationUnits", ["level:eq:3"], fields="id,name,level,parent[id,name]")
Inputs: resource (required), filters, fields, paging. Returns: result
dhis2_queryA
Make an authenticated API call to the configured DHIS2 instance.
Returns the JSON response as formatted text. Use for live metadata
validation, data element lookup, indicator queries, and data quality checks.
Args:
endpoint: API path relative to /api/, e.g. "dataElements" or "organisationUnits.json".
If it does not start with "/api/", that prefix is added automatically.
params: Query parameters as a dict, e.g. {"fields": "id,name", "paging": "false"}.
method: HTTP method — "GET" (default), "POST", or "PUT".
body: Request body for POST/PUT (serialised to JSON).
Examples:
dhis2_query("dataElements", {"fields": "id,name,valueType", "paging": "false"})
dhis2_query("system/info")
dhis2_query("organisationUnits", {"filter": "level:eq:2", "fields": "id,name,level"})
Inputs: endpoint (required), params, method, body. Returns: result
diff_anonymizationA
Return a unified diff comparing original and anonymized text.
Args:
original: Original (pre-anonymization) text.
anonymized: Anonymized text from anonymize_text().
Returns a plain unified-diff string suitable for display.
Inputs: original (required), anonymized (required). Returns: result
discovery_introA
Return the tiny first-run orientation — the 3-5 highest-value capabilities.
Use ONCE for a brand-new user (or when they ask 'what can you do?'). After this,
rely on `next_discovery_tip` for the long tail. No-op (returns '') if the intro was
already given or tips are off.
Inputs: no named parameters. Returns: result
discovery_statusA
Report the discovery-tips state and a simple adoption read.
Tells you whether the just-in-time feature tips are on or off, the current
mode, any active snooze, and how many tips have been shown versus how many
of those features the user has since started using (adoption). Use it to
answer "are tips on?" or to sanity-check before changing them with
set_discovery_tips. Pairs with discovery_intro and next_discovery_tip.
Takes no arguments.
Returns:
A one-line text summary: on/off, mode, snooze note, shown count, and
how many shown features are now adopted.
Inputs: no named parameters. Returns: result
draft_self_improvement_proposal_toolA
Draft a skill-improvement proposal from recent reflexions (Phase 9b).
Reads themed reflexions for ``agent_slug``, appends a 'Self-improvement
notes' section to the agent's current skill.md, and queues the result in
``skill_improvement_proposals`` with status='draft'.
The draft is NOT applied. Use ``apply_proposal(id)`` to write it to disk.
Inputs: agent_slug (required), days. Returns: result
encrypt_backupA
AES-256-GCM encrypt a backup file.
Produces <backup_path>.enc. The passphrase is never stored.
Uses Python stdlib only (hashlib for key derivation, os.urandom for salt/nonce).
NOTE: This uses a simple PBKDF2+AES-GCM implementation.
For production-grade encryption, use a proper secrets manager.
Args:
backup_path: Full path to the .sqlite backup file.
passphrase: Encryption passphrase.
Returns JSON with enc_path and whether original was removed.
Inputs: backup_path (required), passphrase (required). Returns: result
end_spanA
Close an open span. Computes duration from start_ms to now.
Args:
span_id: The span_id returned by start_span().
status: 'ok' | 'error'. Default: 'ok'.
error: Error message if status='error'. Optional.
Returns a summary line: '{name} — {duration_ms}ms [{status}]'
Inputs: span_id (required), status, error. Returns: result
enrich_meeting_with_crossrefsA
Find cross-references for a saved meeting: open tasks, related papers, active projects.
Call this after saving a meeting transcript (via Meetings tab or
transcribe_recording()). It extracts key topics from the transcript,
matches them against tasks, library papers, and active projects, and
returns a structured cross-reference brief.
The result is also written to the meeting's notes field in the database
so it appears in the Meetings tab.
Args:
meeting_id: The meeting_id from the meetings table.
Returns:
Formatted cross-reference brief listing matched tasks, papers, and projects.
Inputs: meeting_id (required). Returns: result
export_citationsA
Export library references as a citation file (BibTeX).
Closes the "no citation-style export" gap: produces a .bib you can import
into Word (via Zotero/Mendeley), LaTeX/Overleaf, or any reference manager,
and use for cite-while-you-write.
Args:
query: Optional keyword filter over title/authors/journal. Empty = all.
tag: Optional tag filter (substring match on the tags field).
collection: Optional collection-name filter.
fmt: Output format — currently "bibtex" (RIS available via mine_references).
limit: Max records to export (default 500).
Writes the file to outputs/exports/ and returns its path + a preview.
Inputs: query, tag, collection, fmt, +1 more. Returns: result
extract_structuredA
Extract a structured, cited evidence brief on a topic from the PDF library.
Elicit-style structured extraction: runs a fixed question set over the indexed
library (PaperQA2) and assembles a markdown table — one row per field, each
answer carrying its citations. Useful for systematic-review scaffolding.
Args:
topic: The subject to extract on (e.g. "HAT passive screening sensitivity").
fields: Optional comma-separated fields to extract. Default set covers
population, design, sample size, outcome, finding, limitations.
scope: Which index to query ("default" or "ph_library"). Build it first
with index_library_pdfs().
Inputs: topic (required), fields, scope. Returns: result
find_connectionsA
Search library, meetings, and news for items related to given text.
Searches library_seeded, meetings, and news_briefs tables for related
content using keyword matching.
Args:
content: Text snippet to find connections for.
limit: Maximum results per source (default 5).
Inputs: content (required), limit. Returns: result
full_scanA
Run all Metis update scans in sequence and return a combined report.
Runs:
1. News feeds (RSS) — new items added to news_briefs
2. Literature folder — new PDFs registered in literature_metadata
3. Inbox — unprocessed items flagged
4. Tracked files — changed files reported
No LLM calls. Safe to run at any time.
Inputs: no named parameters. Returns: result
generate_daily_insightA
Assemble recent activity into context for the daily insight.
Gathers the raw material for a "what's happening across your research"
digest: the last 7 days of agent_runs summaries, last 3 days of high-signal
news_briefs, last 14 days of meeting titles, and last 7 days of new library
additions. It stores a placeholder row in daily_insights; the Metis agent
does the actual synthesis from the returned context. Read the stored result
later with get_daily_insight.
Takes no arguments.
Returns:
A text block of the assembled recent context (and the sources drawn on)
for the agent to synthesize into a daily insight.
Inputs: no named parameters. Returns: result
generate_handoff_brief_toolA
Generate a portable session handoff brief.
Captures: tokens used today, active projects, open tasks, recent agent
runs, and the most recent journal entry. Writes to
`metis/journal/YYYY-MM-DD_session_handoff_auto.md` and returns the brief.
Use this when a session is approaching its end, before `/clear`, or when
switching to another AI / device.
Inputs: session_id. Returns: result
generate_imageA
Generate an image using AI and save it to the PKM.
Saves to {pkm_root}/outputs/images/YYYY-MM-DD_[slug].png
Args:
prompt: Description of the image to generate.
backend: "gemini" (default) or "huggingface"
model: "flash" (gemini-3.1-flash-preview-image-generation),
"imagen" (imagen-4.0-generate-001),
"flux" (FLUX.1-schnell via HuggingFace)
width: Image width in pixels (default 1024).
height: Image height in pixels (default 1024).
output_filename: Optional custom filename (without extension).
Inputs: prompt (required), backend, model, width, +2 more. Returns: result
get_agent_contextA
Load an agent's system prompt and contract from the RC.
Reads system-prompt.md and contract.md from agents/{agent_slug}/.
If the agent is not found, lists all available agents.
Args:
agent_slug: Folder name of the agent (e.g. "archivist", "librarian").
Inputs: agent_slug (required). Returns: result
get_agent_runsA
Retrieve recent agent run history from the database.
Returns the log of past agent work — what ran, when, its status, and token
usage — for the dashboard or for reviewing recent activity. These rows are
written by log_agent_run. Results come back newest first.
Args:
limit: Maximum number of runs to return, newest first (default 10).
since: ISO date or datetime string; only runs at or after this time are
returned. Empty string (default) returns runs from all dates.
agent_slug: Filter to a single agent by slug, e.g. "librarian" or
"metis". Empty string (default) returns all agents.
Returns:
A text block listing the matching runs (run_id, agent, task summary,
status, timestamp, token counts, model).
Inputs: limit, since, agent_slug. Returns: result
get_backup_scheduleA
Return the current backup schedule configuration.
Inputs: no named parameters. Returns: result
get_brainstorm_sessionA
Retrieve all turns in a brainstorm session.
Args:
session_uuid: The session identifier returned by brainstorm_turn().
Inputs: session_uuid (required). Returns: result
get_consent_ledgerA
Retrieve recent consent events from the audit ledger.
Returns the data-handling consent trail — what data was approved or
classified, by which agent, and when — so you can review or report on how
sensitive data has been treated. Reads the consent_ledger that
log_consent_event writes to.
Args:
limit: Number of most recent ledger rows to return, newest first
(default 30).
Returns:
A JSON text block listing the consent events (id, timestamp, action,
data_classification, agent_slug, notes).
Inputs: limit. Returns: result
get_constitutionA
M5.7.3 — Load the Metis constitutional policy for agent context.
Returns a compact summary of behavioral rules appropriate for the
complexity level. Prepend to any agent's system context to enforce
shared policy across all agent types.
Args:
level: 'quick' | 'standard' | 'deep' | 'chain'
Inputs: level. Returns: result
get_contactsA
Retrieve all contacts from the contacts table.
Inputs: no named parameters. Returns: result
get_contextA
Recall relevant prior context within a token budget.
Progressive disclosure: returns more detail when budget allows.
≤ 500 tokens → index only (type + first 12 words per entry)
≤ 2000 tokens → preview (type + first 40 words)
> 2000 tokens → full (complete content)
Combines semantic vector search (if fastembed available) with keyword
fallback, filtered to the last `days` days.
Args:
query: What you are looking for — natural language.
budget_tokens: How many tokens you can spend on context (default 2000).
agent_slug: Restrict to a specific agent's observations (optional).
days: How far back to search (default 90 days).
Inputs: query (required), budget_tokens, agent_slug, days. Returns: result
get_course_statusA
Return the current status of a course build (or all active builds).
Args:
slug: Course slug. Leave empty to list all active builds.
Returns:
Status summary including current step, modules, and next action.
Inputs: slug. Returns: result
get_daily_insightA
Retrieve a stored daily insight.
Args:
date: Date in YYYY-MM-DD format. Empty = today.
Inputs: date. Returns: result
get_glossaryA
Retrieve all glossary terms.
Inputs: no named parameters. Returns: result
get_ideasA
List captured ideas from your knowledge base, newest first.
Use this to review what you've been thinking about over a chosen time
window — the ideas you logged with capture_idea — so you can revisit,
connect, or act on them. Pairs with capture_idea (to add) and
cross_pollinate (to surface related work).
Args:
scope: Time window to retrieve. One of "today", "week" (last 7 days),
"month" (last 30 days), or "all". Defaults to "week".
limit: Maximum number of ideas to return, newest first. Defaults to 20.
Returns:
A formatted list of matching ideas with their timestamps and tags, or a
friendly note if none were found in that window.
Inputs: scope, limit. Returns: result
get_journalA
List journal entries from your knowledge base, newest first.
Use this to look back over your dated journal/log entries — reflections,
progress notes, and session handoffs — optionally from a given start date.
Helpful for "what was I working on lately?" and for rebuilding context at
the start of a session.
Args:
date_from: Earliest entry date to include, as "YYYY-MM-DD". Empty
string (the default) applies no date filter and returns the most
recent entries.
limit: Maximum number of entries to return, newest first. Defaults to 10.
Returns:
A formatted list of journal entries with their dates, or a note if none
match.
Inputs: date_from, limit. Returns: result
get_library_statsA
Summarise your literature library at a glance.
Use this to see how big and how current your reference collection is before
searching or citing: it reports the total number of papers, a breakdown by
source (e.g. Zotero, Mendeley, manual) and by item type, the most recently
added references, and — if you sync Zotero — when the library was last
synced. A quick "what's in my library right now?" overview. Takes no
arguments. Pairs with search_library and sync_zotero_library.
Returns:
A formatted summary: total papers, counts by source and item type, the
five most recent references, and Zotero sync state if available.
Inputs: no named parameters. Returns: result
get_network_policyA
Return the current network access policy.
Returns 'normal' if no policy file exists (default).
Inputs: no named parameters. Returns: result
get_new_publicationsA
Retrieve new publications, optionally filtered by topic.
Args:
topic: Filter by topic tag. Empty = all topics.
limit: Maximum results (default 20).
unread_only: If True, only return unread publications (default True).
Inputs: topic, limit, unread_only. Returns: result
get_news_briefsA
Retrieve recent news briefs from the database.
Args:
limit: Maximum number of briefs to return (default 10).
source_type: Filter by type — "news" for RSS items, "article" for scientific papers. Empty = all.
domain: Filter by domain tag (e.g. "HAT", "AI", "public-health"). Empty = all.
since: ISO date string — only return briefs created after this date. Empty = all.
Inputs: limit, source_type, domain, since. Returns: result
get_pdf_index_statsA
Report indexing status and coverage for your PDF knowledge bases.
Use this to check how complete your RAG (retrieval) corpus is before
relying on grounded answers: it shows, per knowledge database, the document
and chunk counts, when it was last built, a domain breakdown, and which PDFs
are still un-indexed. A quick "is my library ready to answer questions?"
health check. Pairs with index_pdf_library (to index) and
search_pdf_knowledge (to query).
Args:
database: Slug of a single knowledge database to report on (e.g.
"ph-background"). Empty string (the default) reports on every
database.
Returns:
A formatted status report covering each database's counts, last-built
time, domain breakdown, and any un-indexed PDFs.
Inputs: database. Returns: result
get_pending_proposalsA
List all skill improvement proposals awaiting review.
Returns proposals sorted by most recent first, with agent slug, rationale, and a diff summary (first 200 chars of proposed content).
Inputs: no named parameters. Returns: result
get_project_categoriesA
Return all distinct project categories currently in use.
Lists the user-defined categories (e.g. "Article", "Grant", "Teaching")
that have been assigned to projects, so you can group projects or offer
an existing category before set_project_category invents a new one.
Takes no arguments.
Returns:
A text line listing the distinct non-empty categories in alphabetical
order, or a message that none are defined yet.
Inputs: no named parameters. Returns: result
get_project_statusA
Status of your registered projects.
Reads the project REGISTRY (the `projects` table — the source of truth that
the dashboard Work tab shows), not just the folders on disk, and adds task
completion counts. Empty project_id lists ALL active projects; a specific
project_id (exact or partial) shows that one, enriched from its folder card
if a `projects/active/<name>/` folder exists.
Args:
project_id: Project id (or part of one). Empty string = all active projects.
Inputs: project_id. Returns: result
get_research_contextA
Retrieve research project context from the PKM.
Gathers information about the research structure, articles, milestones,
and methods to help with research planning and writing.
Args:
section: What to retrieve -- "overview", "articles", "milestones", "methods".
max_chars: Maximum characters to return for file-based sections (default 8000).
Pass 0 for no limit.
Inputs: section, max_chars. Returns: result
get_spansA
Fetch recent agent spans, optionally filtered by session or run.
Args:
session_id: Filter to this session. Optional.
run_id: Filter to this agent_runs.run_id. Optional.
limit: Max rows to return. Default: 50.
Returns a JSON array of span objects.
Inputs: session_id, run_id, limit. Returns: result
get_tasksA
Query tasks from the SQLite database with optional filters.
Args:
status: Filter by status -- "open", "done", "blocked", or "" for all.
project_id: Filter by project. Empty = all projects.
owner: Filter by owner. Empty = all owners.
limit: Maximum results (default 25).
Inputs: status, project_id, owner, limit. Returns: result
get_thinking_profileA
Read and return the current thinking profile from system/thinking-profile.yaml.
Falls back to default structure if the file does not exist.
Inputs: no named parameters. Returns: result
get_topic_memoryA
Return all memory entries tagged with a specific topic, newest first.
Args:
topic: Topic tag to filter by (e.g. "metis-setup", "phd-research").
Inputs: topic (required). Returns: result
get_user_configA
Return the full Metis user configuration from user-config.yaml.
Returns the complete YAML content (research interests, data sensitivity,
specialist contexts, etc.). For a lightweight profile summary (name,
interests, news_topics), use get_user_profile() instead.
Creates the config file with defaults if it does not exist yet.
Inputs: no named parameters. Returns: result
get_user_profileA
Return the user's identity, interests, and active model preference.
Call this at the start of any personalised run to understand the user's
topics and news signals to prioritise.
Returns JSON with:
- display_name: user's display name (set via /metis_config)
- role: professional role (e.g. "Senior researcher")
- interests: list of research interest tags (e.g. ["your research area", "a method you use"])
- news_topics: list of news monitoring topics (e.g. ["a topic you follow", "AI in your field"])
- active_model: current default model slug (haiku / sonnet / opus)
Usage pattern:
profile = json.loads((await get_user_profile())[0].text)
interests = profile['interests'] # → ["your research area", "a method you use"]
news_topics = profile['news_topics'] # → ["a topic you follow", "AI in your field"]
Inputs: no named parameters. Returns: result
get_user_topicsA
Return all active topics from user_topics.
Inputs: no named parameters. Returns: result
get_working_memoryA
Retrieve working memory for a session, or the most recent entries if no session given.
Args:
session_id: Pipeline session ID. Leave empty to get the 20 most recent entries
across all sessions.
Inputs: session_id. Returns: result
import_bibtex_libraryA
Import papers from a BibTeX file into literature_metadata.
Use this for Mendeley users: export your library from Mendeley as BibTeX,
then point this tool at the file.
Args:
bibtex_path: Full path to the .bib file (e.g. from Mendeley export).
Inputs: bibtex_path (required). Returns: result
index_library_pdfsA
Build or rebuild a PaperQA2 index over the user's PDF library.
Walks knowledge/library/ (all subdirectories), collects PDFs, and indexes
them with PaperQA2 + Claude Haiku. The index is persisted so that
ask_library() can query it without re-reading every PDF.
Run once after adding new papers, or with force_reindex=True to rebuild.
Args:
force_reindex: Rebuild from scratch even if an index already exists.
topic_filter: If given, only index PDFs whose parent folder name
contains this string (e.g. "NTD", "Epidemiology", "Methods").
scope: Which library to index. "default" = knowledge/library/ (all PDFs).
"ph_library" = knowledge/library/ph-background/ (public health background).
Inputs: force_reindex, topic_filter, scope. Returns: result
index_pdf_libraryA
Extract and index full text from all PDFs in the Metis library.
Reads PDFs from inputs/literature/ and Zotero storage.
Stores first 4000 characters per paper in library_fulltext table.
Also updates literature_metadata.abstract for any matched papers.
Incremental — only processes files not yet indexed.
Args:
scope: "literature" = inputs/literature/ only | "zotero" = Zotero storage only | "all" = both
Inputs: scope. Returns: result
ingest_ideas_documentB
Import an ideas document (Word/text/markdown) and capture each idea.
Reads the file, splits it into discrete items (paragraphs, bullet points,
or numbered items), and calls capture_idea() for each non-empty item.
Supports .txt, .md, and .docx files.
Args:
file_path: Absolute or METIS_RC_ROOT-relative path to the ideas file.
Inputs: file_path (required). Returns: result
kg_communityA
Return the connected cluster around a given knowledge library note.
Performs BFS flood-fill from the given note up to `depth` hops,
returning all reachable notes grouped by distance. Useful for surfacing
related concepts when working on a specific topic.
Args:
note_path: Relative path from knowledge/library/ (e.g. 'disease-areas/[condition].md')
depth: Maximum hop distance to explore (default 2).
Inputs: note_path (required), depth. Returns: result
kg_pathsA
Find connection paths between two knowledge library notes via BFS.
Args:
from_path: Relative path from knowledge/library/ (e.g. 'concepts/elimination-framework.md')
to_path: Target note path.
max_hops: Maximum path length (default 4).
Returns all paths found up to max_hops, ranked by length.
Inputs: from_path (required), to_path (required), max_hops. Returns: result
link_claude_desktopB
Register a Metis project in Claude Desktop's project list.
Args:
project_id: The Metis project ID to register.
write_config: If True, write directly to Claude Desktop config.
If False, return instructions for manual setup.
Inputs: project_id (required), write_config. Returns: result
list_backupsA
List all backup files with size, age, and checksum availability.
Args:
backup_dir: Directory to scan. Defaults to metis/system/backups/.
Returns JSON array, newest first.
Inputs: backup_dir. Returns: result
list_basketA
List files in the Metis basket (legacy & inspiration documents).
The basket is a flat holding area for any document kept as a reference for future work. The private/ subfolder is NEVER listed — it contains personal or patient data.
Inputs: no named parameters. Returns: result
list_brainstorm_sessionsA
List recent brainstorm sessions with title, turn count, and status.
Args:
limit: Maximum sessions to return (default 20).
Inputs: limit. Returns: result
list_contextsA
List all user contexts (general + specialist) with active status.
Inputs: no named parameters. Returns: result
list_folderA
List files in a folder.
Args:
folder_path: Absolute path to the folder.
pattern: Glob pattern to filter files (e.g. "*.R", "*.md"). Default: all files.
Inputs: folder_path (required), pattern. Returns: result
list_generated_imagesA
List recently generated images in the PKM.
Reads from {pkm_root}/outputs/images/ directory.
Returns filename, date, and prompt (from JSON sidecar if present).
Args:
limit: Maximum number of images to return (default 20, newest first).
Inputs: limit. Returns: result
list_knowledge_databasesA
List all knowledge databases (layers) registered in Metis.
Shows built-in databases (PH background, HAT specialist, Epi methods) and any custom databases the user has created. Reports layer, document count, chunk count, and last build date.
Inputs: no named parameters. Returns: result
list_recent_memoryA
Return the n most recent memory entries (default 10).
Useful at the start of a session to recall what was last worked on.
Args:
n: Number of entries to return (default 10).
Inputs: n. Returns: result
list_recent_sessionsA
List the most recent session summaries, newest first.
Returns the rolling history of saved session summaries so you can pick up
where a previous conversation left off or review recent decisions and
topics. Each entry carries its summary, key topics, and decisions.
Complements search_session_memory (keyword search) and
save_session_summary (which writes these rows).
Args:
limit: Maximum number of summaries to return, most recent first
(default 20).
Returns:
A list of session-summary dicts (id, session_id, summary, key_topics,
decisions, created_at); a single-item list with an "error" key on failure.
Inputs: limit. Returns: result
list_research_entitiesA
List all entities in the research timeline with their claim count and last update.
Use this to get an overview of what topics have tracked beliefs, before
drilling into a specific entity with query_research_timeline().
Inputs: no named parameters. Returns: result
list_supported_formatsA
List supported dataset formats and installed library versions.
Returns a JSON object with supported extensions, read/write capabilities, and the versions of pandas, openpyxl, and pyreadstat installed.
Inputs: no named parameters. Returns: result
load_project_contextA
Load the full context block for a project — ready to paste into Claude.
Returns the project's context_doc, recent session history, and next step
formatted as a structured brief. Use this at the start of any work session
on a specific project so Claude has full background.
Args:
project_id: The project slug (e.g. "hat-dashboard", "article-1").
Inputs: project_id (required). Returns: result
log_agent_runA
Log a completed agent run to the database for audit and dashboard tracking.
Records that an agent did a piece of work so it appears in the dashboard's
Agents view and in get_agent_runs. Call it after writing an output file, per
the output contract. When a session_id is supplied it also writes a "result"
event to session_events, closing the loop for /metis pipeline calls.
Args:
agent_slug: Slug of the agent that performed the work (e.g. "librarian").
task_summary: Brief description of what the agent did.
input_path: Path to the input file(s), if any (default empty string).
output_path: Path to the output file(s) produced, if any (default empty).
complexity: The run status stored in the `status` column — typically
"completed", "partial", or "failed" (default "standard").
input_tokens: Input tokens consumed, for cost tracking (default 0).
output_tokens: Output tokens produced, for cost tracking (default 0).
model: Model identifier used, e.g. "claude-sonnet-4-6" (default empty).
session_id: Pipeline session ID from session_bootstrap(); when set, also
records a result event in session_events (default empty string).
Returns:
A confirmation message naming the agent and task that were logged.
Inputs: agent_slug (required), task_summary (required), input_path, output_path, +5 more. Returns: result
log_consent_eventA
Append a row to the consent_ledger table.
Call this whenever an agent processes data so there is an audit trail
of what was processed, when, and under what classification.
Args:
action: Short description — e.g. 'scan_document', 'anonymize_patient_data'.
data_classification: 'PUBLIC' | 'INTERNAL' | 'CONFIDENTIAL' | 'SENSITIVE'.
agent_slug: Which agent performed the action.
notes: Free-text context.
session_id: Current session identifier.
Inputs: action (required), data_classification, agent_slug, notes, +1 more. Returns: result
log_spanA
Record a completed span in one call (no separate start/end needed).
Useful for logging retrospective timing data (e.g. 'that DB query took 42ms').
Args:
name: Span label.
duration_ms: How long the work took in milliseconds.
kind: 'internal' | 'tool' | 'agent' | 'llm'. Default: 'internal'.
session_id: Session identifier. Optional.
run_id: FK to agent_runs. Optional.
parent_id: Parent span_id. Optional.
status: 'ok' | 'error'. Default: 'ok'.
tags: JSON string of metadata. Optional.
Returns the new span_id.
Inputs: name (required), duration_ms (required), kind, session_id, +4 more. Returns: result
mark_publications_readA
Mark new publications as read by their IDs.
Clears items from the "new publications" queue once the user has seen them,
stamping each with a read time so they stop resurfacing. Use the IDs
returned by get_new_publications.
Args:
ids: List of new_publications row IDs to mark as read; an empty list is
a no-op.
Returns:
A confirmation message with the count of publications marked as read.
Inputs: ids (required). Returns: result
memory_health_reportA
Generate a health report for the memory palace.
Returns: entry counts by type, topic coverage map, coverage gaps vs active
projects, duplicate candidates, and entries without output file provenance.
Inputs: no named parameters. Returns: result
metis_doctorA
Run a one-screen health check on Metis.
Verifies Python version, the SQLite database, the Anthropic API key, your
user-config.yaml, agent and skill folders, folder-rename hygiene, MCP
imports, and that `.env` is gitignored. Returns a structured report so the
dashboard or a CLI session can render it cleanly.
Use when:
- Something feels broken and you want a single command to triage.
- Just before publishing the repo, to catch hygiene issues.
- After a `git pull`, to confirm nothing regressed.
Inputs: no named parameters. Returns: result
mine_referencesA
Mine reference lists of specific articles.
Fetches references for one or more DOIs (comma-separated) via CrossRef,
checks against your Zotero library, and reports what's missing.
Args:
dois: Comma-separated list of DOIs to mine.
label: Optional label for the output file.
Inputs: dois (required), label. Returns: result
next_discovery_tipA
Return ONE earned, not-yet-shown feature tip for the current moment (or '').
Call at natural trigger moments (user starts a project, writes R code, builds a
library, asks a knowledge question, handles a dataset…). Pass `context` as
comma-separated trigger tags. Returns at most one tip — and ONLY for a feature the
user does NOT already use (earned discovery), respecting the off/snooze/power-user
settings and a frequency cap (≤1 tip / 20 min, ≤3 / day). Records it so it never
repeats. Returns '' when nothing should be shown. Weave the tip in naturally.
Args:
context: comma-separated trigger tags describing what the user is doing.
Inputs: context. Returns: result
_obsidian_vaultA
Resolve the configured Obsidian vault path, if one is set and valid.
Looks up the user's external Obsidian vault so note-indexing tools
(e.g. kg_index_notes) know where to read .md notes from. Checks the
METIS_OBSIDIAN_VAULT environment variable first, then the
integrations.obsidian_vault (or top-level obsidian_vault) key in
user-config.yaml.
Takes no arguments.
Returns:
A Path to the vault directory if it is configured and exists on disk,
otherwise None.
Inputs: no named parameters. Returns: result
probe_tool_resultA
M5.7.1 — Probe external tool result for injection patterns.
Call this before inserting any externally-sourced content into agent context:
web scrapes, RSS items, PDF extracts, YouTube transcripts, GitHub readmes.
Args:
content: The external content to probe.
source_label: Human-readable label for logging (e.g., "PubMed abstract", "RSS item").
Returns:
JSON with {probed_content, flagged, patterns_found}.
Inputs: content (required), source_label. Returns: result
profile_datasetA
Profile a tabular dataset: shape, dtypes, null %, unique counts, distributions.
Supports CSV, TSV, Excel (.xlsx/.xls), SPSS (.sav), Stata (.dta).
Performs PII column name scan before profiling (non-blocking, annotated).
Never modifies the source file.
Args:
path: Absolute local path to the dataset file.
sample_rows: If > 0, include this many rows as a data sample in the output.
Returns JSON with: path, rows, columns, null stats, duplicate count,
per-column profile (dtype, nulls, distributions or top values),
and any flagged PII column names.
Inputs: path (required), sample_rows. Returns: result
promote_basket_itemA
Move a basket item to a stable project folder (promote from basket to active storage).
Refuses to touch basket/private/ items.
Args:
source_path: Absolute path to the file in basket/ to promote.
target_path: Absolute destination path (file or folder).
Inputs: source_path (required), target_path (required). Returns: result
propose_library_organizationA
Cluster papers by topic and propose an AI-generated collection structure.
Uses abstracts and titles to embed papers, then clusters them with k-means.
Returns a proposed collection structure with suggested names and paper counts.
Args:
n_clusters: Number of topic clusters. 0 = auto-detect (sqrt of library size).
min_papers: Minimum papers per cluster to report (default 3).
Inputs: n_clusters, min_papers. Returns: result
propose_skill_improvementA
An agent proposes a change to its own skill file.
The proposal is queued for human review. The skill file is NOT modified
until the user calls approve_proposal().
Args:
agent_slug: The agent's slug (e.g. 'librarian', 'writing-partner')
proposed_content: The full proposed replacement content of the skill file
rationale: Why this change is being proposed (1–3 sentences)
Returns:
Confirmation with the proposal ID for the user to review
Inputs: agent_slug (required), proposed_content (required), rationale. Returns: result
publish_courseA
Finalise and publish a completed course build.
Marks the learning_courses row as 'active', sets progress to 0,
and writes a completion note. Call after all 7 steps are done.
Args:
slug: The course slug to publish.
Returns:
Confirmation with the course path and Learning tab link.
Inputs: slug (required). Returns: result
query_research_timelineA
Query the temporal evolution of research beliefs.
Returns all claims for an entity ordered by date, showing how thinking
evolved. Superseded claims (older beliefs you updated) are hidden by default
but can be shown to trace the full reasoning chain.
Args:
entity: Filter by entity name (partial match). Leave empty to see all
recent entries across all entities.
since_date: ISO date string (YYYY-MM-DD). Only show entries on or after
this date. Leave empty for all time.
show_superseded: If True, include claims that have been replaced by newer
ones. Default False — shows only the current belief for each topic.
Inputs: entity, since_date, show_superseded. Returns: result
read_fileA
Read the content of a file and return it as text.
Works for any text file: R scripts, markdown, Python, JSON, CSV, etc.
The file does not need to be pre-registered in tracked_files.
Args:
path: Absolute path to the file to read.
max_chars: Maximum characters to return (default 8000). For large files,
increase this or ask for a specific section.
Inputs: path (required), max_chars. Returns: result
record_dataset_treatmentB
Record one cleaning/transformation step for a dataset (its lineage).
Build a traceable chain raw → cleaned → analysis dataset, so any result can
be reproduced. Call once per step (recode, filter, join, derive, …).
Args:
dataset_name: The dataset being transformed.
description: What this step does (e.g. "drop records with missing age").
project_id: Project this belongs to. Optional.
step_type: recode | filter | join | derive | clean | other.
code: The code for this step, if any.
input_dataset: Dataset(s) this step consumes.
output_dataset: Dataset this step produces.
Inputs: dataset_name (required), description (required), project_id, step_type, +3 more. Returns: result
record_research_findingA
Record a timestamped research belief or finding about an entity.
Use this whenever you reach a conclusion, update a previous belief, or
encounter evidence that changes your view. The timeline preserves the full
chain of reasoning across sessions.
Args:
entity: What this claim is about. Use a consistent name across sessions
(e.g. "RDT sensitivity in low-burden areas", "Disease X elimination study",
"DHIS2 tracker performance").
claim: Your current belief or finding in 1-3 sentences.
evidence: What supports this claim — paper citation, data result, meeting
discussion. Brief reference is enough.
confidence: "low", "medium", or "high".
source_type: "session", "paper", "meeting", "data_analysis", "literature_review".
source_ref: Specific reference — DOI, file path, meeting date.
supersedes_id: If this replaces a previous claim, pass that claim's id.
Set to 0 if this is a new claim with no predecessor.
Inputs: entity (required), claim (required), evidence, confidence, +3 more. Returns: result
record_thinking_eventA
Record one signal about how you think and work, to personalise Metis.
Each event is a small piece of evidence — you acted on a brainstorm, rated
an idea highly, flagged an agent's output — that feeds your evolving
"thinking profile". Over time these signals let Metis tailor its routing,
suggestions, and tone to your preferences. Call it whenever a meaningful
preference moment occurs; read the accumulated profile with
get_thinking_profile.
Args:
event_type: The kind of signal. Must be one of: "brainstorm_acted_on",
"brainstorm_ignored", "idea_rated_high", "idea_linked_project",
"journal_revisited", "agent_output_accepted", "agent_output_flagged".
source_type: Domain or category the signal belongs to (e.g. "biology").
Optional; defaults to empty.
content_id: ID of the related content record (idea, journal entry, etc.)
if applicable. Optional; defaults to 0 (none).
agent_slug: Agent identifier this signal relates to, used for the
"agent_output_*" event types. Optional.
context: Free-text note giving context for the event. Optional.
Returns:
A confirmation that the signal was recorded, or an error listing the
valid event types if an invalid one was supplied.
Inputs: event_type (required), source_type, content_id, agent_slug, +1 more. Returns: result
register_code_artifactA
Save a script, snippet, reusable function or template to the Code Repository.
Use this whenever the user writes or shares code worth reusing, so it can be
found and rebuilt later. Capture as much reproducibility context as you can.
Args:
title: Short descriptive name (e.g. "INLA BYM2 spatial model setup").
code: The actual code.
language: r | python | sql | stata | shell | … (lowercase).
project_id: The project this belongs to (links it for reuse). Optional.
kind: script | snippet | function | template.
purpose: One line on what it does / when to use it.
tags: Comma-separated tags (e.g. "spatial,INLA,mapping").
file_path: Where the script lives on disk, if any.
packages: Dependencies / environment (e.g. "INLA 24.9, sf, dplyr").
params: Seeds, thresholds, hyperparameters used (for exact reproduction).
Inputs: title (required), code (required), language, project_id, +6 more. Returns: result
register_data_dictionaryA
Record a dataset's data dictionary — one stored entry per variable.
Captures each variable's name, type, label, unique values / factor levels,
and units so future analysis scripts reuse the exact same names and
treatments. Re-registering the same dataset is idempotent: it replaces the
previous dictionary for that dataset (matched on dataset_name + project_id).
Args:
dataset_name: Name of the dataset, e.g. "hat_cases_2015_2023".
variables: List of variable entries. Each entry may be a plain string
(the variable name) or an object with any of: name (required),
type, label, unique_values, units, notes. Entries without a name
are skipped.
project_id: Project this dataset belongs to (default empty string);
also part of the key used when replacing an existing dictionary.
dataset_path: Where the dataset lives on disk (default empty string).
Returns:
A confirmation message with the count of variables recorded for the
dataset, or an error if none were provided.
Inputs: dataset_name (required), variables (required), project_id, dataset_path. Returns: result
reject_proposalA
Reject a pending skill improvement proposal without applying it.
The skill file is not changed. The proposal is marked rejected with an
optional reason.
Args:
proposal_id: The numeric ID from get_pending_proposals()
reason: Optional note explaining why the proposal was rejected
Inputs: proposal_id (required), reason. Returns: result
remove_first_run_markerA
Delete the .first-run marker file to signal that the config wizard is complete.
Called at the end of the first-run wizard after all config files are written. Safe to call even if the marker does not exist.
Inputs: no named parameters. Returns: result
remove_library_itemA
Remove a library item from the Metis index, optionally deleting the file.
De-indexes a paper or document by deleting its row from library_seeded. By
default the file on disk is left untouched (index-only removal); set
delete_file=True to also delete the file, which is guarded so only paths
inside the PKM root can be removed. To hide rather than remove an item, use
archive_library_item instead.
Args:
relative_path: The relative_path primary key identifying the row in the
library_seeded table.
delete_file: If True, also delete the underlying file from disk (subject
to the within-PKM-root safety check); if False (default), only the
index row is removed.
Returns:
A confirmation message of what was removed, or a not-found / error
message if the item or table is missing.
Inputs: relative_path (required), delete_file. Returns: result
remove_projectA
Remove a project from Metis entirely.
Deletes project record and associated tasks from DB.
If delete_files=True, also deletes the external_path folder from disk
(only if path is within RC root — safety check enforced).
Args:
project_id: The project_id to remove.
delete_files: If True, delete the project folder from disk. Default False.
Inputs: project_id (required), delete_files. Returns: result
remove_tracked_fileA
Stop tracking a file so Metis no longer watches it for changes.
Removes a single file from the tracked-files list (the files the dashboard
Planning tab scans for activity). Use this when a file is no longer relevant
or was added by mistake. The file on disk is never touched — only its
tracking record is deleted. The inverse of add_tracked_file.
Args:
path: Absolute path of the file to stop tracking. Must match the path
exactly as it was registered.
Returns:
A confirmation that tracking stopped, or a note if the path was not in
the tracking list.
Inputs: path (required). Returns: result
reset_thinking_profileA
Clear all thinking_profile_events and reset thinking-profile.yaml to defaults.
This erases all recorded preference signals and restores the default profile.
Inputs: no named parameters. Returns: result
restore_dbA
Restore the Metis database from a backup.
Renames the current live database to <db>.pre-restore.<timestamp>
before overwriting, so you can recover if something goes wrong.
IMPORTANT: This overwrites the live database. All changes since the backup
was taken will be lost. The dashboard must be restarted after restore.
Args:
backup_path: Full path to the .sqlite backup to restore from.
confirm: Must be the string 'YES' to proceed.
Returns JSON with status and paths.
Inputs: backup_path (required), confirm. Returns: result
review_courseA
Step 6 — Run quality checks on a drafted course before publishing.
Checks:
- All lessons in lessons.json have a corresponding file on disk
- Each lesson file contains the required section headers
- No lessons are empty (< 200 chars)
- lessons.json is valid JSON with modules and lessons arrays
Returns a pass/fail report. Fix any failures before calling publish_course().
Args:
slug: The course slug to review.
Inputs: slug (required). Returns: result
run_metisA
Master /metis entry point — runs the 11-stage pipeline and returns a routing decision.
Every /metis invocation passes through here. The pipeline:
1. Bootstraps or resumes the session
2. Classifies content (PUBLIC/INTERNAL/CONFIDENTIAL/SENSITIVE)
3. Data Guardian: blocks SENSITIVE requests outright
4. Cybersecurity: blocks prompt injection and suspicious URLs
5. Parses intent and selects the appropriate agent(s)
6. Allocates model and token budget
7. Assembles minimum surgical context from memory
8. Persists the turn to session_events
9. Returns routing decision — agents execute and then call:
save_session_event(..., 'result', output)
log_agent_run(..., session_id=session_id)
write_reflexion(session_id, agent_slug, ...)
Stages 10 (logging) and 11 (reflexion) are called by the executing agent
after completing their work.
Args:
request: The researcher's request text.
session_id: Existing session ID if resuming. Leave empty to auto-bootstrap.
client: Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard').
max_turns: Maximum pipeline turns before graceful truncation (default 20).
Inputs: request (required), session_id, client, max_turns. Returns: result
save_brainstorm_outputA
Freeze a brainstorm session as a saved Markdown output.
Writes to outputs/brainstorms/<date>_<slug>.md and updates the
brainstorm_sessions table status to 'saved'.
Args:
session_uuid: The session identifier.
title: Short descriptive title for the brainstorm.
synthesis: The key insights and connections (Markdown-formatted).
action_items: Bullet-point action items or follow-up questions.
Inputs: session_uuid (required), title (required), synthesis (required), action_items. Returns: result
save_course_curriculumA
Step 4 — Save the approved curriculum design for a course.
Call this after the Learning Architect has produced the curriculum.
Pass a JSON object with ``modules`` (array) and ``lessons`` (array).
Writes to `knowledge/courses/{slug}/course.json` and advances to Step 5.
Args:
slug: The course slug.
curriculum_json: JSON object with ``modules`` and ``lessons`` arrays.
Inputs: slug (required), curriculum_json (required). Returns: result
save_course_outlineA
Save an approved course outline after Step 2 (Scope Plan).
Call this once the user has reviewed and approved the module outline.
Pass outline_json as a JSON array of module objects:
[{"module": 1, "title": "...", "bloom_level": "...", "hours": 2}, ...]
Args:
slug: The course slug returned by start_course_build()
outline_json: JSON array of module definitions
approved: Must be True to advance the build to Step 3 (Harvest)
Returns:
Confirmation and next-step instructions.
Inputs: slug (required), outline_json (required), approved. Returns: result
save_course_sourcesA
Step 3 — Save harvested source metadata for a course.
Call this after the Content Harvester has collected materials. Pass a
JSON array of source objects. Each source is written as a YAML file in
`knowledge/courses/{slug}/sources/` and the build advances to Step 4.
Args:
slug: The course slug.
sources: JSON array of source dicts — each must have at least a
``title`` and one of ``url``, ``file_path``, or ``doi``.
Example: '[{"title": "OpenIntro Stats", "url": "https://openintro.org/book/os/", "type": "textbook"}]'
Inputs: slug (required), sources (required). Returns: result
save_lesson_draftA
Step 5 of the course build — save one drafted lesson to disk.
Writes a single lesson's markdown into the course's lessons folder; call it
once per lesson during drafting. The content is validated and rejected
unless it contains all required sections, in order:
## Learning objectives, ## Prerequisites, ## Content (with ### Section N:
subsections), ## Summary, ## Exercises, ## Further reading. The filename is
derived from the lesson number and its title in lessons.json.
Args:
slug: The course slug; selects the
knowledge/courses/<slug>/lessons/ folder to write into.
lesson_id: The lesson id, which must match an id in lessons.json
(e.g. "lesson-01"); used to look up the title and build the filename.
content: The full markdown body of the lesson, including all required
sections listed above.
Returns:
A confirmation with the written file path, or a rejection message
listing the required sections that are missing.
Inputs: slug (required), lesson_id (required), content (required). Returns: result
save_reviewA
Save an agent's output as a review file and record the run.
This is the standard way a Metis agent persists its work: it writes the
markdown to outputs/reviews/{agent_slug}/{date}_{task_slug}.md and, by
default, logs the run so the dashboard's Agents tab tracks it. Use it at the
end of any substantive agent task so the result is filed and discoverable.
Args:
agent_slug: Slug of the agent that produced the review
(e.g. "epidemiologist", "writing-partner").
task_slug: Short kebab-case slug identifying the task; becomes part of
the filename (e.g. "article1-methodology").
content: The full review content as markdown.
log_run: Whether to also record this as an agent run for the dashboard.
Defaults to True.
Returns:
A confirmation with the path of the saved review file.
Inputs: agent_slug (required), task_slug (required), content (required), log_run. Returns: result
save_session_eventA
Stage 8: Persist one atomic event to session_events (write-through guarantee).
Call this after every tool call, file write, and classification decision.
Event types: 'turn' | 'tool_call' | 'result' | 'file_write' | 'redline' | 'classification'
Args:
session_id: Session ID from session_bootstrap().
event_type: Category of event being recorded.
content: Event content (truncated to 2000 chars).
Inputs: session_id (required), event_type (required), content (required). Returns: result
save_session_summaryA
Save a summary of the current session to persistent memory.
Call this at the end of any substantive session so future sessions can
recall what was discussed, decided, or built — the core of Metis's
cross-session continuity. The saved summary is searchable later via
search_session_memory and surfaces when you resume related work.
Args:
summary: A 2–5 sentence, plain-English summary of what happened this
session. Required.
key_topics: Optional list of short topic tags for retrieval
(e.g. ["phase-10", "APScheduler"]).
decisions: Optional list of key decisions made
(e.g. ["switched to AGPL-3.0"]).
session_id: Optional identifier used to group related summaries; if
omitted, the summary is stored on its own.
Returns:
A dict with the saved record's id and a confirmation status.
Inputs: summary (required), key_topics, decisions, session_id.
scaffold_scriptA
Assemble the raw material to write a NEW script from previous work.
Pulls the most relevant prior code, the project's dataset variables/paths,
and the cleaning steps — so you can write a new script in the user's own
conventions (same names, paths, packages). Call this, then write the script.
Args:
goal: What the new script should do.
project_id: The project to scaffold for (prioritised, then cross-project).
language: Target language (r, python, …).
Inputs: goal (required), project_id, language. Returns: result
scan_folder_for_intentA
Detect a project's purpose from its folder contents.
Args:
folder_path: Absolute path to the project folder.
scan_type: One of:
"names" — file/folder names only (fast, no content read)
"content" — reads README, CLAUDE.md, PLANNING.md (more accurate)
"none" — skip scan, return empty (user will describe manually)
Inputs: folder_path (required), scan_type. Returns: result
scan_inboxA
Scan the inbox/ folder and auto-transcribe any audio files to ideas.
Detects audio files (.m4a, .mp3, .wav, .ogg, .flac, .aac) and, when
auto_transcribe_audio=True (default), transcribes each one with faster-whisper
and captures the transcript as an idea. The audio file is moved to
inbox/processed/ after successful transcription.
Non-audio files are listed but left for manual review.
Args:
auto_transcribe_audio: When True (default), automatically transcribe
audio files found in the inbox. Set to False to just list them.
Inputs: auto_transcribe_audio. Returns: result
scan_literatureA
Scan inputs/literature/ for new PDFs and register them in literature_metadata.
Walks all subdirectories. Uses the parent folder name as a domain tag.
Deduplicates by title so running multiple times is safe.
Inputs: no named parameters. Returns: result
scan_newsA
Fetch RSS feeds and add new items to news_briefs.
Checks WHO outbreak news, CDC EID journal, PLOS NTDs, and Anthropic news.
Deduplicates by URL so running multiple times is safe.
Inputs: no named parameters. Returns: result
scan_openalexA
Scan OpenAlex for recent papers matching a query.
OpenAlex covers 474M papers including preprints. Free API, no key required.
Results are inserted into news_briefs with source_type='article'.
Args:
query: Free-text search query. Defaults to the query in user-preferences.json
(openalex_query field), then to your configured research topics from
user-config.yaml, then to a generic global-health fallback.
days_back: How many days back to search (default: 1).
max_results: Maximum papers to retrieve (default: 10).
Inputs: query, days_back, max_results. Returns: result
scan_project_folderA
Scan a project folder to detect work done since last scan.
Checks: git commits, modified files, todo completions, new documents.
Updates the project's scan_summary and last_scanned fields.
Also refreshes CLAUDE.md in the project folder.
Inputs: project_id (required). Returns: result
scan_pubmed_alertsA
Scan PubMed for recent papers matching a query.
Uses NCBI E-utilities (free, no API key required). Results are inserted
into news_briefs with source_type='article'. Safe to call daily from the
morning scan scheduler job.
Args:
query: PubMed search query. Defaults to the query in user-preferences.json
(pubmed_query field), then to your configured research field from
user-config.yaml, then to a generic global-health fallback.
reldate: Look back this many days (default: 1 = yesterday + today).
max_results: Maximum papers to retrieve (default: 15).
Inputs: query, reldate, max_results. Returns: result
scan_tracked_filesA
Scan all tracked files and report which have changed since last scan.
Reads tracked_files table, checks actual file modification times,
and updates last_scanned timestamps.
Inputs: no named parameters. Returns: result
search_code_repositoryB
Search the Code Repository for prior code, variables and treatments.
Finds reusable scripts/functions, dataset variables and cleaning steps that
match a query — e.g. "Poisson model offset" or "catastrophic expenditure".
Args:
query: What you're looking for.
project_id: Restrict to one project. Optional.
language: Restrict to a language (r, python, …). Optional.
Inputs: query (required), project_id, language. Returns: result
search_fulltextA
Full-text keyword search across all indexed PDFs.
Exact KEYWORD search across the full body text of your indexed PDFs. For
meaning-based (semantic/vector) PDF search use search_pdf_knowledge; for
reference metadata only use search_library.
Searches the library_fulltext table for papers containing your keywords.
More powerful than title/abstract search — finds methodological details
in the body of papers.
Args:
query: Keywords to search for, space-separated (words shorter than three
letters and common stop-words are ignored).
max_results: Maximum number of results to return (default 10).
Returns:
A single TextContent listing each matching paper's title (or filename)
with a highlighted snippet around the first matched keyword, or a
"no results" / "no usable keywords" message.
Inputs: query (required), max_results. Returns: result
search_libraryA
Search the local literature library for matching papers.
Searches your saved reference METADATA (title/authors/abstract/tags of papers
in your Zotero-synced + manual library). For meaning-based search inside PDF
body text use search_pdf_knowledge; for exact keyword search of PDF text use
search_fulltext; for an online/external literature lookup use search_literature.
Runs a substring search across the user's indexed references (Zotero-synced
plus manually added) so you can find what they already have before going to
the internet. Matches the query against title, authors, abstract, and tags,
returning the newest papers first. For richer literature workflows see
ask_library, search_literature, and export_citations.
Args:
query: Search terms matched as a substring against title, authors,
abstract, and tags.
limit: Maximum number of papers to return, ordered newest year first
(default 10).
Returns:
A formatted text list of matching papers (title, authors, year, journal,
DOI, abstract snippet), or a "no papers found" message.
Inputs: query (required), limit. Returns: result
search_literatureA
Search the user's literature database.
Searches your curated/seeded literature catalogue by structured facets
(disease, method, geography, keyword). For your Zotero/manual reference
metadata use search_library; for full PDF body text use search_fulltext;
for semantic RAG over indexed PDFs use search_pdf_knowledge.
Searches the library_seeded SQLite table. Use this to find papers
by disease focus, methodology, geography, or any keyword.
Args:
query: Search term, matched as a case-insensitive substring.
field: Column to search -- one of "all", "disease", "method",
"geography", or "article".
limit: Maximum number of results to return (default 20).
Returns:
A single TextContent holding a markdown table of matching rows from the
library_seeded table, or an error/"no results" message if the database,
table, or column is missing or nothing matches.
Inputs: query (required), field, limit. Returns: result
search_literature_extendedB
Search literature with optional inclusion of archived items.
Searches library_seeded table across basename, relevance_note, disease,
geography, method fields. By default excludes archived items.
Args:
query: Search term.
include_archived: Include items with status='archived'. Default False.
limit: Max results. Default 20.
Inputs: query (required), include_archived, limit. Returns: result
search_memoryA
Search the memory palace by keyword.
Looks across Metis's long-term memory to recall past context — what was
decided, found, or noted before. It searches the memory_entries table
(title, summary, topics) and also greps journal/**/*.md files on disk, so
both structured memory and freeform journal notes are covered.
Args:
query: Keyword or phrase to match against entry titles, summaries,
topics, and journal note text.
entry_type: Optional filter limiting results to one kind of entry —
"session", "journal", "idea", "decision", or "topic". Empty string
(default) searches all types.
Returns:
A text block of matching memory entries and journal hits, or a message
when nothing matches.
Inputs: query (required), entry_type. Returns: result
search_notesA
Search markdown notes across domains, projects, and library.
Case-insensitive substring search with surrounding context lines.
Args:
query: Search term.
scope: Where to search -- "all", "domains", "projects", "library".
limit: Maximum results (default 15).
max_chars_per_result: Truncate each result's context to this many characters (default 500).
Pass 0 for no truncation.
Inputs: query (required), scope, limit, max_chars_per_result. Returns: result
search_pdf_knowledgeA
Semantic search across one or more knowledge database layers.
Meaning-based (vector) search over your knowledge-base PDF chunks — the RAG
retrieval tool behind grounded, cited answers. For exact keyword matches use
search_fulltext; for reference metadata use search_library; for your own
notes/memory (not documents) use semantic_search.
Searches indexed PDF chunks using 768-dim nomic-embed vector similarity.
You can search a single layer or combine layers (e.g. PH background + HAT specialist).
Args:
query: Natural language question or keyword phrase to embed and match.
databases: List of database slugs to search; pass None (the default) to
search all indexed databases. Examples: ['ph-background'],
['hat-specialist', 'epi-methods'].
top_k: Number of results to return (default 8).
Returns:
A single TextContent listing the top-ranked PDF chunks (title, similarity
score, layer, domain, page, source file, and an excerpt), or a message if
nothing is indexed yet or no chunks match the requested databases.
Inputs: query (required), databases, top_k. Returns: result
search_session_memoryA
Search past session summaries for a topic or keyword.
Use this to recall what was discussed in previous sessions — e.g.
"what did we decide about the installer?" or "when did we build APScheduler?".
Args:
query: Keyword or phrase to search for.
limit: Maximum number of results to return (default 10).
Inputs: query (required), limit. Returns: result
semantic_searchA
Search across memory layers using vector similarity + keyword RRF fusion.
Searches your personal MEMORY layers (episodic/semantic/procedural — things
you or Metis recorded), NOT your document library. For documents/PDFs use
search_pdf_knowledge; for reference metadata use search_library.
Retrieval pipeline (M5.8):
1. Embed the query.
2. Run vector similarity search on each requested layer.
3. Run keyword LIKE search on each layer.
4. Fuse results using Reciprocal Rank Fusion (RRF, k=60).
5. Return top_k deduplicated results ranked by fused score.
Args:
query: Natural language search query to embed and keyword-match.
layers: Comma-separated memory layers to search, drawn from 'episodic',
'semantic', and 'procedural'.
top_k: Number of fused results to return (default 5).
Returns:
A single TextContent listing the top fused results (layer, title, score,
timestamp, and a content preview), or a "no results" / error message.
Inputs: query (required), layers, top_k. Returns: result
session_bootstrapA
Stage 1: Find or create a session for the current computer.
Checks for an active session (same computer, last active within 2 hours).
If found: resumes it and returns the last 5 events.
If not: creates a new session and seeds context from recent memory.
Args:
client: Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard').
Inputs: client. Returns: result
set_backup_scheduleA
Configure the nightly backup schedule.
The schedule is read by the scheduler (Phase 10) to trigger backup_db()
automatically. This tool only persists the configuration.
Args:
enabled: Whether automatic nightly backups are on.
time_utc: Time in HH:MM UTC to run the backup (e.g. '02:00').
keep_days: How many days of backups to retain (older ones deleted).
destination: Backup directory (defaults to metis/system/backups/).
Inputs: enabled, time_utc, keep_days, destination. Returns: result
set_discovery_tipsB
Adjust the feature-tips preference (the user's control).
Args:
enabled: True/False to turn tips on/off entirely.
power_user: True = expert mode (tips stay quiet); False = guided mode.
snooze_days: >0 to snooze ALL tips for N days ("remind me later").
Inputs: enabled, power_user, snooze_days. Returns: result
set_network_policyA
Set the current network access policy for all agents.
'strict' — No internet access. Only local DB, files, and MCP tools.
'normal' — Default. Librarian and News Radar may access allowed domains.
'offline' — Airplane mode. All external requests blocked.
Args:
policy: One of 'strict' | 'normal' | 'offline'.
Inputs: policy (required). Returns: result
set_project_categoryA
Assign or change a project's category.
Sets the grouping label on a project so it sorts with related work on the
dashboard. Call get_project_categories first to reuse an existing label
rather than creating a near-duplicate.
Args:
project_id: The project_id of the project to update.
category: The category label to assign (e.g. "Article", "Grant");
surrounding whitespace is trimmed.
Returns:
A confirmation message naming the category and project that were set.
Inputs: project_id (required), category (required). Returns: result
set_working_memoryA
Write a key/value pair to the current session's working memory.
Working memory is an ephemeral scratchpad — it persists for the session
but is not indexed for vector search. Use it for state that agents need
mid-pipeline (e.g. intermediate results, decisions made so far).
Args:
session_id: Pipeline session ID from session_bootstrap().
key: Variable name (e.g. 'current_article', 'user_intent').
value: Value to store (any string, JSON, or text).
Inputs: session_id (required), key (required), value (required). Returns: result
start_course_buildA
Start a new course build pipeline.
Creates a course record in the course_builds table, adds a placeholder
row to learning_courses (status='building'), and returns the intake
questionnaire for the user to complete.
Args:
topic: The subject or title of the course (e.g. "Multilevel models for epidemiologists")
target_audience: Who this course is for (e.g. "MPH students with basic R knowledge")
duration_hours: Estimated total course length in hours (0 = TBD)
notes: Any initial notes or constraints the user has mentioned
Returns:
Course ID, a brief confirmation, and the intake questionnaire.
Inputs: topic (required), target_audience, duration_hours, notes. Returns: result
start_spanA
Open a new tracing span. Returns the span_id to pass to end_span().
Args:
name: Human-readable span label (e.g. 'stage_1_bootstrap', 'tool:search_library').
kind: Span type — 'internal' | 'tool' | 'agent' | 'llm'. Default: 'internal'.
session_id: Session identifier (from session_bootstrap). Optional.
run_id: FK to agent_runs.run_id. Optional.
parent_id: Parent span_id for nested spans. Optional.
tags: JSON string of extra key/value metadata. Optional.
Returns the span_id string — pass it to end_span() when the work is done.
Inputs: name (required), kind, session_id, run_id, +2 more. Returns: result
store_episodic_memoryA
Store an event in episodic memory and index it for vector search.
Logs a time-stamped EVENT (something that happened) and indexes it for vector
search. For a distilled, timeless concept/definition use store_semantic_memory;
for a human-curated palace note use add_memory_entry.
Episodic memory is a chronological log of things that happened — ideas,
notes, papers read, tasks completed, agent runs.
Args:
content: The text content of the event to remember.
event_type: One of 'idea', 'note', 'task', 'paper', 'meeting', or
'agent_run'.
session_id: Current pipeline session ID (optional).
metadata: JSON string with extra fields such as title, tags, or source.
Returns:
A single TextContent confirming the stored event (its row id and type),
or an error message if the database is missing, fastembed is not
installed, or the write fails.
Inputs: content (required), event_type, session_id, metadata. Returns: result
store_procedural_memoryA
Store a successful workflow pattern in procedural memory.
Procedural memory captures 'how to do things' — repeatable processes,
workflows that worked well, or step-by-step patterns for recurring tasks.
Args:
procedure_name: Short name for this procedure (e.g. 'Domain literature search').
steps: Markdown-formatted steps for the procedure.
trigger_context: What situation should trigger using this procedure.
Inputs: procedure_name (required), steps (required), trigger_context. Returns: result
store_semantic_memoryA
Store a distilled knowledge node in semantic memory.
Stores a distilled CONCEPT/definition (timeless 'what I know'). For a
time-stamped event use store_episodic_memory; for a human-curated palace
note use add_memory_entry.
Semantic memory holds the 'what I know' layer — concepts, definitions,
and their relationships. Used by retrieval to surface relevant knowledge
without relying on raw event history.
Args:
concept: Short name for the concept, e.g. 'RDT sensitivity' or
'fAChE inhibition'.
definition: A one-to-three-sentence definition or explanation.
related_concepts: Comma-separated names of related concepts.
source_type: Where this came from: 'paper', 'note', 'idea', or
'user_defined'.
source_id: ID of the source record, e.g. a paper DOI or idea_id.
Returns:
A single TextContent confirming the stored node (its row id and concept
name), or an error message if the database is missing, fastembed is not
installed, or the write fails.
Inputs: concept (required), definition (required), related_concepts, source_type, +1 more. Returns: result
suggest_cleaningA
Profile a dataset and return specific recommended cleaning operations.
Analyses the profile and suggests operations with rationale, e.g.:
- "col 'age' has 12% nulls → consider fill_na or drop_na_rows"
- "7 duplicate rows detected → apply drop_duplicates"
- "col 'name ' has leading/trailing whitespace → apply strip_whitespace"
Args:
path: Absolute local path to the dataset file.
Returns JSON with profile summary and a list of suggested operations,
each with: operation, column (if applicable), rationale, priority (high/medium/low).
Inputs: path (required). Returns: result
surface_relevant_contextA
Retrieve past memory entries relevant to a topic and return a structured context brief.
Searches memory_entries by topic keyword and optional tag list, ranks by
relevance, and formats the top N entries for injection into the current
agent's working context.
Args:
topic: The topic or task description to search for.
tags: Optional comma-separated topic tags to include (e.g. 'methods,phd').
top_n: Maximum number of entries to return (default 5).
Inputs: topic (required), tags, top_n. Returns: result
sync_zotero_libraryA
Sync the Zotero library into Metis literature_metadata.
Performs an incremental sync by default — only fetches items changed since
the last sync. Pass full=True to re-sync everything.
Requires ZOTERO_API_KEY and ZOTERO_USER_ID in metis/system/.env.
Args:
full: If True, re-sync all items regardless of last sync state.
Inputs: full. Returns: result
toggle_contextA
Activate or deactivate a specialist context.
Args:
name: Context name to toggle (must exist in specialist_contexts).
active: True to activate, False to deactivate.
Inputs: name (required), active (required). Returns: result
transcribe_recordingA
Transcribe a meeting recording using Whisper.
Optionally applies speaker diarization with pyannote.audio if installed
and HF_TOKEN is set. Saves the transcript alongside the audio file and
updates the meetings table.
Args:
recording_id: The meeting_id from the meetings table (shown in Meetings tab)
Returns:
Transcript text (with speaker labels if diarization succeeded) and
the path where it was saved.
Inputs: recording_id (required). Returns: result
transcribe_voiceA
Transcribe an audio file or live mic recording and optionally capture the result.
Uses faster-whisper locally — entirely offline, no API calls, no data leaves
your machine. Supports MP3, WAV, M4A, OGG, FLAC, and most other audio formats.
Args:
audio_path: Path to an audio file to transcribe. Leave empty when using
record_seconds for live mic capture.
route_to: What to do with the transcript after transcription:
- "raw" → return the transcript text only (default)
- "idea" → capture as an idea with cross-pollination
- "journal" → add as a journal entry (mood + energy auto-extracted)
- "note" → append to today's voice-notes markdown file
record_seconds: Seconds to record from the microphone. Requires sounddevice
and numpy. Only used when audio_path is empty.
model_size: faster-whisper model size. Options: "tiny", "base", "small",
"medium", "large-v3". Defaults to METIS_WHISPER_MODEL env var,
or "base". Larger models are more accurate but slower to load.
Returns:
The transcript text and (if routed) confirmation of where it was saved.
Examples:
transcribe_voice(audio_path="/tmp/idea.m4a", route_to="idea")
transcribe_voice(audio_path="/tmp/reflection.mp3", route_to="journal")
transcribe_voice(audio_path="", record_seconds=30, route_to="idea")
transcribe_voice(audio_path="/tmp/note.wav", route_to="note")
Inputs: audio_path, route_to, record_seconds, model_size. Returns: result
unarchive_projectA
Restore an archived project to active status.
Args:
project_id: The project_id to restore.
Inputs: project_id (required). Returns: result
update_all_projectsA
Scan all registered project folders for activity. Refreshes CLAUDE.md for each.
Called by the dashboard Update button or on demand.
Inputs: no named parameters. Returns: result
update_contactA
Add or update a contact record.
Args:
name: Contact's full name (used as unique key).
notes: Notes about this contact.
role: Contact's role or affiliation.
birthday: Birthday in YYYY-MM-DD format.
Inputs: name (required), notes (required), role, birthday. Returns: result
update_project_memoryA
Append a session summary to a project's history and refresh its prompt memory.
Call this at the end of any work session on a project. The history feeds
into load_project_context() so future sessions automatically know what
happened before.
Args:
project_id: The project slug.
what_was_done: 1-3 sentence summary of what was accomplished this session.
next_steps: Optional: what needs to happen next. Updates the next_step field.
Inputs: project_id (required), what_was_done (required), next_steps. Returns: result
update_taskA
Update an existing task — its status, title, owner, notes, due date, or recurrence.
The companion to create_task and get_tasks: use this to mark a task done or
blocked, reschedule it, reassign it, or edit its details. Only the fields you
pass are changed; empty arguments leave the existing value untouched. Marking
a recurring task "done" automatically creates its next occurrence. Find a
task_id with get_tasks; use delete_task to remove a task entirely.
Args:
task_id: ID of the task to update (as shown by get_tasks). Required.
status: New status — "open", "done", or "blocked". Empty = unchanged.
title: New title. Empty = unchanged.
owner: New owner. Empty = unchanged.
notes: New notes/details. Empty = unchanged.
due_date: New due date in "YYYY-MM-DD" format. Empty = unchanged.
recurrence: New repeat — "daily", "weekly", "monthly", or "yearly".
Empty = unchanged; pass "none" to clear an existing recurrence.
Returns:
A confirmation listing the changed fields (and the next-occurrence id if a
recurring task was completed), or a note if the task_id was not found.
Inputs: task_id (required), status, title, owner, +3 more. Returns: result
update_thinking_profileA
Recompute and update the thinking profile from the last 90 days of events.
Computes:
- connection_preferences: acted-on rates per domain_pair (source_type)
- preferred_idea_sources: frequency of source_type in high-rated idea events
- agent_feedback: accepted/flagged rates per agent_slug
Writes updated system/thinking-profile.yaml. Safe to call multiple times.
Inputs: no named parameters. Returns: result
validate_pipeline_stageA
M5.7.4 — Validate a sub-agent output before passing to the next pipeline stage.
Treats sub-agent output with the same suspicion as external tool output.
Rejects if any required keys are missing or empty.
Args:
output_json: JSON string of the sub-agent output dict.
required_keys: Comma-separated list of required keys (e.g., "title,summary,agent_slug").
Inputs: output_json (required), required_keys (required). Returns: result
verify_backupA
Run SQLite integrity_check on a backup file.
Args:
backup_path: Full path to an unencrypted .sqlite backup.
Returns JSON with status ('ok' or errors) and table count.
Inputs: backup_path (required). Returns: result
write_reflexionA
Stage 11: Record an agent self-critique entry to the reflexion_log.
Called at the end of every agent run to capture experience: what worked,
what could be better, what context was missing, what tools were needed.
Entries are reviewed by the weekly Coach loop for self-improvement proposals.
Args:
session_id: Pipeline session ID from session_bootstrap().
agent_slug: Which agent is writing the reflexion (e.g. 'librarian').
went_well: What went well in this run (1–2 sentences).
could_improve: What could have been done better (1–2 sentences).
missing_context: What context or data was unavailable but needed.
tool_wishes: Tools or capabilities that would have helped.
Inputs: session_id (required), agent_slug (required), went_well, could_improve, +2 more. Returns: result
write_user_configA
Write the full user-config.yaml produced by the first-run config wizard.
Merges the provided YAML into the existing config so that specialist_contexts
and active_contexts set by earlier tools are preserved.
Args:
yaml_content: Complete YAML string as produced by the wizard (all sections).
Inputs: yaml_content (required). Returns: result
write_user_preferencesA
Write user-preferences.json produced by the first-run config wizard.
Merges the provided JSON into any existing preferences so incremental wizard
saves do not overwrite earlier sections.
Args:
json_content: JSON string with preference keys (news_topics, journals,
pubmed_query, openalex_query, theme, density, etc.).
Inputs: json_content (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 187 tools
With 187 tools covering many overlapping areas (e.g., multiple search tools for different scopes, multiple memory storage tools), it is difficult for an agent to distinguish between them despite detailed descriptions. The high number of similar-purpose tools leads to confusion and misselection.
Most tools follow a consistent verb_noun pattern (e.g., add_, get_, search_, store_, create_, update_), making navigation predictable. A few exceptions like _obsidian_vault, kg_community, and discovery_intro are minor deviations.
187 tools is an extremely large surface for any single server, far exceeding the recommended 3-15. This overwhelms agents and reduces the ability to select the right tool efficiently. The server would benefit from consolidation.
The tool set is remarkably comprehensive for a public health research assistant, covering projects, tasks, literature, datasets, code, memory, knowledge bases, course building, and many utilities. Minor gaps exist in social/collaboration features, but core functionality is well-covered.
Maintenance
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
PDF AI for your own documents: ask from any MCP client and get answers that cite the source.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA local-first MCP server that analyzes research papers, maps citation graphs, and surfaces insights with verbatim-verified contradictions, all while keeping data private on your machine.1MIT
- AlicenseNot gradedqualityCmaintenanceA local-first paper RAG server that enables searching and managing academic PDFs via MCP tools, supporting metadata enrichment and citation graphs.2MIT
- AlicenseNot gradedqualityDmaintenanceA local-first MCP server for building and querying PDF knowledge bases. It indexes PDFs into DuckDB and exposes evidence-grounded retrieval tools to separate corpus-backed answers from independent reasoning.3MIT
- FlicenseNot gradedqualityDmaintenanceA local-first, LLM-agnostic MCP server that lets you ask hard questions about your documents, media, and code, and get traceable answers entirely offline.-