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