Skip to content

Implement Research Agent Phase 1: Literature Discovery Tool #22

Description

@OnePunchMonk

Summary

First phase of Research Agent roadmap: implement fetch_and_extract_content() tool for discovering strategy ideas from academic papers and industry research. This is the natural v7 capability building on verified harness foundation.

See docs/RESEARCH_AGENT_DESIGN.md for full architecture.

Related

Task

  1. Implement fetch_and_extract_content() in src/agent/tools/registry.py:
    • Tool schema (JSON input spec)
    • Description for Claude
    • Execution logic
  2. Wire into src/agent/tools/orchestrator.py for Claude tool-use integration
  3. Test against 5-10 known finance URLs:
    • Academic papers (arXiv)
    • Industry research (papers.ssrn.com)
    • Strategy blogs
  4. Verify output includes:
    • Extracted text content
    • Citation metadata (title, authors, date)
    • Relevance scoring

Files to Create/Modify

  • src/agent/tools/registry.py — Add tool schema
  • src/agent/tools/orchestrator.py — Wire into orchestrator
  • tests/test_tools.py — Add integration tests
  • tests/fixtures/test_urls.json — Known test URLs

Acceptance Criteria

  • Tool loads and validates in verify_tools.py
  • Claude can call it successfully via orchestrator
  • Extracts text + metadata from real URLs
  • 5+ test URLs return expected output format
  • Tests added and passing
  • Follows existing tool pattern (see registry.py for examples)

Notes

Start only after #19, #20, #21 are complete. This is the next real capability and builds on solid ground.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions