iflow-mcp_dasblueyeddevil-daem0nmcp

v6.6.6
iflow-mcp_dasblueyeddevil-daem0nmcp Checked 3 days ago Published 9 months ago

AI Memory & Decision System - Give AI agents persistent memory and consistent decision-making

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

remember Remember

[DEPRECATED] Use inscribe(action='remember') instead. Store a memory (decision/pattern/warning/learning). Auto-detects conflicts with past failures. Patterns and warnings are permanent.

ParameterTypeDescription
category *stringOne of 'decision', 'pattern', 'warning', 'learning'
content *stringWhat to remember
contextStructured context dict
file_pathAssociate with a file
happened_atWhen this fact was true in reality (ISO 8601 string). Use for backfilling: "User told me last week they prefer Python"
project_pathProject root
rationaleWhy this matters
tagsList of tags for retrieval

remember_batch Remember Batch

[DEPRECATED] Use inscribe(action='remember_batch') instead. Store multiple memories atomically. Efficient for bulk imports.

ParameterTypeDescription
memories *arrayList of dicts with category, content, rationale (opt), tags (opt), file_path (opt)
project_pathProject root

recall Recall

[DEPRECATED] Use consult(action='recall') instead. Semantic search for memories using TF-IDF. Results weighted by relevance, recency, importance.

ParameterTypeDescription
topic *stringWhat to search for
as_of_timeReturn knowledge state as of this time (ISO 8601 string). Filters to memories valid at that time. Use for: "What did we know on 2025-12-01?"
categoriesFilter by category
condensedbooleanCompress output (~75% token reduction)
file_pathFilter by file
include_linkedbooleanSearch linked projects
limitinteger
offsetinteger
project_pathProject root
since
tagsFilter by tags
until

recall_visual Recall Visual

[DEPRECATED] Use consult(action='recall', visual=True) instead. Search memories with visual UI support. Same as recall() but returns results with UI resource hint for MCP Apps hosts. Non-MCP-Apps hosts receive text fallback.

ParameterTypeDescription
topic *stringWhat to search for
as_of_timeView memories as they existed at this ISO datetime
categoriesFilter by category (decision, warning, pattern, learning)
condensedbooleanReturn condensed output
file_pathFilter by associated file
include_linkedbooleanInclude results from linked projects
limitintegerResults per page
offsetintegerPagination offset
project_pathProject root
sinceOnly memories created after this ISO datetime
tagsFilter by tags
untilOnly memories created before this ISO datetime

record_outcome Record Outcome

[DEPRECATED] Use reflect(action='outcome') instead. Record whether a decision worked. Failed outcomes get boosted in future searches.

ParameterTypeDescription
memory_id *integerID from remember()
outcome *stringWhat happened
worked *booleanTrue/False
project_pathProject root

recall_for_file Recall For File

Get all memories associated with a specific file.

ParameterTypeDescription
file_path *stringFile to look up
limitintegerMax results
project_pathProject root

recall_by_entity Recall By Entity

Get all memories mentioning a specific entity (class/function/file).

ParameterTypeDescription
entity_name *stringEntity to search for
entity_typeOptional type filter
project_pathProject root

recall_hierarchical Recall Hierarchical

GraphRAG-style layered recall: community summaries first, then individual memories.

ParameterTypeDescription
topic *stringWhat to search for
include_membersbooleanInclude full member content
limitintegerMax results per layer
project_pathProject root

search_memories Search Memories

[DEPRECATED] Use consult(action='search') instead. Full-text search across all memories with TF-IDF ranking.

ParameterTypeDescription
query *stringSearch text
highlightbooleanInclude matched term excerpts
highlight_endstring
highlight_startstring
include_metabooleanReturn pagination metadata
limitinteger
offsetinteger
project_pathProject root

get_memory_versions Get Memory Versions

Get version history showing how a memory evolved over time.

ParameterTypeDescription
memory_id *integerMemory to query
limitintegerMax versions
project_pathProject root

get_memory_at_time Get Memory At Time

Get memory state at a specific point in time.

ParameterTypeDescription
memory_id *integerMemory to query
timestamp *stringISO format timestamp
project_pathProject root

compact_memories Compact Memories

Consolidate recent episodic memories into a summary. Originals archived with graph links.

ParameterTypeDescription
summary *stringSummary text (min 50 chars)
dry_runbooleanPreview only
limitintegerMax memories to compact
project_pathProject root
topicFilter by topic

cleanup_memories Cleanup Memories

Merge duplicate memories (same category + content + file_path). Keeps newest.

ParameterTypeDescription
dry_runbooleanPreview only
merge_duplicatesbooleanActually merge
project_pathProject root

archive_memory Archive Memory

Archive/unarchive a memory. Archived = hidden from recall but preserved.

ParameterTypeDescription
memory_id *integerMemory to archive
archivedbooleanTrue to archive, False to restore
project_pathProject root

pin_memory Pin Memory

Pin/unpin a memory. Pinned: never pruned, boosted in recall, permanent.

ParameterTypeDescription
memory_id *integerMemory to pin
pinnedbooleanTrue to pin, False to unpin
project_pathProject root

add_rule Add Rule

[DEPRECATED] Use govern(action='add_rule') instead. Add a decision tree rule. Rules are matched semantically.

ParameterTypeDescription
trigger *stringWhat activates this rule (natural language)
ask_firstQuestions to consider
must_doRequired actions
must_notForbidden actions
priorityintegerHigher = shown first
project_pathProject root
warningsPast experience warnings

check_rules Check Rules

[DEPRECATED] Use consult(action='check_rules') instead. Check if an action matches any rules. Call before significant changes.

ParameterTypeDescription
action *stringWhat you're about to do
contextOptional context dict
project_pathProject root

list_rules List Rules

List all configured rules.

ParameterTypeDescription
enabled_onlybooleanOnly show enabled rules
limitintegerMax results
project_pathProject root

update_rule Update Rule

Update an existing rule.

ParameterTypeDescription
rule_id *integerID of rule to update
ask_first
enabledEnable/disable
must_do
must_not
priorityNew priority
project_pathProject root
warnings

get_briefing Get Briefing

[DEPRECATED] Use commune(action='briefing') instead. Session start - call FIRST. Returns stats, recent decisions, warnings, failed approaches, git changes.

ParameterTypeDescription
focus_areasTopics to pre-fetch
project_pathProject root (REQUIRED)

get_briefing_visual Get Briefing Visual

[DEPRECATED] Use commune(action='briefing', visual=True) instead. Session start with visual UI support. Same as get_briefing() but returns results with UI resource hint for MCP Apps hosts. Non-MCP-Apps hosts receive text fallback.

ParameterTypeDescription
focus_areasTopics to pre-fetch
project_pathProject root (REQUIRED)

get_covenant_status Get Covenant Status

[DEPRECATED] Use commune(action='covenant') instead. Get current Sacred Covenant status for dashboard visualization. Returns the current ritual phase, preflight token status, and data needed to render the Covenant Status Dashboard.

ParameterTypeDescription
project_pathProject root (REQUIRED)

get_covenant_status_visual Get Covenant Status Visual

Get covenant status with visual UI support. Same as get_covenant_status() but returns results with UI resource hint for MCP Apps hosts. Non-MCP-Apps hosts receive text fallback.

ParameterTypeDescription
project_pathProject root (REQUIRED)

context_check Context Check

[DEPRECATED] Use consult(action='preflight') instead. Pre-flight check combining recall + check_rules. Issues preflight token valid for 5 min.

ParameterTypeDescription
description *stringWhat you're about to do
project_pathProject root

check_for_updates Check For Updates

Check if daemon knowledge has changed since the given timestamp. Used for real-time update polling. MCP hosts call this tool periodically and send 'data_updated' postMessage to UIs when has_changes is True.

ParameterTypeDescription
interval_secondsintegerRecommended polling interval (5-60, default 10). Returned to help hosts configure polling.
project_pathProject context path (uses current directory if not specified)
sinceISO 8601 timestamp to check from (e.g., '2026-01-28T12:00:00Z'). If None, returns current state (always has_changes=True).

health Health

[DEPRECATED] Use commune(action='health') instead. Get server health, version, and statistics.

ParameterTypeDescription
project_pathProject root

verify_facts Verify Facts

[DEPRECATED] Use reflect(action='verify') instead. Verify factual claims in text against stored knowledge. Extracts claims from the provided text and verifies them against: 1. Stored memories (via recall) 2. GraphRAG entities (if available) 3. Bi-temporal history (if as_of_time provided) Per CONTEXT.md: Verification failures surface as "[unverified]" markers, not hard blocks.

ParameterTypeDescription
text *stringText containing claims to verify
as_of_timeOptional ISO 8601 datetime for point-in-time verification
categoriesOptional list of memory categories to search
project_pathProject root

scan_todos Scan Todos

[DEPRECATED] Use understand(action='todos') instead. Scan codebase for TODO/FIXME/HACK/XXX/BUG comments.

ParameterTypeDescription
auto_rememberbooleanSave as warning memories
pathDirectory to scan
project_pathProject root
typesFilter to specific types

index_project Index Project

[DEPRECATED] Use understand(action='index') instead. Index code structure using tree-sitter. Extracts classes, functions, methods with signatures.

ParameterTypeDescription
pathPath to index
patternsGlob patterns for files
project_pathProject root

find_code Find Code

[DEPRECATED] Use understand(action='find') instead. Semantic search across indexed code entities using vector similarity.

ParameterTypeDescription
query *stringNatural language query
limitintegerMax results
project_pathProject root

analyze_impact Analyze Impact

[DEPRECATED] Use understand(action='impact') instead. Analyze blast radius of changing a code entity. Finds affected files and dependents.

ParameterTypeDescription
entity_name *stringFunction/class/method name
project_pathProject root

propose_refactor Propose Refactor

Generate refactor suggestions combining file memories, causal history, TODOs, and rules.

ParameterTypeDescription
file_path *stringFile to analyze
project_pathProject root

rebuild_index Rebuild Index

Force rebuild of TF-IDF/vector indexes. Use if search seems stale.

ParameterTypeDescription
project_pathProject root

export_data Export Data

[DEPRECATED] Use maintain(action='export') instead. Export all memories and rules as JSON for backup/migration.

ParameterTypeDescription
include_vectorsbooleanInclude embeddings (large)
project_pathProject root

import_data Import Data

[DEPRECATED] Use maintain(action='import_data') instead. Import memories/rules from exported JSON.

ParameterTypeDescription
data *objectExported data structure
mergebooleanAdd to existing (True) or replace all (False)
project_pathProject root

prune_memories Prune Memories

[DEPRECATED] Use maintain(action='prune') instead. Prune old low-value memories. Protected: permanent, pinned, with outcomes, frequently accessed.

ParameterTypeDescription
categoriesLimit to these categories
dry_runbooleanPreview only
min_recall_countintegerProtect if accessed >= N times
older_than_daysintegerAge threshold
project_pathProject root
protect_successfulbooleanProtect worked=True

trace_chain Trace Chain

Traverse memory graph to understand causal chains and dependencies.

ParameterTypeDescription
memory_id *integerStarting point
directionstringforward/backward/both
max_depthintegerHow far to traverse
project_pathProject root
relationship_typesFilter by type

get_graph Get Graph

Get subgraph of memories and relationships as JSON or Mermaid diagram.

ParameterTypeDescription
formatstringjson or mermaid
memory_idsSpecific IDs to include
project_pathProject root
topicAlternative to memory_ids

get_graph_visual Get Graph Visual

Get visual memory graph with UI resource hint for MCP Apps rendering. Returns interactive force-directed graph visualization showing memory relationships with node coloring by category and edge styling by relationship type.

ParameterTypeDescription
include_orphansbooleanInclude memories with no relationships
memory_idsSpecific memory IDs to include (if None, uses topic search)
project_pathProject context path
topicTopic to search for memories (alternative to memory_ids)

get_graph_stats Get Graph Stats

Get metrics about the knowledge graph structure: node/edge counts, density, components.

ParameterTypeDescription
project_pathProject root

rebuild_communities Rebuild Communities

Detect memory communities using Leiden algorithm on the knowledge graph.

ParameterTypeDescription
min_community_sizeintegerMin members per community
project_pathProject root
resolutionnumberLeiden resolution (>1 = smaller communities)

list_communities List Communities

List all memory communities with summaries.

ParameterTypeDescription
levelFilter by hierarchy level
project_pathProject root

list_communities_visual List Communities Visual

List communities with visual UI support. Same as list_communities() but returns results with UI resource hint for MCP Apps hosts. Non-MCP-Apps hosts receive text fallback.

ParameterTypeDescription
levelFilter by hierarchy level
parent_community_idFilter to children of this community (for drill-down)
project_pathProject root

get_community_details Get Community Details

Get full community details including all member memories.

ParameterTypeDescription
community_id *integerCommunity to expand
project_pathProject root

set_active_context Set Active Context

