Scaling human expertise

Most agree that AI will change knowledge work. Almost no one shows what that looks like in a real, complicated workflow. Here is one: an actuarial risk-scoring job that takes a human days, run autonomously by an AI agent in under an hour, guided by encoded expertise with guardrails, governance, and observability.

I made a post yesterday about replacing tools, agents, and software with an encoded expertise layer that you can use with any AI agent. I believe that this encoded human expertise will ultimately be the differentiator for any individual and firm in the AI era.

But what does it all even mean? There is a ton to unpack in the two sentences above. I've been making a series of posts around this topic. I think it might be helpful to bring it all together in one place and ground my thoughts and opinions using a detailed example. I see a lot of general "thought leadership" posts and articles on what Large Language Models (LLMs) might mean for knowledge work. Invariably they are light on specifics and rarely get close to describing what any of this actually looks like in professional practice.

The workflow

Let me make it concrete. I'll choose a workflow I'm familiar with, but the exact same concepts apply to any knowledge work flow. Here I describe an actuarial healthcare risk assessment workflow.

Overall objective:

Risk score the Medical Expenditure Panel Survey (MEPS) database, so I can do some interesting analyses. MEPS does not come with any risk scores.

Details of the workflow:

  • Set up my workspace. I like a certain folder structure for my work.
  • Download latest ACA risk adjustment model, unzip it, review the files, make any necessary adjustments to file paths etc., set it up for analytics
  • MEPS has a whole bunch of data limitations that make risk scoring very difficult, sort through all that and configure the model to work with it
  • Run linear regressions to re-calibrate the Hierarchical Condition Category (HCC) model to be specific to MEPS data, inspect the coefficient results for statistical significance and other tests.
  • Risk score and test the results for reasonableness in a comprehensive way. These are tests like the percentage of members that are medical and/or pharmacy claimants, the number of diagnosis codes that are mapped to HCCs, overall PMPM cost levels, and other reasonability tests.
  • Re-invent work, not the wheel. This workflow should be smart enough to create scripting artifacts and data tables the first time if these don't exist, and then re-use and improve on them later. Same goes for any existing code assets.
  • Provide me with email updates at critical points of the entire workflow, with a summary at the end.
  • Have detailed guardrails, governance, follow all data permissions and company policies, have detailed audit-logs and crucially, a log of the decision paths taken by the agent as it navigates my encoded expertise.

You can't simply take this list and give it to ChatGPT, Claude Code, Cursor, etc. No matter how expensive of a model you use or how many tokens you burn or max, giving an LLM agent the detailed task list above is not going to accomplish the healthcare risk assessment workflow. And even if you get something resembling a plausible output, and chances are you might, running it repeatedly will get you wildly unpredictable results - destroying reproducibility and therefore any practical value of this work. I've already demonstrated this in earlier posts detailing my empirical findings in this area. Here are a few: AI Agents are Not Enough, The Flat Document Problem, When Context Contradicts Itself, Reproducibility is Not Optional, and Inconsistency is the Real Failure.

So what do you do?

The first step is encoding your expertise in a way that an agent can faithfully follow, but not in a way that suffocates the creativity of the agent. We aren't giving an LLM agent a prescriptive if-then-else pathway, just broad important decision-points and context that reflects our experience, judgment, expertise, taste, etc. For example, take something as simple as checking healthcare data for reasonability. You ask 5 actuaries, you will get a list of things to check that will be similar, but not the same. Maybe one would emphasize missing data elements, maybe another would be more concerned about appropriateness of the data for the problem at hand, or the time period of analysis, or completeness of data, or what reasonable ranges for the various data checks look like. How they assess data for reasonableness reflects their training, apprenticeship, experience, expertise, their own curiosity and biases, and so on.

And all this is just on a simple question. As you progress to more difficult questions around risk assessment, if you ask 5 actuaries you will get 8 different answers. Joking aside, these differences and variations in professional expertise and opinion are not an indictment; they are the value and represent differentiation. And we need a great way to preserve and present this information for the LLM to leverage.

In other words, human expertise encoded as composable decision trees guiding the AI agent of your choice. I realized around April of this year that the Model Context Protocol (MCP) is perfect for this vision. The AI industry thought, and still thinks, that MCP is just a "data connection" protocol. That is true, but it is a lot more. I wanted to fully explore the idea of encoding human expertise as a decision tree that any LLM can easily consume and act on. Sort of an ideal marriage of the deterministic strengths of the expert systems of the 80s, with the creativity of transformer-based LLMs of the 2020s. That's how I ended up building MCP for X.

Here is a snapshot of part of the decision tree. You can click on a node to view/edit the instructions.

Part of the MEPS risk adjustment decision tree in MCP for X

Here is the full decision tree should you wish to explore: the MEPS risk adjustment expertise

Encoding the expertise is perhaps the most important human part of this chain. MCP for X makes it easy by having my agent review my prior work and automatically draft a decision tree. Always easier to edit something than create it from scratch. But it is crucially important that I spend time with it and add as much of my distilled experience and expertise into it - just like I would if training a highly capable analyst. This is the work that truly matters in the AI era.

Running the expertise is easy. I simply ask my agent to run the "MEPS risk adjustment expertise" or whatever I name it. And off it goes.

An expertise can be run using any agent of my choice (in this case, Claude Code, but it could be Cursor, Codex, Opencode, etc.). While it can run on the web-only platforms like ChatGPT and Claude, those are conversational chat interfaces and can't actually complete work on your data and your files that sit on your computer or network, or run heavy-duty Python, SQL etc.

Let me also expand on this point, as I've made a lot of posts on this topic. It is crucially important to separate your expertise layer from your LLM agent. You don't want to get locked in with any LLM or inference provider or agent harness, for a plethora of very good reasons (cost, model quality, availability, version pinning, local models, data privacy, the list goes on and on). So nothing special about my choice of Claude Code here, except that I have a subscription to it at the moment. MCP for X works with any agent harness, including and especially open-source / free ones.

Soon after invoking my expertise, I start getting email updates.

Email updates from MCP for X as the workflow progresses

If everything works well, my MEPS data in my local SQL instance on my laptop should be all risk scored, reviewed, and ready to go. To recap, this expertise downloads the risk adjustment model from CCIIO website, sets up work folder structure, adapts the model to work with MEPS, re-calculates the HCC model coefficients to be specific to MEPS by doing constrained regression modeling, does data checks to see if data is ready to go, runs reasonability tests post-risk scoring, and if everything goes well, risk scores the data and produces a summary in a way that is repeatable and to my specifications.

This is not a casual workflow, and takes time to execute. In human terms, this workflow will take days, not hours. It is fully autonomous, but sometimes things go wrong. For example, my Claude Code stopped responding and required me to type "continue". So, more babysitting than anything else, and sometimes you have to nudge it. It could ask clarifying questions as well if something about my expertise is unclear.

After a while I get an email from MCP for X that data reasonability tests failed. The workflow is stopped/paused. The email contains a detailed account of why it failed.

Turns out that this failure was a limitation of my expertise encoding. I had it flag if common HCCs don't have any members flagged (i.e., all 0). The guardrail worked, but in this case the 3-digit diagnosis codes inside MEPS means that some conditions (e.g. certain condition HCC severities) don't get flagged. And this is also why the re-calibration step is important.

This illustrates the importance of guard-railing MCP-execution (i.e., workflow stops when your expertise calls for it), and also why the expertise is important in the first place (i.e., re-calibration step is needed given MEPS data, which the LLM agent wouldn't come up with...I tested this). And also why it should be easy and intuitive to adjust the expertise as you test on real data, because you will need to do it often.

One can easily update the expertise visually by editing the decision tree. But the neat thing is that MCP for X is bi-directional, and you can simply ask your agent to add the learnings into the expertise as we go, closing the feedback loop. In this case I agreed with the agent's recommendation on how to handle it, and directed it to update my decision tree as well so any subsequent runs benefit from the learnings.

The agent proceeded to risk score, normalize, and produce an infographic summary of the entire workflow. End-to-end, with 2 minimal interventions as I discussed, in under an hour.

Here is a high level summary of having an AI agent run through a complicated assignment autonomously while using encoded human judgment.

Infographic summary of the autonomous risk scoring run

Here is the full output: claude.ai/artifact/Q3UbvoRvcMGag23qKmptvA

I thought this was an interesting exercise, and I found more support for my conviction that human expertise and judgment isn't going anywhere. I used an expensive frontier model, yet left to its own devices (without human expertise via MCP) it made basic errors that any health actuary would catch. For example, it got confused between the ACA and the Medicare HCC models, mixing and matching logic and code between the two. It also didn't understand what "normalizing risk score" meant, which to be fair is poorly named on our part as actuaries. It's re-scaling rather than z-score scaling. But that is also the point. Our industry terms mean something among our ranks, even if they take some statistical license, and we want the workflow to understand and execute on them.

When connected to MCP for X, it also made brilliant suggestions to improve the expertise. Only someone with sufficient professional experience would be able to know what is a great insight and what is not. And all that distillation feeds back into the encoded decision paths - so that we have guided and governed autonomous agent execution for future runs with predictable results.

Of course, this isn't about actuarial risk assessment. This is a blueprint demonstrating how any complex knowledge work can be handled with high determinism, judgment, transparency, and traceability.

Speaking of which, this is what a transparent, intuitive, visual audit log looks like. We can see the path the agent took through a decision tree, and click at each step of the workflow to see the agent's thought process, narrative, and execution details.

MCP for X visual audit log showing the agent's path through the decision tree

Let's recap. I've just described how a highly complicated workflow can be automated with the help of LLMs. We can't write a script for this like traditional automation before the LLM era. Even if you could write such a script that worked across a tech-stack 4 layers deep - it would be incredibly brittle and maintaining it would be next to impossible. This is the reason we gave up on expert systems in the 80s. However we can guide the LLM via a decision tree, adjusting the level of prescriptiveness - allowing the expertise to work across datasets and over time and in a way that is self-improving.

I'm not describing a replacing, but a scaling of human expertise. While a human expert or team could serve X workflows in a week or month, now they can complete 10X or more.

Thoughts & motivations

Let me explain why and how I ended up with the overall approach above.

Any AI agent I use for professional work must broadly follow my expertise. This part is obvious to me, but it's surprising how little it is discussed. To me this is the key determinant of what AI future awaits us. We have frontier labs and startups marketing AI agents for this or that, pre-loaded with necessary context and scaffolding and marketed to domains such as law, accounting, actuarial, etc.

But if the idea is that a tuned AI agent can replace our judgment and expertise and do our tasks end-to-end, then anyone or anything can press that button. We don't need the credentialed professional.

Let's not kid ourselves. You don't try to get valued at $2 trillion if labor-replacement isn't part of the thesis. And highly educated and deeply credentialed labor is where the payroll concentrates.

I admittedly have a human-centric bias. One might say "who doesn't?", and one might be surprised. Plenty of people, organizational leadership and investors would be very happy to have (and press) a button that could replace expensive human experts.

Happy to report that we are nowhere close to having such a button, and I have good reasons to suspect that we won't be, at least for many years. These reasons are the failure modes that I've documented in my experiments with LLMs where I've tried to give them complex work (links above). Even as the models get superhuman on general tasking, their training data and their post-training behavior doesn't capture the way you do things, the way you process information, your experience, judgment, decision-making, taste, etc.

Here is the thing to note. Your clients, whether internal or external, want your work product today. They will want it tomorrow, and a generic or niche agent that your competitor (or your client) can subscribe to as well, ain't it!

Your customers and clients would want you to use the latest and greatest tools and AI, but they will want you to sign off on the results. As I wrote recently, the bulk of value used to be in having answers. It is shifting dramatically to asking the right set of questions that matter to those that consume your work, and you can't easily disintermediate millennia of evolution that has led us to the need to trust and work with other humans.

There are additional disadvantages beyond the prospect of losing a human expert as the face of a work product. Any frontier lab or vendor selling a domain "AI expert" is potentially looking to mine your data and have you improve their product through your usage, feedback, and context. I've tried a lot of these services, and they simply do not work well out of the box and beyond a carefully curated demo. They start working well only after you have given them the crown jewels, your data, your methods, your context and expertise.

Renting a general frontier model is bad enough when it comes to reducing your competitive advantage, buying a specialized AI agent is far worse. You are effectively giving your expertise and experience to improve the product so that your competitor can rent it as well and benefit.

I've been writing about a possible AI future where the human in the chain becomes more valuable, not less. When LLMs are commoditized and everyone has a subscription to frontier-level intelligence (we're already there) - then the differentiating factor is the human expert. And when productivity can increase by an order of magnitude or more, an incredible amount of value can become available to reward knowledge workers.

In conclusion, I'll be blunt. We are all straining to see a future where us and, more importantly, the next generation(s) remain relevant and valuable in the workforce. Where their training and education matters. Where LLMs, as powerful as they are, remain under human control and there is societal clarity around where the value accretion is. It should not be with the frontier labs, the inference providers or software program vendors. It should continue to be with the human experts we train and trust to grow our food, make the stuff we use, help us when we get sick, and make the art that we enjoy.

Hopefully, besides the technical deep-dive, this article provides some cause for optimism.

← All posts
aimcpforxrisk-adjustmentagentsexpertise