greg

CTO @ Flipboard

“The palest ink is better than the best memory.” – Chinese proverb

I have worn most of the hats there are in a technology company over the last few decades: CTO, VP of Engineering, Chief Architect, CPO, Principal Engineer. These days at Flipboard and Surf that means my week is a mix of production debugging, writing and reviewing code, data questions, vendor and legal paperwork, planning, and helping the rest of the company get the same leverage out of AI that I do. I use Claude Code for virtually all of it. Not just the engineering parts.

This post is about one habit that made that dramatically more effective, the problem the habit created, and the small tool I built to fix it.

One session per subject, not one session per day

My first instinct was to treat a session like a terminal: open it in the morning, throw everything at it, close it at night.A session that has handled an incident, then a spreadsheet, then a contract review, then a PR, slowly loses the thread. I believe it is the compaction that keeps the context window in bounds: every compaction keeps a summary and drops detail, and after a few of those the session is slower, asks for things it already knew, and the code and documents it produces get worse.

The fix was to stop mixing. One long-running session per subject, kept alive for days or weeks, and switch between them the way you would switch between windows. The session that knows the incident keeps knowing the incident. The one that knows the data warehouse keeps knowing the warehouse. Each one stays sharp because nothing unrelated has been compacted into it.

I would put my output at roughly three times what it was before, and most of that is this one change. The catch arrived a few months in: hundreds of sessions, and no way to find the one I needed.

The hand-maintained list, and how it rots

My answer at first was a text file. Every time a session mattered I added a line with a short description and the command to resume it. A couple of hundred lines later I asked Claude to check which of them still worked. Roughly a fifth were dead; the transcripts behind them had been removed from disk, and not by the cleanup setting I knew about. Several more pointed at a name the session no longer had, because I had renamed it and the file had not kept up.

A list like that only decays. The interesting question was whether the thing it was describing could describe itself.

What the tool already keeps

Every Claude Code session is an append-only transcript on disk, and the picker behind claude --resume is built from those transcripts and nothing else. Inside each one, beyond the conversation, are the name you gave the session, every name it has had before, the title the tool gave it itself, timestamps, the directory it ran from, the files it edited, and the pull requests it opened. All of it sits there waiting to be read.

So I had Claude build a scanner over the transcripts. The first full pass over mine takes seconds, and after that it reads only what has been appended since, so keeping the catalog current costs nothing. A session appears the moment its transcript does, updates as it grows, and leaves when the transcript is deleted. There is no list to maintain anymore.

Then the part a scanner cannot do

A name and a date tell you a session exists. They do not tell you what happened in it. For that I had each session summarised: a sampled digest of what I typed, the closing reply, the pull requests and repos touched, sent to a headless Claude call that comes back with a couple of sentences on what was done, a line on where it ended, a short label, tags from a fixed vocabulary, and the colleagues named. A new session gets its summary within a minute of being discovered, without me doing anything.

Two things I learned doing that, the hard way:

  • The first run cost twenty times what it should have. The headless CLI was loading my whole set of tool integrations, around a hundred thousand tokens of definitions, for a question that needed none of them. Telling it to load nothing brought a summary down to about a cent.
  • The “minimal” flag that looked right for this also skips the keychain, so every call ran logged out. And unless you tell it not to, each summary call becomes a new session in the very catalog it is summarising.

The summaries are better than I expected. In several cases the generated label is a better description of the session than the one I had typed by hand.

What it looks like now

Worklog, showing the sessions catalog with invented data

Worklog, showing the sessions catalog with invented data

A local page, nothing leaves the machine. Every session, newest activity first, with its summary under the title and its resume command ready to copy. Search runs over everything I ever typed plus the summaries, so a half-remembered phrase finds the session even if I never named it. The rail filters by tag, by the person I was working with, by the repo that got edited. A session with activity in the last day shows as active, which in practice is the handful I am switching between this week.

The screenshot is invented data, for the obvious reason. The real one looks the same with more rows.

Open source

It is about three thousand lines, Python standard library and one HTML file, and it lives in a repository on my personal GitHub. Everything that tied it to my own setup moved into a small config file, so it should work for anyone with a Claude Code transcript directory. Check it out here.

The transcript format is Claude Code's private business and could change under me any day. I have made my peace with that: the scanner reads a handful of record types named in one place, and the summaries live in my own file keyed by session id, so a format change costs a rescan, not the catalog.