Add memory to always-hot working context. Auto-included in briefings.

ParameterTypeDescription
memory_id *integerMemory to add
expires_in_hoursAuto-remove after N hours
priorityintegerHigher = shown first
project_pathProject root
reasonWhy it should stay hot

get_active_context Get Active Context

Get all always-hot memories ordered by priority.

ParameterTypeDescription
project_pathProject root

remove_from_active_context Remove From Active Context

Remove memory from active context.

ParameterTypeDescription
memory_id *integerMemory to remove
project_pathProject root

clear_active_context Clear Active Context

Clear all active context memories. Use when switching focus.

ParameterTypeDescription
project_pathProject root

add_context_trigger Add Context Trigger

Create auto-recall trigger. Types: file_pattern (glob), tag_match (regex), entity_match (regex).

ParameterTypeDescription
pattern *stringGlob or regex pattern
recall_topic *stringTopic to recall when triggered
trigger_type *stringfile_pattern/tag_match/entity_match
priorityintegerHigher = evaluated first
project_pathProject root
recall_categoriesOptional category filter

list_context_triggers List Context Triggers

List all configured context triggers.

ParameterTypeDescription
active_onlybooleanOnly return active triggers
project_pathProject root

remove_context_trigger Remove Context Trigger

Remove a context trigger.

ParameterTypeDescription
trigger_id *integerID of trigger to remove
project_pathProject root

check_context_triggers Check Context Triggers

Check which triggers match context and get auto-recalled memories.

ParameterTypeDescription
entitiesMatch against entity_match triggers
file_pathMatch against file_pattern triggers
limitintegerMax memories per trigger
project_pathProject root
tagsMatch against tag_match triggers

list_linked_projects List Linked Projects

List all linked projects.

ParameterTypeDescription
project_pathProject root

consolidate_linked_databases Consolidate Linked Databases

Merge memories from all linked projects into this one. For monorepo transitions.

ParameterTypeDescription
archive_sourcesbooleanRename source .daem0nmcp to .daem0nmcp.archived
project_pathProject root

compress_context Compress Context

Compress context using LLMLingua-2 for token reduction. Achieves 3x-6x compression while preserving meaning. Useful for: - Reducing large context before sending to LLM - Optimizing token usage in long conversations - Compressing retrieved memories for efficiency

ParameterTypeDescription
context *stringText to compress
content_type"code", "narrative", or "mixed". Auto-detects if None.
preserve_codebooleanWhether to preserve code syntax (function names, etc.)
rateCompression rate (0.2-0.5). Lower = more aggressive. Auto-detects if None.

execute_python Execute Python

Execute Python code in an isolated sandbox. The code runs in a Firecracker microVM with: - No access to host filesystem - No network access - Hard timeout enforcement - Resource limits

ParameterTypeDescription
code *stringPython code to execute
project_pathProject root (required for capability check)
timeout_secondsOverride default timeout (max 60s)

ingest_doc Ingest Doc

Fetch external docs from URL and store as learnings. Content is chunked.

ParameterTypeDescription
topic *stringTag for organizing
url *stringURL to fetch
chunk_sizeintegerMax chars per chunk
project_pathProject root

trace_causal_path Trace Causal Path

Find causal paths between two memories. Answers: "How did decision X lead to outcome Y?"

ParameterTypeDescription
end_memory_id *integerTarget memory ID
start_memory_id *integerStarting memory ID
max_depthintegerMaximum path length (default: 5)
project_pathProject root

trace_evolution Trace Evolution

Trace how knowledge about an entity evolved over time. Answers: "How has our understanding of X changed?" Returns a bi-temporal timeline with valid_from, valid_to, transaction_time, and invalidation info. Critical for answering: "T1 believed X, at T2 learned X wrong, query at T3 shows invalidation"

ParameterTypeDescription
entity_idEntity database ID (alternative to entity_name)
entity_nameName of the entity to trace (e.g., "UserService", "auth")
entity_typeFilter by entity type (e.g., "class", "concept", "function")
include_invalidatedbooleanInclude invalidated versions in timeline (default: True)
project_pathProject root

simulate_decision Simulate Decision

Temporal Scrying -- replay a past decision with current knowledge. Reconstructs the context that existed at the decision's moment of inscription, compares it with the daemon's present understanding, and reveals what is now known that was not known then.

ParameterTypeDescription
decision_id *integerMemory ID of the decision to scry
project_pathProject root

