/prompt
Use /prompt to inspect, preview, and adjust the prompt assembly result for the next new session.
This is a relatively core feature of Hunea. It's already usable and will continue to be polished.
Open it when you need to confirm which sources the system prompt is assembled from, temporarily toggle instructions/skills/tool guides on/off, add custom prompts, or preview the final complete system prompt before modifying. After typing /prompt and confirming, it opens a full-screen panel titled Prompt Assembly.
The menu description is Inspect prompt assembly for the next new session. Most changes do not rewrite the transcript for the current already-started session; they target the "next new session". If the current session is still empty, closing and persisting may apply directly to the current empty session (see "What happens after closing" below).
Panel overview
/prompt is a two-column manager, not a single list:
- Title bar: left is
Prompt Assembly, right has four candidate tabs - Left column
Active: sources already included in "next new session assembly" - Right column (candidates / inventory): candidate collections not fully assembled, or toggleable
- Bottom pagination line: shows position on the currently focused side, e.g.
Active (2 of 8) - Bottom operation hint: changes with the currently selected item;
? moreis often on the far right
It roughly looks like this:

Left column: Active
The header columns are roughly:
Sel · Ord · Source · Type · Scope
Type roughly corresponds to:
The currently focused row has a color swatch mark on the left. If an item "shadows" other sources with the same name/key, it may show +N shadowed; press Ctrl + E to expand/collapse these shadowed details.
Right column: four tabs
Top-right tabs (defaults to Skill):
Headers differ slightly between tabs:
Skill:Sel·Ord·Name·ScopeTools:On·Guide·Ord·Name·Scope(On/Guide are dual-column switches, see below)Custom Prompts:Sel·Name·ScopeDynamic:Base·Change·Source·Scope
Tools tab: On / Guide dual columns
Each row on the Tools tab has two checkbox columns:
How to operate: ← / → moves between the On / Guide columns (the active column is highlighted), and x toggles the switch in the current column. Note: when a tool's On is off, its Guide column becomes non-operable (dimmed) and x is a no-op there; tools without guidelines also have a no-op Guide column. Disabled tools are filtered from both the model request and the session tool registry, and the state is persisted (tool_enablement). See Per-tool enable / disable.
It looks roughly like this:

How to operate
Focus and navigation
←/→, orh/l: switch focus between left and right columns
(on theDynamictab, left/right may also move betweenBase/Changecolumns)↑/↓, orj/k: move selection up/downPageUp/PageDown: page throughHome/End: jump to start/end of current listTab/Shift + Tab: when focus is on right column, cycle through top-right tabs?: toggle more shortcut help (theMoreoverlay)Esc: close the/promptpanel (triggers the commit/persist flow, see later)
You can also use the mouse:
- Click a top-right tab: switch to that candidate page
- Click a left/right list row: switch focus and select that row
Preview
Space: preview the content of the currently selected item (single source / skill / tool / dynamic, etc.)p: preview the fully assembled system prompt (titledAssembled prompt)
In preview mode:
Esc/Space/p: go back to the main panel↑/↓/←/→, andh/j/k/l: page through longer content
It roughly looks like this:


Editing, toggling, reordering
The bottom hint changes with the selection. Common actions:
Not every row supports all actions. For example:
- Core
system, instruction files, generateddiscovery/tools/ somedynamicsources usually cannot be directly deleted withdlike custom prompts - Only editable sources show
e - Only on the
Activeside, when reordering is allowed, will you seeJ/K reorder
Creating a new custom prompt
Press a when in the Custom Prompts context on the right:
- First pops up scope selection:
[Project] Global(currently project, global optional) orProject [Global](currently global, project optional) ←/→(orh/l) switch scopeEnterto confirm,Escto cancel- After confirmation, opens external editor to write content; save and exit, and Hunea writes back to the corresponding scope
It roughly looks like this:

What are these sources?
You can think of the left column as "the system assembly list that the next new session will carry". Common sources include:
-
Core system prompt
Hunea's built-in core behavior instructions. Can be overridden byglobal/projectoverride; when selected, you can pressrto restore the default core prompt, which is useful for one-click recovery after messy modifications. -
Instructions files
- Global:
AGENTS.mdin the data directory (usually~/.config/hunea/AGENTS.md) - Project:
AGENTS.mdorCLAUDE.mdfound by searching upward from the workspace/repository (when in the same directory,AGENTS.mdis usually prioritized)
- Global:
-
Custom prompts
Your own maintained extra prompt fragments. Project-level usually lives in.hunea/prompts/custom/, and assembly state is recorded by.hunea/prompt-assembly.toml. -
Skill discovery / long-lived skills
Skill discovery fragments, and long-lived injectable skills. This is different from temporary@skillinjections that are "only attached for this round" in a session. -
Tool guidelines
Tool usage instructions generated based on currently available tools. -
Dynamic environment
Environment information:Base: more for first-round baselineChange: more for incremental changes in subsequent rounds
You can check these separately in the rightDynamictab.
What does shadowed mean?
Sources with the same name or conflicting keys may exist at project / global / builtin levels simultaneously. During assembly, only the higher-priority one actually takes effect, and the others are marked shadowed.
Priority roughly is:
project > global > builtin
So you may see an Active item with +1 shadowed, meaning there's another same-key source covered underneath. Expand with Ctrl + E to verify which layer is actually active.
What happens after closing
When you press Esc to close /prompt, Hunea tries to commit/persist the working copy from this panel, rather than "just look and discard".
The success feedback depends on the effective scope:
Note:
- For the current session that already has conversation content, modifying assembly in
/promptgenerally won't rewrite the entire historical transcript. - To get most changes into the next round completely, the safest approach is: after closing
/prompt, use/clear(alias/new) to start a new session. - If opening
/promptfails to enter the editing session (e.g., begin fails), the panel may close directly without going through the commit flow.
Where is configuration persisted
Common locations for project-level:
Global side is related to Hunea's data directory (usually ~/.config/hunea/), for example global AGENTS.md, and global prompt assembly state (managed by session store / data directory, not just current workspace files).
You don't need to manually write all files before using /prompt: many custom items can be created and edited with a / e in the panel, then Hunea writes them back.
How it differs from related commands
/context answers "how much budget is left"; /prompt answers "among this budget, what sources make up the system side, and can it be modified".
Usage tips
- You just want to confirm "what exactly will the next round carry": open and press
pto see theAssembled prompt, which is usually faster than opening one by one. - Your project has
AGENTS.md/CLAUDE.mdbut it doesn't seem to take effect: look forinstructionsin the left column, check if it'smissing,disabled, orshadowedby a higher-priority source. - You want to add a long-term instruction just for the current repository: switch right to
Custom Prompts,aselectProject, after writing confirm it appears in the leftActivelist. - After changing order or toggling, preview with
pfirst, thenEscto close and persist; if you need to verify immediately in clean context, then/clearto start a new session. - If you can't remember all shortcuts, press
?to seeMore— easier than guessing footer abbreviations.