What I am still wondering

Has anyone else landed on long-running sessions per subject, and did you see the same effect? How do you find your old ones? And has anyone worked out what removes transcripts after a few months, because it was not the cleanup setting.

As discovery shifts from search results to AI answers, here's how we help partners earn AI visibility — credibly, and without compromising on privacy.

A media partner recently put words to a shift we'd been watching for a while. Evaluating a content partner, they said, used to come down to one question: can you help us reach people? Now there's a second: are you helping our brands show up inside AI-driven discovery experiences — or, as they memorably put it, helping brands “feed the machines”?

It's the right question, and it's fast becoming part of how brands evaluate everyone they work with. More and more, people begin with a question to ChatGPT, Perplexity, Gemini, Claude, or Google's AI Overviews — and the answer names just a handful of sources. The old game was ranking among ten blue links. The new game — call it AI discovery, or AI visibility — is being one of the two-to-seven sources an AI assistant cites when it answers. The bar is higher, and the brands and publishers that prepare now will own that surface as it grows.

Here's how Flipboard and Surf are built to help — and, just as importantly, how we do it responsibly.

1. We speak the language of AI discovery

Being discoverable by AI isn't the same as being crawlable by a search engine. AI systems increasingly look for content that's structured, retrievable, and explicitly described for them — and they're starting to use new, agent-oriented standards to find it.

Surf already publishes those standards in production:

  • An llms.txt at surf.social — a machine-readable description of our content and capabilities, written for large language models.
  • An agent discovery card (/.well-known/agent-card.json) that advertises what Surf can do to other AI agents, using emerging agent-to-agent protocols.
  • A live Model Context Protocol (MCP) server at mcp.surf.social that lets assistants like Claude search our feeds, summarize content, and build feeds as a native tool — through a clean, sanctioned interface rather than scraping.

When an AI assistant goes looking for trustworthy social and news content, our front door is already open and labeled.

2. We make content structured and retrievable

AI systems cite what they can cleanly parse. Surf indexes feeds and posts as Schema.org-structured data and exposes them through natural-language retrieval, so an assistant answering a question can pull our content in a form it understands — a feed is a feed, an author is an author, a post is a post, with all the context attached. That structure is what turns “content that happens to exist on the web” into “content an AI can confidently surface and attribute.”

3. Trust is the differentiator — and it's enforced, not just stated

As AI assistants get more careful about where their answers come from, the signal they increasingly reward is source trustworthiness. This is where Flipboard's model is a genuine advantage:

  • Human editors curate on top of the algorithms. Trained journalists make judgment calls machines can't.
  • A vetted base of trusted publishers — AP, BBC, NPR, ProPublica, Bloomberg and many others — anchors what we surface.
  • AI transparency is required, and enforced. Publishers must disclose AI-generated content, and our developer license prohibits using Flipboard content to train AI models without our permission.

“Human-vetted and transparently sourced” isn't a tagline for us — it's the architecture. And it's exactly the signal the next generation of AI discovery is learning to prize.

Whenever the topic of AI and content comes up, a fair question follows: what about people who don't want their posts swept into AI experiences? It's the right question to ask, and our answer is built into how the system works — not bolted on afterward.

  • Only public content is ever surfaced. Posts marked unlisted, followers-only, or direct are dropped before they reach any discovery or AI surface. If you didn't post it publicly, an assistant won't find it through us.
  • We respect the visibility settings your platform gives you. Public stays public; private stays private. Your choices on Mastodon and Bluesky — including Bluesky's “logged-out visibility” setting — travel with your content.
  • AI visibility is not training. Being cited live, with a link back, is fundamentally different from being absorbed into a model's weights. Our developer license forbids using our content to train AI models without permission — so this is about helping people find a post and click through to its source, not about feeding it into a training set.
  • Attribution by default. When an assistant reaches our content, it's pointed back to the original — the author and the post — rather than quietly paraphrasing it away.

The result is a system designed for two audiences at once: brands and publishers who want to be found in AI-driven discovery, and people who simply want their public posts treated with respect and their private ones left alone.

5. We're building the measurement to prove it

You can't improve what you can't see. So we're standing up measurement of how Flipboard and our partners' content appears and is cited across the major AI assistants — mention frequency, citation rate, position, and share of voice against the competitive set. For marketers, this is the practical payoff: a way to understand how brand and content visibility now extend beyond traditional search into AI-driven discovery experiences — and to manage that visibility with the same rigor they bring to SEO and social today.

