Session Intelligence
A closed intelligence loop: your sessions end with a debrief, agents process overnight, and your next session starts with a briefing
Session Intelligence connects the end of one coding session to the start of the next. When you finish work, ACE captures what happened. Between sessions, agents analyze your changes. When you start again, you get a briefing of everything that was discovered.
Session Intelligence Loop
When you start a new coding session, the briefing hook calls the ACE API and injects agent intelligence into your AI's context. This means your AI immediately knows about contradictions found, quality issues flagged, patterns learned, and open issues — without you having to explain anything.
What the briefing includes:
API Endpoint
Returns agent intelligence from the last N hours (1–168). Default: 24 hours.
MCP Tool
Available in all MCP-compatible tools. No feature gate — works on all tiers including Free.
The PreCompact hook runs automatically when Claude Code compacts your conversation context. It parses the transcript and creates a work log in ACE with session statistics — edits, reads, writes, and bash commands.
What it captures:
Automatic: The PreCompact hook only fires on automatic compaction (when your context window fills up), not manual compaction. This ensures work logs reflect real session activity.
The debrief endpoint records a session summary as three entities: a work log (what was done), a memory (key learnings), and an observation (for agent processing). This gives agents maximum signal to work with between sessions.
API Endpoint
Request Body
{
"summary": "Implemented auth middleware and wrote tests",
"files_changed": ["src/auth.ts", "tests/auth.test.ts"],
"decisions_made": ["Use JWT over session tokens"],
"issues_encountered": ["CORS config needed for staging"],
"session_id": "optional-session-id",
"duration_minutes": 90
}MCP Tool
ACE provides two MCP prompts that wrap the briefing and debrief into ready-to-use instructions for your AI tool.
start-session
Fetches your briefing and presents it as a structured context block. Use at the beginning of any session.
end-session
Guides you through recording a debrief with summary, files, decisions, and issues.
Claude Code
Copy the briefing hook
Copy the PreCompact hook
Configure hooks in settings.json
{
"hooks": {
"SessionStart": [
{ "command": ".claude/hooks/ace-session-briefing.sh" }
],
"PreCompact": [
{ "command": ".claude/hooks/precompact.sh" }
]
}
}Make hooks executable
Other MCP Tools (Cursor, VS Code, etc.)
Use the MCP tools directly in your AI conversations:
Or use the MCP prompts start-session and end-session for guided workflows.
The Session Manager is one of ACE's 10 autonomous agents. It runs between sessions (on Pro tier and above) to analyze debrief data, consolidate work logs, and prepare briefing summaries. It has elevated memory and interpersonal gene expression (MEM=1.8, INT=1.5) for better session context understanding.