返回 CodeWhale
context_prompt_json.txt
根目录 / crates / tui / src / commands / fixtures / diagnostics / context_prompt_json.txt
1 command: /context prompt-json
2 is_error: false
3 message:
4 {
5 "schema_version": 1,
6 "provider": "deepseek",
7 "model": "deepseek-v4-pro",
8 "system_prompt_state": "current_session",
9 "tool_catalog_state": "not_yet_sent",
10 "sections": [],
11 "tools": [],
12 "source_map": {
13 "entries": [
14 {
15 "source_kind": "constitution",
16 "label": "Bundled constitution, language policy, and output policy",
17 "source_path": "bundled in this codewhale-tui build (BASE_PROMPT, compiled in)",
18 "activation_reason": "always_on",
19 "estimated_tokens": 1803,
20 "counting_confidence": "high",
21 "authority_tier": 1,
22 "truncation_reason": null
23 },
24 {
25 "source_kind": "project_context",
26 "label": "Project instructions",
27 "source_path": null,
28 "activation_reason": "file_present",
29 "estimated_tokens": 160,
30 "counting_confidence": "high",
31 "authority_tier": 5,
32 "truncation_reason": null
33 },
34 {
35 "source_kind": "project_context_pack",
36 "label": "Project context pack",
37 "source_path": "<workspace>",
38 "activation_reason": "omitted",
39 "estimated_tokens": 0,
40 "counting_confidence": "high",
41 "authority_tier": 5,
42 "truncation_reason": "disabled; project_map provides this information on demand"
43 },
44 {
45 "source_kind": "skills_block",
46 "label": "Available skills",
47 "source_path": "<skills>",
48 "activation_reason": "omitted",
49 "estimated_tokens": 0,
50 "counting_confidence": "high",
51 "authority_tier": 5,
52 "truncation_reason": "no skills discovered"
53 },
54 {
55 "source_kind": "context_management",
56 "label": "ACT runtime mode",
57 "source_path": null,
58 "activation_reason": "omitted",
59 "estimated_tokens": 0,
60 "counting_confidence": "high",
61 "authority_tier": 3,
62 "truncation_reason": "mode enforced by runtime policy and the live tool catalog; no prompt doctrine"
63 },
64 {
65 "source_kind": "compaction_relay_template",
66 "label": "Session relay template",
67 "source_path": "bundled in this codewhale-tui build (COMPACT_TEMPLATE, compiled in)",
68 "activation_reason": "omitted",
69 "estimated_tokens": 0,
70 "counting_confidence": "high",
71 "authority_tier": 3,
72 "truncation_reason": "loaded only when /relay is requested; automatic compaction owns its successor brief"
73 },
74 {
75 "source_kind": "runtime_policy",
76 "label": "Core execution discipline",
77 "source_path": null,
78 "activation_reason": "always_on",
79 "estimated_tokens": 295,
80 "counting_confidence": "high",
81 "authority_tier": 3,
82 "truncation_reason": null
83 },
84 {
85 "source_kind": "authority_recap",
86 "label": "Authority recap",
87 "source_path": null,
88 "activation_reason": "always_on",
89 "estimated_tokens": 88,
90 "counting_confidence": "high",
91 "authority_tier": 1,
92 "truncation_reason": null
93 },
94 {
95 "source_kind": "environment_block",
96 "label": "Runtime environment",
97 "source_path": "<workspace>",
98 "activation_reason": "always_on",
99 "estimated_tokens": 21,
100 "counting_confidence": "high",
101 "authority_tier": 4,
102 "truncation_reason": null
103 },
104 {
105 "source_kind": "handoff_relay",
106 "label": "Previous session relay",
107 "source_path": "<workspace>/.codewhale/handoff.md",
108 "activation_reason": "omitted",
109 "estimated_tokens": 0,
110 "counting_confidence": "high",
111 "authority_tier": 6,
112 "truncation_reason": "no relay artifact found"
113 },
114 {
115 "source_kind": "user_memory",
116 "label": "User memory",
117 "source_path": "<memory>",
118 "activation_reason": "omitted",
119 "estimated_tokens": 0,
120 "counting_confidence": "high",
121 "authority_tier": 6,
122 "truncation_reason": "disabled, missing, or empty"
123 },
124 {
125 "source_kind": "session_goal",
126 "label": "Session goal",
127 "source_path": null,
128 "activation_reason": "omitted",
129 "estimated_tokens": 0,
130 "counting_confidence": "high",
131 "authority_tier": 6,
132 "truncation_reason": "no active /goal objective"
133 },
134 {
135 "source_kind": "tool_schemas",
136 "label": "Tool schemas",
137 "source_path": null,
138 "activation_reason": "omitted",
139 "estimated_tokens": 0,
140 "counting_confidence": "high",
141 "authority_tier": 3,
142 "truncation_reason": "no tool catalog has been sent yet"
143 },
144 {
145 "source_kind": "conversation_history",
146 "label": "Conversation history",
147 "source_path": null,
148 "activation_reason": "omitted",
149 "estimated_tokens": 0,
150 "counting_confidence": "high",
151 "authority_tier": null,
152 "truncation_reason": "no API messages yet"
153 }
154 ],
155 "total_estimated_tokens": 2367,
156 "active_context_estimated_tokens": 48,
157 "overflow_guard_estimated_tokens": 48,
158 "context_window_tokens": 1000000,
159 "context_window_source": "catalog",
160 "budget_used_percent": 0.0048000000000000004,
161 "generated_at": "<timestamp>",
162 "note": "Diagnostic source map. The headline is the pressure estimate the context meter and auto-compaction gate use; per-source counts are conservative estimates. All counts may differ from provider billing."
163 }
164 }
165 action: <none>
166
166 lines Plain Text