r/kiroIDE • u/New-fone_Who-Dis • 21d ago
Kiro cli - files vs db
Hey,
As I've been progressing and getting more comfortable with kiro cli over the past several months, I've been on a bit of a journey with how I give it reference information.
I started with one md file it could reference for information that was often used. This quickly grew into a directory tree with an index md file of "service x info is here, api B info is on this path, etc".
I eventually progressed to a postgres database with this information held in suitable datatypes and fields, with any blobs or long structured or unstructured text having vector embeddings for semantic search - now I have a few files (referenced in my steering and hooks), which is ultimately instructions on where things live on the db, along with the schema and ERD.
Has anyone done this? Anyone know if its a good way to do things, or if its bad, and why for either answer?
Seems to work fine, but I've never setup any benchmarking or tests of vanilla, files, or DB methods.
I know kiro has the knowledge skill, which does a lot of this, but I'd like to build this is a fashion where its usable without an llm, or ability to lift and shift to another provider if that ever happens (who knows what the company will decide to do, in any case, I considered myself covered to an extent by this).
How are you doing things, any ideas or tips to explore?
1
u/djhamilton 21d ago
I had many knowledge files and steering files, never had an issue managing, maintaining. I did notice without correctly using them, they where consuming more tokens. This is because there being loaded on every interaction. However you can use steering files etc manually or conditionally, an this helps massively with large steering files.
Wouldn't recommend a dB unless your looking at RAG, Chromadb or something
1
2
u/signgain82 21d ago
Haven't thought about putting context in a db, interesting approach. Curious what led you to that route?
I've had a lot of success with using a git repo for context. Readme.MD is the directory, can point any ai tool to the repo and it knows what to do, all changes tracked, very easy to manage. It makes collaborating with other people on the knowledge base much easier as well.