How we measure it matters as much as what we measure. The methods we're adopting are footprint-based: they observe our presence in AI outputs directly and don't rely on user data. We're measuring our own footprint in the AI ecosystem — not tracking people.

What this means for partners

Brands and publishers don't need to navigate this rapidly evolving landscape on their own. By partnering with Flipboard and Surf, their content lands in an environment already engineered for AI discovery — structured, agent-accessible, human-vetted, transparently sourced, and increasingly measurable — with privacy respected by design.

Internally, our own sales teams have started pointing to this work as a clear example of how Flipboard is investing, innovating, and evolving its thinking in the space — because AI discovery is going to be part of every serious media conversation from here on. We've been building for it, the right way. If you're thinking about how your brand shows up in AI-driven discovery, let's talk.

“It’s all about being a part of something in the community, socializing with people who share interests and coming together to help improve the world we live in.” – Zach Braff

In any successful network, bad actors will emerge with the simple goal of achieving some result that is in the interests of themselves or those that have hired them. These bad actors could be code, could be individual users on a VPN coming from a location with no recourse to investigate, or an army of humans clicking on behalf of their country. The motivations ar3e endless and we are certain to hear lots about mis-information over the next few months with the elections around the corner.. Whole encyclopedia's could be written on the topic, each attack vector has similarities to other social networks with slight deviations. Most importantly, it is a cat-n-mouse game ... once you are able to minimize the mechanisms by which someone is abusing your system, they will figure out ways around it. If they cannot and go away, someone else eventually will. The previous ones will come back in a year to see if you left your guard down.

Check out this output from analysis of new accounts created over the last few days Image of bad actors with email addresses using the dot that gmail allows to make many accounts

The second column shows emails such as Cyr.u.s2boyo1@gmail.com and Cy.rus2boyo1@gmail.com .... gmail users can basically add dots to their email address or append a plus sign and more letters/numbers after the email address to create what looks like a unique email address, but one which not actually unique and, in this example, always sends back to the canonical email address cyrus2boyo1@gmail.com. There are legitimate use cases for doing this out in the real world (for example, I might create a threads account with the email address rockhunters08+threads@gmail.com or maybe your testing team wants to create 100's of emails to test something but all route to the same account). Nontheless, each social network has to decide where and when this is allowed and come up with rules to prevent the creation in the first place, if possible, else detect the bad actor before they impose harm on users or your business, and disable them.

In this particular case, the fact that the user is verifying theses accounts, that all of them were created quickly one after the other, and many already have bios that are the same, implies they likely are planning to follow themselves to give large follower numbers (and later, possible, like or reflip flips from each other) with the goal of gaming our recommendations algorithms. Who knows, really. On Flipboard, this will never work because we, in general, have an allow list approach to recommendations, so unless our editorial staff (a.k.s. carbon based life forms) have reviewed your account or domain of content, it won't make it into other people's For You feeds). This is one of the reasons why we are SLOWLY federating Flipboard accounts: we do not want this gamification to spill over into the fediverse.

There is more analysis we can do if we were not sure if this is a bad actor. For example, on the images below, you can see they already created a magazine and flipped 1 article into it. That .... pattern ... is something we can write a chapter on and is specific to Flipboard, though I suppose the similarity to other social networks is whatever the write action you can take on that network (.e.g Post).

Image of single magazine created by bad actor

Image of single post by bad actor into magazine

You could then do curl and go to the website of where the article is located and you will get something like the image below

Image website not working with errors

You could take this analysis further and look at who owns the domain, when was it registered, etc... it goes on and on. For now, it is clear this person is not a legitimate user and deserves to be disabled. We'll run this check over accounts daily as well as over longer periods of time. I've seen cases where a bad actor will create 1 account per email address a day over many months and, worse, do that for many email addresses via a VPN with changing ip addresses. Always fun.

In the fediverse, this becomes more complicated because this user could do this same tactic across 10's of thousands of instances where this kind of analysis is not readily available

Thoughts? I'd love to know what you think!

#moderation #trust #safety

Anytime anybody impersonates you, it's a great compliment. – Robert Wagner

In my role at Flipboard a similar position. I'll start with something that is a bit off topic from the typical spammers that we uncovered just the other day: someone impersonating our brand .... because I am actually not 100% sure how we should fully handle it, and would love your thoughts.

