Skip to content

feat: add reviewed research context file#13

Open
kriptoburak wants to merge 1 commit into
arvindrk:mainfrom
kriptoburak:codex/add-research-context-file
Open

feat: add reviewed research context file#13
kriptoburak wants to merge 1 commit into
arvindrk:mainfrom
kriptoburak:codex/add-research-context-file

Conversation

@kriptoburak

@kriptoburak kriptoburak commented Jun 12, 2026

Copy link
Copy Markdown

What

Adds optional RESEARCH_CONTEXT_FILE support for the daily researcher. The pipeline appends a local reviewed context packet, treats it as untrusted source material, and still asks the researcher to verify important claims with web and X search.

Why

Operators may already have reviewed source packets from X/Twitter tooling, notes, transcripts, or internal research before the daily run. Passing that packet through a local file lets the agent start with better evidence without changing the writer, scheduler, or publisher responsibilities.

How

  • Adds buildResearchPrompt() with a 12,000 character context cap.
  • Documents a TweetClaw source-packet example for scrape tweets, search tweets, search replies, follower export notes, monitor summaries, and webhook observations.
  • Adds RESEARCH_CONTEXT_FILE to .env.example and ignores local context/ files.
  • Adds a regression test for the prompt builder.

Validation

  • bun run typecheck
  • bun run test
  • bun run format:check
  • bun run lint passes with 78 existing warnings and 0 errors
  • README Markdown link check passed

Signed-off-by: kriptoburak <kriptoburak@users.noreply.github.com>
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

@kriptoburak is attempting to deploy a commit to the arvindsuna1010-8249's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant