Skip to main content

Crate resources

Crate resources 

Source
Expand description

System prompt and resource assembly, ported from packages/coding-agent/src/core/{system-prompt,skills, resource-loader}.ts and src/ultron/rlm/prompt.ts.

Modules§

context_files
AGENTS.md / CLAUDE.md discovery (loadProjectContextFiles in core/resource-loader.ts).
frontmatter
YAML frontmatter, as utils/frontmatter.ts parses it.
ignore
The ignore package (7.x) as the package manager uses it: .gitignore-style rules, matched case-insensitively (its default), the last matching rule winning, and a path ignored when any of its parent directories is. Each rule becomes a regular expression the way ignore builds one: a leading / or an inner slash anchors it, **/, /**/ and a trailing /** match directory runs, * and ? stay inside one segment, a trailing / matches directories only, and a pattern without one also matches a directory of that name.
keep_going
The per-session persona toggle and keep-going mode (Rust-only, no TypeScript reference).
model_notes
Notes for the model a prompt is rendered for: short rules a model family needs said outright, which the others follow unasked (or are hurt by). One table, matched by the start of the model id.
paths
Path helpers for resource discovery: resolvePath against a home directory, canonicalizePath, BOM stripping. Node’s path itself is jsrt::path.
persona
The Ultron persona ("persona": "ultron" in settings.json): <agent dir>/personality.md as a section of the system prompt, and the auto-nudge that continues a root turn which ended by announcing its next step instead of taking it. Rust-only (no TypeScript reference); the nudge rule and text are those of the user’s Claude Code hook (ultron-persona.py), recorded in fixtures/persona-nudge.json.
prompt_files
SYSTEM.md / APPEND_SYSTEM.md discovery and prompt inputs (DefaultResourceLoader in core/resource-loader.ts).
prompt_templates
Prompt templates: /name args expansion from markdown files (core/prompt-templates.ts).
runtime_guide
The runtime guide: the system prompt section that tells the model how to work in the RLM REPL. Port of packages/coding-agent/src/ultron/rlm/prompt.ts (rlmRuntimePrompt, extensionToolsPrompt, rlmToolGuidelines) and the prompt texts it imports.
skills
Skills: discovery (with the .gitignore/.ignore/.fdignore rules of the directories walked), frontmatter validation, always-on skills and their system prompt listing (core/skills.ts).
system_prompt
The structured system prompt (core/system-prompt.ts) and its rendered text (getSystemMessageText).

Structs§

Diagnostic
A non-fatal problem found while loading resources (ResourceDiagnostic).