evolve_rule Evolve Rule

Rule Entropy Analysis -- examine rules for signs of decay and drift. Cross-references rule triggers against the code index and outcome history to produce staleness scores and concrete evolution suggestions. The daemon proposes changes but never inscribes them without consent.

ParameterTypeDescription
project_pathProject root
rule_idSpecific rule ID to analyze (omit for batch analysis of all rules)

debate_internal Debate Internal

Adversarial Council -- convene an internal debate grounded in memory evidence. Runs a structured advocate/challenger/judge debate where each argument is supported only by recalled memory evidence. No external reasoning is invoked. Convergence detection halts deliberation when positions stabilize. The synthesis is inscribed as a consensus memory for future retrieval.

ParameterTypeDescription
advocate_position *stringThe position the advocate will defend
challenger_position *stringThe position the challenger will defend
topic *stringThe subject of deliberation
project_pathProject root

list_entities List Entities

List most frequently mentioned entities.

ParameterTypeDescription
entity_typeOptional type filter
limitintegerMax results
project_pathProject root

backfill_entities Backfill Entities

Extract entities from all existing memories. Safe to run multiple times.

ParameterTypeDescription
project_pathProject root

commune Commune

Session start & status operations. Actions: briefing, active_context, triggers, health, covenant, updates

ParameterTypeDescription
action *string
entities
file_path
focus_areas
interval_secondsinteger
limitinteger
parent_community_id
project_path
since
tags
visualboolean

consult Consult

Pre-action intelligence gathering. Actions: preflight, recall, recall_file, recall_entity, recall_hierarchical, search, check_rules, compress

ParameterTypeDescription
action *string
action_desc
categories
compress_text
condensedboolean
content_type
context
description
entity_name
entity_type
file_path
highlightboolean
highlight_endstring
highlight_startstring
include_linkedboolean
include_membersboolean
include_metaboolean
limitinteger
offsetinteger
preserve_codeboolean
project_path
query
rate
since
tags
topic
until
visualboolean

inscribe Inscribe

Memory writing & linking operations. Actions: remember, remember_batch, link, unlink, pin, activate, deactivate, clear_active, ingest

ParameterTypeDescription
action *string
category
chunk_sizeinteger
content
context
description
expires_in_hours
file_path
happened_at
memories
memory_id
pinnedboolean
priorityinteger
project_path
rationale
reason
relationship
source_id
tags
target_id
topic
url

reflect Reflect

Outcomes & verification operations. Actions: outcome, verify, execute

ParameterTypeDescription
action *string
as_of_time
categories
code
memory_id
outcome_text
project_path
text
timeout_seconds
worked

understand Understand

Code comprehension operations. Actions: index, find, impact, todos, refactor

ParameterTypeDescription
action *string
auto_rememberboolean
entity_name
file_path
limitinteger
path
patterns
project_path
query
types

govern Govern

Rules & triggers management. Actions: add_rule, update_rule, list_rules, add_trigger, list_triggers, remove_trigger

ParameterTypeDescription
action *string
active_onlyboolean
ask_first
enabled
enabled_onlyboolean
limitinteger
must_do
must_not
pattern
priorityinteger
project_path
recall_categories
recall_topic
rule_id
trigger
trigger_id
trigger_type
warnings

explore Explore

Graph & discovery operations. Actions: related, chain, graph, stats, communities, community_detail, rebuild_communities, entities, backfill_entities, evolution, versions, at_time

ParameterTypeDescription
action *string
community_id
directionstring
end_memory_id
entity_id
entity_name
entity_type
formatstring
include_invalidatedboolean
include_orphansboolean
level
limitinteger
max_depthinteger
memory_id
memory_ids
min_community_sizeinteger
parent_community_id
project_path
relationship_types
resolutionnumber
start_memory_id
timestamp
topic
visualboolean

maintain Maintain

Housekeeping & federation operations. Actions: prune, archive, cleanup, compact, rebuild_index, export, import_data, link_project, unlink_project, list_projects, consolidate, purge_dream_spam

ParameterTypeDescription
action *string
archive_sourcesboolean
archivedboolean
categories
data
dry_runboolean
include_vectorsboolean
label
limitinteger
linked_path
memory_id
mergeboolean
merge_duplicatesboolean
min_recall_countinteger
older_than_daysinteger
project_path
protect_successfulboolean
relationshipstring
summary
topic