FactReach
CLAUDE.md43 starsChanged 3 months agoMITView on GitHub
- Installs packages
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 36
Use loguru for logging, rich for CLI output
- Very specific: line 37
Commit format: type(scope): message (one commit = one thing)
- Distinctive: line 38
All upstream tool calls go through public API/CLI, never hack internals
- Distinctive: line 48
Always new branch for changes, PR to main, never push to main directly
- Very specific: line 49
Run pytest tests/ -v before committing — all tests must pass
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Project
FactReach — evidence-first Python CLI + library for reading and searching 23 internet channels. Positioning: policy manager + installer + doctor + multi-backend router. After installation, agents may call upstream tools directly or use FactReach's web/Douyin entry points. Repo: github.com/simonlin1212/FactReach | License: MIT | Version: 1.0.0 Derived from github.com/Panniantong/Agent-Reach; preserve LICENSE and NOTICE attribution.
Commands
pip install -e .— Dev installpytest tests/ -v— All testspytest tests/test_cli.py -v— CLI tests onlybash test.sh— Full integration test (creates venv, installs, runs doctor + channel tests)python -m agent_reach.cli doctor— Run diagnosticspython -m agent_reach.cli install --env=auto— Read-only environment checkfactreach install --env=auto --system— Explicitly allow system changes
Structure
agent_reach/cli.py— CLI entry point (argparse)agent_reach/core.py— Core read/search routing logicagent_reach/config.py— Config management (YAML, env vars)agent_reach/doctor.py— Diagnostics engineagent_reach/channels/— One file per platform (twitter.py, reddit.py, youtube.py, etc.)agent_reach/channels/base.py— Base channel class (all channels inherit from this)agent_reach/integrations/mcp_server.py— MCP server integrationagent_reach/skill/— OpenClaw skill filesagent_reach/guides/— Usage guidestests/— pytest testsconfig/mcporter.json— MCP tool config
Conventions
- Python 3.10+ with type hints
- Each channel is a single file in
channels/, inherits fromBaseChannel - Channel contract: must implement
can_handle(url),read(url),search(query),check()methods - Use
logurufor logging,richfor CLI output - Commit format:
type(scope): message(one commit = one thing) - All upstream tool calls go through public API/CLI, never hack internals
Rules
- Public
mainintentionally uses an independent FactReach history from 2026-09-02 onward; do not restore upstream commits to the public branch. Preserve upstream copyright and licensing attribution inLICENSEandNOTICE. - FactReach is a routing and policy layer; external backends remain independently licensed.
- Version in THREE places must match:
pyproject.toml,__init__.py,tests/test_cli.py. - Public brand/CLI/Skill use
FactReach/factreach; internal module and~/.agent-reach/remain compatible until a separately planned migration. - Always new branch for changes, PR to main, never push to main directly
- Run
pytest tests/ -vbefore committing — all tests must pass - Cookie-based auth (Twitter, XHS): use Cookie-Editor export method only, no QR scan
- XHS login: Cookie-Editor browser export only (QR will hang)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

