Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.
Index the codebase
pmb index project . # scan files + symbols for project-aware recallpmb track modules # one-line "what this file does" per filepmb track changes # summarise the INTENT of new commits (the "why")pmb track install # run track changes automatically after each commit
The agent reads this back with the project_structure(name) MCP tool -
languages, files grouped by directory (purpose + symbol count), key modules,
and recent change intents - no filesystem scan.
Index PDFs
pmb index pdf paper.pdf # extract + chunk + embedpmb index pdf ~/docs --recurse # a whole directory
Import existing history
Bring memory from elsewhere and rebuild the graph after:
pmb import chatgpt ~/Downloads/conversations.jsonpmb import claude export.jsonpmb import markdown ~/notes/ # an Obsidian vaultpmb import mem0 export.json
Keep imported third-party histories in a separate workspace until you trust
the resulting facts and lessons - see Privacy & security.
Capture as you go
pmb note "decided to use Postgres for JSONB" --pinpmb learn "always run make fmt before committing"pmb watch ~/notes/daily.md # auto-capture new paragraphs
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PMB","description":"Local-first memory for your AI coding agent.","colors":{"primary":"#8B7FF0","light":"#B4ABF6","dark":"#8B7FF0"},"logo":{"light":"https://mintcdn.com/pmb/mr_bke8PucsYmgyO/logo/black.svg?fit=max\u0026auto=format\u0026n=mr_bke8PucsYmgyO\u0026q=85\u0026s=74f4ced3e9042bec547930d100de37cd","dark":"https://mintcdn.com/pmb/mr_bke8PucsYmgyO/logo/white.svg?fit=max\u0026auto=format\u0026n=mr_bke8PucsYmgyO\u0026q=85\u0026s=ed01398560995d21dfd3053a2a12e039","href":"https://github.com/oleksiijko/pmb"},"favicon":"https://mintcdn.com/pmb/mr_bke8PucsYmgyO/favicon.svg?fit=max\u0026auto=format\u0026n=mr_bke8PucsYmgyO\u0026q=85\u0026s=bc706a4621611232ee19223ce0a3911d","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://github.com/oleksiijko/pmb","label":"GitHub"}],"primary":{"type":"button","label":"Get started","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/oleksiijko/pmb","linkedin":"https://www.linkedin.com/in/oleksiijko"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pmb","hasAudioNarration":false,"actualSubdomain":"pmb","customDomains":["docs.pmbai.dev"],"gitSource":{"type":"github","owner":"oleksiijko","repo":"pmb","deployBranch":"main","contentDirectory":"mintlify","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af4ec2bd439b7330d169659","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"CLI reference","count":6},{"language":"default","tag":"Contributing","count":3},{"language":"default","tag":"Get started","count":2},{"language":"default","tag":"MCP \u0026 agents","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/ingest","slug":"/guides/ingest","pageMetadata":{"title":"Ingest your project","description":"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.","icon":"file-import","href":"/guides/ingest"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`index-the-codebase`,children:`Index the codebase`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` index`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` project`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # scan files + symbols for project-aware recall`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` track`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` modules`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # one-line \"what this file does\" per file`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` track`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` changes`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # summarise the INTENT of new commits (the \"why\")`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` track`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # run track changes automatically after each commit`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`The agent reads this back with the `,_jsx(_components.code,{children:`project_structure(name)`}),` MCP tool -\nlanguages, files grouped by directory (purpose + symbol count), key modules,\nand recent change intents - no filesystem scan.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`index-pdfs`,children:`Index PDFs`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` index`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pdf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` paper.pdf`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # extract + chunk + embed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` index`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pdf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/docs`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --recurse`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # a whole directory`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`import-existing-history`,children:`Import existing history`}),`\n`,_jsx(_components.p,{children:`Bring memory from elsewhere and rebuild the graph after:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` chatgpt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/Downloads/conversations.json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` export.json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` markdown`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/notes/`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # an Obsidian vault`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mem0`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` export.json`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Keep imported third-party histories in a `,_jsx(_components.strong,{children:`separate workspace`}),` until you trust\nthe resulting facts and lessons - see `,_jsx(_components.a,{href:`/concepts/privacy-and-security`,children:`Privacy \u0026 security`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`capture-as-you-go`,children:`Capture as you go`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` note`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"decided to use Postgres for JSONB\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --pin`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` learn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"always run make fmt before committing\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pmb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` watch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/notes/daily.md`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # auto-capture new paragraphs`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Ingest your project","description":"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.","icon":"file-import","href":"/guides/ingest"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Index the codebase","slug":"index-the-codebase","depth":2,"children":[]},{"title":"Index PDFs","slug":"index-pdfs","depth":2,"children":[]},{"title":"Import existing history","slug":"import-existing-history","depth":2,"children":[]},{"title":"Capture as you go","slug":"capture-as-you-go","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pmb","siteName":"PMB","title":"Ingest your project - PMB","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-26T01:48:04.285Z","originalFileLocation":"guides/ingest.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PMB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ingest your project - PMB\">\u003cmeta data-mint-head property=\"og:description\" content=\"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PMB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pmbai.dev/guides/ingest\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pmb.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Ingest+your+project\u0026amp;description=Feed+PMB+your+codebase%2C+PDFs%2C+and+existing+chat+history+-+so+the+agent+starts+informed.\u0026amp;theme=7ffdbd196ec83c7b031635aa\u0026amp;signature=dec75e79975994c22cc4818eae36ed3c15b6d1852ac579df76fcc00edd673727\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ingest your project - PMB\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pmb.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Ingest+your+project\u0026amp;description=Feed+PMB+your+codebase%2C+PDFs%2C+and+existing+chat+history+-+so+the+agent+starts+informed.\u0026amp;theme=7ffdbd196ec83c7b031635aa\u0026amp;signature=dec75e79975994c22cc4818eae36ed3c15b6d1852ac579df76fcc00edd673727\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pmb/w2ty8WWRQzNl_jG8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PMB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B7FF0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pmbai.dev/guides/ingest\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/ingest.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pmbai.dev/#organization\",\"name\":\"PMB\",\"url\":\"https://docs.pmbai.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pmb/mr_bke8PucsYmgyO/logo/black.svg?fit=max\u0026auto=format\u0026n=mr_bke8PucsYmgyO\u0026q=85\u0026s=74f4ced3e9042bec547930d100de37cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pmbai.dev#website\",\"name\":\"PMB\",\"url\":\"https://docs.pmbai.dev\",\"publisher\":{\"@id\":\"https://docs.pmbai.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pmbai.dev/guides/ingest#webpage\",\"url\":\"https://docs.pmbai.dev/guides/ingest\",\"name\":\"Ingest your project\",\"description\":\"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\",\"dateModified\":\"2026-06-26T01:48:04.285Z\",\"isPartOf\":{\"@id\":\"https://docs.pmbai.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pmbai.dev/guides/ingest#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pmbai.dev/guides/ingest#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.pmbai.dev/guides/connect\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ingest your project\",\"item\":\"https://docs.pmbai.dev/guides/ingest\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pmbai.dev/guides/ingest#article\",\"headline\":\"Ingest your project\",\"name\":\"Ingest your project\",\"description\":\"Feed PMB your codebase, PDFs, and existing chat history - so the agent starts informed.\",\"url\":\"https://docs.pmbai.dev/guides/ingest\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pmbai.dev/guides/ingest#webpage\"},\"dateModified\":\"2026-06-26T01:48:04.285Z\",\"publisher\":{\"@id\":\"https://docs.pmbai.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pmbai.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PMB\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PMB\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/ingest.md","siteName":"PMB","nav":{"global":null,"groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"PMB","icon":"house","href":"/introduction"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"Connect your agent","description":"Wire PMB into Claude Code, Cursor, Codex and others - one command, then just talk to your agent.","icon":"plug","href":"/guides/connect"},{"title":"Ingest your project","icon":"file-import","href":"/guides/ingest"},{"title":"The dashboard","description":"A local web UI over everything PMB captured - your memory as a live graph and timeline.","icon":"chart-network","href":"/guides/dashboard"},{"title":"Deleting memories","icon":"trash","href":"/guides/deleting-memories"},{"title":"Team \u0026 sync","icon":"users","href":"/guides/team"},{"title":"Ollama \u0026 offline LLM","icon":"robot","href":"/guides/ollama"},{"title":"Troubleshooting","icon":"wrench","href":"/guides/troubleshooting"}]},{"group":"Concepts","icon":"brain","pages":[{"title":"How it works","icon":"gears","href":"/concepts/how-it-works"},{"title":"Memory model","icon":"layer-group","href":"/concepts/memory-model"},{"title":"Core engine","icon":"microchip","href":"/concepts/core-engine"},{"title":"Architecture","icon":"sitemap","href":"/concepts/architecture"},{"title":"Does PMB actually help?","icon":"chart-line","href":"/concepts/measuring-impact"},{"title":"Privacy \u0026 security","icon":"shield-halved","href":"/concepts/privacy-and-security"}]},{"group":"CLI reference","icon":"terminal","pages":[{"title":"Setup \u0026 connect","icon":"plug","href":"/reference/cli/setup-connect"},{"title":"Capture \u0026 track","icon":"pen","href":"/reference/cli/write"},{"title":"Recall \u0026 explore","icon":"magnifying-glass","href":"/reference/cli/read"},{"title":"Manage, sync \u0026 backup","icon":"box-archive","href":"/reference/cli/manage"},{"title":"Hooks \u0026 ambient memory","icon":"wand-magic-sparkles","href":"/reference/cli/hooks"},{"title":"Config, UI \u0026 maintenance","icon":"sliders","href":"/reference/cli/config"}]},{"group":"MCP \u0026 agents","icon":"plug","pages":[{"title":"Agents \u0026 MCP tools","icon":"plug","href":"/reference/mcp-tools"},{"title":"Configuration","icon":"sliders","href":"/reference/configuration"}]},{"group":"Contributing","icon":"code-pull-request","pages":[{"title":"Contributing","icon":"code-pull-request","href":"/contributing/contributing"},{"title":"Adding a language","icon":"language","href":"/contributing/adding-a-language"},{"title":"Roadmap","icon":"map","href":"/contributing/roadmap"}]}]},"basePath":"","title":"Ingest your project - PMB","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}