fieldtheory-cli: Command for Claude Code

.claude/commands/fieldtheory.md

fieldtheory is a command for Claude Code from afar1/fieldtheory-cli. It costs 88 tokens per session (4,024 once invoked), scanned A, original, MIT.

A local command-line tool for saving and searching X/Twitter bookmarks, then applying selected ideas to one or more code repositories. It scores possible directions on a two-axis grid and saves the results as linked Markdown files.

In plain words
What is it for?
Use it to archive and search bookmarks, classify or visualize them, and run idea reviews against repositories. Results include saved seeds, runs, scored ideas, summaries, prompts, and explanations for each score.
Why use it?
It turns saved posts and codebases into an organized record of possible projects or improvements, while keeping the data on the computer.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

This is afar1/fieldtheory-cli's own configuration. It tells Claude Code how to work on fieldtheory-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fieldtheory-cli configures →

About the project

Field Theory CLI is a command-line tool for syncing bookmarks locally, managing a Field Theory library, and making local context available to coding agents. It is intended for users of the Field Theory Mac app and agents such as Claude Code or Codex that can run shell commands. Its catalogue add-ons provide commands, instructions, and settings for using the CLI in agent workflows.

afar1/fieldtheory-cli · 2,055 stars · on GitHub · fieldtheory.dev

Reuse

Borrowing it

Nothing to install: this file belongs to afar1/fieldtheory-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/afar1/fieldtheory-cli/main/.claude/commands/fieldtheory.md
Clone the repo
git clone --depth 1 https://github.com/afar1/fieldtheory-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fieldtheory

README.md
[![agentmods](https://agentmods.dev/badge/commands/afar1/fieldtheory-cli/fieldtheory/github.svg)](https://agentmods.dev/commands/afar1/fieldtheory-cli/fieldtheory)
Your own site
<a href="https://agentmods.dev/commands/afar1/fieldtheory-cli/fieldtheory"><img src="https://agentmods.dev/badge/commands/afar1/fieldtheory-cli/fieldtheory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fieldtheory

Your own site · 80×15
<a href="https://agentmods.dev/commands/afar1/fieldtheory-cli/fieldtheory"><img src="https://agentmods.dev/badge/commands/afar1/fieldtheory-cli/fieldtheory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.04024
Opus 5.5 $0.00035 $0.01610
Sonnet 5.5 $0.00018 $0.00805
Haiku 4.5 $0.00009 $0.00402

Measured 2mo ago against content hash 4c925c1c1e26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fieldtheory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/fieldtheory.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Field Theory CLI

The Field Theory CLI (ft) is a self-custody bookmark tool that does two related things:

  1. Local X/Twitter bookmark archive — sync, full-text search, classify, visualize.
  2. Possibility runs (ft possible) — take a group of bookmarks, apply them to a set of repos, and score candidate directions onto a 2x2 grid. Each scored idea is a "node" (also called a "dot") with a paragraph summary, a copiable goal prompt, and per-axis justifications. Seeds, runs, nodes, and batches are all saved as interconnected markdown files.

The feature was previously named ft ideas and the old name still works as an alias. ft possible is the primary vocabulary — use it in new walkthroughs, scripts, and explanations.

Everything runs locally. Bookmark storage lives at ~/.ft-bookmarks/; ideas data lives at ~/.fieldtheory/ideas/. Nothing leaves the machine.

Mental model — the possibility flow

A seed is not raw text. A seed is:

  • A bookmark, or a group of bookmarks (the external context/ideas)
  • + a repo or a set of repos (the codebases to apply them to)
  • + a frame (the 2x2 axes that shape the debate — e.g. Leverage × Specificity)

Those three things together shape a run. A run invokes an LLM pipeline that reads the seed, scans each repo, generates candidate directions, critiques them, and scores the survivors onto the 2x2. Each scored candidate becomes a node/dot on the grid with:

  • title + paragraph summary
  • rationale ("why adjacent")
  • axis A score + justification, axis B score + justification
  • effort estimate (hours / days / weeks)
  • a copiable goal prompt that can be pasted into any AI coding agent to actually build the thing

When a run spans multiple repos, the seed brief is computed once and reused across every repo (via the seed-brief cache), then each repo gets its own survey → generate → critique → score pass and its own consideration. A top-level batch_summary artifact + markdown file links them all together.

Read the full file on GitHub · 285 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 285 lines · 88 tokens per session scan A 4c925c1c1e26

Subscribe to this mod's changes

fieldtheory is a command published in the GitHub repository afar1/fieldtheory-cli (2,055 stars, last pushed 2mo ago), licensed MIT. It adds 88 tokens to every session and 4,024 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fieldtheory compared with commands from other repositories

fieldtheory next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fieldtheoryafar1/fieldtheory-cliCommand2.1k2mo agoMITA88Claude Code
initraysonmeng/agent-bridgeCommand422yesterdayMITA13Claude Code
landing-publishseite-sh/seiteCommand28yesterdayMITA0Claude Code
handofflegoambarish/portable-handoffCommand233d agoApache-2.0A0Claude Code
tree-ring-recallTerminallyLazy/Tree-Ring-MemoryCommand221mo agoMITA12Claude Code
tree-ring-updateTerminallyLazy/Tree-Ring-MemoryCommand221mo agoMITA15Claude Code
tree-ring-certifyTerminallyLazy/Tree-Ring-MemoryCommand221mo agoMITA17Claude Code