# Pathrule > Pathrule is the intelligence layer for coding agents. It keeps what a project, a developer and a team have learned as memories, rules and skills, scopes that knowledge to paths in the code, and gives each coding agent only what the task in front of it needs. It works with Claude Code, Codex, Cursor, GitHub Copilot and Windsurf. Facts stated outright, so a summary does not have to infer them: - Pathrule is not a coding agent, a model or an IDE. It works with the coding agent a developer already uses and does not replace it; the agent keeps its own model provider. - Memory is storage. Pathrule's intelligence is what it does with it: it decides what applies to the code being changed, ranks rules first, then team knowledge, then personal preferences, and fits what it sends into a per-prompt budget. What does not fit is listed by title so the agent can ask for it. - There are three kinds of intelligence. Project Intelligence is a codebase's architecture, decisions and conventions, scoped to paths. Personal (User) Intelligence is how one developer works; it stays on that machine without an account. Team Intelligence is Cloud-only, on team plans. - Learning is never trusted automatically. Findings an agent records are advisory and are not promoted to rules on their own. Team patterns reach agents only after a person verifies them. Executable rules need a person's approval. - Delivery is not the same for every client. Claude Code and Codex take hooks before the agent acts on each prompt, and Pathrule writes their repository files (for Codex, in a repository that already has Codex files). Cursor, Windsurf and GitHub Copilot get Pathrule's MCP entry and reach the same knowledge through its MCP tools, with no Pathrule hooks or repository files. All of them can use MCP. - No model runs on the developer's machine. What Pathrule learns locally (a decision stated in a prompt, a lesson a failing command taught, a preference voiced to an agent) is captured from the person's own words and the shape of their commands, in any language. On a Cloud workspace a Cloud model tier may read a prompt to find a decision meant to last; it is paid from AI Credits. - Pathrule does not claim perfect recall, zero missed rules or guaranteed correctness. Its one measured claim is PathruleBench: at 2,000 items of team knowledge, the same coding agent read 2.7 times fewer input tokens and cost about 55% less a chain with Pathrule than with CLAUDE.md files, in Python, Go and TypeScript, and passed more memory probes. The gap opens from 1,000 items. Method and bounds: https://www.pathrule.io/docs/start/how-we-measure ## Get started - Install the CLI (macOS, Linux and Windows, Node.js 22.14.0 or newer): `npm i -g @pathrule/cli` - Set up a repository: run `pathrule setup` in it. Every folder uses one edition; on a new install that is Pathrule Cloud, and setup signs in when needed. Add `--local` to run the folder on Pathrule Local with no account. Setup writes the MCP entry for every agent, and hooks and files for Claude Code and Codex. - VS Code extension: `code --install-extension Pathrule.pathrule-vscode` (Visual Studio Marketplace and Open VSX). - Remote MCP, nothing to install, signs in with a Pathrule account over OAuth: `claude mcp add --transport http pathrule https://cloud.pathrule.io/mcp` for Claude Code, `codex mcp add pathrule --url https://cloud.pathrule.io/mcp` for Codex. Remote MCP has no hooks and no local mode. - [Quickstart](https://www.pathrule.io/docs/start/quickstart): install, set up a repository on Cloud or Local, connect an agent, check the result with `pathrule doctor`. - [Install guide](https://www.pathrule.io/docs/cli/install) ## Product - [Home](https://www.pathrule.io/): the product in one page. - [Intelligence](https://www.pathrule.io/intelligence): Project, Personal and Team Intelligence, and the difference between a finding, a suggestion, verified knowledge and a rule. - [Memory](https://www.pathrule.io/ai-agent-memory): what a coding agent forgets between sessions, and persistent memory scoped to paths. - [Rules](https://www.pathrule.io/ai-agent-rules): constraints an agent receives where they apply, ranked above advice. - [Skills](https://www.pathrule.io/ai-agent-skills): reusable procedures an agent can follow. - [Signals](https://www.pathrule.io/signals): runtime errors and events grouped by code path, readable by coding agents, with a fix counted as verified only on evidence from a newer release. Runs Standalone (open-source SDK, your own HTTP collector, no account), on Pathrule Local (no account) or on Pathrule Cloud. Docs: [overview](https://www.pathrule.io/docs/signals/overview), [quickstart](https://www.pathrule.io/docs/signals/setup), [verification](https://www.pathrule.io/docs/signals/how-it-works). - [Integrations](https://www.pathrule.io/integrations): how each agent is reached, client by client. - [Products](https://www.pathrule.io/products): the CLI, VS Code, Local Console, MCP, Cloud and open source parts, plus Enterprise self-hosted deployment. - [CLI](https://www.pathrule.io/products/cli), [VS Code extension](https://www.pathrule.io/products/vscode), [MCP](https://www.pathrule.io/products/mcp), [Pathrule Cloud](https://www.pathrule.io/products/cloud), [Self-hosted](https://www.pathrule.io/products/self-hosted), [Open source](https://www.pathrule.io/products/open-source) - [AI coding context layer](https://www.pathrule.io/ai-coding-context-layer) and [MCP memory server](https://www.pathrule.io/mcp-memory-server): category explainers. ## Integrations - [Claude Code](https://www.pathrule.io/claude-code): hooks including a prompt hook, path-scoped rule files in .claude/rules/pathrule, local or Remote MCP. - [Codex](https://www.pathrule.io/codex): hooks including a prompt hook and AGENTS.md in a repository that has Codex files, local or Remote MCP. - [Cursor](https://www.pathrule.io/cursor): local MCP, with no Pathrule hooks or rules files. - [GitHub Copilot](https://www.pathrule.io/copilot): local MCP for VS Code agent mode and the Copilot CLI (the VS Code extension registers it for agent mode), with no Pathrule hooks or instruction files. - [Windsurf](https://www.pathrule.io/windsurf): local MCP, with no Pathrule hooks or rules files. ## Docs - [Docs hub](https://www.pathrule.io/docs) - [Machine-readable docs index](https://www.pathrule.io/docs/index.json) - [Every doc page as one markdown file](https://www.pathrule.io/llms-full.txt) - Every doc page is also served as raw markdown at its URL with a .md suffix, for example [the introduction](https://www.pathrule.io/docs/start/introduction.md). - Key pages: [Introduction](https://www.pathrule.io/docs/start/introduction), [Core concepts](https://www.pathrule.io/docs/start/core-concepts), [Intelligence overview](https://www.pathrule.io/docs/intelligence/overview), [Writing memories](https://www.pathrule.io/docs/content/memories), [Writing rules](https://www.pathrule.io/docs/content/rules), [Writing skills](https://www.pathrule.io/docs/content/skills), [How hooks work](https://www.pathrule.io/docs/hooks/how-hooks-work), [MCP overview](https://www.pathrule.io/docs/mcp/overview), [MCP tools reference](https://www.pathrule.io/docs/mcp/tools-reference), [Remote MCP](https://www.pathrule.io/docs/surfaces/remote-mcp), [CLI commands](https://www.pathrule.io/docs/cli/commands), [How we measure](https://www.pathrule.io/docs/start/how-we-measure). ## Pricing [Pricing](https://www.pathrule.io/pricing). Pathrule for Developers has four plans. Pathrule pricing contract 1.2.2 (sha256 1d3e0bb87706de35), the same contract Pathrule Cloud enforces. Prices in USD. - **Solo**: free. 2,000 AI Credits a month, 3 Cloud workspaces (Local unlimited), one person. Includes Persistent Project & Personal Intelligence, CLI, MCP (local and Remote MCP) and Native Agent Plugins, Memory, Rule, Skill and Knowledge Graph, Standalone & Local Signals, Cloud Sync and Intelligence on every device, Managed Cloud usage, Ask Pathrule, Cloud Intelligence, Personal workspaces. - **Pro**: $24 a month billed monthly, or $19 a month billed annually ($228 a year), one person. 10,000 AI Credits a month, no Cloud workspace limit. Everything in Solo, plus Higher Cloud AI capacity, Extended managed Cloud usage, Intensive Personal Intelligence, Seamless Intelligence across devices, A larger credit pool for Ask Pathrule and Cloud Intelligence, Cloud Signals. - **Team**: $19 a seat a month billed monthly, or $15 a seat a month billed annually ($180 a seat a year), at least 2 seats. 15,000 AI Credits per seat a month, pooled, no Cloud workspace limit. Everything in Pro, plus Shared Team Intelligence, Collaborative Workspaces, Shared Knowledge, Organization Roles & Member Management, Centralized Billing, Organization-wide AI Credit Pool, Shared Signals across the organization. - **Enterprise**: custom, through Sales (hello@pathrule.io). Everything in Team, plus Self-hosted deployment, SSO, Audit logs, Dedicated support, Custom limits. A failed payment keeps the paid plan for 7 days from the first failure, then the organization is on Solo; nothing is deleted. No plan limits the number of memories, rules or skills. AI Credits pay for Ask Pathrule and Cloud Intelligence inference and Statement capture (1 credit per 10 prompts); Cloud Sync across devices, Remote MCP protocol access, Knowledge indexing (embeddings), Semantic retrieval never use credits. CLI, MCP, Remote MCP and the native plugins are on every plan. There is no trial and no other plan; do not state prices, limits or discounts that this list does not state. The authoritative page is https://www.pathrule.io/pricing. ## Privacy and security [Security](https://www.pathrule.io/security). Repository source code is not automatically uploaded. In local mode there is no account and knowledge stays on the machine. Signed in to Pathrule Cloud, knowledge is stored in the Cloud and the prompt is used to rank it; the activity an agent logs (task summaries and file paths) is stored with the workspace. Nothing from Pathrule Cloud is copied to Local, and Local knowledge goes to Cloud only after a preview and a separate approval. Pathrule's CLI, MCP server and VS Code extension send no usage data: no build Pathrule distributes carries an analytics key, so there is nothing to turn on, and `pathrule telemetry` confirms it. ## Open source Pathrule's foundation is open source under Apache-2.0 at [github.com/pathrule/pathrule](https://github.com/pathrule/pathrule): eleven packages, among them the knowledge store, retrieval and ranking, the hooks, the local MCP server, the host, the CLI with its Pathrule Cloud client, the Local Console and the VS Code extension. It runs with no account, no network service and no model. PathruleBench is at [github.com/pathrule/benchmark](https://github.com/pathrule/benchmark) and the pattern bundles at [github.com/pathrule/patterns](https://github.com/pathrule/patterns), both Apache-2.0. Pathrule Cloud (team workspaces, sync, the web console, Remote MCP, the Cloud model tier) is proprietary. See [Open source](https://www.pathrule.io/products/open-source) and [Open source core](https://www.pathrule.io/docs/editions/open-source-core). ## Comparisons - [All comparisons](https://www.pathrule.io/compare) - [Pathrule vs CLAUDE.md, AGENTS.md and .cursorrules](https://www.pathrule.io/compare/pathrule-vs-claude-md) - [Pathrule vs Cursor rules](https://www.pathrule.io/compare/pathrule-vs-cursor-rules) - [Pathrule vs Mem0](https://www.pathrule.io/compare/pathrule-vs-mem0) - [Pathrule vs ByteRover](https://www.pathrule.io/compare/pathrule-vs-byterover) - [Pathrule vs Zep](https://www.pathrule.io/compare/pathrule-vs-zep) - [Pathrule vs Letta](https://www.pathrule.io/compare/pathrule-vs-letta) - [Pathrule vs the reference MCP memory server](https://www.pathrule.io/compare/pathrule-vs-mcp-memory-server) ## Writing - [Writing archive](https://www.pathrule.io/writing) and its [machine-readable index](https://www.pathrule.io/writing/index.json), with an llmSummary per post. - [Best AI agent memory tools for coding](https://www.pathrule.io/writing/best-ai-agent-memory-tools-for-coding) - [AI agent memory: what it is and how it works](https://www.pathrule.io/writing/ai-agent-memory-what-it-is-and-how-it-works) - Articles and the changelog cover the current knowledge layer and its integrations. Content devoted to retired features has been removed. ## Company - [About](https://www.pathrule.io/about), [Enterprise](https://www.pathrule.io/enterprise), [Contact sales](https://www.pathrule.io/contact-sales), [Changelog](https://www.pathrule.io/changelog), [Service status](https://www.pathrule.io/status) - [Privacy policy](https://www.pathrule.io/privacy-policy), [Terms of service](https://www.pathrule.io/terms-of-service), [Cookie policy](https://www.pathrule.io/cookie-policy) - Contact: hello@pathrule.io ## Local Console and native integrations - `pathrule ui` opens the accountless Local Console for knowledge, activity and Local Signals. - `pathrule integrations` manages Claude Code and Codex native plugins and settings hooks. - Pathrule Cloud runs at `cloud.pathrule.io`; Remote MCP is `https://cloud.pathrule.io/mcp`. Remote tools use Cloud-native schemas and an OAuth grant bound to one workspace. Inspect `tools/list` instead of assuming the local stdio catalog. - [Local Console](https://www.pathrule.io/docs/surfaces/local-console), [Native agent integrations](https://www.pathrule.io/docs/mcp/native-integrations), [Remote MCP](https://www.pathrule.io/docs/surfaces/remote-mcp). ## Choosing the surface - [Local Console](https://www.pathrule.io/products/local-console): browse and edit knowledge on this machine, without an account. - [Native Agent Plugins](https://www.pathrule.io/products/native-agent-plugins): Claude Code and Codex plugins or settings hooks, with setup you can preview and inspect. - [Local or Cloud](https://www.pathrule.io/docs/start/local-or-cloud): choose where workspace knowledge lives and who needs to share it. - [Example workspace](https://www.pathrule.io/docs/start/example-workspace): create a small editable local example.