AI in the real development workflow: MCP Servers, GGA and persistent memory with Engram
How I transformed a development team's workflow with custom MCP Servers, automated code review with GGA, and persistent memory across sessions with Engram. Real use cases, not theory.
The promise of AI in software development has been the same for years: "you'll code twice as fast". The reality is more nuanced. AI is only as powerful as the context you give it — and most teams give it none.
This post isn't about using AI. It's about integrating AI into a team's architecture in a way that scales, is reproducible, and generates real value beyond the individual developer.
The problem nobody names
When a developer uses an AI assistant for the first time, the experience feels magical. By day 30, they start noticing something: the AI remembers nothing.
It doesn't know how your project is structured. It doesn't know your conventions. It doesn't know that last week you decided to migrate from axios to fetch, or that the team agreed never to use any. Every session starts from zero.
The result: the AI generates code that needs correcting, that doesn't follow the project's patterns, that violates established conventions. Time-to-value drops, frustration rises, and the team concludes that "AI doesn't work for us".
The problem isn't the AI. It's the lack of persistent structural context.
MCP Servers: the context AI needs
The Model Context Protocol (MCP) is the standard that lets AI models connect to tools, data, and external systems in a standardised way. In practice: it's how you give the AI access to your world, not the generic world it was trained on.
An MCP Server is a process that exposes tools and resources. The AI can call those tools as if they were functions. Examples of what you can build:
- Codebase MCP: the AI can read your project's actual structure, search existing patterns before proposing a new one
- Internal documentation MCP: the AI has access to your RFCs, ADRs, and technical decisions
- Real-time data MCP: the AI queries your database, your metrics, your staging environment
- Internal tools MCP: the AI can create tickets in Linear, comment on PRs, query Figma
What's revolutionary isn't that the AI does more things. It's that the AI makes better decisions because it knows your specific context, not a generic one.
How it integrates at team level
The key to MCP Servers having team-wide impact is centralising them. An MCP server that only lives on one developer's machine is an individual improvement. An MCP server versioned in the repo, with configuration in CLAUDE.md or equivalent, is a systemic improvement.
# CLAUDE.md — instructions the AI reads at the start of every session
## Team conventions
- Atomic Design: atoms → molecules → organisms → templates
- No any, no as unknown
- Framer Motion variants always in lib/motion.ts
- Tests with Testing Library, never implementation details
## Available MCP Servers
- mcp-codebase: access to the file tree and existing patterns
- mcp-linear: create and update issues
- mcp-docs: query internal documentation
This isn't documentation that humans read. It's context the AI reads automatically before each task.
GGA: automated code review that knows your rules
GGA (Gentleman Guardian Angel) is a pre-commit hook that runs an AI code review before every commit, validating against your project's specific rules defined in AGENTS.md.
The difference from a classic linter: the AI understands intent, not just syntax. It can detect:
- Business logic leaking into a UI component
- A premature abstraction that violates YAGNI
- A pattern that breaks the project's hexagonal architecture
- A hardcoded string that should be in i18n
# AGENTS.md — rules GGA checks on every commit
## Architecture
- Container/Presentational: smart components never touch UI directly
- No business logic in UI components
- Animations live in lib/motion.ts, not inline
## TypeScript
- Strict mode always. No any, no as unknown as X
- Prefer type over interface unless extending
## What GGA should flag
- DOM manipulation outside hooks
- console.log in production
- Hardcoded strings that should be constants or i18n
- Components over 150 lines
- Known exceptions (document them in AGENTS.md)
The flow in practice: developer commits → GGA runs review → if there are violations, the commit doesn't go through and the developer sees exactly what and why. No blocked human review waiting; feedback is immediate.
The real impact
On our team, GGA reduced time spent on code review for style and architecture issues. Human reviewers can focus on business logic, edge cases, and product decisions — where human judgement is irreplaceable.
More importantly: GGA establishes an explicit technical contract. When someone new joins the team, the rules aren't in anyone's head — they're in AGENTS.md, executable and automatically verifiable.
Engram: persistent memory across sessions
The second problem with AI assistants is amnesia. Every session starts from zero. Every time you open a new conversation, you have to re-explain the context, decisions made, bugs fixed, patterns agreed on.
Engram is a persistent memory system that survives across sessions and context compactions. Its model is simple but powerful:
Memory types:
decision— why the team chose X over Ybugfix— what caused the bug and how it was resolvedpattern— established conventions and patternsdiscovery— something non-obvious about the codebasepreference— how the team works and what they prefer
mem_save({
title: "Migration to Zustand completed",
type: "decision",
content: `
What: Migrated from Redux to Zustand in the auth module
Why: Redux added boilerplate with no real benefit for local state
Where: src/stores/auth.ts
Learned: Redux's memoised selectors have no direct equivalent — use useMemo in consumers
`
})
In the next session, the AI can retrieve that memory:
mem_search("zustand auth migration")
→ Returns the full context of the decision
The result: the AI acts as a team member who remembers the project, not an external consultant who needs onboarding every time.
The complete workflow
Here's how it looks integrated:
1. Developer starts session
→ AI reads CLAUDE.md (conventions, available MCPs)
→ AI retrieves relevant memories via Engram
→ AI queries codebase via MCP to understand current context
2. Developer works with the AI
→ AI proposes code consistent with existing patterns
→ AI remembers previous team decisions
→ AI can create tickets, update docs via MCPs
3. Developer commits
→ GGA reviews against AGENTS.md
→ Commit blocked if there are violations
→ Immediate and actionable feedback
4. End of session
→ AI saves relevant memories via Engram
→ Decisions, bugs, patterns documented automatically
What this is not
It's not magic. It doesn't replace the team's technical judgement. It doesn't make architecture decisions on its own.
It's context infrastructure. It gives the AI the conditions to be genuinely useful — and that requires upfront investment: defining the rules in AGENTS.md, building the relevant MCP Servers, establishing what's worth saving in Engram.
The difference between a team that "uses AI" and a team that truly integrates it isn't the model. It's the invisible work of structuring context.
Where to start
If you want to implement any of this in your team:
- Start with
AGENTS.md— write down the rules that come up most frequently in your code reviews. That's what GGA will check. - Identify the 3 MCPs with the highest ROI for your specific context. They're almost always: internal documentation, codebase navigation, and your task management tool.
- Be consistent with Engram — the value comes from accumulation. One session without saving memories doesn't break anything; a month without saving is a missed opportunity.
The AI is only as good as the context you give it. Providing that context is engineering work, not prompting.