Skip to content

docs: document promptContext feature for injecting file context into agent prompts#141

Open
ben-rogerson wants to merge 2 commits intomainfrom
docs/prompt-context-feature-undocumented
Open

docs: document promptContext feature for injecting file context into agent prompts#141
ben-rogerson wants to merge 2 commits intomainfrom
docs/prompt-context-feature-undocumented

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

The promptContext array on defineAgent options allows agents to declare files that should be automatically injected into their prompts as XML blocks. Documented in both packages/core/README.md and packages/templates/README.md with examples of filepath resolution, head/tail line limits, and the optional flag for graceful missing-file handling.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

…agent prompts

The promptContext array on defineAgent options allows agents to declare files that should be automatically injected into their prompts as <context file=...> XML blocks. Documented in both packages/core/README.md and packages/templates/README.md with examples of filepath resolution, head/tail line limits, and the optional flag for graceful missing-file handling.
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