Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mojzis/logseq-triage.
Something went wrong. Try again.
Files
- TypeScript 100%
README.md
Logseq Triage #
AI-powered note triage for Logseq using Claude API. Automatically detect entities (modules, projects, objectives) mentioned in journal blocks and add structured metadata.
Features #
/triageslash command for analyzing journal blocks- Automatic entity detection and linking
- Concept extraction from notes
- Metadata tracking with
triage-statusandauto-triagedproperties
Setup #
1. Install Plugin #
Load the plugin in Logseq:
- Clone/download this repository
- In Logseq: Settings → Plugins → Load unpacked plugin
- Select the plugin directory
2. Create Configuration #
Create triage-config.json in your graph's logseq/ directory:
{
"claudeApiKey": "sk-ant-your-api-key-here",
"model": "claude-3-5-sonnet-20241022"
}
Important: Add triage-config.json to your .gitignore to avoid committing API keys.
3. Set Up Entity Pages #
Create pages in your graph with these properties:
Modules (code components):
page-type:: module
summary:: Brief description of what this module does
Projects (technical work chunks):
page-type:: project
summary:: Brief description of the project goal
Objectives (strategic goals):
page-type:: objective
summary:: Brief description of the objective
Usage #
- Write a note in your journal
- Type
/triagein the block - Plugin analyzes the block and adds:
- Properties:
triage-status:: auto,auto-triaged:: [[date]] - Sub-block with concepts
- Sub-block with entity links
- Properties:
Example #
Before:
- Need to fix authentication timeout in production
After /triage:
- Need to fix authentication timeout in production
triage-status:: auto
auto-triaged:: [[2025-10-13]]
- Concepts: Fix authentication timeout
- Related: [[AuthService]] [[Zero Bugs]]
Development #
npm install
npm run dev # Watch mode for development
npm run build # Production build
Troubleshooting #
"Config not loaded" error:
- Ensure
triage-config.jsonexists in<your-graph>/logseq/directory - Verify JSON syntax is valid
- Reload plugin after creating config
No entities detected:
- Check that entity pages have
page-type::property - Entity types must be:
module,project, orobjective - Optional
summary::property helps with better matching
API errors:
- Verify Claude API key is valid
- Check network connectivity
- Review browser console for detailed error messages
Limitations (MVP) #
This is an MVP with core functionality. Future enhancements:
- No similarity detection (might create duplicate tasks)
- No task page creation (just enriches journal blocks)
- No granularity detection (assumes all notes are task-level)
- No batch triage of historical notes
- Config is per-graph only (no global settings)
- No undo/redo for triage operations
License #
MIT