Context & rules
Context is explicit project guidance loaded before the user task. It is distinct from memory, conversation history, and tool output.
Discovery
User sources are ~/.jeden/instructions.md and ~/.jeden/context.md. Project discovery walks from the project ancestor down to --cwd and reads JEDEN.md, AGENTS.md, CLAUDE.md, RULES.md, .jeden/instructions.md, and .jeden/context.md.
Imports
A line such as @./extra.md imports a file below the same context root. Absolute escapes and parent traversal outside that root are rejected. Oversized files are skipped rather than silently truncated into misleading rules.
Budgets
context.maxBytes | Default 131072 UTF-8 bytes across discovered sources. |
context.maxTokens | Default approximate budget of 32768 tokens. |
rules.alwaysApply | Typed sticky rules injected whenever the system prompt is rebuilt. |
Inspect active context
Use /context to inspect the sources selected for the current workspace. Keep build commands, architectural boundaries, and verification requirements source-controlled; keep credentials out.