Field notes on AI coding context.
Field notes on AI coding assistants, team memory, token cost, security, and path-scoped context.
These are working notes, not announcements. Each one usually starts with a problem a team hit with an AI coding assistant — a rule that got ignored, context that did not survive a session, a stack convention the agent kept guessing wrong — and ends with the smallest durable fix we found.
We publish them in the open because the failure shapes are shared. CLAUDE.md, Cursor rules, AGENTS.md, and Copilot instructions tend to hit the same ceiling, and the way past it is the same idea: scoped context, delivered where the work actually happens.
What a Pathrule Pattern Is, and Why It Is Not a Skill
A pattern is not a single skill or rule. It is a small, opinionated bundle of memories, rules, and skills for one topic, each piece pre-scoped to the path it belongs to. Here is what that buys you and why the unit is bigger than a file.
Secure-by-Default Scaffolding for AI Coding Agents
A coding agent writes the first draft now, and the easy default is almost always the insecure one. Here is how a security pattern puts the secure default in front of the agent before it writes a single line.
One Import Token, Scoped Across Your Tree
Sharing conventions usually means pasting a long file at the root. A pattern is imported with one token that expands into scoped pieces, each placed at the path it applies to. Here is why that difference matters.
Why a Context Layer Should Have an Open Core
The engine that decides what an AI agent sees on every run is too important to be a black box. Here is the case for keeping that core open, local, and inspectable, while the team layer stays separate.
Where Your AI Context Layer Should Be Allowed to Run
For regulated and security-reviewed teams, the hard question about a context layer is not only what it stores. It is where it runs and who controls the data. Here is how to think about that line.
Context Engineering vs Prompt Engineering: What Actually Changed
Prompt engineering tunes the question. Context engineering decides what the model sees before it answers. Here is the difference, why it matters for coding agents, and how teams put it into practice.
What Is the Model Context Protocol (MCP) and Why Teams Use It
MCP is the open standard that lets AI assistants talk to external tools and data sources. Here is what it is, how clients and servers fit together, and where a team context layer plugs in.
Managing AI Coding Context in a Monorepo
A monorepo holds many projects under one root, which is exactly where a single AI instruction file breaks. Here is how to scope context per package so the assistant gets the right rules for the folder it is in.
GitHub Copilot Custom Instructions: What They Cover and Where They Stop
Copilot custom instructions let teams steer suggestions with a repository file. Here is what they do well, where they hit limits, and how a path-scoped layer extends them.
Why AI Coding Assistants Forget Your Codebase Between Sessions
AI coding assistants are stateless. Each new session starts from zero. Here is what actually persists, what does not, and how teams keep context across sessions.
How to Share Claude Code Memory Across a Team
Claude Code stores memory per project and per user by default. Here is how teams actually share that knowledge: what CLAUDE.md covers, where it stops, and what fills the gap.
Claude Code Hooks vs CLAUDE.md: Where Enforcement Lives
CLAUDE.md is advisory. Hooks are deterministic. Here is the practical split, why teams should use both, and where a path-scoped knowledge layer fits.
Why Claude Code Skills Do Not Activate
Skills look like they install cleanly and then quietly do nothing. Here is why SKILL.md often fails to activate and what a working delivery path looks like.
Why Cursor Rules Get Silently Ignored
Cursor rules look loaded and then quietly do nothing. Here is what breaks, what to check first, and how a path-scoped layer keeps rules visible at the moment they matter.
Why Claude Code Ignores CLAUDE.md
CLAUDE.md is guidance, not enforcement. Learn why AI coding assistants skip long instruction files and how hooks plus path-scoped rules close the gap.
AGENTS.md vs Pathrule: When Each One Makes Sense
AGENTS.md gives AI coding agents one predictable file. Pathrule keeps it short by routing the right team knowledge slice per session.
Context Is a Team Interface, Not a Prompt File
A practical argument for treating AI context as shared team infrastructure, not another prompt file to maintain by hand.
Why AI Coding Assistants Need Scoped Rules
Rules for AI coding assistants work best when they are attached to the files and folders where they actually apply.
The Cost of Rediscovering Your Own Codebase
AI coding sessions often waste time and tokens rebuilding knowledge the team already has. Scoped context changes the first move.
From Tribal Knowledge to Reviewable Memory
Teams can make AI coding safer by turning scattered project knowledge into visible, scoped, reviewable memory.
A Practical Model for Safer AI Coding Workflows
Safer AI coding starts with explicit boundaries, scoped rules, reviewable memory, and a clear source-code privacy line.
Why Global AI Instructions Break Down at Team Scale
Global AI instruction files start helpful, then lose signal as teams add more paths, exceptions, and local constraints.
Just-in-Time Context for AI Coding Agents
AI coding agents work better when relevant team knowledge arrives before the first useful action, not after a search loop.
Memory, Rules, and Skills: Three Kinds of Team Knowledge
Pathrule separates team knowledge into memories, rules, and skills so AI coding assistants receive the right kind of context.
How Stale Team Knowledge Creates AI Mistakes
AI coding assistants can inherit stale assumptions when team knowledge is not reviewed, repaired, or retired over time.
One Knowledge Layer for Claude Code, Cursor, and Codex
Teams should not have to rewrite the same AI guidance for every coding assistant. Pathrule gives shared knowledge one home.
Design Rules Should Travel With the Work, Not the Tool
Design consistency is easier to keep when AI coding tools receive the same scoped product and interface rules.
Team Memory Should Not Change When AI Tools Do
Teams should be able to switch between AI coding tools without rewriting the knowledge that keeps work consistent.
Audit Trails for AI Coding: What Changed, Who, and Why
An audit trail for AI coding shows who changed a rule, memory, or skill, when, and why. Here is why the context your assistants act on deserves the same review and history as code.
Pathrule Stores Team Knowledge, Not Source Code
Pathrule is built around a narrow privacy boundary: store the knowledge teams choose to write down, not their repository source.
Small Teams Should Build a Context Layer Early
Small teams feel AI context problems early. Capturing knowledge before the team grows keeps onboarding, review, and AI work calmer.
More Context Is Not Always Better for AI Assistants
AI assistants do not need every fact at once. They need the right context, at the right depth, for the task in front of them.
A Real History Test: 30x-50x Lower Context Cost
A real Pathrule history query showed how scoped prior work can avoid broad local search and reduce tool-output token cost.