status
Check current Claude Infinite Context state including version, active files, tasks, token usage, and checkpoint history to monitor project status.
Instructions
Show current state metadata including version, active files, tasks, token usage, and checkpoint history.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/core/ProjectBrain.ts:332-384 (handler)Core handler function that executes the 'status' tool logic: fetches current project state and checkpoint history from Redis, formats a comprehensive status report with session details, metadata, active files, decisions, and history.async status(): Promise<string> { const sessionId = this.ensureInitialized(); try { const state = await this.redis.getState(sessionId); const history = await this.redis.getCheckpointHistory(sessionId); const sections: string[] = []; sections.push('# Project State Status'); sections.push(''); sections.push(`Session ID: ${sessionId}`); sections.push(`Version: ${state.meta.version}`); sections.push( `Last Checkpoint: ${new Date(state.meta.last_checkpoint).toLocaleString()}` ); sections.push( `Last Access: ${new Date(state.meta.last_access).toLocaleString()}` ); sections.push( `Token Budget Used: ${state.meta.token_budget_used.toLocaleString()} / 200,000 (${( (state.meta.token_budget_used / 200000) * 100 ).toFixed(1)}%)` ); sections.push(''); sections.push(`Active Files: ${state.active_context.active_files.length}`); state.active_context.active_files.forEach((file) => { sections.push(` - ${file}`); }); sections.push(''); sections.push(`Active Decisions: ${state.active_context.active_decisions.length}`); state.active_context.active_decisions.forEach((decision) => { sections.push(` - [${decision.status}] ${decision.question}`); }); sections.push(''); sections.push(`Checkpoint History: ${history.length} versions available`); history.forEach((h, i) => { sections.push( ` ${i}. v${h.version} - ${new Date(h.timestamp).toLocaleString()} (${h.merge_duration_ms }ms, ${h.token_count} tokens)` ); }); return sections.join('\n'); } catch (error) { logger.error('Status check failed', { error, sessionId }); throw new Error(`Status check failed: ${error}`); } }
- src/index.ts:152-157 (handler)MCP CallToolRequestSchema handler case for 'status' tool: delegates execution to ProjectBrain.status() and formats response as MCP content.case 'status': { const result = await this.brain.status(); return { content: [{ type: 'text', text: result }], }; }
- src/index.ts:100-108 (registration)Registration of the 'status' tool in ListToolsRequestSchema handler: defines tool name, description, and empty input schema.{ name: 'status', description: 'Show current state metadata including version, active files, tasks, token usage, and checkpoint history.', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:104-107 (schema)Input schema for 'status' tool: empty object (no parameters required).inputSchema: { type: 'object', properties: {}, },