About CLI
CLI is an MCP server published by archcore-ai in the Agents category: archived: Archcore moved to github.com/archcore-ai/archcore (CLI under cli/). Conduid read 11 tools from its source: add_relation, create_document, get_document, init_project, install_host_config, list_documents and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 65 stars and 5 forks, is licensed Apache-2.0, and its last commit was on 22 Sep 2026. The latest release is v0.8.7 (21 Sep 2026): Changelog 87a1b5d feat: improve relations. It follows v0.8.6 (18 Sep 2026), and the 5 most recent releases go back to v0.8.3 (7 Sep 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include adr, ai-coding, architecture, coding-agents, context-engineering and devtools.
Install
git clone https://github.com/archcore-ai/cliTools (11)
add_relationAdd a directed relation between two documents in the .archcore/ knowledge base. Before calling, read both documents and call list_relations. Identify the statements that justify the type and direction. For related, name the joint reading task (the concrete task that requires both documents). A shared topic, folder, or tag alone is insufficient. IF the specific type is uncertain, THEN do not use related as a fallback. Do not add a reverse related or an extra related beside a more specific edge solely for navigation. If no supported claim exists, leave the pair unlinked. The tool validates structure, not semantic justification. Relation axes: structural (related, implements, extends, depends_on), evidential (supports, contradicts), temporal (supersedes). Relation types: related — general association for a concrete joint reading task (e.g., a guide and its companion reference) implements — source implements what target specifies (e.g., plan implements prd) extends — source builds upon target (e.g., rfc extends an existing adr) depends_on — source requires target to proceed (e.g., plan depends_on adr) supports — material points to the statement it backs contradicts — challenger points to the statement it disputes supersedes — newer document points to the older document it replaces For requirements-layer guidance (Sources vs Specifications, ISO cascade), see server instructions REQUIREMENTS LAYERS section. Both source and target must be distinct existing local documents. Global sources cannot be relation endpoints. Paths must remain inside the project. The tool mutates the manifest only; it does not change document status or resolve contradictions. An invalid input or manifest leaves the manifest unchanged. Successful calls return whether the relation was added, plus warnings that name a reverse related edge or related beside a more specific edge. A warning never blocks the write. Paths can be given with or without the ".archcore/" prefix.create_documentCreate a new structured document in the .archcore/ knowledge base. BEFORE calling this tool: call list_documents to confirm no equivalent document already exists. Do not create duplicates. Use this tool to permanently capture distilled, high-value knowledge — not temporary notes, chat logs, or speculative content. Document types (sections shown are core — full templates auto-generated when content is omitted): adr — Decision record · sections: Context, Decision, Alternatives, Consequences rfc — Open proposal · sections: Summary, Motivation, Detailed Design, Drawbacks, Alternatives rule — Team standard · sections: Rule, Rationale, Examples (Good/Bad), Enforcement guide — Step-by-step howto · sections: Prerequisites, Steps, Verification, Common Issues doc — Reference material (tables/glossaries) · sections: Overview, Content, Examples spec — Normative behavior contract of something others rely on — a boundary (API/interface/schema/protocol) or a feature/subsystem — captured after code or specified ahead of it · core sections: Purpose & Scope, Surface, Normative Behavior (EARS clauses + BCP 14 keywords), Constraints & Invariants, Failure Behavior, Conformance prd — Product requirements · sections: Vision, Problem, Goals & Metrics, Requirements idea — Concept worth exploring · sections: Idea, Value, Possible Implementation, Risks plan — Implementation plan · sections: Goal, Tasks, Acceptance Criteria, Dependencies research — Territory investigation · sections: Goal, Scope, Coverage, Sources, Findings, Synthesis, Open Gaps evidence — One external material · sections: Locator, Extract, Notes scenario — Actor-subject flows and Given/When/Then examples illustrating one linked spec's clauses · sections: Subject, Actors, Flows (each with an Anchors: line), Examples, Open Questions journey — Intended path of one user type before a spec covering this interaction exists · sections: Intent, Actors, Journeys, Open Questions rnd — Bounded research · sections: Goal, Questions, Approach, Findings, Recommendation, Next Action task-type — Recurring task pattern · sections: What, When, Steps, Example, Pitfalls cpat — Code pattern change · sections: What Changed, Why, Before, After, Scope mrd — Market analysis · sections: Market, TAM/SAM/SOM, Competitive, Needs, Opportunity brd — Business justification · sections: Objectives, Stakeholders, Constraints, ROI urd — User needs · sections: Personas, Journeys, User Reqs, Usability, Acceptance brs — ISO 29148 §9.3 business req spec · sections: Mission/Goals, Operational Concept, Business Constraints, Traceability strs — ISO 29148 §9.4 stakeholder req spec · sections: Stakeholder Classes, ConOps, Stakeholder Reqs, Traceability syrs — ISO 29148 §9.5 system req spec · sections: System Boundary, System Reqs, Interfaces, Verification Approach srs — ISO 29148 §9.6 software req spec · sections: Scope, Software Reqs, External Interfaces, Verification Matrix Returns: JSON with path, type, category, title, status, tags (when present), and optionally nearby_documents — paths of other documents in the same directory (capped at 5, sorted alphabetically). This is a partial location hint, not a semantic ranking or a complete candidate set. Also search beyond this folder for documents that name the same subject or define a contract that the new document uses. Call add_relation only when both documents justify the claim; a new document can remain unlinked. Do not link every neighbor by default.get_documentRead the full content of a single .archcore/ document by its file path. Call this tool AFTER list_documents has returned a valid path. Do not guess or construct paths — only use paths returned by list_documents. Returns: the document's YAML frontmatter (title, type, status), its full Markdown body, and any outgoing_relations and incoming_relations from the knowledge graph. Use this tool when you need to: - Read the reasoning or content of a specific document - Verify what a document says before creating a related one - Retrieve a document to summarize or reference in a responseinit_projectInitialize the .archcore/ knowledge base for the current project. Call this tool ONCE per project, before creating any documents, if list_documents reports the project is not yet initialized (empty result with no .archcore/ directory). Idempotent — safe to call on an already-initialized project (existing settings preserved and returned). Creates the .archcore/ directory and settings.json only — no host wiring (hooks, MCP registration, instructions file). For that, during an explicit init/setup flow, call install_host_config (or run 'archcore init --agent <id>' from a shell). Returns: JSON with { initialized: true, settings: {...}, already_initialized: bool }.install_host_configGATED — call ONLY when the user has explicitly asked to set up/wire Archcore into this coding agent (hooks, MCP config, usage hint) AND has confirmed a plan you stated first (which agent, which files). Do NOT call this proactively — not because you noticed missing hooks or MCP config, not for a generic "set up my project" request, not as part of routine document work. When in doubt, ask the user first; never call speculatively. Writes host config outside .archcore/: MCP server entry, SessionStart hook (hosts that support hooks), and the Archcore usage hint in the agent's instructions file (e.g. .mcp.json, .claude/settings.json, AGENTS.md) — the same artifacts 'archcore init' writes. All writes land under the project root this MCP server was started for. Idempotent: existing archcore entries are kept or updated in place; foreign config content is never touched — safe to call again to converge. Complements init_project, which only initializes .archcore/ itself and never touches host config. Returns: JSON report per agent — artifact paths written (project-relative), hook support, and any per-artifact errors.list_documentsDiscover and filter documents in the .archcore/ knowledge base. Call this tool FIRST before reading or creating any document. Use it to: - Check whether a document on a given topic already exists (prevents duplicates) - Get valid file paths required by get_document - Browse what documentation is available by type, category, or status Returns: JSON, counts first: {"by_source": {...}, "total": N, "offset": N, "returned": N, "truncated": bool, "documents": [...]}. Each document carries path, title, type, category, status, tags (when present), and source_kind — the listing covers the local project AND every mounted read-only global source, interleaved so every source appears on the first page. "by_source" counts the full filtered set per source (e.g. {"local": 102, "org": 42}); compare it with the page to see what a truncation dropped. When "truncated" is true there are more matches beyond this page — narrow the filters, scope with "source", or request the next page with "offset". A response byte budget can return fewer rows than "limit"; the next page always starts at offset + returned. Use the returned paths directly as input to get_document. Do not construct paths manually.list_relationsList document relations stored in the sync manifest. Use to see the full relation graph across all documents (omit "path"), or audit all relations for a specific document. Note: get_document also returns relations for a single document — use list_relations for a broader view or when you haven't loaded the document yet. Optionally filter by a specific document path (with or without ".archcore/" prefix).remove_documentRemove a document from the .archcore/ knowledge base and clean up all its relations. This operation is permanent — the file is deleted from disk and cannot be recovered. All relations referencing this document (both outgoing and incoming) are removed automatically from the manifest. Before calling this tool: confirm the deletion with the user explicitly. Do not delete a document based on an inferred intent — always ask. Prefer update_document over remove_document when the document's history should be preserved: - A decision is outdated → change status to "rejected" (keeps history) - A plan is abandoned → change status to "rejected" - Only delete when the document is genuinely wrong, duplicated, or was created by mistake. Call list_documents first to get the document's path. Optionally call get_document to review its content and relations before deleting. Returns: JSON with path, title, type, category, and relations_removed count.remove_relationRemove a directed relation between two documents. Use when a relation is no longer accurate — for example, when a document is superseded or a dependency is resolved. Only local document paths are permitted; global sources and paths outside the project are rejected. The tool mutates the manifest only. A validation failure leaves the manifest unchanged. Missing local documents do not prevent removal of a stored relation. Both source and target paths can be given with or without the ".archcore/" prefix. The relation type must match exactly. Returns: {"removed": true} if found and removed, {"removed": false} if not found.search_documentsSearch .archcore/ documents by content or filters, across the local project and every mounted read-only global source. Prefer this over list_documents + get_document loops when you need "which docs match X". Give at least one filter (path_ref, content, types, status); filters combine as AND. content matches every whitespace-separated word by default, in any order ("plugin compatibility" matches "Plugin / CLI Compatibility"); match="exact" takes one literal substring, match="any" takes at least one word. path_ref matches @-notation and qualified bare paths. source scopes to "local", "global", or a declared source id. Returns JSON, summary first: - coverage: documents scanned per source. Empty results next to a populated coverage is a verified absence — broaden the words; do not assume the corpus was skipped. - hits: matches per source before the limit cut. - truncated: true when the response byte budget kept fewer rows than the limit admitted. - index: path, title, source_id of every row the limit admitted. - results: rows in`sort`order ("relevance" default), each with at most 5 matches and 5 relations per direction; matches_total and the relation totals appear when more exist. A source with a match keeps its top row on the page. Read source_kind on each row. A matching global is part of the answer: read it. IF a local and a global document conflict, THEN the local one is authoritative. mode="snippets" (default) returns excerpts: use it to find candidates. mode="full" adds each body inline (frontmatter stripped), default limit 3, so you can skip get_document. The bodies share the byte budget: a long body arrives shortened with body_truncated: true and body_bytes. Call get_document for the rest, and always before update_document — never write back a shortened body. Raise limit only after hits or index show more rows worth reading. IF the host shows only part of this result, THEN hits and index at its start still name every source that matched. Read those documents (get_document, or a narrower query) before you answer.update_documentUpdate an existing document in the .archcore/ knowledge base. Before updating, confirm the intended changes with the user if possible. Call list_documents first to get the document's path, then pass that path to get_document to review current content before updating. You can update any combination of: title, status, content, or tags. Fields not provided are left unchanged. Pass an empty tags array to clear all tags. Returns: JSON with the path of the updated file, its type, category, title, status, and tags (when present).Security checks
- ✓README presentThe repository's README runs to about 2.6K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 101 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README