The Scam

We received a report over our standard help channels from a non-user that they were cold called by a twitter (a.k.a. X) user claiming to work for Flipboard. They were made some vague promises if they signed up and after saying no ... well .... let's just say this scammer cussed them out with some not so nice language.

After working with the user (and promising them this was not us) we uncovered this account on X which was doing the impersonation.

image of bad actor screen shot account on X

The Research

Nothing on that account there is legit. Notice the flip[.].it url that redirects to some sort of statement on the SHIB token, which seems part of their scam. Well, when a Flipboard user creates a short url, we keep track of the account that created it. In this case, a simple lookup uncovered the account used to create the link. Luckily, they had accessed that account the day we were notified of this. We keep logs for around 14-21 days from key systems in order to help debug problems legit users report. In this case, I was able to find a log in our haproxy routers for this account:

./12/haproxy-standard:2024-09-25T12:40:09+00:00 [X.X.X.X] <user.notice> haproxystandard[3707085]: Y.Y.Y.Y:2600 [25/Sep/2024:12:40:09.912] fe-production-https be-production-fly-standard/0443f7ece3c501810 0/0/1/0/1 304 168 - - ---- 546/305/0/0/0 0/0 {fbprod.flipboard.com|49.130.131.81, 64.252.103.219|Amazon CloudFront|} "GET /v1/static/config.json?userid=YYYY&ver=4.3.29&device=iphone-17.4.1&model=iPhone11%2C6&lang=zh-Hant-HK HTTP/1.1"

This is a request from their device looking for initial configuration information. There are a few things to notice here: – the ip address they request originated from is 49.130.131.81 – their language is set to traditional chinese, Hong Kong – they are using an iphone and a fairly recent version of our software

NOTE: we utilize this information to ensure the user experience works for the device, language and location of the user and the details above were sanitized

Doing a whois lookup on that ip address and we get confirmation this user is coming from Hong Kong

image whois lookup of ip address originating from Hong Kong

Great, so now what? I wanted to see if there might be more than 1 user or account on X executing this scam. So, I looked at their 2,245 followers (X only let me search some of them) and quickly found 2 other accounts done in similar fashion: LoisFlipboard and DaisyFlipboard. Continuing down this path, you find more and more .....

Next, I wanted to see if each of these accounts were separate users or the same, so I looked for additionally references flip[.]it links and sure enough, they all tracked back to the same Flipboard account.

The Actions

So, the next question is, what should we do about this? It clearly hurts our brand to have someone scamming people in our name, but also, in general, this is just a bad person doing evil things for self gain. We cannot block all the ip addresses they use .... legitimate users use them. We obviously suspended the account, but they can always easily create a new account on Flipboard. We do have a way to block a device from accessing our service, but I won't go into those details. However, this scam is being executed from X itself, not Flipboard.

X does offer a “report this user” and we could do that for each of these accounts for impersonating out brand and keep trying to hunt them all down. But check this out .... they want you to fill out a form when you get to this part: image of X wanting picture of my drivers license

Would you send up images of government issued id's and consent to X's trust and safety team to extract biometric data? Especially after they dissolved their Trust and Safety Council?

We do have a plan, but I am curious ... would you send up personal information like this to X and trust how it is being handled? Would you try and track down all the accounts on X taking these nefarious actions and, if so, how? Would you just ignore it? What would you do next?

#moderation #trust #safety

I have not written a blog post, evidently, in 8 years when I documented a bike ride across New York State, which I highly recommend to any road bike enthusiasts. Reach out to me if you want to learn more about that trip.

However, with the looming Bluesky Bridge work, I decided to dust off the Markdown to lend not only my personal support, but as the Mastodon admin of flipboard.social, our full support of BridgyFed.

First off, kudos to Ryan Barrett for his transparency regarding this open source work, one of the principles of the Open Social Web, as well as his thoughtful and mature responses to concerns raised and proposed changes. Brave and thoughtful developers like Ryan everyday are building services we all can choose to be a part of or not, thanks to federation, and we should celebrate those efforts rather than allow the vitriol that has existed on closed networks to permeate this world.

Any software that helps marshal the ability of communities to connect as well as the moderation tooling that allow us as individuals to navigate these communities safely, is a win for federation.

#Mastodon #BlueSky #BridgyFed