AI tooling
I write a lot of code with AI agents (Claude Code and Codex, mostly). The interesting part isn't the prompting. It's the scaffolding that makes agents useful on a real, long-running project without breaking production: typed tools, review gates, memory, and humans in the loop where it matters.
Rules I keep coming back to: agents get typed tools, not raw SSH. Reads are free, writes ask first. Nothing an AI generates reaches a real user until a human has seen it.
Project memory: memoryctl
The piece that made the rest possible. A local CLI where agents and I record decisions, blockers and checkpoints, and every session starts by loading only the context for its task, with offline semantic search. It's how I built Sentinel alone across backend, ETL, NLU, mobile, web and infra: 799 items in 7 months, written by Codex, Claude and me. → read memoryctl.md
MCP servers I wrote
| server | for | what it does |
|---|---|---|
| mapa-ops | my agents | 14 tools to run the crime-map production box: deploy, health, logs, ETL status, data refreshes, read-only SQL. Any write needs explicit confirmation and a verification step. |
| habla-mucho teacher MCP | teachers' own AI | Stateless streamable HTTP with per-teacher tokens and rate limits. Their assistant validates and saves lesson drafts that the teacher reviews before anything reaches students. |
| teachers-assistant-ops | my agents | A plugin (MCP server + skill) for deploys, health checks and rollbacks on the Habla Mucho server. |
| finances | me + Claude/Codex | 11 tools over SSH into a live SQLite DB: balances, summaries, budgets, holdings. Used for monthly money check-ups. |
Skills
ux-review: drives the local app as a persona on iPhone/WebKit, Android and desktop, then reports friction ranked by severity. Has a focused mode (review this change) and an open mode (try to accomplish a goal).logic-review: a defect-first review of uncommitted work. It prefers a second model (Codex CLI) and falls back to a Claude reviewer agent, so code is never reviewed only by the model that wrote it.code-review: correctness review with severity filters and an optional fix pass.format-bcg/bcg-refresh: turned a slow editorial job into a pipeline (Class Central toolkit).server-operations: operational runbook packaged as a skill for the Habla Mucho ops plugin.
Agents
logic-reviewer: read-only, returns prioritised P0–P3 findings with a concrete failure scenario for each.security-auditor: adversarial static review covering OWASP Top 10, CWE, dependency CVEs, secrets and injection.red-team: boots the project locally and attacks the running app with real requests. A finding only counts if it was actually triggered. Loopback-only and non-destructive by design.commit-push: stages and writes Conventional Commits, so the main session stays focused.
On-device models
Not everything needs a frontier model. A set of slash commands sends quick jobs to local models through Ollama (Qwen 3, Gemma, Llama): /local-review, /local-security, /local-explain, /local-generate, /ask-local, /commit-msg. They're free and private, and the code never leaves the machine.
Workflow patterns
- Project memory with semantic search (memoryctl): decisions, blockers and findings live in a small store, embedded locally with multilingual-e5. Each session pulls only what its task needs instead of reading every note.
- Opt-in context: short
AGENTS.md/CLAUDE.mdfiles that point to topic notes, loaded only when relevant. - Lab CLIs as regression tests for fuzzy behaviour: replay a saved corpus through the classifier or the NLU before and after a change, and diff the results.
- Cross-model review gate before risky commits (ETL, SQL, migrations, assistant routing).
- Local-first AI where privacy matters: Whisper, e5 embeddings, Qwen TTS and Ollama all run on my own hardware.