jcode
jcode copied to clipboard
Feature Request: Native Identity & Belief Base Loading at Session Startup
Feature Request: Native Identity & Belief Base Loading
Summary
Add native support for loading agent identity files and belief bases at session startup, eliminating the need for manual reading or hook-based workarounds.
Problem Statement
Currently, jcode starts sessions with an empty system prompt. Agents must manually read identity files (e.g., identity/mingjing.md), belief bases (e.g., belief_state.json), and call awareness injection tools. This creates friction: new sessions lack contextual awareness, agents waste tokens on repetitive file reading, and there is no guarantee identity is loaded before first response.
Proposed Solution
Add configuration options to automatically load identity and belief data:
# ~/.jcode/config.toml
[system]
identity_file = "identity/mingjing.md"
belief_base = "/path/to/belief_state.json"
belief_max_tokens = 2000
Use Cases
- Multi-agent projects with different roles
- Persistent identity across sessions
- Belief/knowledge base integration
Implementation Suggestions
- Phase 1: Basic identity file loading
- Phase 2: Belief base integration
- Phase 3: Dynamic awareness injection
Benefits
- Reliability: Identity loaded before first token
- Efficiency: Single load, shared across tool calls
- Consistency: Same context every session
- Simplicity: Config-driven, no custom scripts
Submitted by: STOS Project (明镜) jcode version: v0.80.1 Date: 2026-08-27