Agent Brain
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENT_BRAIN_DB_PATH | No | SQLite database location. | ~/.agent-brain/brain.db |
| AGENT_BRAIN_HOST_KEY | No | Host identifier for multi-machine setups. | localhost |
| AGENT_BRAIN_CONFIG_PATH | No | Domain/repo config file location. | ~/.agent-brain/config.yaml |
| AGENT_BRAIN_CONSTANTS_PATH | No | Optional project constants file for reconciliation. | |
| AGENT_BRAIN_CUSTOM_MARKERS | No | JSON dict of extra marker files, e.g. {"BUGGY.txt": "QUARANTINED"}. | |
| AGENT_BRAIN_ARTIFACT_MAX_BYTES | No | Max artifact file size in bytes (default 1 MB). | 1048576 |
| AGENT_BRAIN_ARTIFACT_MAX_LIST_ITEMS | No | Max items returned from list_artifacts. | 200 |
| AGENT_BRAIN_ARTIFACT_ALLOW_SUPERSEDED | No | Allow fetching dead/superseded artifacts. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Scientific provenance layer for AI-assisted research programs. Tracks results, assumptions, papers, outputs, and artifacts across multiple repositories. The DB mirrors on-disk truth; use reconcile_disk_state to verify consistency.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| record_resultC | Record a new scientific result in the provenance database. |
| update_result_statusC | Update the status of an existing result. At least one field must change. |
| check_statusC | Look up the current classification of a named result. |
| query_resultsC | Query results with filters. Returns matching results ordered by last update. |
| record_assumptionC | Record a named assumption or caveat. |
| link_resultsC | Create an explicit link between two results. relation: DEPENDS_ON, SUPPORTS, CONTRADICTS, SUPERSEDES, INDEPENDENT_OF, BRIDGE_REQUEST |
| get_domain_summaryB | Get an overview of a domain's provenance state for session bootstrap. |
| reconcile_disk_stateA | Reconcile the provenance DB against on-disk truth. Checks marker files, artifact existence, and optional project constants quarantine state. Returns structured diff: {missing_in_db, stale_in_db, conflicts, warnings}. NEVER silently overwrites conflicting DB state. |
| record_paperC | Record a paper that provided data or equations. usage_type: DATA, EQUATION, BOTH, CONTEXT |
| query_papersC | Query papers with filters. Search by usage_type (DATA/EQUATION/BOTH/CONTEXT), domain_tag, text, computation_id, or year range. |
| link_paper_to_resultC | Link a paper to a provenance result. link_type: DATA_SOURCE, EQUATION_SOURCE, VALIDATES, CONTRADICTS, INFORMS |
| record_outputC | Record a headline quantitative result. key format: 'category.target' (e.g., 'verdict.main', 'fit.slope', 'count.galaxies'). Exactly one of value_num or value_str must be set. |
| query_outputsC | Query computation outputs. key_pattern uses SQL LIKE (e.g., 'fit.%' for all fit values, '%.target%' for a specific system). |
| list_artifactsB | List artifact files for a result. Uses evidence_relpath to find the output directory. Non-fetchable for SUPERSEDED/DEAD/QUARANTINED unless include_superseded=True. |
| fetch_artifactC | Fetch a specific artifact file's content. Returns UTF-8 text or binary flag. artifact_name is relative to the result's output directory. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
Most tools have clearly distinct resource+action targets (papers, results, outputs, artifacts), and the record_/query_ pairs are easy to tell apart. The main soft spots are check_status vs query_results (both read result classification) and record_result vs record_output, though the descriptions of 'headline quantitative value' vs 'scientific result' provide enough separation.
All names are snake_case verb_noun (record_paper, query_results, link_results, fetch_artifact), which is a consistent and predictable pattern. The only minor deviation is the mix of read verbs (get_domain_summary, check_status, query_*, list_*, fetch_*), but each read verb maps to a genuinely different access mode.
15 tools is at the upper edge of a well-scoped set but each maps to a distinct provenance operation (record/query/link for papers, results, outputs, plus disk reconciliation and artifact access). No tool appears redundant, though the set is close to feeling heavy for the domain.
Core write/read coverage exists for results, papers, and outputs, plus linking and artifact retrieval, but there is no delete/retire or update path for papers or outputs, and record_assumption has no corresponding query or update tool. Read-side traversal of links (e.g., list_links/query_links) is also missing, so an agent can create relationships but cannot inspect them except indirectly.