Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

4.1 KB
Raw Blame

name: jan description: Use when onboarding users to Jan Agent or explaining project and global configuration, skills, memory, providers, and MCP servers.

Jan Agent

When enabled, Jan lists this skill's name and purpose. The model loads its body with skill_read only when the task needs it.

Run jan in a folder. That CWD is the project root; --project DIR selects another root.

Project files

Jan reads one non-empty instructions file per folder, from the project root and its ancestors. The nearest file wins. AGENTS.md is the default and what /init writes; a legacy JAN.md still loads and wins over AGENTS.md in the same folder. It is the only file Jan keeps in the project; commit it to share instructions. Everything else is per-user state under ~/.jan/, created on first use.

User files

~/.jan/
|-- config.toml              # CLI provider configuration and credentials
|-- MEMORY.md                # generated index: user notes + projects with memory
|-- memory/                  # user-wide notes (`user:<name>`), every project
|-- skills/                  # user-wide skills, every project (project skills shadow them)
`-- projects/
    `-- <name>-<hash>/       # one per project directory (git worktrees share it)
        |-- project.json     # which directory this store belongs to
        |-- agent.toml       # model, provider, budget, tools, skills
        |-- MEMORY.md        # generated index of this project's notes
        |-- memory/          # durable project facts
        |-- skills/
        |   `-- <name>/
        |       `-- SKILL.md # procedure, plus optional scripts/templates
        |-- plugins/
        |-- threads/         # saved conversations
        `-- subagents/       # reusable agent definitions

agent.toml has [agent], [provider], [budget], [tools], and [skills] sections, plus [subagents.<name>] model = ... to choose the model a subagent runs on.

Built-in subagents explore (read-only: read/ls/find/grep, no shell) and research run on the cheap smol role (smol_model in config.toml, else the session's model); review and debug run on the session's model. A dispatch picks one with agent: "<name>". A subagent's model is a model id, smol or inherit. Change it in /settings > subagents; set the cheap model with /settings > smol_model. A simple skill can be skills/<name>.md. Skill precedence is project > user (~/.jan/skills) > built-in jan. Plugin skills are always named <plugin>:<name>. /skills lists each skill's scope and marks shadowed ones, and skill_write with scope: "user" writes a user skill. Symlinked skill folders are followed. Run jan cli agent status --project . to scaffold the store. A project that still has a .jan/ folder from an older Jan is moved into ~/.jan/projects/ automatically the next time Jan starts in it. memory_cross_project = false in config.toml hides other projects' memory from the agent. Memory is curated by the agent with one memory tool (view/search/write/edit/delete/move; no prompts). The in-prompt index is capped at ~1,500 tokens; status: done front matter archives a note. /memory tidy tidies it in a background subagent (at most 30 changes per tidy), and memory_auto_tidy = false in config.toml turns off the automatic tidy that runs once a session when the index is over budget.

Jan Desktop stores its settings and shared MCP configuration under the platform support folder:

<support-folder>/Jan/
|-- settings.json             # Desktop settings, including an optional data_folder
`-- data/                     # default JAN_DATA_FOLDER
    |-- mcp_config.json       # shared MCP server definitions
    `-- agent-workspace/      # Desktop-global agent store
        |-- skills/
        |-- memory/
        `-- threads/

Default <support-folder>:

macOS:   ~/Library/Application Support
Linux:   $XDG_DATA_HOME, or ~/.local/share
Windows: %APPDATA%

JAN_DATA_FOLDER overrides the data/ location. Otherwise Jan uses settings.json's data_folder, then <support-folder>/Jan/data. Add MCP servers in Desktop at Settings > MCP Servers; Jan writes <JAN_DATA_FOLDER>/mcp_config.json.