Skip to content

Conversation

@nitsanavni
Copy link
Contributor

Summary

Add new pattern: JIT Docs (Just-in-Time Documentation) - describes workflow of relying on up-to-date documentation searched in real-time by the agent

Description

The pattern captures a key workflow shift: instead of relying on AI's outdated training data, point AI to documentation sources and let it search current docs in real-time based on the task at hand.

Workflow:

  1. Point AI to documentation source once
  2. AI searches relevant sections in real-time
  3. AI fetches and uses current information
  4. One-click access via tools like Context7 MCP

What this solves:

  • Outdated training data → Current, accurate information
  • Hallucinated APIs → Real, version-specific docs
  • Manual doc hunting → Agent searches autonomously

Examples:

  • Context7 MCP for library docs (Next.js 15, etc.)
  • Internal project documentation
  • Version-specific API references

Related to:

  • References (manual doc loading)
  • Knowledge Document (persistent memory)

Addresses obstacles:

  • Cannot Learn (no training on your code)
  • Hallucinations (makes up APIs)

Test plan

  • Build passes: cd website && npm run build
  • New pattern appears in the patterns list
  • Author metadata displays correctly

🤖 Generated with Claude Code

Describes workflow of relying on up-to-date documentation searched in real-time by the agent, rather than AI's outdated training data.

Point AI to docs once, agent searches relevant sections based on task, fetches current information. Tools like Context7 MCP make this one-click.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@lexler lexler merged commit f6e72d6 into lexler:main Oct 12, 2025
3 checks passed
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.

2 participants