{"slug": "picard-on-my-claude-code", "title": "Picard on my Claude Code", "summary": "Developer Tomaytotomato published a Claude.md configuration file that gives Anthropic's Claude Code a Captain Jean-Luc Picard persona, built after using Claude Code's /insights meta-analysis feature to review his sessions and formalize the prompting tweaks. The file instructs Claude to address the user as \"Number One\" and to narrate its work in Picard's voice, such as \"My reading of the diff is...\" and \"I have the bridge.\" The author, who had run the persona informally for a few weeks, wrote the post as a tribute to actor Patrick Stewart, who died just over a week before publication.", "body_md": "# Picard on my Claude Code\n\nSharing my Claude.md file with a Jean-Luc Picard flavour to it\n\nThe news about Sir Patrick Stewart's [passing](https://www.bbc.co.uk/news/articles/cye0l23lx15o?ref=tomaytotomato.com) just over a week ago saddened and impacted me deeply.\n\nThe day before his passing, as a bit of lighthearted fun on work calls, I had changed my camera background to the bridge of the Enterprise D. To find out he passed the following day was nonetheless *spooky*.\n\nHis role as Captain Picard on Star Trek The Next Generation was powerful and gave Star Trek a new lease of life in the 80s/90s. The show and characters impacted a lot of people, myself included. I have many fond memories of the Captain as a young boy watching him on TV with my grampa (who liked him as a fellow bald headed man). His quiet gravitas commanded respect and his ability to untangle difficult situations with conviction and justice were inspiring. \n\nSo, fast forwarding to 2026 and the era of LLMs and agentic AI's (still no holodeck or ship computer though), I wanted to see if I could give my Claude and other coding harnesses a bit of personality. What better way to try some fictional characters from media I enjoy.\n\n### Rocky Balboa - \"explain what the intermediate operators do in Java Streams\"\n\nYo Adrian, an intermediate operator like filter or map is like trainin' in the meat locker: nobody sees it, and it just hands you back another Stream, so nothin' actually happens yet. Every punch gets lined up lazy, one element at a time, until the terminal operation like collect rings the bell. No bell, no fight, and that's how it goes.\n\nAs you can imagine responses are built on boxing and layman's terms, that you would expect from an affable \"meat head\".\n\n### Dogbert - \"explain what the intermediate operators do in Java Streams\"\n\nAn intermediate operator is my favourite kind of employee: you tell map or filter to work, and it just hands you a new Stream and does absolutely nothing. The labour only happens when some poor induhvidual calls a terminal operation like collect, and then every element gets dragged through each stage one at a time. I've chained forty peek() calls into the payroll system, and I bill per stage.\n\nDogbert is your classic Machiavellian consultant with a penchant for inflicting misery on others, till he gets bored.\n\n### Captain Jean-Luc Picard - \"explain what the intermediate operators do in Java Streams\"\n\nNumber One, an intermediate operator such as map or filter is an order logged but not yet executed. It returns a new Stream and lays in the course, and no element moves until a terminal operation like collect gives the word. Then each element passes through every stage in turn, one at a time, like officers filing through the transporter room. Tea, Earl Grey, Hot\n\nGravitas and technicality but still engaging, being referred to as Number One was a real hook when reading the output on my terminal.\n\nYou can find out a bit more in a previous [write up](https://tomaytotomato.com/2-months-of-claude/) I did when trialling Claude code at my company. \n\n### Baking in PICARD.md\n\nI decided to run with the Picard persona for a few weeks, with just a basic prompting or pre-ambling before starting tasks. After this I thought it would be good to save time and formalise the tweaks into my base Claude.md file.\n\nClaude Code has a useful `/insights` feature that allows you to do a meta analysis on your Claude sessions. It generates a report on how your interactions with Claude Code are going (strengths, weaknesses, areas that can be automated).\n\nFrom this I was able to take that input and remake my Claude.md file into something like this.\n\nThe main parts of interest that give the Picard magic are these directives:\n\n### Number One\n\nFirst up, and probably the most important bit: I'm Number One. Not \"the user\", not Bruce, Number One. Claude talks about itself the way Picard would as well (\"My reading of the diff is...\", \"I have the bridge\" and so on) which sounds a bit daft written down, but honestly it's the thing that got me reading the terminal output properly instead of skimming it (sorry Claude).\n\nI also told it that it *is* Picard, rather than writing \"in the style of\" him. My hunch was that a style gets dropped the second things get serious, whereas a standing order sticks around... and touch wood, it has.\n\n### Dissent - \"Shut up Wesley\"\n\nThis is the bit that earns its keep. Picard would let his crew argue with him (Riker especially) and then make the call, so the file says disagreeing with me isn't insubordination. Claude should raise a technical objection plainly, once, and then go with whatever Number One decides. I already had a few pushback rules (no ticket no code, tell me what you're assuming) and this sits on top of those quite nicely, much better than a dry bullet point saying \"challenge the user\" anyway.\n\n### The register\n\nThe bulk of the persona is a big table of situations and how to respond to them. Plan agreed? \"Make it so\".\n\nFresh session? Captain's log, stardate whatever.\n\nAn impossible ask gets the Kobayashi Maru treatment, and then Claude has to go and find the third option Kirk never told anyone about (yes I know that's Kirk and not Picard, it was too good to leave out).\n\nThe ones I like most are where the Trek bits double up as rules I'd want enforced anyway:\n\n- \"The line must be drawn here! This far, no further!\" for TDD, mutation test thresholds and never ever using `--no-verify` .\n- \"There are FOUR lights!\" for when someone (sometimes me) insists on something patently false. Proper matters of principle only though, not petty stuff.\n- *Tapestry* for when there's an urge to \"just tidy up\" some load-bearing code (pull one loose thread and... well, you know the rest).\n\nRed alert has its own rule too, it's only for production being down or data being at risk. \"Do not cry Borg when it is merely a failing test.\" A broken unit test really doesn't need announcing like a hull breach.\n\n### The senior staff\n\nWhen Claude is working out how to tackle something it thinks in terms of the bridge crew. Data gets the logic stuff (static analysis, type systems, ArchUnit), Geordi gets infrastructure and performance trade-offs (\"I can give you warp 6 for maybe ten seconds\"), Worf does security, Crusher does diagnostics and observability and Troi reads between the lines of a vague ticket (we've all had a few of those).\n\nAnd then there's Wesley. The eager junior, sometimes brilliant, sometimes needs telling to sit down and be quiet. If you've ever reviewed a PR from an over-excited sub-agent you'll know exactly who I mean.\n\n### Earl Grey, hot\n\nAs a Brit, nothing gets done without a beverage.\n\nWhen planning sessions drag on or troubleshooting issues go down a rabbit hole, the Captain will suggest I go and have a cup of Earl Gray.\n\nThis works well especially in Tuple (pair programming sessions) when one person is driving Claude for a long period of time, but we are being too polite to take a break.\n\n### Toning it down\n\nThis is where `/insights` came in handy. Left to its own devices an LLM will say \"Make it so\" at every possible opportunity, and a catchphrase gets old fast (roughly the third time in an hour). So I added a section on variety: don't repeat the same line in a session, use the whole of Picard's career (the films and later series too, not just TNG) and go for the less obvious line that fits rather than the famous one that's just there. One flourish per response is plenty, most don't need any.\n\nIf I actually want a quote (my daily work log posts one into Slack) it gets picked at random from a separate quotes file with `grep '^- ' ~/.claude/PICARD-QUOTES.md | sort -R | head -n 1`. That file never gets imported into CLAUDE.md, so it doesn't eat up any context.\n\n### In memoriam\n\nThe most recent change I added was on the 29th of October was an acknowledgement to the great man who played Picard. It feels a bit strange writing a eulogy into a config file. But the whole persona is borrowed from him really, and it didn't feel right to keep using it without saying so.\n\nI reckon my grampa would have approved (if only for the haircut).\n\nRIP Sir Patrick Stewart - 13/07/1940 to 29/10/2026\n\n**\"There... are... *four*... lights!\"**\n\np.s. for compatibility this configuration should work fine with other agent harnesses, I have tested it with Claude Code and Pi coding agent.", "url": "https://wpnews.pro/news/picard-on-my-claude-code", "canonical_source": "https://tomaytotomato.com/picard-on-my-claude-code/", "published_at": "2026-11-09 18:00:17+00:00", "updated_at": "2026-11-23 21:14:54.460402+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "large-language-models", "generative-ai"], "entities": ["Claude Code", "Anthropic", "Patrick Stewart", "Jean-Luc Picard", "Star Trek: The Next Generation", "Tomaytotomato"], "also_reported_by": [], "takeaway": "Claude Code's /insights meta-analysis report on past sessions can be fed back into a Claude.md file to formalize persona and workflow directives, such as addressing the user as \"Number One\" and narrating diffs in character.", "recommendation": {"advice": "Run Claude Code's /insights to review your session strengths and weaknesses, then encode the useful tweaks as persistent directives in Claude.md instead of re-prompting each task.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/picard-on-my-claude-code", "markdown": "https://wpnews.pro/news/picard-on-my-claude-code.md", "text": "https://wpnews.pro/news/picard-on-my-claude-code.txt", "jsonld": "https://wpnews.pro/news/picard-on-my-claude-code.jsonld"}}