fieldtheory

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/afar1/fieldtheory-cli/fieldtheory
Clone the repo
git clone --depth 1 https://github.com/afar1/fieldtheory-cli

Made for: Claude Code.

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. Scan, not verified.
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 $0.00088 $0.04024
Opus 5 $0.00044 $0.02012
Sonnet 5 $0.00018 $0.00805
Haiku 4.5 $0.00009 $0.00402

Measured 3d ago against content hash 4c925c1c1e26, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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,018 stars, last pushed 14d ago), licensed MIT. It adds 88 tokens to every session and 4,024 once invoked, about $0.0004 per session on Opus 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

Other commands, from other repositories